Piezoelectric sensor interfacing with Arduino and I2C display

Piezoelectric sensor interfacing with Arduino and I2C display

In this article we will learn how to interface arduino and I2C display with piezoelectric sensor in proteus.
In the last post we will learn how to interface arduino with Digital Capacitive meter & I2C LCD in proteus. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

Components which we use in this project are listed below:

  1. Arduino UNO
  2. Piezoelectric sensor (2)
  3. DC volt meter (2)
  4. I2C
  5. LCD display
  6. Jumper wires

Diagram of this project is below:

Piezoelectric sensor interfacing with Arduino and I2C display,Arduino Library for Proteus
Piezoelectric sensor interfacing with Arduino and I2C display

Construction of Piezoelectric sensor interfacing with Arduino and I2C display:

  • Connect A1 pin of Arduino with the +ve pin of DC volt meter and Piezo sensor
  • Connect the –ve points of DC volt meter and Piezo sensor with the GND
  • Connect the Test pin of Piezo sensor with the +ve
  • Connect A0 pin of Arduino with the +ve pin of 2nd DC volt meter and 2nd Piezo sensor
  • Connect the –ve points of 2nd DC volt meter and 2nd Piezo sensor with the GND
  • Connect the Test pin of 2nd Piezo sensor with the +ve
  • Connect A4 pin of arduino with the 15 pin of I2C
  • Connect A5 pin of arduino with the 14 pin of the I2C
  • Connect P0 pin of I2C with the RS point of LCD display
  • Connect P1 pin of I2C with the RW point of LCD display
  • Connect P2 pin of I2C with the E point of LCD display
  • Connect P3 pin of I2C with the D3 point of LCD display
  • Connect the P4 pin of I2C with the D4 point of LCD display
  • Connect the P5 pin of I2C with the D5 point of LCD display
  • Connect the P6 pin of I2C with the D6 point of LCD display
  • Connect the P7 pin of I2C with the D7 point of LCD display
  • Connect VSS point of LCD with the GND point of I2C
  • Connect the VDD point of LCD with the GND

Working of Piezoelectric sensor interfacing with Arduino and I2C display:

A piezoelectric sensor is a device that generates an electrical charge in response to mechanical stress or pressure. When you apply pressure or force to the sensor, it generates a voltage output that can be measured and used for various applications. To interface a piezoelectric sensor with an Arduino and display the data on an I2C (Inter-Integrated Circuit) display.

Applications of Piezoelectric sensor interfacing with Arduino and I2C display:

  1. Force Sensing
  2. Vibration Monitoring
  3. Impact Detection
  4. Weight Measurement
  5. Health and Biomechanics

Advantages of Piezoelectric sensor interfacing with Arduino and I2C display:

  1. Sensitivity to Mechanical Vibrations
  2. Wide Range of Applications
  3. High Sensitivity and Precision
  4. Compact and Lightweight
  5. Low Power Consumption

Program code of this project is below:

Arduino Library for Proteus

///www.Prjectiot123.com

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

 

LiquidCrystal_I2C lcd(0x20, 16, 2);

 

 

#define sensorpin A0

#define sensorpin1 A1

 

void setup() {

Serial.begin(9600);

 

lcd.init();

lcd.backlight();

 

lcd.begin(16, 2);

 

lcd.print(” Wellcome”);

lcd.setCursor(0, 1);

lcd.print(“projectiot123”);

delay (500);

}

 

void loop() {

lcd.clear();

 

float a=analogRead(sensorpin);

float c=analogRead(sensorpin1);

float b= a+c;

b= b/204;

 

Serial.println(b);

lcd.setCursor(0, 0);

lcd.print(“Produced Voltage”);

lcd.setCursor(0, 1);

lcd.print(b);

delay(500);

 

}