I am attempting to configure a kegbot, using a Particle Photon and some flow meters the same as these.
I suspect I’m having a particle issue at this point as I have the server and app functioning as described. When I look in the Particle web IDE at the functions resetMeter and meterTicks they are both reading 0.
To setup the Particle I used the Desktop IDE, opened the folder I got from the kegbot github, clicked on the main.ino and then clicked compile to cloud and upload code using cloud. I thought this had worked as I was now presented with the resetMeter and meterTicks when I opened the web console.
I’m using a 2.2k resistor as a pull up between Vin and signal. I suspected the Vin wasn’t putting out enough voltage for the flow meter, as the particle documents stated that it only outputs 4.8V and the flow meter needs 5-18V. I have tried powering it off a separate supply that’s providing 9V whilst the particle is still powered via its USB. It is wired as below:
So far I have tried 3 different flow meters, pull-up resistor values of; 0, 220, 440, 820, 2k, 2.2k, 4k, 10k and 22k. I have also tried multiple cables and even changed the breadboard.
To clarify I’m not actually passing liquid through the flow meter as I want to confirm it works before I plumb it into my keezer, I’ve just been blowing into it to trigger it, enough that I can hear the wheel inside turning at a good pace. Again I’ve tried blowing more or less to see if this is affecting it.
I’m a complete novice to both the Particle and coding in general so would appreciate all the help I can get.