PID control with a lowpass filter to make the motor follow pot1

Dependencies:   HIDScope QEI mbed

Fork of PID_control_with_lowpass by Jasper Gerth

Revision:
2:707567853e34
Parent:
1:49f60db70b5a
Child:
3:9ae6a4a525cf
Child:
4:4d4d7343406d
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)