Make your own Circuit Module | Decoder CD4515 | STM32 Nucleo tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hey guys it's chris i come again with a new tutorial this is an stm32 related video and i'm so excited for getting started with these cool dev boards especially the nucleo 32 ones which are getting more and more popular as you saw in the intro of the video today we will create a customized breadboard friendly module that we will control from an stm32l011m based board the purpose of making such module is mainly to keep an arranged looking of the breadboard setup so we will get rid of the extra wires and the big components and we will stick with small part sizes and keep everything connected in one compact area the module will be designed around a cd4515 integrated circuit which belongs to the 16 bits decoders this circuit will allow you to drive 16 gpio using only four pins from your microcontroller through some preset combinations that you can find in the truth table provided in the circuit data sheet any changed status of the abcd inputs will produce a changing of the output status initially we have all outputs set to high logic level as long as the inhibit pin is set to high once we turn it to low logic level and all selection pins are low we get the first bit s0 turn it to low and these are all the possible selection combinations at this point we can define five control inputs so we will need five gpio pins from our stm nucleo board to interact with this decoder i want some leds to watch the selection input status and the circuit outputs so all in all we will need 20 leds i move it to option designer and i grabbed the decoder circuit from the online library then i placed these leds as indicators of the output status and these ones as input status indicators all these leds and resistors are zero four zero two package components so it will not take large space on our module i then place it the seal header connectors to give access to the circuit pins through the breadboard connection of course i provided access to all the circuit pins now it comes the pcb design maybe the most important part of this design is how to keep the module breadboard friendly simply by respecting the breadboard pinto pin spacing which is set to 1 inch it means 2.54 millimeters i place it the seal heater to the sides of the board outline with a 15.24 millimeter spacing to make the module fits in six inches pin spacing after that i dragged the decoder to the middle of the module outline then i arranged these small leds and resistors inside the pcb layout routing this module is a game play surely after setting the design rules to match the pcb manufacturer capabilities as you can see from the 3d view the module has a real compact size with so many components that won't take big space on the breadboard just six days to get the pcbs manufactured by jlc pcb and now i have my modules ready for assembly make sure that you are using the appropriate tools for assembly like a soldering iron with a pointy end shoulder tip and a small cross section solder core for these small parts packages [Music] bye [Music] i have the module very well assembled and it fits properly to the breadboard [Music] now we're on the stm32 cube ide to start the first stm project the first step is selecting the word that we are dealing with in my case it is the nucleo32 stm32l011 you don't have to write the full board name on the search toolbar of the selector just write what comes after stm32 here we are dealing with the l011 k4 version which is already indicated as a nucleo family i liked the idea that the ide will download and extract all the needed packages and this is considered as time saving comparing to kl id once we have all the packages ready the selected mcu will show up then we do the pin out configuration from this graphical view remember that we have five outputs for our module so i selected these pins which are labeled as a b c d for selection pins and this one that i call it enable for inhibit pin we generate the code for this configuration then we start dealing with the har library i made this for loop to select one output of the 16 pins of the decoder every half a second it means every half a second we will visualize a new combination on the selection inputs and an increment of the selected output here is the wiring of the module to the nucleo board depending on the configuration that we have made and you can see that it looks so neat no extra wires and everything looks arranged i then connected the nucleo to my computer through usb and start debugging [Music] as you can see guys the blue leds are indicating the combination changing for a b c d selectors and these orange leds are showing which output of the 16 bits is selected i highly recommend these methods for prototyping and i will show you in the future videos more of my made modules so stay tuned do not miss to subscribe to my youtube channel for more electronics videos one last thing make sure that you are doing electronics every day it was chris see you next time [Music]
Info
Channel: DIY GUY Chris
Views: 3,090
Rating: undefined out of 5
Keywords: arduino, stm32, electronics, circuit board, pcb, jlcpcb, altium, how to make a circuit board, breadboard, decoder, chip, cd4515, hardware, maker, diy, life hacks, fyp, for your page, electronics tips and tricks, get started with electronics, pcb design engineering, how to tutorial, math, science, learning, stem, steam, circuit board design, best arduino project, arduino projects, nucleo board, stm32cubeIDE
Id: lFAtYrlZdOw
Channel Id: undefined
Length: 8min 6sec (486 seconds)
Published: Fri Feb 04 2022
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.