How to Implement a Simple LED and Sensor Program for STM32

View profile for Aakash Malviya

Head of Software at Microair Avionics | Hiring Avionics V & V Engineer, Firmware Engineers, Python Developers, Test Engineers | DO-178C

For Embedded System Beginners: Implement Turn on LED for 1 sec and read the sensor; Turn off LED for 1 sec and print its value in STM32

VAISHNAVI DURGA RAVIKRINDI

VLSI & Embedded Systems ,chip design Enthusiast | ECE Grad. 👩🏻🎓| VRSEC|VLSI intern at DEVs VLSI Institute

4w

Great explanation, it helped me see the difference between blocking and non-blocking methods.The way I understood the document, each method has its own use case: HAL_Delay just for testing, HAL_GetTick for simple non-blocking tasks, and timer interrupts when strict timing is needed. A useful improvement could be handling sensor reads with ADC interrupt or DMA while the LED is active.

Pavitra pavi

ECE Student | VLSI Design Enthusiast | RTL Design | FPGA Prototyping | Low-power VLSI | SPI | APB | UART | SoC Bring-up | AI Hardware Accelerators | ASIC Design Flows | Chip and Circuit Explorer

1mo

Interesting question 🤔

See more comments

To view or add a comment, sign in

Explore content categories