Voice Activated Room Tracking Catapult Launching Magazine Reloading NATO Red Vines Original Standard Issue
Notations 1. Indeed, this should have implemented a WIFI module how ever at the moment I did not have a MKR1000 on premises, thus the resulted Uno and PC connected USB. Should a MKR1000 be made available, it would be altered to suit. In conclusion, pft. 2. Notable thanks to hackerspace MakerBar in Hoboken, New Jersey. 3. Immense thx to Red Vines who sent along a swag (large) box of the best g/d 'licorice' #TeamRedVines
Arduino Cuhode
// Arduino Licorice Launcher // Vije Miller // RF Tracking @ Warner K. robowarner.com
#include "EEPROM.h" #include "Servo.h"
// Centering // Too small adjusts too frequently // Too large will pass over signal #define buffering 26 // Output Pin #define ANT_WAVEFORM_OUT 8 // Input Pin #define SPEAKER_FROM_WALKIETALKIE A1 // Calibration Pin #define CALIBRATE_IN 11
// Variables uint16_t caliset = 0; uint16_t voltage = 0; int state = 1;
// Servo Assignment Servo turn; int turnpin = 6; Servo loader; int loaderpin = 9; Servo fire; int firepin = 10; Servo arm; int arm = 11;
// Calibration Check and Delay // Aim Receiver and Clear Area if (digitalRead(CALIBRATE_IN) == LOW) { delay(10000); } }
void loop() {
if (state == 1) { // Engage Licorice Weapon digitalWrite(red, HIGH); // Trigger Position Open fire.write(45); delay(1000); // Arm Launcher arm.write(180); delay(1500); // Lock Trigger fire.write(90); // Load Launcher loader.write(180); delay(330); // Stall Position loader.write(88); // Remove Arm arm.write(40); // Licorice Launcher is Hot digitalWrite(red, LOW); digitalWrite(blue, HIGH); state = 2;
} else { // Hold for Command from JACOB if (Serial.available()) { char ser = Serial.read(); switch (ser) { case 'L': load(); break; case 'F': fire(); break; } } } }