BroBot Code for ESE350 Lab6 part 3 (Skeleton)
Dependencies: MPU6050_V3 mbed-rtos mbed
Fork of BroBot_RTOS_ESE350 by
Diff: pin_assignments.h
- Revision:
- 6:62cdb7482b50
- Parent:
- 4:2512939c10f0
- Child:
- 17:8e2824f64b91
--- a/pin_assignments.h Tue Oct 18 20:46:01 2016 +0000 +++ b/pin_assignments.h Sat Dec 17 22:46:59 2016 +0000 @@ -1,53 +1,55 @@ //pin_assignments.h //Contains all the pin assignments for this project +//Author: Carter Sharer +//Date: 11/8/2016 //HARDWARE -//The main processor is an MBed LPC1768 +//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 +//There is one RF transciever MRF24J40 -/* +/****************** Wiring Diagram ********************************\ + ------------- - |GND |_|VOUT| + |GND |_|VOUT| --- MPU6050|MRF24J40 VCC (3.3v) |VIN VU | |VB IF-| |nR IF+| |p5 L RD-| |p6 P RD+| - |p7 C TD-| - |p8 1 TD+| + MRF24J40 CS --- |p7 C TD-| + MRF24J40 RESET -- |p8 1 TD+| |p9 7 D- | |p10 6 D+ | - |p11 8 p30| - |p12 p29| - |p13 p28| - |p14 p27| - |p15 p26| - |p16 p25| + MRF24J40 SDI --- |p11 8 p30| + MRF24J40 SDO --- |p12 p29| --- MPU6050 INT (CHECKPIN) + MRF24J40 SCK --- |p13 p28| --- MPU6050 SDA + |p14 p27| --- MPU6050 SCL + A4988(2) Step --- |p15 p26| + A4988(2) Dir --- |p16 p25| |p17 p24| - |p18 p23| + A4988(1,2) ENABLE |p18 p23| A4988(1) Step --- |p19 p22| - |p20 p21| + A4988(1) Dir --- |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 +#define MOTOR_ENABLE p18 //For both motor divers //MPU6050 SPI PINS -#define I2C_SDA p28 -#define I2C_SCL p27 -#define CHECKPIN p29 //for IMU interupt pin +#define I2C_SDA_1 p28 +#define I2C_SCL_1 p27 +#define CHECKPIN p29 //for IMU interupt pin (INT) //MRF24J40 #define SDI p11