Go to Post Every time i look at my watch and see 3:65 o'clock I always thing, darn i gotta get a new watch... - Kyle [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-01-2007, 15:29
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
Post Re: Set Default Digital inputs to Low? How? bad Analog value?

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   Spotlight this post!  
Unread 04-01-2007, 15:58
charrisTTI charrisTTI is offline
Ramblin' Wreck
AKA: Charles Harris
FRC #0623
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Vienna, VA
Posts: 106
charrisTTI has a spectacular aura aboutcharrisTTI has a spectacular aura about
Send a message via AIM to charrisTTI
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.
__________________
FRC 623 2003,2004,2005,2006,2007,2008, 2009, 2010, 2011
FRC 1900 2007
FVC 60 and 193 2006
FVC 3271 2007
FTC 226 and 369 2008, 2009, 2010, 2011
FTC 3806 2010
  #3   Spotlight this post!  
Unread 04-01-2007, 16:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Set Default Digital inputs to Low? How? bad Analog value?

Quote:
Originally Posted by Generalx5 View Post
The sensor belongs to OPTEK technologies, OPB742D and OPB606A are the two sensors Im using.
Those devices are exactly suited to being connected directly to the RC's digital inputs. They don't produce voltage; their output is the equivalent of a contact closure. Tie the "E (2)" pin to ground, and the "C (1)" pin to the digital input.

(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   Spotlight this post!  
Unread 04-01-2007, 18:57
Generalx5's Avatar
Generalx5 Generalx5 is offline
Hard Core Inventor
AKA: Jun(John) Zheng
FRC #1346 (Trobotics)
Team Role: Student
 
Join Date: Nov 2005
Rookie Year: 2004
Location: CANADA
Posts: 94
Generalx5 will become famous soon enough
Talking Re: Set Default Digital inputs to Low? How? bad Analog value?

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!
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 01:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi