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:
Sat Apr 08 17:40:13 2017 +0000
Revision:
59:b709711bc566
Parent:
57:0d8a155d511d
Child:
62:bc5caf59fe39
Added IMUManager Class.

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
Bobymicjohn 15:eb6a274b3dfb 13 #define PIN_MC_DIR_L PTD4
hazheng 44:15de535c4005 14 #define PIN_MC_SPEED_L PTA12
hazheng 44:15de535c4005 15
Bobymicjohn 15:eb6a274b3dfb 16 #define PIN_MC_DIR_R PTA4
Bobymicjohn 15:eb6a274b3dfb 17 #define PIN_MC_SPEED_R 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 44:15de535c4005 49 #define PIN_AUC_TOUCH_CS PTC16
hazheng 44:15de535c4005 50 #define PIN_AUC_SD_CS PTC17
hazheng 40:be98219930e4 51
hazheng 59:b709711bc566 52 //IMU Manager Class
hazheng 59:b709711bc566 53 #define PIN_IMC_SDA PTC9
hazheng 59:b709711bc566 54 #define PIN_IMC_SCL PTC8
hazheng 59:b709711bc566 55
hazheng 59:b709711bc566 56 #define PIN_IMC_ACCL_SA0 PTB8
hazheng 59:b709711bc566 57 #define PIN_IMC_ACCL_SA1 PTB9
hazheng 59:b709711bc566 58
hazheng 28:271fc8445e89 59 //////////////////////////////////////
hazheng 28:271fc8445e89 60 //Global Ports
hazheng 28:271fc8445e89 61 #define PIN_SPI_MOSI PTD2
hazheng 28:271fc8445e89 62 #define PIN_SPI_MISO PTD3
hazheng 28:271fc8445e89 63 #define PIN_SPI_SCK PTD1
hazheng 28:271fc8445e89 64
hazheng 29:f87d8790f57d 65
hazheng 28:271fc8445e89 66
Bobymicjohn 8:92f6baeea027 67 #endif