The Itrón Cyble Sensor V2 is an advanced electronic component designed for smart metering solutions. It is capable of accurately measuring and transmitting utility usage data, including water, gas, and electricity consumption. This sensor is widely used in residential, commercial, and industrial applications to facilitate efficient resource management and billing processes.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply input (3.3V to 5V DC) |
2 | GND | Ground connection |
3 | OUT | Pulse output signal |
4 | NC | Not connected (reserved for future use) |
// Define the digital pin connected to the sensor's output
const int sensorPin = 2;
// Variable to store the pulse count
volatile unsigned int pulseCount = 0;
// Interrupt service routine for handling the pulse signal
void ISR_pulse() {
pulseCount++;
}
void setup() {
// Initialize the serial communication
Serial.begin(9600);
// Set the sensor pin as an input
pinMode(sensorPin, INPUT_PULLUP);
// Attach the interrupt to the sensor pin
attachInterrupt(digitalPinToInterrupt(sensorPin), ISR_pulse, RISING);
}
void loop() {
// Disable interrupts to read the pulseCount safely
noInterrupts();
unsigned int count = pulseCount;
pulseCount = 0;
interrupts();
// Print the pulse count to the serial monitor
Serial.print("Pulse Count: ");
Serial.println(count);
// Add a delay for readability (adjust as needed)
delay(1000);
}
Note: The example code provided is for demonstration purposes and assumes the use of an Arduino UNO. The interrupt service routine ISR_pulse
is triggered on the rising edge of the pulse signal from the Cyble Sensor V2. The pulseCount
variable is incremented with each pulse, representing the consumption data. Adjust the code as necessary to match the specific requirements of your application.
For further assistance or more complex integration scenarios, please refer to the manufacturer's detailed technical manuals or contact their support team.