Watering System Exercise

In this exercise, you will build a connected watering system. Once a specified temperature has been reached, the Home Yún signals the Control Yún and allows it to control the watering system – either starting it or stopping it.

You will build a test version and once it runs correctly, you will then add it to the other devices connected to the Home Yún.

Materials:

  • Arduino Yún
  • Jumper wires
  • RGB LED
  • Breadboard
  • Pushbutton
  • 10k resistor (The colors on it are brown ,black, orange and gold)
  • Solenoid
  • Transistor
  • 150k resistor (The colors on it are brown ,green , black, orange and brown)

 

Assembling the MDF components

  1. Fit solenoid into bracket and insert into top piece

Watering1.jpg

  1. Attach watering can onto top piece

Watering2.jpg

  1. Attach legs to top piece

Watering3.jpg

 

  1. Open “e3_watering_test” from the examples.
  2. Upload the sketch to your Control Yún.
  3. Open the Serial Monitor and test the watering systems start and stop.
  4. If it works, disconnect the watering system section and connect it to the Home Breadboard Unit according to the overlay.

  1. Once you have removed the watering system section, connect the RGB LED to your Control Yun.
  2. Open “e3_watering_control” from the examples.
  3. Upload the sketch to your Control Yún.
  4. Once the Home Yún’s temperature has gone above a specified threshold, you should then be able press the button to start the watering. If the temperature goes below the threshold, the watering system will automatically stop.