How to Ask for Help with Embedded Programming?
Everyone who programs microcontrollers will sooner or later run into some problems along the way. More experienced people will first try to find a solution on their own. What if you’re a beginner and you don’t know what to do with your problem? It’s best to ask colleagues with more experience. How do you ask for help properly to increase your chances of success? I’ll give you a few tips.
(more…)What’s the deal with the RTC on the STM32F4?
The real-time clock in STM32 microcontrollers is not the same across all families. Basically, we can encounter two different RTCs. One basic one, which is found in older and less advanced microcontrollers like the F1 series, which I covered in previous articles. There is also a more advanced clock, which you can find for example in the F4 family, and that’s exactly what I’m going to take a look at this time.
(more…)What is this date in the STM32F1 RCT?
In the previous post I started a mini-series dedicated to the built-in RTC in STM32 chips. I began with probably the most popular microcontroller SMT32F103 found among others in the cheap BluePill board. I got to the point where after resetting the microcontroller the time was still correct, but the date started from zero.
(more…)Built-in RTC in STM32F1
STM32 microcontrollers undoubtedly have many killer features. Of course, compared to the ancient AVRs that are still used in the most popular Arduino Uno. One of those things is that STMs have a built-in real-time clock, RTC for short. Let me show you in detail what working with such a clock looks like using the HAL library generated by CubeMX.
(more…)Interrupt-driven handling of the VL53L0X laser sensor
In the last article I described the adventures related to the original API provided for the laser distance sensor VL53L0X. I got to the point where I managed to run a single measurement. However, I’d like to relieve the microcontroller a bit so it doesn’t have to wait so long for the measurement to finish. The sensor has an interrupt output pin, so why not use it?
(more…)Low-Cost Laser Distance Measurement with the VL53L0X ToF Sensor
Anyone who has spent even a moment dealing with robotics knows that distance measurement plays an incredibly important role in this field. Practically everywhere we deal with devices that move, some kind of obstacle detection is advisable. This is often implemented by measuring distance.
(more…)UART reception with DMA on the F103? That’s also simple!
Not long ago I wrote an article about how to implement UART reception via DMA. I successfully wrote such a “hands-free” implementation for STM32F411. Many of my readers also use cheap boards with F103 and porting the library caused huge problems. I adapted my code and I will show you what the differences were and the potential difficulties.
(more…)STM32CubeIDE, the official IDE for STM32
It’s been a while since I put together the list of eight best IDEs for STM32. At the time of writing that article, no one publicly knew what was about to happen. ST acquired Atollic, taking over their STM32 IDE, TrueStudio. As a result of these events we finally have something “made” by ST, namely STM32CubeIDE. So let’s see what they have to offer.
(more…)






