control for robotic arm that can play chess using a granular gripper

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

config.h

Committer:
MartijnGJ
Date:
2015-10-22
Revision:
103:4a37d19e8fcc
Parent:
98:25528494287d
Child:
104:750d7e13137d

File content as of revision 103:4a37d19e8fcc:

// All the definitions and variables

// Analog inputs for EMG
#define EMG1in          A0
#define EMG2in          A1

// Analog inputs for potmeters
#define pot1Pin         A2
#define pot2Pin         A3

#define safetyPin		D2

#define button1Pin      D0
#define button2Pin      D1

// Servo
#define servoPin        D3

// MOTORS
#define motor2DirPin    D4
#define motor2PWMPin    D5

#define motor1DirPin    D7
#define motor1PWMPin    D6

#define enc1A           D11
#define enc1B           D10
#define enc2A           D13
#define enc2B           D12

// Motor control constants
#define pwm_frequency 50000