Accessible IoT Plant

by jerseyITguy in Circuits > Assistive Tech

2569 Views, 20 Favorites, 0 Comments

Accessible IoT Plant

FMBFM0HKVF8W8NO.png
Self watering IoT Accessible plant

There are quite a few types of self-watering plants but this one adds IoT services and accessibility into the mix. I have also kept the use to 3V rather than 5V to make it easier/cheaper for the classroom.

Supplies

Screenshot 2021-10-31 at 17.39.00.png
  • Microbit V2 or V1
  • Microbit Shield (any will do)
  • Ultrasonic Sensor HC-SR04
  • ESP8266
  • 180 degree Servo SG90
  • Pipet or straw
  • 2 x Wooden skewers
  • 1 x Tooth pick (optional)
  • 3 small elastic bands
  • 2 x nails or screws
  • Electrical Tape
  • Scissors or clippers
  • Cup
  • Plant
  • 11 x female to female jumper wires (dupont)

Sensing the Moisture

Screenshot 2021-10-31 at 17.47.57.png
Screenshot 2021-10-31 at 17.48.29.png
Screenshot 2021-10-31 at 17.52.39.png
  • Connect your Microbit to the shield
  • Take 2 jumper wires, strip off the ends of one side each onto the nails with electrical tape.
  • Connect the wires to a 3V positive pin and pin 0 of the microbit
  • Then program the Microbit to read the moisture of the plant using Makecode

Connecting to the Internet

Screenshot 2021-10-31 at 18.00.49.png
Screenshot 2021-10-31 at 18.09.08.png
Screenshot 2021-10-31 at 18.02.19.png
Screenshot 2021-10-31 at 17.54.16.png
Screenshot 2021-10-31 at 18.04.48.png
Screenshot 2021-10-31 at 18.06.03.png
Screenshot 2021-10-31 at 18.07.14.png
  • Wire the ESP8266 to the shield using jumper wires
  • Make a copy of the wiring diagram in TinkerCAD circuits here
  • Search Makecode extensions for "ESP8266" and add the blocks
  • Follow the Makecode instructions above to connect the Microbot to the internet
  • Pin 16 for the RX and Pin 12 for the TX
  • Connect your sensor readings to ThingSpeak by creating a new Channel making sure you have the API keys
  • Follow the extra Makecode instructions
  • Make sure your sensors are recording data

Accessibility

Screenshot 2021-10-31 at 18.11.24.png
Screenshot 2021-10-31 at 18.11.44.png
Screenshot 2021-10-31 at 18.12.33.png
  • We are going to make a movement sensor for audio cues
  • Wire the Ultrasonic Sensor to the Microbit shield using the diagram
  • Trig to Pin 1 and Echo to Pin 8
  • Add the Sonar Extention to Makecode
  • Follow the Makecode instructions

Self Watering

Screenshot 2021-10-31 at 18.13.48.png
Screenshot 2021-10-31 at 18.14.22.png
Screenshot 2021-10-31 at 18.11.44.png
Screenshot 2021-10-31 at 18.16.53.png
Screenshot 2021-10-31 at 18.17.18.png
  • Add the self-watering mechanism using a servo
  • Use elastic bands (or glue if you prefer) to fix the two long wooden skewers to the servo
  • Use an optional toothpick to secure the elastic bands on the short side.
  • Cut a hole in the pipet (or use a straw with a bend) to act as a reservoir for water
  • Attach the pipet to a servo arm with elastic (or glue)
  • Add the Servo extension to Makecode
  • Follow the Makecode instructions
  • Attach the servo to Pin 2
  • Attach the mechanism to the plant or water cup. Whichever is easiest for your cup of water
  • Secure the legs of the mechanism with an elastic band around the cup or plant.
  • Experiment with the servo arm angles
  • YOURS WILL LIKELY BE DIFFERENT ANGLES TO MINE

Analyse Your Measurements

F9DVUCSKVF8WI7K.png
Screenshot 2021-10-31 at 18.26.23.png
Screenshot 2021-10-31 at 18.30.47.png
  • Your measurements may be very different from mine
  • I have experienced ranges from 700-1000 for moisture levels using different shields and materials.
  • The temperature may also need to be tweaked by adding simple additions to the Makecode to add or take away degrees. As above.
  • Use the Thingspeak app Thingview to make a public or private page for your plant

Extensions

Screenshot 2021-10-31 at 18.27.19.png

Rather than use a pipet or straw improve the design using TinkerCAD 3D design.

Ideas for improvements:

  • Better watering mechanism
  • Using the data to predict the watering needs in a calendar
  • Adding notifications from Thingspeak into Amazon Alexa using IFTTT. Link here
  • Build an all in one 3D printed plant pot with water reservoir and holders for the Microbit and Sensors
  • Send tweets about your plants conditions on its own account. Link here

Don't Have Any Kit?

Screenshot 2021-10-31 at 19.03.37.png

You can use the "potato" battery to simulate the servo responses using the TinkerCAD circuits page if you do not have any kit on you.