Code to run the microcontrollers on the R5 competition bot

Dependencies:   LineSensors mbed

Pins

Freescale Freedom Pin Utilization

Sensors

The reflective sensors are numbered from the left of the bot to the right and from the front to the rear.

  1. PTC7
  2. PTC0
  3. PTC3
  4. PTC4
  5. PTC5
  6. PTC6
  7. PTC10
  8. PTC11
  9. PTC9
  10. PTC8
  11. PTA5
  12. PTA4
  13. PTA12
  14. PTD4
  15. PTA2
  16. PTA1
  17. PTC12
  18. PTC13
  19. PTC16
  20. PTC17
  21. PTD2
  22. PTD0
  23. PTD5
  24. PTD13

Wheels (speed/direction)

Wheels are numbered clockwise from the front left wheel.

  1. PTB0/PTE20
  2. PTB1/PTE21
  3. PTB2/PTE22
  4. PTB3/PTE23

I2C

  • SDA, PTC2
  • SCL, PTC1

All wikipages