|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
The sensor belongs to OPTEK technologies, OPB742D and OPB606A are the two sensors Im using.
Here are the Sensor Data, http://www.optekinc.com/pdf/OPB740.pdf http://www.optekinc.com/pdf/OPB606a.pdf The voltage picked up from my Multimeter reads DC 0.4V maximum using a 1.5V double A battery source. ---------------------------------------------------------------------------------------------------------------------------------- Also, in hopes of getting rid of the use of Inverters, I've tried instead of setting INPUT; at the end of the IO's, I set them to 0; IO4 = IO5 = IO6 = IO7 = IO8 = IO9 = IO10 = INPUT; <---------Before IO4 = IO5 = IO6 = IO7 = IO8 = IO9 = IO10 = 0; <---------After And I'm still not sure if it works, although the voltage between SIG and BLK is gone, I havnt found a way to trigger it so it goes high. Last edited by Generalx5 : 04-01-2007 at 15:41. Reason: added the section under the dotted line |
|
#2
|
|||
|
|||
|
Re: Set Default Digital inputs to Low? How? bad Analog value?
Check out this application note.
http://www.optekinc.com/pdf/App_Note_213.pdf See figure 1 and figure 3. The collector current of the phototransistor is relatively low. The OPB606 is 500 uA this can pull down 5V thru a 10k resistor. The OPB704 is 50 uA this can pull down 5V thru a 100k resistor. I do not know what the input circuit of your controller looks like, but I would guess that the OPB606 might work with a direct connection as long as pullup is 10k or greater. The OPB704 will very likely need the circuit shown in figure 3. |
|
#3
|
|||||
|
|||||
|
Re: Set Default Digital inputs to Low? How? bad Analog value?
Quote:
(And don't mess with the IO direction settings. What they do is determine whether a given pin is an input or an output. There is always a pullup resistor on the pin.) |
|
#4
|
||||
|
||||
|
Awesome! It works!
Thanks so much for all your help.Problem solved....I'm sure I'll have more problems later on when we start, but yeah! Awesome! |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do the Analog Inputs work? | JBotAlan | Electrical | 3 | 07-01-2005 00:11 |
| OI and analog: Zero value | Astronouth7303 | Programming | 1 | 02-02-2004 16:00 |
| Resistance to Analog Input Value. | Josh Hambright | Electrical | 12 | 15-04-2003 16:12 |
| How to access other Digital inputs on OI? | DougHogg | Electrical | 2 | 12-03-2003 13:57 |
| Analog vs Digital inputs? | f22flyboy | Programming | 8 | 08-11-2002 22:18 |