SmartWheels self-driving race car. Designed for NXP Cup. Uses FRDM-KL25Z, area-scan camera, and simple image processing to detect and navigate any NXP spec track.
Dependencies: TSI USBDevice mbed-dev
Fork of SmartWheels by
Hardwares/PinAssignment.h@29:f87d8790f57d, 2017-03-01 (annotated)
- Committer:
- hazheng
- Date:
- Wed Mar 01 16:31:36 2017 +0000
- Revision:
- 29:f87d8790f57d
- Parent:
- 28:271fc8445e89
- Child:
- 34:f79db3bc2f86
Added test code for ArduCam. Cam is not working yet.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Bobymicjohn | 8:92f6baeea027 | 1 | #pragma once |
Bobymicjohn | 8:92f6baeea027 | 2 | #ifndef PIN_ASSIGNMENT_H |
Bobymicjohn | 8:92f6baeea027 | 3 | #define PIN_ASSIGNMENT_H |
Bobymicjohn | 8:92f6baeea027 | 4 | |
hazheng | 29:f87d8790f57d | 5 | |
hazheng | 28:271fc8445e89 | 6 | |
Bobymicjohn | 8:92f6baeea027 | 7 | //LED Manager Class |
hazheng | 13:7dcb1642ef99 | 8 | #define PIN_LMC_LED_RED LED_RED |
hazheng | 13:7dcb1642ef99 | 9 | #define PIN_LMC_LED_GREEN LED_GREEN |
hazheng | 29:f87d8790f57d | 10 | //#define PIN_LMC_LED_BLUE LED_BLUE |
Bobymicjohn | 8:92f6baeea027 | 11 | |
Bobymicjohn | 8:92f6baeea027 | 12 | //Motor Class |
Bobymicjohn | 15:eb6a274b3dfb | 13 | #define PIN_MC_DIR_L PTD4 |
Bobymicjohn | 15:eb6a274b3dfb | 14 | #define PIN_MC_DIR_R PTA4 |
Bobymicjohn | 15:eb6a274b3dfb | 15 | #define PIN_MC_SPEED_L PTA12 |
Bobymicjohn | 15:eb6a274b3dfb | 16 | #define PIN_MC_SPEED_R PTA5 |
Bobymicjohn | 8:92f6baeea027 | 17 | |
Bobymicjohn | 10:fedb5786a109 | 18 | //Servo |
hazheng | 13:7dcb1642ef99 | 19 | #define PIN_SC_SERVO PTB0 |
Bobymicjohn | 8:92f6baeea027 | 20 | |
Bobymicjohn | 8:92f6baeea027 | 21 | //Camera Class |
hazheng | 26:5814404856e2 | 22 | #define PIN_CC_PCLOCK PTA17 |
hazheng | 25:6f63053cee81 | 23 | #define PIN_CC_HREF PTD6 |
hazheng | 26:5814404856e2 | 24 | #define PIN_CC_VSYNC PTD7 |
hazheng | 25:6f63053cee81 | 25 | |
hazheng | 27:c68f711e5b67 | 26 | #define PIN_CC_D_0 PTB8 |
hazheng | 27:c68f711e5b67 | 27 | #define PIN_CC_D_1 PTB9 |
hazheng | 27:c68f711e5b67 | 28 | #define PIN_CC_D_2 PTB10 |
hazheng | 27:c68f711e5b67 | 29 | #define PIN_CC_D_3 PTB11 |
hazheng | 27:c68f711e5b67 | 30 | #define PIN_CC_D_4 PTE2 |
hazheng | 27:c68f711e5b67 | 31 | #define PIN_CC_D_5 PTE3 |
hazheng | 27:c68f711e5b67 | 32 | #define PIN_CC_D_6 PTE4 |
hazheng | 27:c68f711e5b67 | 33 | #define PIN_CC_D_7 PTE5 |
hazheng | 27:c68f711e5b67 | 34 | |
hazheng | 25:6f63053cee81 | 35 | //OV7725RegBuf Class |
hazheng | 29:f87d8790f57d | 36 | #define PIN_ORB_SDA PTE0 |
hazheng | 29:f87d8790f57d | 37 | #define PIN_ORB_SCL PTE1 |
Bobymicjohn | 8:92f6baeea027 | 38 | |
Bobymicjohn | 15:eb6a274b3dfb | 39 | //Wheel Encoder Class |
hazheng | 29:f87d8790f57d | 40 | #define PIN_WE_RL PTC12 |
hazheng | 29:f87d8790f57d | 41 | #define PIN_WE_RR PTC13 |
hazheng | 29:f87d8790f57d | 42 | |
hazheng | 29:f87d8790f57d | 43 | //ArduCam Class |
hazheng | 29:f87d8790f57d | 44 | #define PIN_ACC_CS PTD0 |
Bobymicjohn | 8:92f6baeea027 | 45 | |
hazheng | 28:271fc8445e89 | 46 | ////////////////////////////////////// |
hazheng | 28:271fc8445e89 | 47 | //Global Ports |
hazheng | 28:271fc8445e89 | 48 | #define PIN_SPI_MOSI PTD2 |
hazheng | 28:271fc8445e89 | 49 | #define PIN_SPI_MISO PTD3 |
hazheng | 28:271fc8445e89 | 50 | #define PIN_SPI_SCK PTD1 |
hazheng | 28:271fc8445e89 | 51 | |
hazheng | 29:f87d8790f57d | 52 | |
hazheng | 28:271fc8445e89 | 53 | |
Bobymicjohn | 8:92f6baeea027 | 54 | #endif |