Fork me on GitHub

Project Notes

#167 VoltageSensorModule

Test a 25V voltage sensor module

Notes

This is a quick test of a 25V voltage sensor I picked up recently.

Module

The circuit simply measures a variable voltage (manually controlled wiper on a pot) and displays the result on a 5110 LCD.

Module Specifications

  • Voltage input range : 0 - 25V DC
  • Voltage detection range : 0.02445 - 25V DC
  • Voltage analog resolution : 0.00489 V

Given the 25V range and taking a reading through the analog point (0-1023), then the actual voltage will equal the analog input / 1023 * 25.

Module Connections

Pin/Terminal Description
+ Sensor power 3.3/5V
- Sensor ground
s Sensor output
VCC Input positive DC
GND Input ground

Module Construction

Well taking a closer examination, there’s nothing much too it. As you might expect, it turns out to be nothing more than a voltage divider.

The sensor power pin is bogative - it’s not connected to anything. The module is not isolated - the input ground is common with the sensor ground.

The input voltage is applied across two resistors in series, with the sensor output tapped at the midpoint. The resistors are 0805 surface mount “precision” (4-digit code) resistors of values:

  • 3002 (30kΩ)
  • 7501 (7.5kΩ)

Hence the sensor output will read as 7.5/37.5 or 20% of the input voltage. Hence the 25V maximum voltage rating on the unit, since 20% is 5V, the input limit for a 5V Arduino.

5110 LCD SPI Configuration

The u8glib takes advantage of hardware SPI, which means pin connections are dictated for at least MOSI and SCK.

Here’s the mapping from the terminology used by my particular 5110 module and pins on an Arduino Uno.

Pin Usage Arduino Uno Pin
RST reset 8
CE/SCE chip enable 10 SPI SS
DC address line 0 9
DIN data in 11 SPI MOSI
CLK clock 13 SPI SCK
VCC power  
BL Backlight on when GND  
GND Ground  

Construction

Breadboard

The Schematic

The Build

Credits and References

About LEAP#167 SensorsArduino
Project Source on GitHub Return to the LEAP Catalog

This page is a web-friendly rendering of my project notes shared in the LEAP GitHub repository.

LEAP is my personal collection of electronics projects, usually involving an Arduino or other microprocessor in one way or another. Some are full-blown projects, while many are trivial breadboard experiments, intended to learn and explore something interesting (IMHO!).

The projects are usually inspired by things found wild on the net, or ideas from the sources such as:

Feel free to borrow liberally, and if you spot any issues do let me know. See the individual projects for credits where due. There are even now a few projects contributed by others - send your own over in a pull request if you would also like to add to this collection.