Final Project Documentation Ian Kelly


EE 47 Final Project: 

 

You should set up your own page, and need, at a minimum, to post your design point of view (what are you designing a player for?),

 

The quad is meant to be friendly and cheery - like a house pet it is designed for robot human interaction, unlike most quads on the market that are for security or industrial or miliatary application this one is supposed to be friendly. It is designed to fly around homes and help with little jobs such as setting the table or watering plants so it should be a peacful and gracious member of a house hold and its design should reflect that - hence the goal of smooth curves and eyes and light colors, and no exposed circuitry. 

 

 

 

 Your Verplank diagram, 

 

 

 

 

Photos of your paper prototype, 

 

 

 

 

 

 

your state diagram, 

 

 

 

 

 

your project code, 

 

/*

EE47 final project code for quadcopter. 

Ian Kelly 

Aug 2013 

 

 

 */

 

int ledPin = 13;

int M1Pin = 9;    

int M2Pin = 6;

int M3Pin = 3;

int M4Pin = 11;

 

void setup()  { 

  // nothing happens in setup 

 

void loop()  { 

  for(int fadeValue = 0 ; fadeValue <= 250; fadeValue +=10) { 

 

    analogWrite(M1Pin, fadeValue); 

    analogWrite(M2Pin, fadeValue); 

    analogWrite(M3Pin, fadeValue); 

    analogWrite(M4Pin, fadeValue); 

    analogWrite(ledPin, fadeValue);

 

    // wait for 10 milliseconds to see the motors move 

    delay(10);                            

  } 

 

delay(100000);

//just to have it stop after motors are up to full speed. 

 

//Plan to use this below section for testing or bringing the motors down in speed to land. 

//Will integrate code for the accelerometer here soon. 

  // fade out from max to min in increments of 5 points:

  //for(int fadeValue = 255 ; fadeValue >= 0; fadeValue -=5) { 

    // sets the value (range from 0 to 255):

   /* analogWrite(M1Pin, fadeValue); 

    analogWrite(M2Pin, fadeValue); 

    analogWrite(M3Pin, fadeValue); 

    analogWrite(M4Pin, fadeValue); */

   // analogWrite(ledPin, fadeValue);

 

 

    // wait for 100 milliseconds to see the dimming effect    

   // delay(100);                            

 // }

}

 

 

 

 

and a video of the final working player in use.

 

 

http://www.youtube.com/watch?v=5yriRSnpV5o

 

 

Other notes and documentation and links for how I figured out how to build all this / for future ee47 students: 

 

 

 

 

 

• Each Arduino output channels has a 40 mA limit

• The maximum current draw for an Arduino is 200 mA

 

so we need a : 

dc motor circuit for arduino 

 

http://dlnmh9ip6v2uc.cloudfront.net/learn/materials/44/DC_motor_circuits_notes_2up.pdf

 

 

 

define: 

 

collector input voltage. 

 

emmitor - goes to ground usually 

 

base - middel of transistor - how you control current with arduino

 

 

 

 

 

whats the difference between an amplifier and a transistor?

 

well - u could use a transistor as an amplifier. 

 

 

 

 

TRANSISTORS I FOUND AROUND THE HOUSE - 

924 PN 2907

H PN A 2222 A

CENPN 2222 A 

 

hard to find data sheets for these - but i found sort of similar parts on line and use those electrical charicteristscs then did lots of testing. 

 

remember: 

 

 

Q is electric charge in coulombs

t is time in seconds

I is electric current in amperes

V is electric potential or voltage in volts

 

 

A simple circuit diagram to show the labels of a n–p–n bipolar transistor.

 

 

 

 

sources:

 

http://en.wikipedia.org/wiki/Electrical_power

 

http://en.wikipedia.org/wiki/Transistor

 

http://en.wikipedia.org/wiki/2N2222