Fan Exercise

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

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
  • DC motor
  • Transistor
  • 10k resistor (The colors on it are brown ,black, orange and gold)
  • 150k resistor (The colors on it are brown ,green , black, orange and brown)

Assembling the MDF components

  1. Fit DC motor into corresponding slot in ceiling piece and attach fan blade

Fan1.jpg

  1. Attach wall and feet to top piece

Fan2.jpg

  1. Construct the MDF parts to hold the DC motor.
  2. Open “e3_fan_test” from the examples.
  3. Upload the sketch to your Control Yún.
  4. Open the Serial Monitor and test the fan.
  5. If it works, disconnect the fan section and connect it to the Home Breadboard Unit according to the overlay.
  6. Once you have removed the fan section, connect the RGB LED to your Control Yun.
  7. Open “e3_fan_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 turn on the fan. If the temperature goes below the threshold, the fan will automatically stop.