You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please I need some help!
I want to send vibration sensor (801S) pulse data from one lgt-rf nano to another but couldn't.
here is the vibration sensor code
#define valPin D4 //sensor
void setup(){
pinMode(valPin, INPUT);
Serial.begin(9600);
Serial.println("impact detection on pipeline");
}
void loop(){
long vibMeasure = vib()/1000;
delay(100);
Serial.println(vibMeasure);
long vib(){
long vibMeasure = pulseIn (valPin, HIGH); //wait for the pin to get HIGH and returns measurement
return vibMeasure;
delay(100);
}
I want to send vibMeasure!
The text was updated successfully, but these errors were encountered:
Please I need some help!
I want to send vibration sensor (801S) pulse data from one lgt-rf nano to another but couldn't.
here is the vibration sensor code
#define valPin D4 //sensor
void setup(){
pinMode(valPin, INPUT);
Serial.begin(9600);
Serial.println("impact detection on pipeline");
}
void loop(){
long vibMeasure = vib()/1000;
delay(100);
Serial.println(vibMeasure);
long vib(){
long vibMeasure = pulseIn (valPin, HIGH); //wait for the pin to get HIGH and returns measurement
return vibMeasure;
delay(100);
}
I want to send vibMeasure!
The text was updated successfully, but these errors were encountered: