More suck, less slip

If you have built a micromouse and wondered how useful a suction fan would be, the answer is simple. You cannot go fast enough to be competitive at the top level without one, the benefit is not just about cornering either. (more…)

Continue ReadingMore suck, less slip

TIM3 Output Compare on the STM32 Family

TIM3 is a general purpose timer found on all the STM32 family processors. Among other features, it has four capture compare channels that can be used to generate regular interrupts. In this article I will show you how to set up simple interrupt events based on these features. (more…)

Continue ReadingTIM3 Output Compare on the STM32 Family

TIM3 ARR Gives Regular Interrupts on the STM32F4

The simplest way to produce regular interrupts from a timer like TIM3 on the STM32 family of processors is to set up the Auto Reload Register (ARR) to generate an update event. This article shows you how to correctly set up the clock source, prescaler and ARR to get regular events over a wide range of frequencies. (more…)

Continue ReadingTIM3 ARR Gives Regular Interrupts on the STM32F4

Micromouse Sensor Design

Selecting the best micromouse sensor design is a study in electronics, physics, geometry, maths and coding. Here I will look at some of the design considerations for the sensors in the next iteration of my micromouse. Zeetah V and VI use triangulation sensors pioneered by David Otten. These sensors consist…

Continue ReadingMicromouse Sensor Design

Travelling a bumpy road with a micromouse

My micromouse generates a lot of data. I log speeds, sensor readings, motor controller parameters. All sorts of things. Often that data just makes me worry. Most recently, I was noticing that there were some large variances at speed. Micromouse is a race - among other things. If you cannot…

Continue ReadingTravelling a bumpy road with a micromouse

LiPo charger and serial interface combined

Travelling to contests is great. Except for the bits and pieces that you need to lug around. For several years I have used a smart charger for my LiPo batteries. It is a fine charger but bulky. Along with its mains power supply it is about the size of a large laptop charger and needs several cables to join together. I decided to make a smaller, portable charging solution. (more…)

Continue ReadingLiPo charger and serial interface combined

Build a mini ST-LINK/V2 programmer/debugger for the STM32

I enjoy working with the STM32 processors. They are easy to use, powerful and cheap and there are lots of options for developing code. One minor annoyance is the question of a programmer. ST-LINK/V2 One of the most commonly available and widely supported commercial programmers is the ST-LINK/V2. This is…

Continue ReadingBuild a mini ST-LINK/V2 programmer/debugger for the STM32