STM32F0 CubeMX Tutorial 1 – GPIO

It’s certainly been a while since I wrote a tutorial, a lot of the STM32 ecosystem has changed and its probably time I changed with it. CubeMX was developed by ST to streamline application design and creation. It allows for a visual method of generating initialization code without needing to know the ins and outs […]

STM32F0 – High sample rate ADC usage

My current university project is based around non destructive evaluation using ultrasonics. I’ve been delegated the task of trying to design a suitably cheap (cheap being my speciality 😉 ) low end ultrasonic evaluating system. This involves designing the high voltage supply, the output driver, a high speed amplifier system AND the whole digital domain […]

STM32F0 ADC mini tutorial – Scan mode using interrupts and DMA

The ADC in the STM32F0 series of microcontrollers is pretty advanced compared to similar costing equivalents, offering features such as continuous conversion, internally and software triggered conversions, channel scanned conversions, amongst much more! This isn’t a proper tutorial but I will be posting the code on how to achieve such a task and how I […]

STM32F0 Mini tutorial – Using the I2C peripheral to communicate with a HMC5883L digital compass IC

Well! I’ve had a fair few requests in the past few weeks about how I got the HMC5883L digital compass IC working with my STM32F0 discovery board (as shown in a previous post: I’m really not a fan of the I2C implementation on the STM32F0 discovery board as many things don’t seem particularly apparent at […]

STM32F0 Tutorial 3 – Timers Pt1

On any microcontroller, timers are arguably one of the most useful peripherals, probably along with GPIO. What is a microcontroller without the ability to measure time reasonably accurately?! Timers on the STM32 series of chips are quite complex and will be spread across multiple tutorials, each hopefully demonstrating one useful section of timers. The tutorial […]

STM32F0 Tutorial 2 – SysTick

One of the most cool features of the ARM Cortex series of processors is the SysTick. The SysTick is a 24 bit timer with a user configurable prescalar which can be used for simple variable incrementing tasks such as incrementing a second counter or similar. For the example of done, I’ve made the SysTick counter […]