4 directional EMG control of the XY table. Made during my bachelor end assignment.
Dependencies: C12832_lcd HIDScope mbed-dsp mbed
Revision 49:056c4de3591e, committed 2015-06-09
- Comitter:
- jessekaiser
- Date:
- Tue Jun 09 09:18:25 2015 +0000
- Parent:
- 48:05adf4978828
- Child:
- 50:5e08b74bf023
- Commit message:
- Dir poort aangepast. Eindconcept1. Werkt niet, waarschijnlijk door appl. board
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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;