In the following tutorial, we will be looking at the different microcontrollers offered by STM like the STM32F103C8, STM32F030F4 and STM8S103F3. We will be comparing these micros to each other along with comparing them to the Arduino.
Once that is out of the way we will be converting the STM32F103C8 to an Arduino so that you can upload any Arduino IDE code to the STM32 using just a USB cable like you would with an Arduino.
Let us start with the fun now.
Get PCBs for Your Project Manufactured
You must check out PCBGOGO for ordering PCBs online for cheap!
You get 10 good quality PCBs manufactured and shipped to your doorstep for 5$ and some shipping. You will also get a discount on shipping on your first order.
PCBGOGO has the capability of PCB assembly and stencil manufacture as well as keeping good quality standards.
STM32F103C8 vs STM32F030F4 vs STM8S103F3 vs Arduino
So, according to the above comparison that I've drawn, let's summarise our findings:
1) The Arduino and the STM8s are 8-bit processors and the other two are 32-bit MCUs.
2) The STM32F103 has the largest flash memory which is double in comparison to the Arduino, whereas the RAM is 10 times bigger than that of Arduino.
3) The price of the powerfull STM32F103 is lesser than that of an Arduino Nano clone but in a comparable range. The STM8S103, on the contrary, makes its case as a cheap micro but definitely delivers lesser power.
4) Programming the Arduino is as simple as plugging in the USB cable and hitting the upload button in the IDE. The STM32 series do not have this feature out of the box but can be added to the STM32F103 by uploading the Arduino bootloader to it. Which is what we are going to do in the next steps :)