Download presentation
Presentation is loading. Please wait.
Published byLeslie Miller Modified over 9 years ago
1
Final Wiring Robot Challenge 2013 Updated 10 th October
2
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
3
Motors Driver Board to Arduino IN1 IN2 IN3 IN4 P6 P5 P12 P8 P12 P8 P6 P5
4
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)
5
UltraSonic Sensor Check the UltrasonicTest.ino sketch to make sure this is working Ensure you have NewPing library installed Sensor ShieldUltrasonic Sensor Pin 15 V ( AREF)VCC Pin 15 G (AREF)GND A1Trig ( Trigger ) A0Echo (Echo, Echo, Echo)
6
UltraSonic Sensor
7
Line Followers Check the LineFollowerTest.ino sketch to make sure this is working Sensor ShieldLine Follower Sensor Pin 14 V ( GND)Left VCC Pin 14 G (GND)Left GND Pin 13 VRight VCC Pin 13 GRight GND A4Left Out A5Right Out
8
Line Followers LEFT GSVGSV THE SENSOR SHOWN IS POINTING DOWN
9
Line Followers RIGHT GSVGSV THE SENSOR SHOWN IS POINTING DOWN
10
Tilt and Pan Use the MASTERSKETCH_TEMPLATE Maxservo value 180 Min servo value 0 Midpoint 90
11
Tilt and Pan Use sensor shield pins 10 and 11 10 Tilt ( Up and Down action ) 11 Pan Servo ( left to right action) Sensor ShieldServo 10Tilt 11Pan
12
Tilt and Pan Just remember for servo – Yellow goes to sensor pin
13
Obstacle Sensors Use sensor shield pins 2 and 3 (Right and Left) Use MASTERSKETCH_TEMPLATE to test this Note no distance – only a switch Sensor ShieldIR Obstacle Sensor 3Left 2Right
14
Obstacle Sensor Just remember for sensor– Yellow goes to sensor pin
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.