Wrote my own code and treated the pin as input pullup. I don’t remember off the top of my head and I’m not near the sprayer to test, but this tells me it goes low/to ground on a pulse.
For what it’s worth I do know it will work at 5volts, doesn’t actually need 12v to pulse
I have 18.25 pulses per litre written down here too.
What you posted is the exact flow meter set up and cable I have. I tested the sensor last night and it performs as it should according to this test procedure. I get 300 ohms ground to signal with the magnet one way, then I flip the magnet over and get a resistance of 4.5k ohms between ground and signal.
What flow meter did you have in mind when the board was designed? If I am thinking correctly to make this style flow meter work the opticoupler would need a constant 5v supply, then the signal wire would then complete the ground circuit for a pulse.
I like the safety of the opticoupler, but in this instance with a low resistance of 300 ohms on the sensor to ground, do you think it would be safe to bypass the opticoupler and connect the signal wire directly to the nano?
Edit: I also thought about desoldering the opticoupler and putting in a jumper between pins 1 and 4. Then there would be a resistor in series for more protection.
I’ll give that a try. One idea for future board redesigns, could a second opticoupler be added to the board in parallel for meters that pulse to ground? In my quick sketch below the lower opticoupler is what is currently on the board. If a second opticoupler was added next to it, that one could be connected to 5v power, then grounded through the flow meter. You could then have two attachment points for the flow meter signal wire. The user could then chose one for pulse to ground meters and the other for pulse to power meters. That would add a lot of functionality for Micro Trak and Raven flow meters commonly used in the United States and Canada.
I did just get home from work. I took off the opticoupler and soldered on a jumper. I connected the jumper on the rpm signal line to run through the 800 ohm resistor. It worked perfectly with the micro trak speed sensor.
I am interested in this board for. Sprayer control as well. Does the cytron drive the flow control valve? Do you have a version that has relays for sections ?
RC12 is a through-hole board that is self assembled and the least expensive. It can control one rate. It can be connected to a relay module with another small pcb. It uses a nano and a cytron.
RC11 uses a teensy and a cytron. It has relays. It can control two rates and eight sections.
RC15 uses an esp32. It has DRV8870 motor drivers to control two rates and seven sections.
I guess I am not brilliant enough to make a replacement parts list @ JLC so I am shooting for the ESP32 board. However, my one question would be, if I am using the WIFI on my tablet for RTK corrections, can I still use this boards WIFI to communicate the rate info to AOG, as my WIFI is currently tied up.
I didn’t get the error when I first ordered but I do now. I have updated the fab files to work. The esp board should be able to connect to the phone hotspot too.