Back to Parent

Outcome


The Scenario

I have an Epipremnum plant sitting in my window, which is often open during the winter because my apartment is too warm. The plant needs sunlight, but it also needs to be in a temperature range of 65-80 degrees Fahrenheit in order to stay healthy.


The Project

I decided to create a sensor that would tell me, at a quick glance, whether or not my plant was in the right temperature range. With red and green LEDs, I programmed the Spark core to light the green LED when the temperature is within 65-80 degrees, and to light the red LED when the temperature is outside that range. I also set up the temperature as a cloud variable so I could keep track of it when I'm not at home.

Additionally, I wanted to be able to monitor the sunlight amount the plant is receiving. I installed a photoresistor and set it up as a cloud variable in order to remotely monitor whether or not the plant is receiving enough sunlight.

Materials Used

Spark Core

Extended Breadboard

Green LED

Red LED

Two 1000 Ohm resistors

One 10000 Ohm resistor

One Photoresistor

One TMP36 Temperature Sensor

One 10nF capacitor

 

Img 1317.thumb
Show Advanced Options
Img 1318
Show Advanced Options
Show Advanced Options
Show Advanced Options
Screen shot 2015 01 27 at 3.48.36 pm
Show Advanced Options

The Outcome

The outcome of the project was positive. The LEDs accurately reflected the temperature reading of the TMP sensor. Unfortunately, the sensor was slightly unreliable, and seemed a bit inaccurate. It was improved by changing some of the code, but it remains less than stellar in terms of accuracy. The biggest challenge came when designing the "if" statement in my coding. I had to enter a boolean "&&" symbol in order to communicate to the Spark core that there was a temperature range, rather than use two inequality signs around one variable, which threw an error.

Next Steps

Moving forward, I would like to use a temperature sensor with more advanced accuracy. Additionally, I would like to learn how to write coding that would take samples of the light level throughout the day and populate a spreadsheet, so that I could have data that I could graph to view the curve of daily sunlight value.

Drop files here or click to select

You can upload files of up to 20MB using this form.