Skip to content

Jonkaphi/Project_STM32L412_IoT_sensor_board

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

IoT Parking Bay Occupancy Detection Board

https://github.com/Jonkaphi/Project_STM32L412_IoT_sensor_board

Summary

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.

Screenshot 2024-04-24 141626

Code Bases Used

Installation

  • 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.

Code explanation

Picture 1

  • 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.

Screenshot 2024-04-18 150937

  • 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.  

Screenshot 2024-04-18 150959

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.

Known issues

Non are known if there are please use the issue tracker.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages