Go Down

Topic: Combining Analog and digital type input for AnalogPin (Read 462 times) previous topic - next topic

binooetomo

Oct 25, 2012, 06:02 am Last Edit: Oct 25, 2012, 06:05 am by binooetomo Reason: 1
Dear All

I need to read two type of Digital type and Analog type input on a single AnalogPin.
I Knew that I need to switch over digitalRead() and AnalogRead.

But How about the schematic ?


How to switch the connection of AnalogPin between Digital_Signal and Analog_Signal ?

Sincerely
-bino-

binooetomo

Is this arrangement will do the job ?

Sincerely
-bino-

dhenry

Quote
Is this arrangement will do the job ?


Do you really want to do that? What do you think T1's b-e junction will do when power is switched to it?

Go Up