Plant Humidity Monitor

by RayM81 in Circuits > Gadgets

2303 Views, 45 Favorites, 0 Comments

Plant Humidity Monitor

0.jpg

In this article,we are going to talk about how to use micro:bit with buzzer, OLED and moisture sensor to build a case of plant detection device.

Note:
For more funny creation, you can pay attention to : http://www.elecfreaks.com/

Our product store: http://www.elecfreaks.com/estore/

Goals

3.jpg

1. Get to know the buzzer, OLED and moisture sensor.

2. Make something with a moisture sensor.

Materials:

2X Female-Female Jumper Wires

1X Buzzer

1X Moisture Sensor

1x OLED

1 x BBC Micro:bit

1 x Micro USB Cable

1 x Breakout Board

Note: You can plug components in any sequence.

2.jpg

In this project, we are going to create a plant monitoring which the buzzer will sound when there is not enough water.

A message will always be displaying on the OLED, showing the moisture level Firstly, plug in the OLED . You are able to plug it into any of the three rows.

Note: You can use any jumper wire colour.
Connect 2 Female-Female jumper wires to the Buzzer. The longer pin on the Buzzer will connect to the yellow pin on the breakout board, while the shorter one connects to the black pin. Plug the other end of the jumper wires to Pin0.

Plug Moisture Sensor

3.jpg
4.jpg

For the next components, make sure the colour of the wire follows the coloured pins on the break out board.

Plug in the moisture sensor to Pin 1.

Programming With Block Method.

5.png
6.png

Click Makecode to start programming and see more code sections.

We’ll add a package of code to be able to use our kit components. Look at the bottom of the Code Drawer for “Add Package” and click it.

Click Thinkercademy

7.png
8.png
9.jpg

Click on Tinkercademy inside the Code Drawer to find our custom blocks for the various components in your kit.

After that, use blocks under the Tinkercademy section to initialize the OLED

Since there are only two conditions, we need only one “else-if” statement.Micro:bit reads values from moisture sensor continuously. When the moisture sensor value is less than 50, this indicates that there is not enough water in the pot. As a result, the buzzer will sound and a message “Water your plant” will be displayed on OLED. Else if the moisture sensor value is larger than 50, the buzzer will be in silence and a message “Your plant is in good condition” will be displayed on OLED.

Completed

10.jpg
11.jpg

Finally! You have created a device to monitor your plant! Now, let’s try it!

Let's Have a Try!

2.jpg

Find a green plant and plug moisture sensor panel into the soil and watch. When there is not enough water, the buzzer will alarm to tell you "it's time to water your plant!". And when the plant has enough water, then the OLED panel will show you water is enough and no need to water the plant.

Isn't it very interesting?

Note:
For more funny creation, you can pay attention to : http://www.elecfreaks.com/

Our product store: http://www.elecfreaks.com/estore/