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

Hardwares/PinAssignment.h

Committer:
hazheng
Date:
2017-04-09
Revision:
62:bc5caf59fe39
Parent:
59:b709711bc566
Child:
72:b8f2eebc8912

File content as of revision 62:bc5caf59fe39:

#pragma once
#ifndef PIN_ASSIGNMENT_H
#define PIN_ASSIGNMENT_H



//LED Manager Class
#define PIN_LMC_LED_RED    LED_RED
#define PIN_LMC_LED_GREEN  LED_GREEN
//#define PIN_LMC_LED_BLUE   LED_BLUE

//Motor Class
#define PIN_MC_DIR_L       PTD4
#define PIN_MC_SPEED_L     PTA12

#define PIN_MC_DIR_R       PTA4
#define PIN_MC_SPEED_R     PTA5

//Servo
#define PIN_SC_SERVO       PTB3

//Camera Class
#define PIN_CC_PCLOCK      PTA17
#define PIN_CC_HREF        PTD6
#define PIN_CC_VSYNC       PTD7
/*
#define PIN_CC_D_0         PTB8
#define PIN_CC_D_1         PTB9
#define PIN_CC_D_2         PTB10
#define PIN_CC_D_3         PTB11
#define PIN_CC_D_4         PTE2
#define PIN_CC_D_5         PTE3
#define PIN_CC_D_6         PTE4
#define PIN_CC_D_7         PTE5
*/
//OVxxxx RegBuf Class
#define PIN_ORB_SDA        PTE0
#define PIN_ORB_SCL        PTE1

//Wheel Encoder Class
#define PIN_WE_RL          PTD5       
#define PIN_WE_RR          PTA13

//ArduCam Class
#define PIN_ACC_CS         PTC12

//ArduUTFT Class
#define PIN_AUC_CS         PTC13
#define PIN_AUC_TOUCH_CS   PTC16
#define PIN_AUC_SD_CS      PTC17

//IMU Manager Class
#define PIN_IMC_SDA        PTC9
#define PIN_IMC_SCL        PTC8
//#define PIN_IMC_SDA        PTE25
//#define PIN_IMC_SCL        PTE24

#define PIN_IMC_ACCL_SA0   PTB8
#define PIN_IMC_ACCL_SA1   PTB9

//////////////////////////////////////
//Global Ports
#define PIN_SPI_MOSI       PTD2
#define PIN_SPI_MISO       PTD3
#define PIN_SPI_SCK        PTD1



#endif