Lab The baud needed to be changed manually in the serial monitor to the correct baud set in Serial.begin, otherwise strange symbols like this would show up: Once corrected, this is how it looked Programming Homework Our homework was to get the robot car working and responding to the joystick. Once Anthony and I successfully did this, we took the robot for a walk down the hall.
Hardware Main Code: const int en=A0; const int mc1=7; const int mc2=8; const int pot=A1; const int pwm=5; int val=0; int velocity=0; void setup() { // put your setup code here, to run once: pinMode(en,OUTPUT); pinMode(mc1,OUTPUT); pinMode(mc2,OUTPUT); pinMode(pwm,OUTPUT); brake(); } void loop() { // put your main code here, to run repeatedly: val=analogRead(pot); if(val>562) { velocity=map(val,563,1023,0,255); forward(velocity); } else if(val < 462) { velocity=map(val, 461, 0, 0, 255); reverse(velocity); } else { brake(); } } void forward(int rate) { digitalWrite(en,LOW); digitalWrite(mc1,HIGH); digitalWrite(mc2,LOW); analogWrite(pwm,rate); digitalWrite(en,HI...