Basic DC motor control test, rpm feedback by simple impulse signal, PID speed control.

Dependencies:   FastPWM mbed FastIO MODSERIAL

Revision:
3:f6c30ada5370
Parent:
2:70918f7f8451
Child:
4:7cb8986200a7
--- a/main.cpp	Fri Mar 23 12:31:38 2018 +0000
+++ b/main.cpp	Fri Mar 23 12:35:12 2018 +0000
@@ -6,10 +6,13 @@
 
 DigitalOut myled(LED1);
 
+//------------------------------------
+// Hyperterminal configuration
+// 9600 bauds, 8-bit data, no parity
+//------------------------------------
 Serial pcLink(SERIAL_TX, SERIAL_RX);
 
 int main() {
-    
     mypwm.period_us(100);
     mypwm.write(0.0);