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

The Einstronic 25V Voltage Sensor is a compact and efficient device designed to measure the electrical potential difference between two points in a circuit. It provides real-time voltage readings, making it an essential tool for monitoring and analysis in various electronic applications. This sensor is particularly useful in battery monitoring, power supply testing, and embedded system projects.

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 and ESP8266 Wi-Fi Controlled Sensor Hub with Battery Backup: A project utilizing Voltage sensor in a practical application
ESP32 and ESP8266 Wi-Fi Controlled Sensor Hub with Battery Backup

This circuit is a sensor monitoring and data transmission system powered by a Li-ion battery and a 12V adapter. It includes various sensors (tilt, optical encoder, force sensing resistors, and air pressure) connected to an ESP32 microcontroller, which reads sensor data and transmits it via a WiFi module (ESP8266-01). The system is designed to provide real-time sensor data over a WiFi network.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The following table outlines the key technical details of the Einstronic 25V Voltage Sensor:

Parameter Specification
Manufacturer Einstronic
Part ID 25V Voltage Sensor
Input Voltage Range 0V to 25V
Output Voltage Range 0V to 5V (scaled for microcontroller)
Measurement Accuracy ±1%
Operating Voltage 3.3V or 5V DC
Operating Current <10mA
Dimensions 30mm x 15mm x 10mm
Weight 5g

Pin Configuration and Descriptions

The Einstronic 25V Voltage Sensor has a simple pinout, as described in the table below:

Pin Name Description
VCC Power supply input (3.3V or 5V DC)
GND Ground connection
VIN Voltage input to be measured (connect to the positive terminal of the circuit)
VOUT Scaled voltage output (connect to an ADC pin of a microcontroller)

Usage Instructions

How to Use the Component 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.
  2. Connect the Voltage to Be Measured: Attach the positive terminal of the voltage source to the VIN pin. Ensure the input voltage does not exceed 25V.
  3. Read the Scaled Output: Connect the VOUT pin to an analog input pin of a microcontroller (e.g., Arduino). The output voltage will be scaled proportionally to the input voltage (e.g., 25V input corresponds to 5V output).

Important Considerations and Best Practices

Example Code for Arduino UNO

Below is an example Arduino sketch to read and display the voltage using the Einstronic 25V Voltage Sensor:

// Define the analog pin connected to the VOUT pin of the voltage sensor
const int sensorPin = A0;

// Define the scaling factor (5:1 for this sensor)
const float scalingFactor = 5.0;

// Define the reference voltage of the Arduino (5V for most boards)
const float referenceVoltage = 5.0;

void setup() {
  // Initialize serial communication for debugging
  Serial.begin(9600);
}

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

  // Convert the analog value to a voltage
  float voltage = (sensorValue * referenceVoltage) / 1023.0;

  // Scale the voltage back to the original input voltage
  float inputVoltage = voltage * scalingFactor;

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

  // Wait for 500ms before the next reading
  delay(500);
}

Troubleshooting and FAQs

Common Issues Users Might Face

  1. No Output Voltage on VOUT Pin:

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the VCC pin is receiving 3.3V or 5V DC.
  2. Inaccurate Voltage Readings:

    • Cause: Lack of calibration or noise in the circuit.
    • Solution: Calibrate the sensor using a known voltage source and add decoupling capacitors to reduce noise.
  3. Microcontroller Reads Zero Voltage:

    • Cause: The VOUT pin is not properly connected to the microcontroller's ADC pin.
    • Solution: Verify the connection between the VOUT pin and the analog input pin of the microcontroller.

Solutions and Tips for Troubleshooting

By following this documentation, users can effectively integrate the Einstronic 25V Voltage Sensor into their projects for accurate and reliable voltage measurements.