Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

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

Image of current sensor
Cirkit Designer LogoDesign with current sensor in Cirkit Designer

Introduction

The Shay Current Sensor (Part ID: 1234543235436545654) is a device designed to measure the flow of electric current in a circuit. It provides output in the form of voltage or digital signals, enabling accurate monitoring and control of electrical systems. This sensor is widely used in applications such as power management, motor control, battery monitoring, and energy metering.

Explore Projects Built with current 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!
Wemos S2 Mini Controlled Smart Device with OLED Display, Thermal Printing, and RGB LED Strip
Image of DT NEA - Noah Patel: A project utilizing current sensor in a practical application
This circuit features a Wemos S2 Mini microcontroller that controls a WS2812 RGB LED strip and communicates with a 0.96" OLED display and a 58mm mini thermal printer. The ACS712 Current Sensor is interfaced with the microcontroller to monitor current, and power is managed by a CD42 BMS connected to two 18650 Li-ion batteries, with a USB-C PD Trigger Board for power delivery. The circuit is designed for visual output (LED strip, OLED display), printing capabilities, and current sensing, likely for a portable, battery-powered monitoring and display device.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Current Monitoring and Temperature Sensing System
Image of SISTEMA DE MONITOREO: A project utilizing current sensor in a practical application
This circuit is designed to measure current using an ACS712 Current Sensor and temperature using a DS18B20 sensor, with an ESP32 microcontroller to process and possibly communicate the sensor data. The ACS712 sensor output is connected to one of the ESP32's analog input pins (D34), while the DS18B20's signal line is interfaced with a digital input pin (D23) through a pull-up resistor (4.7k Ohms). The ESP32 is powered through its Vin pin, and both sensors share a common ground with the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Ammeter with LCD Display
Image of ammeter: A project utilizing current sensor in a practical application
This circuit features an Arduino UNO microcontroller interfaced with an ACS712 current sensor and a 16x2 LCD screen using I2C communication. The Arduino reads the current value from the sensor and displays it on the LCD screen, also sending the data to the serial monitor. It is designed to function as an ammeter, measuring and displaying the current flowing through the sensor.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Controlled Smart Lighting System with Power Monitoring
Image of Energy Monitoring System: A project utilizing current sensor in a practical application
This circuit appears to be a multi-channel current monitoring system using several ACS712 current sensors to measure the current through different loads, likely bulbs connected to a 220V power source. The current readings from the sensors are digitized by an Adafruit ADS1115 16-bit ADC, which interfaces with an ESP32 microcontroller via I2C communication for further processing or telemetry. A buck converter is used to step down the voltage to power the ESP32 and the sensors, and the system is powered through a 2.1mm DC barrel jack, indicating it is designed for external power supply.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with current 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 DT NEA - Noah Patel: A project utilizing current sensor in a practical application
Wemos S2 Mini Controlled Smart Device with OLED Display, Thermal Printing, and RGB LED Strip
This circuit features a Wemos S2 Mini microcontroller that controls a WS2812 RGB LED strip and communicates with a 0.96" OLED display and a 58mm mini thermal printer. The ACS712 Current Sensor is interfaced with the microcontroller to monitor current, and power is managed by a CD42 BMS connected to two 18650 Li-ion batteries, with a USB-C PD Trigger Board for power delivery. The circuit is designed for visual output (LED strip, OLED display), printing capabilities, and current sensing, likely for a portable, battery-powered monitoring and display device.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of SISTEMA DE MONITOREO: A project utilizing current sensor in a practical application
ESP32-Based Current Monitoring and Temperature Sensing System
This circuit is designed to measure current using an ACS712 Current Sensor and temperature using a DS18B20 sensor, with an ESP32 microcontroller to process and possibly communicate the sensor data. The ACS712 sensor output is connected to one of the ESP32's analog input pins (D34), while the DS18B20's signal line is interfaced with a digital input pin (D23) through a pull-up resistor (4.7k Ohms). The ESP32 is powered through its Vin pin, and both sensors share a common ground with the ESP32.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ammeter: A project utilizing current sensor in a practical application
Arduino UNO Based Ammeter with LCD Display
This circuit features an Arduino UNO microcontroller interfaced with an ACS712 current sensor and a 16x2 LCD screen using I2C communication. The Arduino reads the current value from the sensor and displays it on the LCD screen, also sending the data to the serial monitor. It is designed to function as an ammeter, measuring and displaying the current flowing through the sensor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Energy Monitoring System: A project utilizing current sensor in a practical application
ESP32-Controlled Smart Lighting System with Power Monitoring
This circuit appears to be a multi-channel current monitoring system using several ACS712 current sensors to measure the current through different loads, likely bulbs connected to a 220V power source. The current readings from the sensors are digitized by an Adafruit ADS1115 16-bit ADC, which interfaces with an ESP32 microcontroller via I2C communication for further processing or telemetry. A buck converter is used to step down the voltage to power the ESP32 and the sensors, and the system is powered through a 2.1mm DC barrel jack, indicating it is designed for external power supply.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Power Management: Monitoring current consumption in power supplies and devices.
  • Motor Control: Measuring current in motor drivers for speed and torque control.
  • Battery Monitoring: Tracking charge and discharge currents in battery systems.
  • Energy Metering: Measuring current for energy usage calculations in smart meters.
  • Overcurrent Protection: Detecting excessive current to prevent damage to circuits.

Technical Specifications

The Shay Current Sensor is designed for precision and reliability. Below are its key technical details:

General Specifications

Parameter Value
Manufacturer Shay
Part ID 1234543235436545654
Measurement Range ±30 A
Output Signal Analog Voltage (0-5 V)
Supply Voltage 5 V DC
Accuracy ±1%
Response Time < 5 µs
Operating Temperature -40°C to +85°C
Isolation Voltage 2.5 kV

Pin Configuration and Descriptions

The Shay Current Sensor has a 5-pin interface. The pinout is as follows:

Pin Number Name Description
1 VCC Power supply input (5 V DC)
2 GND Ground connection
3 OUT Analog voltage output proportional to current
4 NC Not connected (leave unconnected)
5 REF Reference voltage input (optional, 2.5 V)

Usage Instructions

How to Use the Component in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 5 V DC power supply and the GND pin to the ground of your circuit.
  2. Connect the Load: Pass the current-carrying wire through the sensor's sensing loop or terminal (depending on the model).
  3. Read the Output: Connect the OUT pin to an analog input pin of a microcontroller or an ADC (Analog-to-Digital Converter) to measure the voltage output.
  4. Optional Reference Voltage: If required, provide a 2.5 V reference voltage to the REF pin for offset adjustment.

Important Considerations and Best Practices

  • Current Range: Ensure the current being measured does not exceed the sensor's ±30 A range to avoid damage or inaccurate readings.
  • Power Supply: Use a stable 5 V DC power source to ensure accurate measurements.
  • Noise Reduction: Place a decoupling capacitor (e.g., 0.1 µF) between VCC and GND to reduce noise.
  • Orientation: Ensure the current flows in the correct direction as indicated on the sensor for accurate readings.
  • Isolation: Maintain proper isolation between high-voltage and low-voltage sections of the circuit.

Example Code for Arduino UNO

Below is an example of how to use the Shay Current Sensor with an Arduino UNO to measure current:

// Shay Current Sensor Example Code
// Part ID: 1234543235436545654
// This code reads the analog output of the current sensor and calculates the current.

const int sensorPin = A0; // Analog pin connected to the sensor's OUT pin
const float sensitivity = 0.066; // Sensitivity in V/A (e.g., 66 mV/A for ±30 A range)
const float offsetVoltage = 2.5; // Reference voltage (2.5 V for zero current)

void setup() {
  Serial.begin(9600); // Initialize serial communication
  pinMode(sensorPin, INPUT); // Set the sensor pin as input
}

void loop() {
  int sensorValue = analogRead(sensorPin); // Read the analog value (0-1023)
  float voltage = (sensorValue / 1023.0) * 5.0; // Convert to voltage (0-5 V)
  float current = (voltage - offsetVoltage) / sensitivity; // Calculate current

  // Print the current value to the Serial Monitor
  Serial.print("Current: ");
  Serial.print(current, 2); // Print current with 2 decimal places
  Serial.println(" A");

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

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Signal

    • Cause: Incorrect wiring or no power supply.
    • Solution: Verify all connections, ensure VCC is connected to 5 V, and GND is properly grounded.
  2. Inaccurate Readings

    • Cause: Noise or incorrect reference voltage.
    • Solution: Add a decoupling capacitor between VCC and GND. Ensure the REF pin is set to 2.5 V if used.
  3. Output Voltage Stuck at 2.5 V

    • Cause: No current flowing through the sensor.
    • Solution: Verify that the current-carrying wire is properly connected and passing through the sensor.
  4. Sensor Overheating

    • Cause: Current exceeds the sensor's maximum range.
    • Solution: Ensure the current does not exceed ±30 A. Use a higher-rated sensor if necessary.

FAQs

Q: Can this sensor measure both AC and DC currents?
A: Yes, the Shay Current Sensor can measure both AC and DC currents within its specified range.

Q: What happens if the current exceeds ±30 A?
A: The sensor may become damaged or provide inaccurate readings. Always ensure the current stays within the specified range.

Q: Can I use this sensor with a 3.3 V microcontroller?
A: Yes, but you will need to ensure the sensor's output voltage (0-5 V) is scaled down to match the microcontroller's ADC input range.

Q: Is the sensor affected by external magnetic fields?
A: The sensor is designed to minimize interference, but strong external magnetic fields may affect accuracy. Keep the sensor away from such sources.

This concludes the documentation for the Shay Current Sensor (Part ID: 1234543235436545654).