Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work with a 4-20mA signal or preferably SPI data using MCP3008 or similar #6

Open
walkuf opened this issue Jan 19, 2025 · 0 comments
Open

Comments

@walkuf
Copy link

walkuf commented Jan 19, 2025

I built my system with (2) IFM Magnetic-inductive flow meter SM6x04 or SM6004 that have a 4-20 mA outputs for Volumetric Flow and Temperature. I purchased a 4-20mA to 1-10V converter module and a 1-10V to Frequency converter module and am pretty sure I didn't damage my RPi. They all seem to work however I think they lack a zero crossing or other criteria for CBPi4-Flowmeter to pick them up. What are the current pulse input signal requirements? Is 0 to 1.2V at 500Hz good? That's what I think I may have. I have an oscilloscope coming to confirm what my signal looks like.

I'm sure a lot of error is built into this solution and I'd like to develop the current flowmeter plugin to accept a Voltage input device. My thought was to convert it to a voltage and use an MCP3008 chip to input the data through the SPI interface. Does anyone know how to modify this code to use SPI data? I like the protection that the MCP3008 offers the RPi. Plus you can add multiple channels this way for several devices.

Thanks,
Rick

@walkuf walkuf changed the title Work with a 4-20mA or 0-3.2V Signal Work with a 4-20mA signal or preferably SPI data using MCP3008 or similar Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant