ESE519 Lab6 Part3

Dependencies:   MPU6050_Lab6_Part3 mbed

Fork of BroBot_v2 by Carter Sharer

pin_assignments.h

Committer:
csharer
Date:
2016-10-18
Revision:
4:2512939c10f0
Parent:
3:2f76ffbc5cef
Child:
6:ae3e6aefe908

File content as of revision 4:2512939c10f0:

//pin_assignments.h
//Contains all the pin assignments for this project

//HARDWARE
//The main processor is an MBed LPC1768
//There are two motor drivers A4988(1) and A4988(2)
//There is one 6 axis IMU MP6050
//There is one RF transciever MRF24j40

/*
                    -------------
                    |GND |_|VOUT|
                    |VIN     VU |
                    |VB      IF-|
                    |nR      IF+|
                    |p5   L  RD-|
                    |p6   P  RD+|
                    |p7   C  TD-|
                    |p8   1  TD+|
                    |p9   7  D- |
                    |p10  6  D+ |
                    |p11  8  p30|
                    |p12     p29|
                    |p13     p28|
                    |p14     p27|
                    |p15     p26|
                    |p16     p25|
                    |p17     p24|
                    |p18     p23|
 A4988(1) Step ---  |p19     p22|
                    |p20     p21|
                    -------------

*/


//Pin Declarations


//Motor Driver Pins
#define MOTOR1_STEP p19
#define MOTOR1_DIR p20
#define MOTOR2_STEP p15
#define MOTOR2_DIR p17
#define MOTOR_ENABLE p18

//MPU6050 SPI PINS
#define I2C_SDA p28
#define I2C_SCL p27
#define CHECKPIN p29  //for IMU interupt pin

//MRF24J40
#define SDI p11
#define SDO p12
#define SCK p13
#define CS p7
#define RESET p8