Midterm

Documentation of our team: https://pastoral-galliform-f42.notion.site/Midterm-Doc-aa0ab7c54b3b4796b7cb8134a5f989b3?pvs=4

Week 5: Midterm

Testing sensor Motor Testing Power Testing Sensor Motor Connection Testing Prototype All Together Without Battery #include <AFMotor.h> #include <NewPing.h> #include <Servo.h> #define TRIG_PIN A0 #define ECHO_PIN A1 #define MAX_DISTANCE 100 #define MAX_SPEED 190 #define STOP_DISTANCE 5 #define SERVO_PIN 10 NewPing sonar(TRIG_PIN, ECHO_PIN, MAX_DISTANCE); AF_DCMotor motor1(1, MOTOR12_1KHZ); AF_DCMotor motor2(2, MOTOR12_1KHZ); AF_DCMotor motor3(3, MOTOR34_1KHZ); AF_DCMotor motor4(4, MOTOR34_1KHZ);… Read more Week 5: Midterm

Week 3: Melody + Servo Motor Control

Lab: Tone Output Using An Arduino Connect the Sensors and the Speaker Play Tones   Play it Loud   A Complex Example of melody Lab: Servo Motor Control with an Arduino Connect an Analog Input Sensor and a Servo   Question Why does the speaker not need to connect to the voltage?