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
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
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!