Clothesline Exercise

In this exercise, you will build a connected clothesline. Once a specified temperature has been reached, the Home Yún signals the Control Yún and allows it to extend the clothesline.

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:

  • 1 Arduino Yún
  • 9 jumper wires
  • 1 RGB LED
  • 1 breadboard
  • 1 push button
  • 1 Micro Continuous Servo
  • 1 10k resistor (The colors on it are brown ,black, orange and gold)
  • String

Assembling the MDF Components

  1. Glue gear piece and clothesline axle pieces together

Clothesline1.jpg

  1. Fit the continuous servo through the corresponding slot in wall piece and attach the gear piece.

Clothesline2.jpg

  1. Cut a length of string and tie it snugly around the gear piece and clothesline axle.

Clothesline3.jpg

 

  1. Construct the MDF parts to hold the continuous servo and string.
  2. Open “e3_clothesline_test” from the examples.
  3. Upload the sketch to your Control Yún.
  4. Open the Serial Monitor and test the clothesline extension and retraction.
  5. If it works, disconnect the clothesline section and connect it to the Home Breadboard Unit according to the overlay.
  6. Once you have removed the clothesline section, connect the RGB LED to your Control Yun.
  7. Open “e3_clothesline_control” from the examples.
  8. Upload the sketch to your Control Yún.
  9. Once the Home Yún’s temperature has gone above a specified threshold, you should then be able press the button to extend the clothesline. If the temperature goes below the threshold, the clothesline will automatically retract.