Software
The Sony Spresense board is used to detect the environmental parameters of the cab and its GPS position. The collected data are sent every ten seconds to the ESP32 module via the EasyTransfer library. The data is then sent to the ThingSpeak server for viewing.

To start
, you need to create a channel on thingspeak.com and prepare the fields as shown in the picture. Write down the "Write API Key" available in the API Keys section.

Be sure to set the SSID, PASSWORD, and API_KEY variables before loading the programs.

Hardware
To provide the 5V needed for the system, I set up a photovoltaic storage system to be installed on one side of the cabin. Power is supplied to the USB connector of the ESP32 module and distributed to the other devices by the 5V pin.

I decided to host the components inside an IP65 junction box in order to guarantee solidity to the system.

To start, I made a ø5mm hole on one side and placed a green LED
inside. Once I removed one of the plastic caps, I placed and glued the PIR sensor. I connected the devices to each other via dupontDupont jumper cables.

Before closing the box, I opened another cap and connected the USB cable to the ESP32 module. Care must be taken to prevent possible short circuits between components, perhaps by placing sheets of cardboard between them.

The text above was approved for publishing by the original author.

Previous       Next

免费试用

请输入您的信息
请选择修正的语言

查看我们的 Outlook校对应用程序!

eAngel.me

eAngel.me is a human proofreading service that enables you to correct your texts by live professionals in minutes.