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

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

Revision:
70:20e1a73ab134
Parent:
60:20945383ad1b
Child:
73:05cd0e692b74
--- a/config.h	Thu Oct 15 18:52:09 2015 +0200
+++ b/config.h	Mon Oct 19 12:16:35 2015 +0000
@@ -1,28 +1,33 @@
 // All the definitions and variables
 //#define TUNEPID  // set to switch between normal opperation or tuning PID
 
-
-#define pot2Pin A1
-#define pot1Pin A0
+// Analog inputs for EMG
+#define EMG1in          A0
+#define EMG2in          A1
 
-#define button1Pin D7
-#define button2Pin D6
-#define button3Pin PTC6
-#define led1Pin D5
+// Analog inputs for potmeters
+#define pot1Pin         A2
+#define pot2Pin         A3
+
+#define button1Pin      D7
+#define button2Pin      D6
+#define button3Pin      PTC6
+#define led1Pin         D5
 
 // Servo
-#define servoPin D9
+#define servoPin        D9
 
 // MOTORS
-#define motor2DirPin D4
-#define motor2PWMPin D5
+#define motor2DirPin    D4
+#define motor2PWMPin    D5
 
-#define motor1DirPin D7
-#define motor1PWMPin D6
+#define motor1DirPin    D7
+#define motor1PWMPin    D6
 
-#define enc1A D11
-#define enc1B D10
-#define enc2A D13
-#define enc2B D12
+#define enc1A           D11
+#define enc1B           D10
+#define enc2A           D13
+#define enc2B           D12
 
-#define pwm_frequency 50000
\ No newline at end of file
+// Motor control constants
+#define pwm_frequency 50000