In this exercise, you will build a connected window shade. Once a specified temperature has been reached, the Home Yún signals the Control Yún and allows it to close the shade.
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
- Push button
- Micro standard servo
- 10k resistor (The colors on it are brown , black, orange and gold)
Assembling the components
-
Glue shade onto slider
-
Fit standard micro servo through the corresponding slot in wall piece and attach the gear piece.
-
Lock slider into place
- Open “e3_windowshade_test” from the examples.
- Upload the sketch to your Control Yún.
- Open the Serial Monitor and test the window shade extension and retraction.
- If it works, disconnect the window shade section and connect it to the Home Breadboard Unit according to the overlay.
- Once you have removed the window shade section, connect the RGB LED to your Control Yun.
- Open “e3_windowshade_control” from the examples.
- Upload the sketch to your Control Yún.
- Once the Home Yún’s temperature has gone above a specified threshold, you should then be able press the button to extend the window shade. If the temperature goes below the threshold, the window shade will automatically retract.