Monday, November 27, 2017

24 October '17- Day 17- Pointers in function references & Joystick and robot car

Day 17 of class began with the lab involving the use of a joystick to control the robocar we had worked on previous to utilize a motor control board.  once both motors were hooked up to the drive line on the car it was a simple task to connect the wires to the motor control board.  The tricky part became trying to figure out which wire was going to move the motors in unison or opposite directions.  A little bit of testing out each motor by applying a voltage for a short moment, we took note of the direction of the motor spinning in order to hook them up correctly.
After ab we began lecture which introduced then use of pointer in function references.  Character strings were also discussed and how they can used in cryptography and pattern recognition software.

(screen shot of the code for the motor controller)

(the over head view of the robocar and components)

(close up of joystick connections to line up the correct wire color code on the arduino board)

(First getting one motor to work using the motor control board; also the motor controller we used is different)

(close up of breadboard with one motor control by the potentiometer)

No comments:

Post a Comment