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:
- 49:056c4de3591e
- Parent:
- 48:05adf4978828
- Child:
- 50:5e08b74bf023
--- a/main.cpp Fri Jun 05 14:46:15 2015 +0000 +++ b/main.cpp Tue Jun 09 09:18:25 2015 +0000 @@ -24,10 +24,10 @@ #define EMG_tresh 0.02 //Motor control -DigitalOut Dirx(p12); -DigitalOut Diry(p13); +DigitalOut Dirx(p22); +DigitalOut Diry(p24); PwmOut Stepx(p21); -PwmOut Stepy(p22); +PwmOut Stepy(p23); //Signal to and from computer Serial pc(USBTX, USBRX); @@ -253,7 +253,7 @@ Ticker looptimer; looptimer.attach(looper_motorx, 0.01); //X-Spindle motor, why this freq? - //looptimer.attach(looper_motory, 0.01); //Y-Spindle motor + looptimer.attach(looper_motory, 0.01); //Y-Spindle motor //Microstepping control, now configured as half stepping (MS1=1,MS2=0,MS3=0) MS1 = 1;