Are you tired of finding your fruits bruised and damaged every time you bring them home from the grocery store or farmer's market? Look no further than Seeed Studio XIAO, the powerful and compact microcontroller board that can be used to create a DIY fruit protector. With this tutorial, you can learn how to build a simple and effective shield that will keep your fruits safe and intact during transport and storage. So grab your Seeed Studio XIAO and get ready to protect your produce like a pro!
Installing XIAO Board Package
To start, we need to add XIAOESP32S3 to your Arduino IDE. For detailed instructions, please refer to Seeeduino XIAO's Wiki page.
Installing Wio-E5's Library
Next, we need to install the library for the Grove Wio-E5. Firstly, Download the u8g2 library and DHT sensor library. And then you will be able to include these two libraries at Sketch > Include Library > Add .ZIP Library.
Follow the pinout diagrams to wire up your components. Solder XIAO on Grove Base:
Use the sample code provided in the end of this article. Make sure to replace any placeholder values with your actual data.
There is something needs to be highlighted:
1. D5/D6 of XIAO are used for I2C
# include "DHT.h"
# define DHTPIN D5
2. Serial port 44/43 are used for Grove e5
Serial1.begin(9600, SERIAL_8N1,44,43);
4. Connecting to The Things Network (TTN) Platform and Sending DataAfter setting up the hardware and uploading the code, the next step is to connect to the TTN platform.
The step 2 of this hackster blog also instructed how to register devices on TTN platform.
The Key steps are listed below:
- If you don't have an account on TTN, create one.
- After logging in to your account, navigate to the console and then to the applications.
- Click on "add application". For the Application ID, use a unique ID that describes your project. For the Description, provide a short and precise description of your project. For the Handler Registration, select the handler that is nearest to your location.
- After creating the application, you will be redirected to the application overview page. Click on "register device" to register your device.
- For the Device ID, use a unique ID that describes your device. You will find this on the label of Grove E5.
- After registering the device, you will be redirected to the device overview page. Here you will find the device EUI, application EUI, and app key. These will be used in your code.
Note: If you haven't registered your LoRaWAN® Gateway with TTN Console. Please refer to the instructions shown here.
Once your device is connected, you can begin sending data. The data sent is accessible on the TTN platform under the device's data tab.
You can follow step 5 of this article to connect TTN to Ubidots and visualize the real-time Temperature and Humidity.
With Seeed Studio XIAO board, you can detect temperature and humidity in real-time, making it a valuable tool for ensuring that your fruits are stored in an appropriate environment during transport and storage. Implementing this fruit protector, you can extend the shelf life of your fruits and enjoy them at their freshest for longer.
ApplicationPoultry Farm, Livestock Shed, Greenhouse, Office, Home, Cold Chain, and Warehouse
Seeed offers different products for industries especially those that are seeking digital transformation. Let us know how we might be able to support you!
[Wiki] https://wiki.seeedstudio.com/Grove_LoRa_E5_New_Version/
[WIKI] https://wiki.seeedstudio.com/xiao_esp32s3_getting_started
[DataSheet] https://files.seeedstudio.com/wiki/SeeedStudio-XIAO-ESP32S3/res/esp32-s3_datasheet.pdf
Comments
Please log in or sign up to comment.