CODE:https://docs.google.com/document/d/1c...
This project utilizes a force pressure sensor to detect varying levels of pressure and indicates the pressure status through color-coded LEDs. The system provides real-time feedback on the pressure applied, making it suitable for applications that require monitoring and displaying pressure levels.
Components Used:
Arduino Uno: The microcontroller that processes sensor readings and controls the LEDs.
Force Pressure Sensor: Senses the applied force and outputs a corresponding voltage level.
1kΩ Resistor: Used to form a voltage divider with the pressure sensor.
LEDs:
White LED (Pin 8): Indicates low pressure.
Green LED (Pin 9): Indicates medium pressure.
Red LED (Pin 10): Indicates high pressure.
Breadboard and Jumper Wires: For making connections between components.
Power Supply: Via the Arduino for powering the circuit.
Functionality:
The force pressure sensor is connected to the Arduino such that one end is connected to the 5V supply and the other end to a resistor, which in turn connects to GND.
The junction between the sensor and the resistor is connected to the A0 analog input pin on the Arduino.
The Arduino continuously reads the analog voltage from the sensor and determines the pressure level based on predefined thresholds:
Low Pressure: Voltage corresponds to a low sensor value; the White LED lights up.
Medium Pressure: Voltage falls within a medium range; the Green LED lights up.
High Pressure: Voltage corresponds to a high sensor value; the Red LED lights up.