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:
- 22:3122a33793f6
- Parent:
- 21:dcc0fd9dbb08
diff -r dcc0fd9dbb08 -r 3122a33793f6 main.cpp --- a/main.cpp Thu May 07 15:03:15 2015 +0000 +++ b/main.cpp Thu May 07 15:05:24 2015 +0000 @@ -21,7 +21,7 @@ //Potmeter and EMG AnalogIn Pot1(p19); -AnalogIn EMG1(p20); +AnalogIn emg0(p20); HIDScope scope(2); //lcd C12832_LCD lcd; @@ -48,7 +48,7 @@ //EMG filter arm_biquad_casd_df1_inst_f32 lowpass_biceps; //lowpass filter settings biceps: Fc = 2 Hz, Fs = 500 Hz, Gain = -3 dB -float lowpass_const[] = {0.00015514839749793376, 0.00031029679499586753, 0.00015514839749793376, 1.9644602512795832, -0.9650808448695751}; +float lowpass2_const[] = {0.00015514839749793376, 0.00031029679499586753, 0.00015514839749793376, 1.9644602512795832, -0.9650808448695751}; arm_biquad_casd_df1_inst_f32 highnotch_biceps; //highpass filter settings: Fc = 10 Hz, Fs = 500 Hz, Gain = -3 dB, notch Fc = 50, Fs =500Hz, Gain = -3 dB float highnotch_const[] = {0.9149684297741606, -1.8299368595483212, 0.9149684297741606, 1.8226935021735358, -0.8371802169231065 ,0.7063988100714527, -1.1429772843080923, 0.7063988100714527, 1.1429772843080923, -0.41279762014290533};