Hi,
I should say straight up that I'm not a programmer, in the last 40 years I've never "got" programming.
I'm OK with electronics though, I can solder.
I can also google and cut/paste.
I have a hall effect flow meter
It's open collector (I've tested it).
I just want the Hz published via MQTT.
I have just received my Teensy 4.1 and the ethernet kit.
I figure these libraries might be the correct:
https://www.pjrc.com/teensy/td_libs_FreqMeasure.html
https://github.com/khoih-prog/AsyncMQTT_Generic
https://github.com/khoih-prog/Async.../examples/QNEthernet/FullyFeatured_QNEthernet
So I need to figure out if I can use the input pin internal pull-up on the Teensy. The meter should produce around 100 (square wave) pulses/sec when the pump is running.
According to the documentation need >=6v DC for the sensor but it seems to work properly on my bench PSU with 5.00v/50ma.
So can someone please help me with the best way to wire this up and also how to code it (I don't expect help for free)?
Thanks.
Richard
I should say straight up that I'm not a programmer, in the last 40 years I've never "got" programming.
I'm OK with electronics though, I can solder.
I can also google and cut/paste.
I have a hall effect flow meter
It's open collector (I've tested it).
I just want the Hz published via MQTT.
I have just received my Teensy 4.1 and the ethernet kit.
I figure these libraries might be the correct:
https://www.pjrc.com/teensy/td_libs_FreqMeasure.html
https://github.com/khoih-prog/AsyncMQTT_Generic
https://github.com/khoih-prog/Async.../examples/QNEthernet/FullyFeatured_QNEthernet
So I need to figure out if I can use the input pin internal pull-up on the Teensy. The meter should produce around 100 (square wave) pulses/sec when the pump is running.
According to the documentation need >=6v DC for the sensor but it seems to work properly on my bench PSU with 5.00v/50ma.
So can someone please help me with the best way to wire this up and also how to code it (I don't expect help for free)?
Thanks.
Richard