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 haofan Zheng

Committer:
hazheng
Date:
Tue Apr 18 17:43:12 2017 +0000
Branch:
Drift
Revision:
79:bdbac82c979b
Parent:
73:1dcf56e9f1d4
Child:
91:7b1910ca3ad6
Finished the basic function of the touch screen.

Who changed what in which revision?

UserRevisionLine numberNew 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
hazheng 73:1dcf56e9f1d4 13 #define PIN_MC_DIR_R PTD4
hazheng 73:1dcf56e9f1d4 14 #define PIN_MC_SPEED_R PTA12
hazheng 44:15de535c4005 15
hazheng 73:1dcf56e9f1d4 16 #define PIN_MC_DIR_L PTA4
hazheng 73:1dcf56e9f1d4 17 #define PIN_MC_SPEED_L PTA5
Bobymicjohn 8:92f6baeea027 18
Bobymicjohn 10:fedb5786a109 19 //Servo
hazheng 46:a5eb9bd3bb55 20 #define PIN_SC_SERVO PTB3
Bobymicjohn 8:92f6baeea027 21
Bobymicjohn 8:92f6baeea027 22 //Camera Class
hazheng 26:5814404856e2 23 #define PIN_CC_PCLOCK PTA17
hazheng 25:6f63053cee81 24 #define PIN_CC_HREF PTD6
hazheng 26:5814404856e2 25 #define PIN_CC_VSYNC PTD7
hazheng 57:0d8a155d511d 26 /*
hazheng 27:c68f711e5b67 27 #define PIN_CC_D_0 PTB8
hazheng 27:c68f711e5b67 28 #define PIN_CC_D_1 PTB9
hazheng 27:c68f711e5b67 29 #define PIN_CC_D_2 PTB10
hazheng 27:c68f711e5b67 30 #define PIN_CC_D_3 PTB11
hazheng 27:c68f711e5b67 31 #define PIN_CC_D_4 PTE2
hazheng 27:c68f711e5b67 32 #define PIN_CC_D_5 PTE3
hazheng 27:c68f711e5b67 33 #define PIN_CC_D_6 PTE4
hazheng 27:c68f711e5b67 34 #define PIN_CC_D_7 PTE5
hazheng 57:0d8a155d511d 35 */
hazheng 59:b709711bc566 36 //OVxxxx RegBuf Class
hazheng 29:f87d8790f57d 37 #define PIN_ORB_SDA PTE0
hazheng 29:f87d8790f57d 38 #define PIN_ORB_SCL PTE1
Bobymicjohn 8:92f6baeea027 39
Bobymicjohn 15:eb6a274b3dfb 40 //Wheel Encoder Class
hazheng 34:f79db3bc2f86 41 #define PIN_WE_RL PTD5
hazheng 34:f79db3bc2f86 42 #define PIN_WE_RR PTA13
hazheng 29:f87d8790f57d 43
hazheng 29:f87d8790f57d 44 //ArduCam Class
hazheng 34:f79db3bc2f86 45 #define PIN_ACC_CS PTC12
Bobymicjohn 8:92f6baeea027 46
hazheng 41:7b21c5e3599e 47 //ArduUTFT Class
hazheng 40:be98219930e4 48 #define PIN_AUC_CS PTC13
hazheng 79:bdbac82c979b 49
hazheng 79:bdbac82c979b 50 //ArduTouch Class
hazheng 79:bdbac82c979b 51 #define PIN_ATC_TOUCH_CS PTC16
hazheng 79:bdbac82c979b 52 #define PIN_ATC_TOUCH_IRQ PTA16
hazheng 79:bdbac82c979b 53
hazheng 79:bdbac82c979b 54 //ArduSD Class (Not exsit yet)
hazheng 44:15de535c4005 55 #define PIN_AUC_SD_CS PTC17
hazheng 40:be98219930e4 56
hazheng 59:b709711bc566 57 //IMU Manager Class
hazheng 59:b709711bc566 58 #define PIN_IMC_SDA PTC9
hazheng 59:b709711bc566 59 #define PIN_IMC_SCL PTC8
hazheng 62:bc5caf59fe39 60 //#define PIN_IMC_SDA PTE25
hazheng 62:bc5caf59fe39 61 //#define PIN_IMC_SCL PTE24
hazheng 59:b709711bc566 62
hazheng 59:b709711bc566 63 #define PIN_IMC_ACCL_SA0 PTB8
hazheng 59:b709711bc566 64 #define PIN_IMC_ACCL_SA1 PTB9
hazheng 59:b709711bc566 65
hazheng 28:271fc8445e89 66 //////////////////////////////////////
hazheng 28:271fc8445e89 67 //Global Ports
hazheng 28:271fc8445e89 68 #define PIN_SPI_MOSI PTD2
hazheng 28:271fc8445e89 69 #define PIN_SPI_MISO PTD3
hazheng 28:271fc8445e89 70 #define PIN_SPI_SCK PTD1
hazheng 28:271fc8445e89 71
hazheng 29:f87d8790f57d 72
hazheng 28:271fc8445e89 73
Bobymicjohn 8:92f6baeea027 74 #endif