Hi
I am planning for my wind speed project. I need to read a pulse frequency from a rotation counter, but I have done some bench testing using a function generator & the node-red-contrib-frequency-meter node, and it seems to top out at about 20Hz. This seems to equate to approx 25-30mph, which isnt quite enough.
Any ideas as to what I could do instead ? Is there a HAT with a counter ?
Needs to be simple, I'm only an engineer
Cheers.
Node red isn't really designed for that sort of work (counting rapid pulses on an input). I think you need to use a hardware counter or frequency meter to do that, as you have suggested. This may not be the best place to ask about Pi add-ons, though someone may be able to suggest something.
Thanks Colin. Yes, I agree, I wasnt hugely surprised tbh but always worth a go ! I am thinking someone must have written something that does the counting outside of node red, in a faster envirinment, then presents it as figure to Node Red. All I can do it count the GPI as it is presented, then maths it. I would like to avoid a chip if poss as my electronics is a bit rusty !
I actaully didnt have too much success looking for HATs. Would an Arduino counter have a high frequency ability then? How would I send data between the 2, could I do via MQTT, I just worked out how that works
I don't know about the capabilities of the devices to count, just making suggestions for research. I believe Arduino (which I havn't use) usually connect via serial and the ESP (which I have) via wifi and MQTT.
As I said this may not be the best place to ask about this unless someone here happens to have done something similar (a counter I mean).