i’m following the guideline from arduino project book for knock lock but i’m stuck reading the analogRead(piezoPin), it gives me always 1023.
If i detatch the piezo this value drop to 0 with little to no oscillation.
I really tried only the input part without the servo motor part but i suppose it’s quite indipendent one from another.
const int piezoPin = A0;
sound = analogRead(piezoPin);
Serial.print("Piezo value: ");
and i just plug in in A0 with 1 Mohm on the - of the piezo link with ground and A0, the + just go to Vcc
It’s so simple that i’m quite clueless on what to do