|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: Using Analog Inputs as Digital (on the OI)
tie a 10K resistor from +5 to the analog input pin
connect a switch from ground to the same analog input pin when the switch is closed you will have a 0 when the switch is open you will have full scale analog value (I don't remember if it is 8 or 10 bit or what) write some code that interprets half-scale or lower as a switch closed else switch open |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| We need help with the analog inputs | M_dalgashon | Programming | 4 | 08-02-2008 17:39 |
| Code to Read the Binary Inputs on Analog Buttons | Kingofl337 | Control System | 5 | 14-03-2007 11:01 |
| Set Default Digital inputs to Low? How? bad Analog value? | Generalx5 | Programming | 11 | 04-01-2007 18:57 |
| How do the Analog Inputs work? | JBotAlan | Electrical | 3 | 07-01-2005 00:11 |
| Analog vs Digital inputs? | f22flyboy | Programming | 8 | 08-11-2002 22:18 |