Back to Parent

Outcome


Solution

These little garden fairies live by your flowers and help make sure they are standing upright and receiving all the light they need.

The fairies wake up at 7am and start caring for your flower until 6 pm, which is when they head to bed. During the day, the fairies will monitor how upright your flower is using a flex sensor. If your flower starts to wilt, the fairies will then send you a warning via Slack. As the flower continues to wilt, the messages will start to sound more urgent, meaning you should really check on your flower to check on it or water it.

During the day, the fairies also monitor how much light your flowers are receiving with a photoresistor. When it gets too dark, the fairies will play a short fairy tune and shine a magical (LED) light on your flowers to give them all the brightness they need throughout the day. If the surroundings get bright again, the fairies will turn off their magical light.

At 6pm, the fairies will retire to bed and will stop sending you any alerts about how upright your flower is or how much light it’s receiving. That is until 7 am, when the new day begins…

Approach

The approach to this device was inspired by the story of The Lorax (by Dr. Suess). The same way the Lorax is the guardian of the forest, looking over the trees, these garden fairies are small accessories that could be placed near your plant to look over and care for it. They bring magic into your house with their lights and tunes. Unlike plant-monitoring pots, these creatures are small and, along with their light, can be moved around to other plants very easily. They create a mystical and fun atmosphere around your plant and can act as ornaments too!

The approach uses two fairies. The first fairy sits by your plant, leaning back on its stem. Its wings are embedded with flex sensors that are able to detect when your plant begins to wilt. The second fairy hangs out by the magical light, looking down at the plant, making sure that it is getting enough light. This fairy has a photoresistor in its hat that can measure the brightness around your plant.

If you believe (and I mean really believe), these garden fairies will turn your home into a magical forest of mystical creatures    

Gf
Show Advanced Options
Gf2
Show Advanced Options

Process

I started off this project with a photoresistor and flex sensor to record light and water levels through wilting. I set up my circuit and code to record sensor inputs from both the photoresistor and flex sensor and convert them into outputs measured through LED lights. I then attached a piezo buzzer to create a sound output for when the photoresistor reaches a low (dark) value. In order to link the flex sensor to an alert system, I created an applet in IFTTT that linked Particle to Slack. Whenever the flex sensor reaches a dangerously low value, it sends an alert to Slack.

While setting up the piezo buzzer, I struggled to make it only buzz once whenever the brightness changed rather than continuously. I eventually was able to do this using Boolean values that I attached to my if statements.

After I set up my circuit and code, I decided to incorporate the time of day into my code. I initially struggled with this because the Particle website doesn’t indicate how to call the ‘Time’ function. I was able to find a code with the help of Particle community conversations, which allowed me to use Time. --> #include "application.h" 

Implementation

List of parts:

· Argon Particle Board with WiFi connector

· Mini breadboard

· USB cable

· Photoresistor

· Flex sensor

· Jumper wires

· Male-to-female jumper wires

· LED x1

· 1K Ohm resistor x1

· 10K Ohm resistor x2

· Piezo buzzer

Circuitreal
Show Advanced Options
Show Advanced Options
Show Advanced Options
Show Advanced Options
76756962 718462858674314 4410048698428424192 n
Show Advanced Options

Next Steps

Taking this project forward, I would try to refine how often the flex sensor reading creates an alert. I would like to have it alert the plant owner once a day if the plant starts to wilt rather than every time the sensor records it as wilting. I would also refine the brightness of the LED according to the brightness in the room. Currently, it either fully turns on or fully turns off; however, in varying brightness conditions, the LED may not need to be at maximum brightness. Thus, adjusting the sensitivity of the photoresistor and LED would be a next step.

There could be ways to allow the plant owner to further engage with the fairies or use them for other purposes. This would be something I could further explore. 

Reflection

The process as a whole was smooth due to the many instructions provided along the way. It was a very fun project! Due to my limited coding knowledge, I did encounter some struggles understanding what certain lines of the code meant and how to write my own lines. Overall, I was able to seek help from people, online tools, and the Particle community conversations to better understand how to code in Particle. 

References


https://community.particle.io/t/using-time-hour/28644/4

https://www.arduino.cc/en/Tutorial/toneMelody

https://docs.particle.io/reference/device-os/firmware/argon/#hour-    

Drop files here or click to select

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