CET 4711 Final Project: Missile Launcher

You are currently viewing a revision titled "Arduino Code", saved on December 18, 2012 at 6:50 pm by Huan Yang
Title
Arduino Code
Content
•int val=255;
•int v_motor = 3; //vertical motor
•int h_motor = 5; //horizontal motor
•int f_motor = 6; //firing motor
•void setup() {
•  Serial.begin(115200);
•  Serial.println(F("Enter the following command to control motors"));
•  Serial.println(F("1 - vertical motor"));
•  Serial.println(F("2 - horizontal motor"));
•  Serial.println(F("3 - firing motor"));
•  Serial.println(F("4 - motors stop"));
•}
Excerpt
Footnotes