Fan Me, Intern! a Mechanically Actuated Fan

by TechMartian in Circuits > Arduino

1411 Views, 9 Favorites, 0 Comments

Fan Me, Intern! a Mechanically Actuated Fan

IMG_0989.jpg

Many people know of the imagery of 'servants' fanning 'royalty' with palm leaves. It is popular source of comedy among many fictional shows. However, this concept is about to turn to reality with this new project.

It started out as a joke at work, where more senior members were talking about using interns as mechanical fans, since the AC broke. Me, being the tech geek that I am, decided to enslave robots to do it for me!

Tools and Materials

IMG_0988.jpg
  • Arduino 101 or Arduino Uno
  • Servo motor
  • Paper (the bigger the more airflow)
  • Jumper Wires
  • Tape
  • Scissors or X-acto blade

Folding the Fan

IMG_0983.jpg
IMG_0982.jpg
  • Fold a piece of paper into eighths.
  • Using one of the 'eighths' fold as an outline, continue to fold the rest of the paper in an alternating fashion
  • Once completely folded, tape the bottom of the folds together to form a paper fan shape.

Attaching the Fan to the Servo

IMG_0984.jpg
IMG_0985.jpg
  • Cut a notch on the paper fan approximately the size of the servo horn
  • Then, tape this notch onto the servo horn on both sides. Make sure to secure it well.

Circuitry

IMG_0986.jpg

Wiring the Servo to the Arduino board is rather simple, since all that is needed is to power the servo, and send a PWM signal from the Arduino.

  • Connect the red pin from the servo to 5V pin in the Arduino
  • Connect the black pin from the servo to the GND pin in the Arduino.
  • Then, connect the digital pin 9 from the Arduino to the white pin of the servo.

Code

Screen Shot 2017-07-19 at 12.58.56 AM.png

//include the servo library
#include

//create a servo object called servo1 Servo servo1;

void setup() { // put your setup code here, to run once: //attach servo1 to pin 9 on the Arduino 101 servo1.attach(9); }

void loop() { // Tell servo to go to 60 degrees servo1.write(60);

// Pause to get it time to move delay(200);

// Tell servo to go to 180 degrees servo1.write(180);

delay(200); }

Demo

Fan Me, Intern!

The fan will be rotating 120 degrees, and holding the base of the servo allows the horn to pivot upon the servo's base. Since the time interval is 200 milliseconds, the servo will cycle through the rotations every 400 milliseconds, continually fanning her majesty's royal highness.

Keep Cool!