Hi guys! Can anyone help me? I have raspberry pi 3 and grove base hat. I want to connect an EMG sensor. I have already taught me how to read data in mV from sensor but I do not understand how to process this data that they were correct. Has anyone tried doing this?
import time
from grove.adc import ADC
adc=ADC()
channel=4
def main():
def getdata():
data=adc.read_voltage(channel)
return data
while True:
Signal=getdata()
print(‘EMG: {0}’.format(Signal))
time.sleep(.1)