3,312

36

5

## Introduction: Darth Vader Smart Garden

!! WATER ME !!

.

here is a great beginner programming, 3D printing and circuit building weekend project for any budget (under \$20) - the Darth Vader Smart Garden. it can email you when it's thirsty and change color to notify

.

you will need;

1x powerbank (optional to make it mobile)

.

let's make >

### Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

## Step 1: Design

i searched for existing "darth vader" designs on thingiverse and decided on http://www.thingiverse.com/thing:147446/#files specifically.. then i downloaded the stl file to edit it using tinkercad, a free online 3D design program

.

attached is the .stl file ready to print. search for a local printer or a friend favor. and if you don't have access to a 3D printer, try using an online service

## Step 2: Drill Eye Holes

you can make these holes in tinkercad as well if you want to get more 3D design experience.

.

carefully drill holes to feed the LED wires thru one in each eye, going all the way into the soil compartment.

.

also drill another hole in the back of the head. our wires will exit from here reaching to the little computer.

## Step 3: Add Veins to the Eyes

some "wiring" needs to happen now. if you don't know how to solder, learn or ask for help from a friend/parent..

.

it's a very simple circuit, just follow the wiring picture. solder wires to;

Data IN, +, -, Data OUT on eye1

Data IN, +, - on eye2 (no need for data out on this one as there is no following led attached)

.

+ positive and - negative wires are connected together as both leds share the electricity. and only 1 data cable will be connected to the little computer to control both eyes, and make them follow different patterns.

## Step 4: Connect & Seal Wires

through the eyes, into the brain (soil in this case). as our wires will be buried in wet soil, we have to seal all the connections.

.

first solder the two LEDs together. now cover your LEDs and wire connections in hot glue, don't miss a spot.!

## Step 5: Make the Base

you can 3D print a base or get some woodworking experience :)

.

need to make a box with minimum inner dimensions of L6xW4xH3.5cm to be able to hide the computer

## Step 6: Connect Components

now insert the computer onto the mini breadboard

.

connect everything according to the diagram above, take your time, making sure twice.!

soil sensor

eyes

## Step 7: Software Time

.

install the little computer's software on laptop

install arduino software on laptop

install neopixel library

install blynk library to arduino software

get arduino software ready for the little computer

install blynk app on phone or tablet

- create a new project, choose board esp8266, email yourself "auth token"

- add widget > gauge > input V11 set at 0-1023, reading freq 10sec

.

now we are ready to upload the code, copy it from below. make sure to change your wifi & app settings first (auth token email)

- line 17 for blynk project auth token

- line 22 for wifi name & password

- line 23 for alarm email address, subject and text

- line 34 for soil water level (you can set this at any number based on your plants water needs to set the alarm)

now open arduino software on laptop

go to tools > boards > scroll down to choose "nodemcu V1.0"

go to tools > port > choose the correct port for "nodemcu V1.0"

go back to phone app and start your blynk project. it should start displaying live data of soil water level. and email you if it's below the alarm level.

## Step 8: Gardening Time

let's get dirty.. fill up the head with soil. insert the water sensor until the red part touches soil

.

now add some seeds and water, not too much. you can cover the red part of soil sensor in hot glue to make it waterproof, or be careful when watering if you have steady hands :)

.

## Step 9: Conclusion

you have now learned enough to automate your house, and all through gardening.!!

.

please check out the Plant Doctor family for more information on smart plant technology. an open source hardware + software research organization specializing in plants + electronics

.

remember to follow, share and vote.

Second Prize in the
Internet of Things Contest 2016

Participated in the
3D Printing Contest 2016

Participated in the
Sensors Contest 2016

## Recommendations

5 1.3K
26 6.4K
58 8.3K
Large Motors Class

14,364 Enrolled

## 5 Discussions

Sketch uses 234529 bytes (22%) of program storage space. Maximum is 1044464 bytes.

Global variables use 34232 bytes (41%) of dynamic memory, leaving 47688 bytes for local variables. Maximum is 81920 bytes.

warning: espcomm_sync failed

error: espcomm_open failed