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.
In this video I talk about how to generate a PWM signal using the CCP in conjunction with the Timer 2 module.
In this video I go through the basics of Timers on PIC microcontrollers.
This time I talk about the different oscillator options available on PIC microcontrollers.
This time I talk about the basic principles of interrupts on PIC microcontrollers
This is the first video in the PIC microcontroller tutorial series. Give it a thumbs and subscribe if you like it
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).
As you might know I am working on an SD datalogger project. In order to write data to the SD card and directly access it from the computer I need to implement FAT16 filesystem handling.
I haven’t found any video about how exactly FAT works so I have made a video myself.
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.