SEN0240 Gravity EMG Sensor Signal Processing
I am trying to get signal from the EMG Sensors (https://www.dfrobot.com/product-1661.html) via ADC(analog digital converter) MCP3008 for my raspberry. In the arduino code they provide in the WEB site (https://wiki.dfrobot.com/Analog_EMG_Sensor_by_OYMotion_SKU_SEN0240), takes the envelope of the signal (Square of the values, I guess) and as a signal value which starts from 0 it goes to the 1500 (which I did not understand what its unit) in y axis. But for raspberry pi I cant process the signal in the same way. Can you help me to get the same value as arduino code. What should I do after receiving raw analog value (1023 bit resolution) to get arduino values.