
Lets make "amplified" passive pressure sensors!
Channel:
Subscribers:
595
Published on ● Video Link: https://www.youtube.com/watch?v=Vv2c-uiE384
Likes/Dislikes: π2.0/π0.0 ββββββββββ updated: 2022-01-14
simple, cheap, accurate, consistent
basic code for reading the sensor:
#define PIN (D5)
int value = 0;
pinMode(PIN, OUTPUT);
digitalWrite(PIN, LOW);
delayMicroseconds(10);
pinMode(PIN, INPUT_PULLUP);
while(!digitalRead(PIN)) value++;
Serial.println(value);