Run: Install System Workbench for STM32 – Bare Metal Edition as eclipse plugin: openstm32 Follow this tutorial: import STCubeMX generated project
Most of simple microcontroller applications can be modelled through finite-state machine (FSM). This is a simple and powerful approach. Now the question is “how should I implement it?”. Using an object oriented language like C++ usually lead to the implementation of the state pattern. I had to implement it using C for an MSP430 microcontroller.
For few dollars you can by UART to bluetooth chips like this one: They can be master/slave or slave only. The problem is that they are identical and the documentation is a mess, and that they are really small, so you need some soldering skills (but it can pretty easily done with standard solder tools). […]
ST has an exhaustive application note on current sensing: AN4076 (shunt resistor based current sensing circuit design) The general schema is as follows: In our case we can skip the offset stage. Probably the first filter stage can be skipped too if we just want a rough approximation and probably the filtering can be shifted […]
In this example we will use the ADC to monitor the main voltage. LiPo are used in RC toys for their characteristics. An overall introduction on LiPo can be found in Lithium Polymer Etiquette: A Comprehensive Guide to Working with LiPo. One thing that is clear is that these batteries can be dangerous. It is […]
In the previous post we managed to set up a connection between the board and a PC through USB. The board send the acceleration’s sensor data at a regular interval, and on the PC side this data is plot using a simple program developed with Qt framework. Now we want to expand it in order […]
Debugging a system that runs a RTOS can derive great benefit from extra tools. STATEVIEWER is an Eclipse GDB FreeRTOS Kernel Awareness plugin. It is created and distributed by High Integrity Systems, that sells also commercial versions of FreeRTOS (OpenRTOS and SafeRTOS), but works for FreeRTOS too.