Vibration Sensor with Blynk

I need help with my anti-snatch project. Isnt possible to produce vibration sensor graph with Blynk? my vibration sensor has produced some output in serial monitor wemos d1, but i donno the coding for produce graph for my apps.all i see was the coding with the temperature sensor (DTT). please help

Hello. All you have to do is Blynk.virtualWrite(V1, value); after that data will be automatically displayed in history graph widget.

1 Like

Thanks a lot sir. It very helpful. now I’m at the last part. What is the push notification codes that i need to put to trigger if it buzz the buzzer(D12) ? This is my code.

char auth[] = "93c3d819373645f9948e0cc3b4178fc7";

float vibration;
SimpleTimer timer;
int x=0;

void setup()
{
Serial.begin(9600);
Blynk.begin(auth, "FKEKKONLY", "fkekkbencbenw");  
timer.setInterval(1000L, sendUptime);
pinMode(D13,OUTPUT);
pinMode(D12,OUTPUT);
pinMode(A0,INPUT);
}

BLYNK_WRITE(10)
{
if (param.asInt()) {
digitalWrite(D13, HIGH);
Blynk.virtualWrite(V3, 1023);
digitalWrite(D12, LOW);
Blynk.virtualWrite(V5, 0);
x=1;
} 
else {
digitalWrite(D13, LOW);
digitalWrite(D12, LOW);
Blynk.virtualWrite(V3, 0);
Blynk.virtualWrite(V5, 0);
x=0;
}
}

void sendUptime()
{if(x==1)
  { 
  if(vibration<1024)
   { 
    digitalWrite(D12,HIGH);
    Blynk.virtualWrite(V5, 1023);
   }  
   vibration = analogRead(A0);
   Blynk.virtualWrite(V1,vibration);
   Serial.print("\nAnalog Sensor: ");
   Serial.println(vibration); 
  }
   
}


void loop()
{
A:
Blynk.run();
timer.run();
} ```

Hello, I’m working on an Arduino Uno Project.
I wanted to know, how I can send the readings/measurements of a Grove Vibration Sensor (SW-420) fitted on one of my Arduinos (Arduino Uno Rev3 USB), using (or through) the Grove LoRa Radio (433 MHz) Transmitter (fitted on the same Arduino), to the Grove LoRa Radio (433 MHz) Receiver that is fitted on the second (separate) Arduino (USB). And then, I want to display the data (or the vibration measurement) coming to the LoRa Radio Receiver (connected to the second Arduino) Serial Monitor, on the Blynk App. I need the sketch for Arduino IDE
This is very important for me and is very urgent, cause I want to finalise my project and submit. Kindly guide me …
It’s a heartily request… Please… As soon as possible.