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.
- PTC7
- PTC0
- PTC3
- PTC4
- PTC5
- PTC6
- PTC10
- PTC11
- PTC9
- PTC8
- PTA5
- PTA4
- PTA12
- PTD4
- PTA2
- PTA1
- PTC12
- PTC13
- PTC16
- PTC17
- PTD2
- PTD0
- PTD5
- PTD13
Wheels (speed/direction)¶
Wheels are numbered clockwise from the front left wheel.
- PTB0/PTE20
- PTB1/PTE21
- PTB2/PTE22
- PTB3/PTE23
I2C¶
- SDA, PTC2
- SCL, PTC1