BroBot Code for ESE350 Lab6 part 3 (Skeleton)

Dependencies:   MPU6050_V3 mbed-rtos mbed

Fork of BroBot_RTOS_ESE350 by Carter Sharer

Committer:
csharer
Date:
Tue Oct 18 20:44:21 2016 +0000
Revision:
4:2512939c10f0
Parent:
3:2f76ffbc5cef
Child:
6:62cdb7482b50
brobot version 3, this is using the old MRF24J40 Lib that used uint8_t

Who changed what in which revision?

UserRevisionLine numberNew contents of line
csharer 3:2f76ffbc5cef 1 //pin_assignments.h
csharer 3:2f76ffbc5cef 2 //Contains all the pin assignments for this project
csharer 3:2f76ffbc5cef 3
csharer 4:2512939c10f0 4 //HARDWARE
csharer 4:2512939c10f0 5 //The main processor is an MBed LPC1768
csharer 4:2512939c10f0 6 //There are two motor drivers A4988(1) and A4988(2)
csharer 4:2512939c10f0 7 //There is one 6 axis IMU MP6050
csharer 4:2512939c10f0 8 //There is one RF transciever MRF24j40
csharer 4:2512939c10f0 9
csharer 4:2512939c10f0 10 /*
csharer 4:2512939c10f0 11 -------------
csharer 4:2512939c10f0 12 |GND |_|VOUT|
csharer 4:2512939c10f0 13 |VIN VU |
csharer 4:2512939c10f0 14 |VB IF-|
csharer 4:2512939c10f0 15 |nR IF+|
csharer 4:2512939c10f0 16 |p5 L RD-|
csharer 4:2512939c10f0 17 |p6 P RD+|
csharer 4:2512939c10f0 18 |p7 C TD-|
csharer 4:2512939c10f0 19 |p8 1 TD+|
csharer 4:2512939c10f0 20 |p9 7 D- |
csharer 4:2512939c10f0 21 |p10 6 D+ |
csharer 4:2512939c10f0 22 |p11 8 p30|
csharer 4:2512939c10f0 23 |p12 p29|
csharer 4:2512939c10f0 24 |p13 p28|
csharer 4:2512939c10f0 25 |p14 p27|
csharer 4:2512939c10f0 26 |p15 p26|
csharer 4:2512939c10f0 27 |p16 p25|
csharer 4:2512939c10f0 28 |p17 p24|
csharer 4:2512939c10f0 29 |p18 p23|
csharer 4:2512939c10f0 30 A4988(1) Step --- |p19 p22|
csharer 4:2512939c10f0 31 |p20 p21|
csharer 4:2512939c10f0 32 -------------
csharer 4:2512939c10f0 33
csharer 4:2512939c10f0 34 */
csharer 4:2512939c10f0 35
csharer 3:2f76ffbc5cef 36
csharer 3:2f76ffbc5cef 37 //Pin Declarations
csharer 3:2f76ffbc5cef 38
csharer 3:2f76ffbc5cef 39
csharer 3:2f76ffbc5cef 40 //Motor Driver Pins
csharer 3:2f76ffbc5cef 41 #define MOTOR1_STEP p19
csharer 3:2f76ffbc5cef 42 #define MOTOR1_DIR p20
csharer 3:2f76ffbc5cef 43 #define MOTOR2_STEP p15
csharer 3:2f76ffbc5cef 44 #define MOTOR2_DIR p17
csharer 3:2f76ffbc5cef 45 #define MOTOR_ENABLE p18
csharer 3:2f76ffbc5cef 46
csharer 3:2f76ffbc5cef 47 //MPU6050 SPI PINS
csharer 3:2f76ffbc5cef 48 #define I2C_SDA p28
csharer 3:2f76ffbc5cef 49 #define I2C_SCL p27
csharer 4:2512939c10f0 50 #define CHECKPIN p29 //for IMU interupt pin
csharer 4:2512939c10f0 51
csharer 4:2512939c10f0 52 //MRF24J40
csharer 4:2512939c10f0 53 #define SDI p11
csharer 4:2512939c10f0 54 #define SDO p12
csharer 4:2512939c10f0 55 #define SCK p13
csharer 4:2512939c10f0 56 #define CS p7
csharer 4:2512939c10f0 57 #define RESET p8