Pages: [1]   Go Down
Author Topic: Combining Analog and digital type input for AnalogPin  (Read 402 times)
0 Members and 1 Guest are viewing this topic.
Indonesia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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-


* sig_combine.png (7.72 KB, 1296x571 - viewed 9 times.)
« Last Edit: October 24, 2012, 11:05:07 pm by binooetomo » Logged

Indonesia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 70
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this arrangement will do the job ?

Sincerely
-bino-


* sig_combine_B1.png (16.97 KB, 500x451 - viewed 62 times.)
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

Pages: [1]   Go Up
Jump to: