control for robotic arm that can play chess using a granular gripper
Dependencies: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
Diff: config.h
- Revision:
- 3:47c76be6d402
- Parent:
- 1:80f098c05d4b
- Child:
- 4:80e2280058ed
--- a/config.h Thu Oct 01 15:36:55 2015 +0200 +++ b/config.h Mon Oct 05 16:01:21 2015 +0200 @@ -1,4 +1,24 @@ // All the definitions and variables -#define motorpin1 4 -#define motorpin2 5 +#define motor2DirPin D4 +#define motor2PWMPin D5 + +#define motor1DirPin D7 +#define motor1PWMPin D6 + +#define enc1A D11 +#define enc1B D10 +#define enc2A D13 +#define enc2B D12 + +#define pwm_frequency 10000 + +bool motorEnable = false; + +bool direction1 = false; +bool direction2 = false; + +double motor1Pos = 0; +double motor2Pos = 0; +double prevMotor1Pos = 0; +double prevMotor2Pos = 0; \ No newline at end of file