DAE Pulse Sensor 24v reed switch to arduino?

Hello everyone,
I would love a quick glance just to tell me whether an Arduino approach can integrate with high voltage reed switches. In essence i have to use a [DAE Flow Sensor] (https://daecontrol.com/product/dae-as-75mp-water-meter-with-pulse-output-3-4-npt-couplings-measuring-in-cu-meter/) due to complicated regulations and i'm worried my solution may not work. For multiple reasons I cannot use their cloud or desktop applications.

  • Pulse sensors are two pin and operate at 24v (common arduino examples use three pin, and 5-12v)

β€”>

  • This is what I heard last from DAE support on potential Arduino compatibility:

β€œThe pulse meter on our water meter is a dry contact reed switch (The switch may be damaged if input electricity is more than 0.01A, 24V). You might need to talk to tech support from Arduino to confirm the compatibility.”*

  • I was told by an electrical friend that an optocoupler would be appropriate for signal voltage lowering.

Define a digital input as "INPUT_PULLUP". Connect the sensor wires to the input pin and to GND.
Know that reed switches bounces!

The highest voltage you will ever encounter on an Arduino pin is 5V, so you are plenty safe.

How many pulses per cubic meter? What will your maximum flowrate be (cubic meter per hour)?

My understanding is that with my particular DAE flow sensor. The sensor generates its own electricity via the flow and outputs 24v signals that could damage the 5v pins on the Arduino. Can I just hook the positive line to an interrupt GPIO on Arduino and assume it's going to work? Do you think I need anything converting the signal.

  • Pulse Output: 1 liter (0.001 cu meter)/pulse, a dry contact (i.e. no voltage) reed switch with 2 wires, 1.5m. The third party system should not generate electricity more than 0.01A (typically 0.005A like DAE AMR), 24VAC/DC.

This is for sinks, bathroom, toilet in a highly specific research lab. Expect typical use in a household setting. Not a crazy amount.

*Pulse Output: 1 liter (0.001 cu meter)/pulse, a dry contact (i.e. no voltage) reed switch with 2 wires, 1.5m. The third party system should not generate electricity more than 0.01A (typically 0.005A like DAE AMR), 24VAC/DC.

what is reed switches bouncing mean? Im such a novice to this stuff. lmao Thank you for any help!

The connecting element does like a hard rubber ball dropen on the floor. Bang, bang, bang before it settles. The same applies to all push button switches and all mechanical contacts.

45V would destroy the Arduino on ANY pin.

Should be quite easy to confirm that with your DVM, digital volt-Ohm meter.

Is the lack of a dedicated data line an issue? Assuming I can voltage regulate tho. Like how do I know if the Arduino is going to be able to interpret?? There's no proprietary bs going on? (https://daecontrol.com/product/dae-as-75mp-water-meter-with-pulse-output-3-4-npt-couplings-measuring-in-cu-meter/

Would you assume it's compatible? Or do I really have to test physically? Im not opposed its just work for my boss lol

Of course you can convert 24V to 5V. What I would do is use a Buck converter to go from 24 to 7ish then a LDO VR to take it to 5.

Don't know what all the concern is with 24 volt.

Spec clearly says, and has been mentioned here several times, pulse is from a "voltage free reed switch" , end of story.

3 Likes

I apologize for my layman knowledge. But how does the signal transfer, if it's voltage free?

If it's simple, a "yes it will function with a basic connection" (to Arduino) is all I need.

"Yes it will function but you need to use a logic conversion of the high voltage" is also very helpful.

Thanks for all the help. I apologize if i'm making things more complicated then they are.

Does dry contact imply no needed conversion? but wet would?
Electricians need better terms in my very stupid opinion

Wet or wetted contacts are silver with a bit of mercury added to make an amalgam. Otherwise the silver will quickly tarnish and be worn away. Dry contacts are usually some other metal such as tungsten which have less wear because of the hardness of the metal.

Voltage free will operate like an everyday switch.
One end connects to ground, the other to the Arduino input with that input set as inputpullup.
This adds an Arduino internal pullup resistor to the 5v supply.

You will need to add some debounce code for the reed, just as one needs for a switch.

I'd suggest you do some basic Arduino programming study.

Integrating a high voltage reed switch with an Arduino is indeed possible, but it requires some additional components to ensure compatibility and safety. Given that the DAE Flow Sensor operates at 24V and the Arduino typically handles 5-12V, using an optocoupler is a suitable approach to lower the signal voltage and provide electrical isolation between the high voltage reed switch and the Arduino.

Steps to Integrate the Reed Switch with Arduino Using an Optocoupler:

  1. Choose an Appropriate Optocoupler: Select an optocoupler that can handle the input voltage from the reed switch (24V) and provide a suitable output for the Arduino (5V). Common choices include the PC817 or 4N25 optocouplers.

  2. Circuit Setup:

    • Input Side: Connect the reed switch to the input side of the optocoupler. The input side typically consists of an LED that will be activated by the reed switch.
    • Output Side: Connect the output side of the optocoupler to the Arduino. The output side usually consists of a phototransistor that will switch on and off based on the input signal.
  3. Wiring:

    • Connect one pin of the reed switch to the 24V power supply and the other pin to the anode of the optocoupler's LED.
    • Connect the cathode of the optocoupler's LED to ground through a current-limiting resistor.
    • Connect the collector of the optocoupler's phototransistor to the Arduino's digital input pin.
    • Connect the emitter of the optocoupler's phototransistor to ground.
  4. Code:

    • In your Arduino code, configure the digital input pin connected to the optocoupler's output as an input.
    • Use the digitalRead function to read the state of the reed switch.

Example Code:

const int reedSwitchPin = 2; // Pin connected to the optocoupler's output
int reedSwitchState = 0;

void setup() {
  pinMode(reedSwitchPin, INPUT);
  Serial.begin(9600);
}

void loop() {
  reedSwitchState = digitalRead(reedSwitchPin);
  Serial.println(reedSwitchState);
  delay(500);
}

Using an optocoupler will ensure that the high voltage from the reed switch does not damage the Arduino, and it will provide the necessary isolation for safe operation.

BTW this was an original answer of mine, spoofed into an essay by ChatGPT.

Thank you!! absolute goat

1 Like

"dry contacts" means there is no voltage on either switch contact, neither contact is connected to anything, you could switch 3.3 volts to your Arduino input pin with the reed switch.

1 Like