STM32F0 – Software capacitive touch

Capacitive touch is “rad”. By utilizing one of the simplest physical characteristics of an object – charge storage, one is able to measure the presence of a grounded object including touch and pressure. There are a couple of capacitive touch libraries that I’ve seen around but many require dedicated hardware, for example the TSC peripheral […]

STM32F0 + ILI9163 LCD!

Well after popular demand (lol two people…)! I’ve revisited some EXTREMELY old code and got it working for my ILI9163 LCD, its not pretty, its code I’ve not used in a LONG time and probably won’t use for a long while more but as far as I know, the driver is pretty sound. Its uncommented […]

STM32F0 Capacitance meter!

Yet another project with my STM32F0 discovery board… A simple capacitance meter! The value of capacitance can be determined by the time that it takes for a capacitor to charge through the resistor. A precise way to do this would involve using two comparators, 4 precision resistors (three for a precise biasing source and one […]

STM32F0 Discovery with the GY-GPS6MV2

Well! On another of my eBay whims, I decided to get a GPS receiver module. They’re normally relatively cheap (<£10 from the far lands! – Link will expire!) and are surprisingly easy to use. I’d found a fair few Arduino versions but couldn’t really find anything on how they’re interfaced. My module literally has 4 […]

HD44780 Library update!

Since printing floating points is probably much more important than the speed of this library, I’ve included a new function that allows the printing of floating point numbers! The function explanation is really simple and here it is: int8_t PNumF(float Num, uint8_t X, uint8_t Y, uint8_t Prec)Just like with the standard PNum function, this function […]

Interfacing the HC-SR04 ultrasonic distance sensor and the STM32F0 Discovery board!

A few months back, I bought myself a cheap SR04 ultrasonic rangefinder (Datasheet:, as per off the magical eBay (Example – Link will expire: As you can imagine, these things are ridiculously cheap at a mere 99p inc. p+p. How that is even profitable, I’ll never know! They’re actually pretty nice devices and allow for […]

HD44780 Library and more!

Well in light of my recent hardware addition, I’ve decided to convert the basis of my HD44780 code into a standalone library. I’ve also added the ability to print signed integer numbers with padding with my whole code including examples compiling to < 3.5k at O0 optimization! Snazzy or what, with O3 optimization, I’ve managed […]

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 […]

Maple Mini and CooCox

Last year, I came across the Maple Mini microcontroller ( which is an ARM based arduino equivalent that came before the arduino due. It really helped me jump into the world of arm controllers and I think that its a really great little board! Unfortunately, they stopped support for windows quite a while back and […]