My three-year-old daughter is very naughty, it is easy to sweat when playing outside, and the bad thing about wearing sweaty clothes is easy to catch a cold. She had caught a cold three times since the fall. If I can change her wet clothes in time, then it would largely prevent her from getting sick. That's why I want to make a kid's clothes dryness monitor.
By installing such a monitor on my daughter's clothes, when the humidity value of her clothes exceeds 100, I will receive an automatic notification message telling me that I need to change the clothes for her. I hope that scientific methods can be used to make caring for children more reassuring and worry-free.
If you also have a very naughty daughter or son, hope you can happy to see my projects :)
So, let’s get started.
Hardware and Software RequiredThe hardware for this project is Wio Terminal and Grove Soil Moisture Sensor.
I will use the Grove soil moisture sensor to get the moisture data of kids' clothes, and then use the WiFi function that comes with Wio Terminal to get the moisture data presentation in Ubidots dashboard through MQTT protocol.
Ubidots allows me to create an event easily. When the humidity exceeds a certain value, the Ubidots will send a reminder to me automatically.
ProgressStep 1: Hardware Connection
Connect the Grove soil moisture sensor with the Wio Terminal's right Grove interface via the Grove cable. And then connect the Wio Terminal to the PC.
Add Wio Terminal to the Arduino IDE by clicking on File > Preferences, and copy the below URL to Additional Boards Manager URLs:
https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
Install below libraries:
- Seeed_Arduino_rpcWiFi - search for seeed rpcwifi
- Seeed_Arduino_rpcUnified - search for seeed rpcunified
- Seeed_Arduino_mbedtls - search for seeed mbedtls
- Seeed_Arduino_FS - search for seeed fs
- Seeed_Arduino_SFUD - search for seeed sfud
- PubSubClinet - search for PubSubClient
Step 2: Register and log in to Ubidots, and get a TOKEN
After registering an Ubidots account, follow the steps in the screenshot below to a Token, copy and save it.
Step 3: Programming on Arduino
I've attached the complete code in the Code section.
Enter the wifissd and password, the TOKEN of Ubidots I have saved in the last step, and MQTT client name.
After checking that there is no problem with the code, upload it.
Step 4: Create an event in Ubidots
When the Ubidots are able to receive data correctly, in the Ubidots dashboard, click Data -> Events to add a new event. I set the rule as when the humidity value of clothes exceeds 100, I will receive a message that reminds me to help children change clothes
Done!
Now I can get an alert when the humidity on my daughter's clothes exceeds 100
Finally, a quick look at how it works
Comments
Please log in or sign up to comment.