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: http://goo.gl/LBZeDG), as per off the magical eBay (Example – Link will expire: http://goo.gl/h9j79O). 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 […]

HD44780 LCD with PWM LED Backlight control

And voila! As I said in one of the last two posts (Initial post: https://hsel.co.uk/2014/08/14/stm32f0-discovery-board-and-the-hd44780-lcd/ and integrating a charge pump for backlight control: https://hsel.co.uk/2014/08/14/stm32f0-discovery-board-with-hd44780-and-integrated-charge-pump/), I’ve now included a generic LED backlight PWM controller using one of the standard GPIO pins. I’m using GPIOA Pin 6 to drive the LED backlight and I’ve integrated a 4bit (16 step) backlight […]

Servo tester part 2.

So! I decided that I wanted to properly test my servo tester (testing a tester… wuhhh?) so I bought myself some really cheap servo’s on eBay. When I say really cheap, I mean REALLY cheap! I spent a whopping £3.99 on a pair and that was with postage included (eBay Item: http://goo.gl/fACHpo as per usual, link […]

STM32F0 Servo Tester

Sunday, everybody’s least favourite weekend day at the thought of having another 5 days until time is no longer scarce! I’ve been getting down to a fair bit of VHDL programming, one program I wrote recently was an attempt at a brushless DC motor. I managed to get the outputs 120deg out of phase but […]