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

Dependencies:   FastPWM mbed FastIO MODSERIAL

Files at this revision

API Documentation at this revision

Comitter:
dzoni
Date:
Fri Mar 23 12:35:12 2018 +0000
Parent:
2:70918f7f8451
Child:
4:7cb8986200a7
Commit message:
Compiles. Ready for integration test.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);