Tag Archives: tutorial

Setting up an STM32F10x working area

As I want to work with the STM32F10x microcontrollers in the future I had to set up a working area to compile my code in and use the peripheral library and while I was at it decided to share it with you should you be interested in these devices too.

Setting up the working area is incredibly simple asy you only have to clone the git repository:

git clone https://github.com/Torrentula/STM32F1-workarea.git
cd STM32F1-workarea/Project/GPIO-example
make

After changing to the GPIO example project and compiling it you can load it into the microcontroller using gdb or OpenOCD, whichever you prefer.

The Project folder is where all the projects live. You can simply copy the GPIO-example folder, delete main.c and start over.

Workshop Update #4 – SD card and FAT16 implementation

This is the 4th workshop update!

As you can see from the last two posts I am working on an SD card based data logger board. I have worked on getting the SD card communication protocol up and running and also have written my own FAT16 file system implementation (it’s pretty crude, though).
Continue reading

Measuring temperature with your microcontroller using NTCs

Often you want to measure environmental variables with your microcontroller, e.g. brightness, temperature, humidity, gas concentration etc.

Measuring a temperature with a microcontroller can be done in several different ways depending on the accuracy required and temperature range involved. A thermistor (temperature dependent resistor) can be used as a cheap temperature sensor for temperatures ranging from -40°C up to 125°C.
Continue reading