Project 2 Week 5: Hugo Harvey & Jake Honeywill

With the arrival of our moisture sensor, we were able to begin experimenting with the use of two inputs on our breadboard. To test the moisture sensor, we initially set up a device in which an LED is illuminated in the presence of moisture; an adapted bit of code from the internet meant to notify a user when soil requires watering.

As you can see, this device uses an if else statement similar to what we will use in our final project. When the sensor reading exceeds a given value, the LED turns on; we will adapt this to include our code for servo movement so that the servo will only move (dependent on the LDR) when the sensor reading is sufficient.

code 32

After doing this test, we wired our arduino up using our servo and both inputs in order to test the code written in our previous blog post; in our final product the moisture sensor will be embedded in soil and we will have an updated kinetic design. Changing some values and tinkering with our code, we found it to work very well with our inputs. We now must find the perfect value for moisture in soil, and also how the addition of 2 more leaf components will effect the angle our servo is required to move.


Combining the code for the LDR/Servo movement with the code for moisture sensor/LED behaviour, this demo shows the result.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s