Analog input port question
Posted: Sat Jan 21, 2017 6:48 pm
Hello just wondering about something, I'm sure someone here will have the answer.
I was just playing about with an ECIO module and reading two Analog input ports.
I had them both at 0v via a 10k resistor on each input. But if I put 5v on one input they both read out as being at 255 on the lcd display even though one was at 0v and the other at 5v read with a multimeter.
But if you did it the other way around held them both at 5v and then took one to 0v they would both show up individually, one read 255 the other close to 0.
why is that?
I'd run out of digital inputs for a little project, but they only worked individually as switches if both held high and pulled low but not if held low and pulled high as they both went up and down together.
Thanks
Mark
I was just playing about with an ECIO module and reading two Analog input ports.
I had them both at 0v via a 10k resistor on each input. But if I put 5v on one input they both read out as being at 255 on the lcd display even though one was at 0v and the other at 5v read with a multimeter.
But if you did it the other way around held them both at 5v and then took one to 0v they would both show up individually, one read 255 the other close to 0.
why is that?
I'd run out of digital inputs for a little project, but they only worked individually as switches if both held high and pulled low but not if held low and pulled high as they both went up and down together.
Thanks
Mark