![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
4 directional EMG control of the XY table. Made during my bachelor end assignment.
Dependencies: C12832_lcd HIDScope mbed-dsp mbed
Diff: main.cpp
- Revision:
- 7:b6d7dce49505
- Parent:
- 5:24929fa367fc
- Child:
- 8:cf4cd539a71d
- Child:
- 9:649229691351
--- a/main.cpp Fri Apr 24 08:57:30 2015 +0000 +++ b/main.cpp Fri Apr 24 09:29:40 2015 +0000 @@ -15,10 +15,10 @@ MS2 = 0; MS3 = 0; -Step.period(1.0/1000); -Step.write(0.5); +Step.period(1.0/1000); // 1 kHz, vanaf 2,5 kHz doet de motor het niet meer. +Step.write(0.5); // Duty cycle van 50% while (1) { - + Dir = 1; // Dir 1 is naar boven, Dir 0 naar onder. } } \ No newline at end of file