EveryCircuit
Contact
Reviews
Home
ryteker
modified 4 years ago

2 x INPUTS INTO AN ARDUINO ANALOG INPUT

1
0
118
01:13:03
On a small project I was doing, I ran short of a few digital inputs where I was using an Arduino Nano, to implement a few extra inputs, I used a couple of resistors to form a standard potential divider into an Analog input. Then used internal 'flags' in the ARDUINO sketch to differentiate the analog inputs to give 3 different values, these indicate if one or the the other, or both inputs are 'active' ... and the ARDUINO Sketch 'code' then 'sets' the two 'flags' for their states, with the resistor values used, the voltage separation is more than adequate.
published 5 years ago

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy