Go Down

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


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 ?



Is this arrangement will do the job ?



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

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131