PID control with a lowpass filter to make the motor follow pot1
Dependencies: HIDScope QEI mbed
Revision 2:707567853e34, committed 2015-09-24
- Comitter:
- Gerth
- Date:
- Thu Sep 24 16:26:32 2015 +0000
- Parent:
- 1:49f60db70b5a
- Commit message:
- changed the potmeter to the rigth pin;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 49f60db70b5a -r 707567853e34 main.cpp --- a/main.cpp Thu Sep 24 16:24:59 2015 +0000 +++ b/main.cpp Thu Sep 24 16:26:32 2015 +0000 @@ -9,7 +9,7 @@ QEI encoder1 (D12,D13,NC,32); // first b then a for clockwise + //ingangen -AnalogIn pot1(A0); +AnalogIn pot1(A2); //uitgangen DigitalOut motor1_direction(D7);// draairichting motor 1 (1 is CW encoder als je daar op kijkt en CW shaft als je daar op kijkt)