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@40:be98219930e4, 2017-03-22 (annotated)
- Committer:
- hazheng
- Date:
- Wed Mar 22 23:43:24 2017 +0000
- Revision:
- 40:be98219930e4
- Parent:
- 34:f79db3bc2f86
- Child:
- 41:7b21c5e3599e
Added code for UTFT screen. Nothing displayed on screen. Maybe screen is broken?
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 | 34:f79db3bc2f86 | 40 | #define PIN_WE_RL PTD5 |
hazheng | 34:f79db3bc2f86 | 41 | #define PIN_WE_RR PTA13 |
hazheng | 29:f87d8790f57d | 42 | |
hazheng | 29:f87d8790f57d | 43 | //ArduCam Class |
hazheng | 34:f79db3bc2f86 | 44 | #define PIN_ACC_CS PTC12 |
Bobymicjohn | 8:92f6baeea027 | 45 | |
hazheng | 40:be98219930e4 | 46 | //ArduCam Class |
hazheng | 40:be98219930e4 | 47 | #define PIN_AUC_CS PTC13 |
hazheng | 40:be98219930e4 | 48 | |
hazheng | 28:271fc8445e89 | 49 | ////////////////////////////////////// |
hazheng | 28:271fc8445e89 | 50 | //Global Ports |
hazheng | 28:271fc8445e89 | 51 | #define PIN_SPI_MOSI PTD2 |
hazheng | 28:271fc8445e89 | 52 | #define PIN_SPI_MISO PTD3 |
hazheng | 28:271fc8445e89 | 53 | #define PIN_SPI_SCK PTD1 |
hazheng | 28:271fc8445e89 | 54 | |
hazheng | 29:f87d8790f57d | 55 | |
hazheng | 28:271fc8445e89 | 56 | |
Bobymicjohn | 8:92f6baeea027 | 57 | #endif |