https://github.com/Jonkaphi/Project_STM32L412_IoT_sensor_board
This repository is for the code used for STM32L412CBT6 in the vehicle occupancy monitor board and its Altium PCB design files for a "Self Powered IoT sensor board" project.
-
On how to clone this repo follow this GitHub guide.
-
The simplest method is opening the main folder containing the .project file with the STM32CubeIDE it should automatically recognise it, here is also the user manual for the software for any further guidance.
- Flowchart above shows a simplified view of how the code works. The operational modes of the device are controller using SW1. In monitoring mode by default the device will measure for 500 ms five times with 6 second sleep periods in between until about 33 seconds elapse, and the radio sends an update message at a predefined specific frequency band (863 MHz) with the measurement data from ToF sensor as well as the status of the board. The packet structure can be seen below.
- In configuration mode the default destination and source address, as well as the update rate can be modified if another Lora enabled device sends the config data packet to the specific monitoring board source address at the service frequency band (869 MHz). The expected packet structure can be seen below.
The flowchart above explains the code seen in the main.c file, located in path “project_STM32L412_IoT_sensor_board/Code/Core/Src”. This file can be considered as a usable demo for the specific PCB.
Non are known if there are please use the issue tracker.