By following the example prompts and understanding the purpose of each function the team was able to master Arduino Code.
Our AEV system is run through and tested with Arduino. Arduino is an open-source hardware and software company, project and user community that designs and manufactures single-board microcontrollers and microcontroller kits. All code that will be used in this project is listed bellow.
celerate(m,p1,p2,t); – Accelerates or decelerates motor(s) m from start speed (%) p1 to end speed (%) p2 over a duration of t second
motorSpeed(m,p); -Initializes motor(s) m at percent power p
goFor(t); – Runs the motor(s) at the initialized state for t seconds
brake(m); – Brakes motor(s) m. Note: This does NOT brake the AEV, just stops the motors from spinning
reverse(m); – Reverses the polarity of motor(s) m
goToRelativePosition(n); – Continues the previous command for n marks from the vehicle’s current position. n can be positive or negative, with positive meaning the vehicle is moving forward, negative meaning the vehicle is moving backward
goToAbsolutePosition(n); – Continues the previous command for n marks relative to the overall starting position of the AEV