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

get_analog_in only shows volts? #6

Open
vendablefall opened this issue Jul 8, 2021 · 2 comments
Open

get_analog_in only shows volts? #6

vendablefall opened this issue Jul 8, 2021 · 2 comments

Comments

@vendablefall
Copy link

We would like our unit to read 4...20 mA current but looking at the source code it seems it only displays volts?

even then comparing it to the multi-meter, the AIN1 is receiving 22 volts, and get_analog_in is showing 10.647, how do we read the current coming in at AIN1 and AIN2?

@bjarnekvae
Copy link
Owner

bjarnekvae commented Jul 8, 2021

The Monarco HAT can support 4-20mA signals, however this is not supported in this repository at this moment. You can easily convert 2-10V to a 4-20mA signal by using a 500 Ohm resistor, please read this

Also, you should not connect a voltage higher than 10V to the analog inputs as this could overload and break the hardware.

Please keep me updated on your progress :)

@vendablefall
Copy link
Author

I ran two 1000Ohm resistors in parallel, to produce a 500Ohm resistor, it worked fine, but the EM fields in the area are messing with the 10vdc signal and introducing noise, this is fine for now, but we would really appreciate 4-20mA signals in the near future

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

2 participants