@mozster wrote:
Hi
I’m planning to connect a reed switch from my gas meter to an emonPi, but it’s not clear to me what the best way to wire it up is…
I’ve got this reed switch - I’ve tested it with a simple circuit and I can see that it closes as the fastest dial rotates (opens & closes once per full rotation).
I’m not sure whether I can connect it to the RJ45 to Terminal Block Breakout to make use of the standard code without modifications? - As I understand, the terminal block breakouts have a 3 wire connection and talk to a bus interface, but this is a simple 2 wire switch and I think I need to connect it to an interrupt or poll a GPIO line?
Would I be better off not using the breakout board and butchering a cat5 cable to wire the switch to PIN5/GND & PIN6/IRQ1/D3? Will this allow me to add a temp sensor later to pins 2,4,5 as shown on this diagram - Will this need some changes to the arduino code?
Thanks in advance!
Moz
Posts: 8
Participants: 3