7 Segment Display interfacing with STM32
#ViduraEmbedded #STM32 #STM32CubeIDE This tutorial code shows how to interface the single digit 7- segment display with STM32 based boards. It uses the LED to count from 9 to 0 and then repeat. If the button is pressed, then the numbers will count up instead of down. Circuit Wiring information ========================== Our 7 Segment display has pins as follows. -------------------------------------- --A-- F B --G-- E C --D-- -------------------------------------- By default we are allocating Port A of GPIO 0 to A, 1 to B etc. So, connect GPIO 0 to pin A on the 7 segment LED display and so on. You will need the appropriate resistors (100-220 ohm should be fine) for each segment. The LED device used here is common cathod, so the common cathod pin is connected to the GND. Connect the switch to connect on pressing. One side should be connected to ground, the other to PC13. (incase of stm32F103 bluepill) Code: --------- https://github.com/viduraembedded/STM32_Tutorials.git Watch All Videos of STM32 Tutorials using below link https://www.youtube.com/playlist?list=PLxGj5QMILu9ECuG1fetys0U4UaG5c7mfh Channel Playlists on other Microcontrollers: --------------------------------------------------------------------- Watch All Videos of Raspberry Pi Pico using below link https://www.youtube.com/playlist?list=PLxGj5QMILu9Hvqp8LAHx_g37gvO9lISWX Watch FreeRTOS Tutorials on STM32: https://www.youtube.com/playlist?list=PLxGj5QMILu9GIB2PIgY_8RoRpRPOLvQ3J All videos and tutorials on this channel are for educational purpose only. ===========================================================================
Download
0 formatsNo download links available.