Emonth connect reed switch

Hello!

I received the EmonTh with the sketch to count pulses for my gas meter.

I don't understand how can connect the reed switch.. i have the 3.3 v, gnd and input.. but the reed switch have only two wires.. can i help me ?

Thanks to all in advance..

 

Pierantonio

Robert Wall's picture

Re: Emonth connect reed switch

You need to look at the sketch on GitHub that you are going to use. It is probably "emonTH_pulse_lowpower".

Near the top, you will see a comment against this line, and that comment is your clue:

"const int PULSE_SENSOR_PWR = 5; // **Labelled DS18B20 power on emonTH board**

Therefore, you connect your reed switch between "DS18B20 power" (pin 6) and the pulse input (pin 4). You might need to add a pull-down resistor between pin 4 and pin 3 (GND), say 6.8 kΩ.

pierantonio81's picture

Re: Emonth connect reed switch

thank you very much Robert

 

Bye, Pierantonio

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.