Connect piezo element with MetawearC
I am trying to interface piezo element through gpio pins, and read ADC values on Metawear App. But the problem of disconnect
when trying to stream gyro/accel after reading frm GPIO. Streaming of gyro/accel works fine without gpio.
After reading datasheets and other materials, i have added 1m resistor in series but results are same.
for reference:
I have also tried solutions discussed above.
This discussion has been closed.
Comments
private final Subscriber gpioSubscriber = (data, env) -> { w Runnable() { ;
final Short gpioValue = data.value(Short.class);
Log.i("Gpio",""+gpioValue);
getActivity().runOnUiThread(ne
@Override
public void run() {
gpioData.setText(""+gpioValue)
}
});
};