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 Feb 21 22:27:10 2017 +0000
Revision:
27:c68f711e5b67
Parent:
26:5814404856e2
Child:
28:271fc8445e89
Finished the code to get picture from the camera, and push the data to computer side. (however, entire picture shows black.)

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
Bobymicjohn 8:92f6baeea027 5 //LED Manager Class
hazheng 13:7dcb1642ef99 6 #define PIN_LMC_LED_RED LED_RED
hazheng 13:7dcb1642ef99 7 #define PIN_LMC_LED_GREEN LED_GREEN
hazheng 13:7dcb1642ef99 8 #define PIN_LMC_LED_BLUE LED_BLUE
Bobymicjohn 8:92f6baeea027 9
Bobymicjohn 8:92f6baeea027 10 //Motor Class
Bobymicjohn 15:eb6a274b3dfb 11 #define PIN_MC_DIR_L PTD4
Bobymicjohn 15:eb6a274b3dfb 12 #define PIN_MC_DIR_R PTA4
Bobymicjohn 15:eb6a274b3dfb 13 #define PIN_MC_SPEED_L PTA12
Bobymicjohn 15:eb6a274b3dfb 14 #define PIN_MC_SPEED_R PTA5
Bobymicjohn 8:92f6baeea027 15
Bobymicjohn 10:fedb5786a109 16 //Servo
hazheng 13:7dcb1642ef99 17 #define PIN_SC_SERVO PTB0
Bobymicjohn 8:92f6baeea027 18
Bobymicjohn 8:92f6baeea027 19 //Camera Class
hazheng 26:5814404856e2 20 #define PIN_CC_PCLOCK PTA17
hazheng 25:6f63053cee81 21 #define PIN_CC_HREF PTD6
hazheng 26:5814404856e2 22 #define PIN_CC_VSYNC PTD7
hazheng 25:6f63053cee81 23
hazheng 27:c68f711e5b67 24 #define PIN_CC_D_0 PTB8
hazheng 27:c68f711e5b67 25 #define PIN_CC_D_1 PTB9
hazheng 27:c68f711e5b67 26 #define PIN_CC_D_2 PTB10
hazheng 27:c68f711e5b67 27 #define PIN_CC_D_3 PTB11
hazheng 27:c68f711e5b67 28 #define PIN_CC_D_4 PTE2
hazheng 27:c68f711e5b67 29 #define PIN_CC_D_5 PTE3
hazheng 27:c68f711e5b67 30 #define PIN_CC_D_6 PTE4
hazheng 27:c68f711e5b67 31 #define PIN_CC_D_7 PTE5
hazheng 27:c68f711e5b67 32
hazheng 25:6f63053cee81 33 //OV7725RegBuf Class
hazheng 25:6f63053cee81 34 #define PIN_ORB_SDA PTC11
hazheng 25:6f63053cee81 35 #define PIN_ORB_SCL PTC10
Bobymicjohn 8:92f6baeea027 36
Bobymicjohn 15:eb6a274b3dfb 37 //Wheel Encoder Class
Bobymicjohn 15:eb6a274b3dfb 38 #define PIN_WE_RL PTD0
Bobymicjohn 15:eb6a274b3dfb 39 #define PIN_WE_RR PTD5
Bobymicjohn 8:92f6baeea027 40
Bobymicjohn 8:92f6baeea027 41 #endif