Documente Academic
Documente Profesional
Documente Cultură
When RadioShack announced last year that it was starting to stock Arduinos we knew just what to do: we went shopping. It's one of our favorite tools to use and we were
up for any excuse to use more of them.
The cool thing about Arduino is that it lets you do so many different things that it's really about what the user can think of. And we thought of so many things to do.
Thanks to the Arduino we were able to feed pets with tweets, water our plants automatically, make a guitar pedal for crazy sounds, and so much more.
So please dig into all these projects of ours and find out what the Arduino is capable of. Redo a whole project or even just a part of one and make it your own. It's all
about your own expression of what's great and the Arduino can be your new best friend in making it happen.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Self-Watering Plant
by randofo on June 22, 2012
Plants liven up any space by adding a sense of airiness and life. That is - of course - when you don't forget to water them, and they shrivel up and die. I am very bad at
remembering to water plants. That is why I built this self-watering plant to do it for me. Using a soil sensor, and an Arduino-controlled water pump, I have created a
system that will never forget to do it. Instead of remembering to water my plants when the soil goes dry, I only have to remember to once and a while refill the water
reservoir. In this way, I have decreased my obligation to these plants and put it off to a much later date. Perhaps further iterations of this device can be connected to a
rain barrel so that I won't even have to worry about refilling my reservoir, and the entire system can be fully automated.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 2: Trim the pump
Trim away any unnecessary plastic mounting brackets from the front of the pump that may prevent it from being flush with the case (nozzles and corresponding hardware
not included).
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 4: Mark
Position the water pump, Arduino, 9V battery holder, and circuit board in the bottom of the case.
The pump will probably not have a mounting hole, so just make a mark on each side such that it can easily be zip tied down.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 5: Drill
Drill all of the holes that you have just marked with a 1/8" drill bit.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 7: Fasten
Zip tie the water pump securely into the case.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 9: Start the PCB
Solder the 5V relay to the board.
Attach an 18" section of 12 AWG wire to an unused part of the PCB. Solder a 6" section of red 22 AWG wire to this joint.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 11: Split the wires
Pass the cut power cord into the box through the 1/4" hole closest to the water pump.
Split the power cord such that each conductor is its own separate insulated strand for about 6".
Repeat this process for the cord going into the water pump.
They need to be separated because each cable is being wired to a different spot.
Connect one of the strands from the power cord to the common pin on the relay.
In this way, when the relay is powered up, AC power will be connected.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 14: Wire nut
Attach the two free power cables from the pump and power cord together using a wire nut.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 15: Prep the cords
Kink the power cable on the inside of the box and cinch it in place with a zip tie to prevent it from being pulled back through.
Tie a knot in the two 12 AWG wires such that when they are passed through the remaining 1/4" hole there would only be tension on the knot (and not the circuit board)
when you tug on them.
Pass a bolt through each and fasten them in place firmly with the corresponding nuts.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 17: Wire the power
Solder the red wire from the 9V battery connector to one terminal of the SPST switch. Solder a 5" red wire to the other terminal of the SPST switch.
Unscrew the cover from the M-type plug and slide the cover onto the end of the remaining red and black wires.
Solder the black wire to the outer ground connection on the plug. Solder the red wire to the inner power connection.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 18: Install the switch
Drill a 1/4" hole in the 8" x 6" hole opposite the water pump.
Mount the switch into the hole using the mounting hardware.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 19: Program
Plug in your Arduino and upload the following code:
/*
Self-Watering Plant
by Randy Sarafan
Reads a soil moisture sensor and turns on a relay that controls a water pump.
The soil moisture sensor involves a 10K resistor between pins A1 and ground,
and a probe connected to pin A1 and another connected to +5V. These probes
are embedded and inch apart in the plant's soil.
// if the readings from the soil sensor drop below this number, then turn on the pump
int dryValue = 700
void setup() {
pinMode(12, OUTPUT);
void loop() {
// read the analog in value:
sensorValue = analogRead(analogInPin);
Keep in mind that you may need to adjust the trigger threshold for your particular plant setup.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 20: Install
Fasten the Arduino to the base of the project enclosure with nuts and bolts.
If the Arduino lights up when you plugged in the battery, toggle the switch on the outside of the case to turn it off.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 23: Wire it up
Now is time to plug everything into the Arduino.
Plug the black wire from the circuit board to the ground socket on the Arduino.
Plug the red wire from the relay coil into digital pin 12 socket on the Arduino.
Plug the red wire connected to the 10K resistor to analog pin 1 socket.
Plug the red wire connected to the soil probe into the +5V socket.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 24: Case closed
Put the lid on top of the project enclosure and use the hardware that came with it to fasten it shut.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 26: Tubing
Cut the tubing in half.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Step 29: Insert tube
Fill your water container and insert the tube into the hole that you have previously drilled in the top.
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/
Related Instructables
Advertisements
http://www.instructables.com/id/RadioShack-presents-18-More-Awesome-Projects/