Presentation code for PROJECT #1 - ES200 Fall 2014
Dependencies: Servo mbed Motor
Diff: main.cpp
- Revision:
- 0:80cc8025b1c0
- Child:
- 4:0ed46a6cdf66
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Oct 09 18:13:23 2014 +0000 @@ -0,0 +1,18 @@ +//MIDN 3/C W. O'Brien, D. Thompson-Sevcik, C. Stabler +//Candy scooper program for Project #1, ES200 Fall 2014 +//Modifications: 9 OCT- Initial code + +#include "mbed.h" +#include "Motor.h" +#include "Servo.h" + + Motor m(p26, p29, p30); //name of motor is 'm' + Servo scoop(p21); //name of claw servo is 'scoop' + Servo arm(p22); //name of assembly arm servo is 'arm' + //Declaration of switches +int main() { + //Move scoop up and down- one switch + //Move arm up and down- two swtiches (one for up and one for down) SET LIMITS!!! + //Move DC motor left and right- two switches VERY SLOWLY + //Set up a secret program to do a scoop-turn-dump motion all in one??? +}