140 likes | 278 Views
Final Wiring. Robot Challenge 2013 Updated 10 th October. Final Wiring Notes. USE MASTERSKETCH_TEMPLATE Motors and Motor Drivers Ultrasonic Sensor Line Followers Tilt and Pan Servos IR Obstacle Sensors Wheel Sensors – Not Used. Motors. Driver Board to Arduino.
E N D
Final Wiring Robot Challenge 2013 Updated 10th October
Final Wiring Notes • USE MASTERSKETCH_TEMPLATE • Motors and Motor Drivers • Ultrasonic Sensor • Line Followers • Tilt and Pan Servos • IR Obstacle Sensors • Wheel Sensors – Not Used
Motors • Driver Board to Arduino P12 P8 P6 P5 IN1 IN2 IN3 IN4 P6 P5 P12 P8
Motors • Use MasterSketch_TEMPLATE • Motor Pinout for all sketches • int L1 = 6, L2 = 5, L3 = 12, L4 =8; • Test – forward back spin left spin right – must be correct otherwise other sketches wont work • This will allow motor speed variation – eg • forward(1000,150); where 150 is speed ( max 255)
UltraSonic Sensor • Check the UltrasonicTest.ino sketch to make sure this is working • Ensure you have NewPing library installed
Line Followers • Check the LineFollowerTest.ino sketch to make sure this is working
Line Followers G S V LEFT THE SENSOR SHOWN IS POINTING DOWN
Line Followers G S V RIGHT THE SENSOR SHOWN IS POINTING DOWN
Tilt and Pan • Use the MASTERSKETCH_TEMPLATE • Maxservo value 180 • Min servo value 0 • Midpoint 90
Tilt and Pan • Use sensor shield pins 10 and 11 • 10 Tilt ( Up and Down action ) • 11 Pan Servo ( left to right action)
Tilt and Pan Just remember for servo – Yellow goes to sensor pin
Obstacle Sensors • Use sensor shield pins 2 and 3 (Right and Left) • Use MASTERSKETCH_TEMPLATE to test this • Note no distance – only a switch
Obstacle Sensor Just remember for sensor– Yellow goes to sensor pin