Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use voltage sensor: Examples, Pinouts, and Specs

Image of voltage sensorDesign with voltage sensor in Cirkit Designer

Introduction

A voltage sensor is a device that detects and measures the voltage level in a circuit, providing feedback for monitoring and control purposes. Manufactured by 2wef with the part ID 123454225435632y, this voltage sensor is designed for accurate and reliable voltage measurement in a variety of applications.

Explore Projects Built with voltage sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Arduino UNO-Based Voltage Monitoring System with SMS Alerts via SIM800L: A project utilizing voltage sensor in a practical application
Arduino UNO-Based Voltage Monitoring System with SMS Alerts via SIM800L

This circuit is designed to monitor voltage levels from two 240V power sources using a pair of voltage sensors connected to an Arduino UNO. The Arduino reads the sensor outputs and, if a voltage higher than 10V is detected, it uses a SIM800L GSM module to send an SMS alert. The system is powered by a Polymer Lithium Ion Battery, and resistors are used for voltage level shifting for the SIM800L communication with the Arduino.

Open Project in Cirkit Designer
Image of ESP32-Based Voltage and Current Monitoring System with Wi-Fi Connectivity: A project utilizing voltage sensor in a practical application
ESP32-Based Voltage and Current Monitoring System with Wi-Fi Connectivity

This circuit is designed to measure and monitor voltage and current using an ESP32 microcontroller. It includes a voltage sensor and a current sensor connected to the ESP32, which reads the sensor data and outputs the measurements to the Serial Monitor. The circuit also features a power supply system with an AC source, a transformer, and a bridge rectifier to provide the necessary DC voltage for the sensors and microcontroller.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The voltage sensor is designed to measure DC voltages and provide a scaled-down analog output for interfacing with microcontrollers or other devices.

Key Technical Details

Pin Configuration and Descriptions

The voltage sensor typically has a 3-pin interface for easy connection to a microcontroller or other devices. The pinout is as follows:

Pin Number Pin Name Description
1 VCC Power supply input (3.3V or 5V DC)
2 GND Ground connection
3 OUT Analog voltage output (0–5V DC)

Usage Instructions

How to Use the Voltage Sensor in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 3.3V or 5V DC power source and the GND pin to the ground of your circuit.
  2. Connect the Output: Attach the OUT pin to the analog input pin of your microcontroller (e.g., Arduino).
  3. Voltage Measurement: The sensor outputs a scaled-down voltage proportional to the input voltage. For example, if the input voltage is 25V, the output voltage will be 5V.

Important Considerations and Best Practices

Example Code for Arduino UNO

Below is an example code snippet to read the voltage sensor's output using an Arduino UNO:

// Define the analog pin connected to the sensor's OUT pin
const int sensorPin = A0;

// Define the maximum input voltage of the sensor (25V in this case)
const float maxInputVoltage = 25.0;

// Define the maximum output voltage of the sensor (5V)
const float maxOutputVoltage = 5.0;

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
}

void loop() {
  // Read the analog value from the sensor
  int sensorValue = analogRead(sensorPin);

  // Convert the analog value to a voltage (0-5V range)
  float outputVoltage = (sensorValue / 1023.0) * maxOutputVoltage;

  // Scale the output voltage to the input voltage range (0-25V)
  float inputVoltage = (outputVoltage / maxOutputVoltage) * maxInputVoltage;

  // Print the measured input voltage to the Serial Monitor
  Serial.print("Input Voltage: ");
  Serial.print(inputVoltage);
  Serial.println(" V");

  delay(1000); // Wait for 1 second before the next reading
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Voltage:

    • Cause: Incorrect wiring or no power supply.
    • Solution: Verify all connections and ensure the sensor is powered correctly.
  2. Inaccurate Voltage Readings:

    • Cause: Lack of calibration or noise in the circuit.
    • Solution: Calibrate the sensor using a reference voltage and add decoupling capacitors.
  3. Microcontroller Not Detecting Output:

    • Cause: Incorrect analog pin configuration or damaged sensor.
    • Solution: Check the microcontroller's pin configuration and test the sensor with a multimeter.

FAQs

This documentation provides all the necessary details to effectively use the 2wef 123454225435632y Voltage Sensor in your projects.