Opublikowano przez Mateusz Salamon, temu

How to get started with STM32?

Everyone starts with something at some point. Since you’re here you’d probably like to start your adventure with STM32 microcontrollers. I also once wanted to. Nowadays, we look for our first help on the Internet. That’s why this blog post was created. (more…)

Opublikowano przez Mateusz Salamon, temu

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…)
Opublikowano przez Mateusz Salamon, temu Opublikowano przez Mateusz Salamon, temu

Additional RTC features in STM32F4 part 1

The RTC clock you’ll find in STM32 microcontrollers is used not only for simple timekeeping. Besides this basic function, it also has several other more or less useful ones. I’ve already shown you the backup registers, which can be used to store sensitive data or remember the date in a less advanced clock. This time I’d like to show you a few other features that are available to us.

(more…)
Opublikowano przez Mateusz Salamon, temu

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…)
Opublikowano przez Mateusz Salamon, temu

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…)
Opublikowano przez Mateusz Salamon, temu Opublikowano przez Mateusz Salamon, temu

Insanely Accurate DS3231 RTC on STM32

Not everyone may know this, but real-time clocks, or RTCs, are only as accurate as their clock source. Most often, such systems are driven by a 32.768 kHz frequency. STM32 has a built-in RTC, but exactly the same rule applies to its accuracy. Generally, what STM32 offers as an internal RC oscillator for the RTC is not of the highest quality and is susceptible to temperature changes. Connecting an

(more…)
Opublikowano przez Mateusz Salamon, temu

Ridiculously Simple Hardware Encoder Handling on STM32

An encoder is a great device. You surely know some equipment where a knob would rotate endlessly while adjusting some parameter (e.g., an audio amplifier). A very nice idea to replace a classic potentiometer. Encoders are also very often used to measure the rotation angle of motors. In automation and robotics they are

(more…)
Opublikowano przez Mateusz Salamon, temu

Are an I2C Converter and an LCD a Good Match?

I often come across the statement that it’s better to connect an LCD display via an I²C expander because it “eats” only two microcontroller pins instead of a minimum of 6. It’s true that it saves pins, but as we all know—nothing comes for free. Today I’ll check for you what you need to account for when you connect an LCD over I²C using popular modules based on PCF8574 chips.

(more…)