Project:1-web-interfaces-for-rc-vehicles: Difference between revisions

From London Hackspace Wiki

m
Line 31: Line 31:
There is also a digital ground pin (it is a black cable and it is on its own) attached to a chocolate block in order to allow sharing of the digital ground with other circuits on that arduino.
There is also a digital ground pin (it is a black cable and it is on its own) attached to a chocolate block in order to allow sharing of the digital ground with other circuits on that arduino.


// Pins for car control
          // Pins for car control
#define CAR_FWD 9
          #define CAR_FWD 9
#define CAR_BACK 11
          #define CAR_BACK 11
#define CAR_LEFT 8
          #define CAR_LEFT 8
#define CAR_RIGHT 10
          #define CAR_RIGHT 10


// Movement Timing Calibration Values
          // Movement Timing Calibration Values
#define FWD_TURN_TIME 1000
          #define FWD_TURN_TIME 1000
#define BACK_TURN_TIME 1000
          #define BACK_TURN_TIME 1000
#define DRIVE_TIME 1000
          #define DRIVE_TIME 1000


===Sauce Code Breakdown===
===Sauce Code Breakdown===