control for robotic arm that can play chess using a granular gripper
Dependencies: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
config.h@91:6bbbbc6643c8, 2015-10-21 (annotated)
- Committer:
- annesteenbeek
- Date:
- Wed Oct 21 10:13:10 2015 +0000
- Revision:
- 91:6bbbbc6643c8
- Parent:
- 78:0cc7c64ba94c
- Child:
- 93:a8898eb80edc
- Child:
- 98:25528494287d
reverted back and is currently working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
annesteenbeek | 1:80f098c05d4b | 1 | // All the definitions and variables |
annesteenbeek | 78:0cc7c64ba94c | 2 | // #define TUNEPID // set to switch between normal opperation or tuning PID |
annesteenbeek | 78:0cc7c64ba94c | 3 | // #define TUNEEMG // set hdiscope for EMG |
annesteenbeek | 78:0cc7c64ba94c | 4 | #define TUNEPWM // set hidscope for rest |
bjornnijhuis | 70:20e1a73ab134 | 5 | // Analog inputs for EMG |
bjornnijhuis | 70:20e1a73ab134 | 6 | #define EMG1in A0 |
bjornnijhuis | 70:20e1a73ab134 | 7 | #define EMG2in A1 |
annesteenbeek | 1:80f098c05d4b | 8 | |
annesteenbeek | 91:6bbbbc6643c8 | 9 | #define startPin PTC6 |
annesteenbeek | 91:6bbbbc6643c8 | 10 | |
bjornnijhuis | 70:20e1a73ab134 | 11 | // Analog inputs for potmeters |
bjornnijhuis | 70:20e1a73ab134 | 12 | #define pot1Pin A2 |
bjornnijhuis | 70:20e1a73ab134 | 13 | #define pot2Pin A3 |
bjornnijhuis | 70:20e1a73ab134 | 14 | |
annesteenbeek | 73:05cd0e692b74 | 15 | #define safetyPin D2 |
annesteenbeek | 73:05cd0e692b74 | 16 | |
annesteenbeek | 91:6bbbbc6643c8 | 17 | #define button1Pin D0 |
annesteenbeek | 91:6bbbbc6643c8 | 18 | #define button2Pin D1 |
annesteenbeek |
32:2006977785f5 | 19 | |
annesteenbeek | 31:8fbee6c92753 | 20 | // Servo |
bjornnijhuis | 70:20e1a73ab134 | 21 | #define servoPin D9 |
annesteenbeek | 31:8fbee6c92753 | 22 | |
annesteenbeek | 5:73bfad06b775 | 23 | // MOTORS |
bjornnijhuis | 70:20e1a73ab134 | 24 | #define motor2DirPin D4 |
bjornnijhuis | 70:20e1a73ab134 | 25 | #define motor2PWMPin D5 |
annesteenbeek | 3:47c76be6d402 | 26 | |
bjornnijhuis | 70:20e1a73ab134 | 27 | #define motor1DirPin D7 |
bjornnijhuis | 70:20e1a73ab134 | 28 | #define motor1PWMPin D6 |
annesteenbeek | 3:47c76be6d402 | 29 | |
bjornnijhuis | 70:20e1a73ab134 | 30 | #define enc1A D11 |
bjornnijhuis | 70:20e1a73ab134 | 31 | #define enc1B D10 |
bjornnijhuis | 70:20e1a73ab134 | 32 | #define enc2A D13 |
bjornnijhuis | 70:20e1a73ab134 | 33 | #define enc2B D12 |
annesteenbeek | 3:47c76be6d402 | 34 | |
bjornnijhuis | 70:20e1a73ab134 | 35 | // Motor control constants |
bjornnijhuis | 70:20e1a73ab134 | 36 | #define pwm_frequency 50000 |