14
Final Wiring Robot Challenge 2013 Updated 10 th October

Final Wiring

  • Upload
    gerik

  • View
    36

  • Download
    0

Embed Size (px)

DESCRIPTION

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. - PowerPoint PPT Presentation

Citation preview

Page 1: Final Wiring

Final Wiring

Robot Challenge 2013Updated 10th October

Page 2: Final Wiring

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

Page 3: Final Wiring

Motors

• Driver Board to Arduino

IN1 IN2 IN3 IN4

P6 P5 P12 P8

P12 P8 P6 P5

Page 4: Final Wiring

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)

Page 5: Final Wiring

UltraSonic Sensor

• Check the UltrasonicTest.ino sketch to make sure this is working

• Ensure you have NewPing library installed

Sensor Shield Ultrasonic Sensor

Pin 15 V ( AREF) VCC

Pin 15 G (AREF) GND

A1 Trig ( Trigger )

A0 Echo (Echo, Echo, Echo)

Page 7: Final Wiring

Line Followers

• Check the LineFollowerTest.ino sketch to make sure this is working

Sensor Shield Line Follower Sensor

Pin 14 V ( GND) Left VCC

Pin 14 G (GND) Left GND

Pin 13 V Right VCC

Pin 13 G Right GND

A4 Left Out

A5 Right Out

Page 10: Final Wiring

Tilt and Pan

• Use the MASTERSKETCH_TEMPLATE• Maxservo value 180• Min servo value 0• Midpoint 90

Page 11: Final Wiring

Tilt and Pan

• Use sensor shield pins 10 and 11• 10 Tilt ( Up and Down action )• 11 Pan Servo ( left to right action)

Sensor Shield Servo

10 Tilt

11 Pan

Page 13: Final Wiring

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 Shield IR Obstacle Sensor

3 Left

2 Right