Using analog channels as digital
Hi
The number of digital pins on the IND.I/O is not enough for my project. I would like to use the analog pins as digital ones (by reading the analog value and treat everything above 50 % of the voltage range as digital 1). But the analog section is only intended for up to 10 Volts. My system works on 12 V. Is it possible to connect 12 V to the analog inputs or will they get damage
I
Hi, you can use a voltage divider with resistors to reduce the 12V to e.g. 8V with a 20K/10K voltage divider.
12V <10K resistor> 8V (connect to analog channel) <20K resistor> GND
One customer even wrote some code to multiplex several digital inputs to 1 analog channel, see https://github.com/DG2RDD/eControls-BMS-Dry-Contacts-Multiplexer-for-Industruino
Hi,
I guess I'm the customer refered to by Tom ... Just ask if you want some up-to-date code, we have been tinkering a bit with it lately.
Didier, DG2R
Thank you so much!! I am considering to update the hardware and will notify you when approved by my manager!
Hi
My goal is to avoid special Hardware hacks. Otherwise, a voltage divider is the best way to go. But I interpret your answer as that the analog channels will damage if voltages above 10 V are applied.
Your answer
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 8/23/20, 11:56 PM |
Seen: 1738 times |
Last updated: 8/24/20, 6:09 AM |
Thank you Tom. is it needed to calibrate the DAC/ADC even for digial usage?