The aim of the presented work was to develop the firmware for the boat monitoring device that will be able to report information about its position and the status of sensors connected to the device (battery voltage sensors, digital sensors, temperature sensors, etc.) via a mobile connection to a server. Special emphasis is placed on the reliability of the software, as the device is used on privately owned vessels and any failure would mean great user dissatisfaction and high replacement costs.
The project includes the implementation of the FreeRTOS operating system on the Nordic NRF52840 microcontroller and communication with other devices in the circuit. The method of communication with the LSM6DSM accelerometer and the GPIO pin expander via I2C bus is presented. The implementation of communication with the quectel EC21-E modem and the quectel L96 GPS module via a UART connection and communication with the CAN chip MCP2515 via an SPI connection are presented. The process of obtaining and processing data obtained from all the above-mentioned connections is described, as well as the process of setting up and controlling those devices.
Due to the extent of the project it is not yet fully completed, but for now it seems that the product will meet all the requirements set at the beginning. All the main functions of the device are already working, but it still needs some improvements and thorough testing to make the product suitable for sale on the market.
|