The Gravity: Current to Voltage Module (SEN0262) by DFRobot is an essential electronic component designed to convert current input into a proportional voltage output. This module is particularly useful in applications where current sensing is required, and a voltage signal is needed for interfacing with microcontrollers, data loggers, or other electronics that accept voltage inputs.
The SEN0262 module is designed with precision and ease of use in mind. Below are the key technical details and pin configuration for the module.
Pin Number | Description | Notes |
---|---|---|
1 | Signal Output (Vout) | Outputs voltage proportional to current |
2 | Ground (GND) | Connect to system ground |
3 | Power Supply (Vcc) | 5V DC input |
Powering the Module:
Connecting the Current Source:
Reading the Output Voltage:
// Define the analog input pin connected to the module
const int currentSensorPin = A0;
void setup() {
// Initialize serial communication at 9600 baud rate
Serial.begin(9600);
}
void loop() {
// Read the analog value from the sensor
int sensorValue = analogRead(currentSensorPin);
// Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V)
float voltage = sensorValue * (5.0 / 1023.0);
// Convert the voltage to current based on the sensitivity (1V/A)
float current = voltage; // Since the sensitivity is 1V/A
// Print the current value to the serial monitor
Serial.print("Current: ");
Serial.print(current);
Serial.println(" A");
// Wait for a bit to avoid spamming the serial monitor
delay(1000);
}
Q: Can the module measure both AC and DC current? A: Yes, the module can measure both AC and DC current within its specified range.
Q: What is the resolution of the module? A: The resolution depends on the analog-to-digital converter (ADC) of the microcontroller used. For a 10-bit ADC like that on the Arduino UNO, the resolution is 5V/1024 or approximately 4.88mV per bit.
Q: Is it necessary to power the module with exactly 5V? A: Yes, the module is designed to operate at 5V. Using a different voltage may result in inaccurate readings or damage to the module.
Q: Can I connect multiple modules to a single microcontroller? A: Yes, as long as there are enough analog input pins available on the microcontroller, you can connect multiple modules.
For further assistance, please refer to the DFRobot community forums or contact technical support.