Go to Post Now go out, get some sleep, and build the greatest robot you have ever made. - nicholsjj [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 09-01-2011, 15:33
Itamar's Avatar
Itamar Itamar is offline
Registered User
FRC #1943 (NeatTeam) & FRC #4590 (GreenBlitz)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Israel
Posts: 83
Itamar is an unknown quantity at this point
How should we wire the photoswitches?

Hi,
we just got our 2011 kit, and in that kit were three Photoswitch sensors. None of us has ever used this kind of sensors so I'd really appreciate if you could explain how it works, how we should wire it and where to.

Thanks.

Last edited by Itamar : 09-01-2011 at 16:15.
  #2   Spotlight this post!  
Unread 10-01-2011, 14:57
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: How should we wire the photoswitchs?

Itamar,
There is a section on the First Website under Competition Docs that explains the sensors. I believe it is under the KOP section. I just tried to log on but the site looks a little busy.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 10-01-2011, 15:23
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: How should we wire the photoswitchs?

Here is what I had downloaded from the FIRST website. Hope it helps. They are photoswitches and will give you a digital response. Follow the wiring diagrams carefully!
Attached Files
File Type: pdf 42ef-in005_-en-p.pdf (100.0 KB, 1731 views)
File Type: pdf 42ef-in003_-en-p.pdf (163.5 KB, 1208 views)
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006

Last edited by Jon236 : 10-01-2011 at 15:25. Reason: addition
  #4   Spotlight this post!  
Unread 10-01-2011, 15:36
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Mentor, LRI, MN RPC
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,813
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: How should we wire the photoswitchs?

http://usfirst.org/roboticsprograms/....aspx?id=18530

This page contains, among other things, links to the datasheets for a lot of the KOP items. I believe the sensors your referring to are the "Rockwell Automation Line Sensors":

http://www.ab.com/sensors/photoelect...eral/42ef.html

The links on the right side of the page to the catalog and installation PDF's are probably the most help... although I don't know the specific part we got in the KoP, and the checklist doesn't have a part number! Without those, I can't give too much useful information... although your questions are exactly those I know my students will be asking me!
  #5   Spotlight this post!  
Unread 10-01-2011, 16:29
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: How should we wire the photoswitchs?

The Line sensors given to us in the KOP are model: 42EF-D1MNAK-a
__________________

  #6   Spotlight this post!  
Unread 10-01-2011, 18:05
mutantblond mutantblond is offline
Registered User
FRC #2523
 
Join Date: Sep 2008
Location: st. johnsbury, vt
Posts: 43
mutantblond is an unknown quantity at this point
Re: How should we wire the photoswitchs?

ok, so we've looked at the wiring diagrams, and I have to say, it's not helping us very much. Under the 10.8 - 30V DC Sensors, there are 6 different configurations. Does the 'Load' mean that we have to use resistors in the circuit? I'm gonna display my ignorance here - how do we wire them to the robot? Is the digital sidecar involved here?
  #7   Spotlight this post!  
Unread 10-01-2011, 20:35
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: How should we wire the photoswitchs?

I don't have the datasheet handy, so I'm going from memory.

DO is the "Dark Output". It is active (i.e. connected to ground) when the sensor is looking at "dark", and inactive (i.e. allowed to float) when the sensor sees "light".

LO is the "Light Output". It is active when the sensor is looking at "light", and inactive when the sensor sees "dark".

Connect ground to ground, power to +12 volts, and either LO or DO to a digital input pin on the Digital Sidecar. The input pin will read a logic 1 when the signal is inactive, and a logic 0 when it is active.
  #8   Spotlight this post!  
Unread 10-01-2011, 21:02
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: How should we wire the photoswitchs?

We need to put a resistor in series, don't we? The 9403 can withstand a 30v signal, but use at this voltage will degrade the life of the module.
The standard voltage it specs is -0.5v to 5.25v.

If possible, I'd prefer to use an inline resistor, instead of a voltage divider. At 250 micro-amps, it would take a 34k resistor to drop the voltage from 12v to about 5v.
__________________
-- Marshal Horn
  #9   Spotlight this post!  
Unread 10-01-2011, 21:19
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: How should we wire the photoswitchs?

Quote:
Originally Posted by kamocat View Post
We need to put a resistor in series, don't we?
It looks like the output of the sensors is just like a Banner sensor's NPN output. It supplies no power. It is effectively an on/off switch that either connects the output to ground or leaves it open. The Digital Sidecar's inputs will happily take that input without modification; it's basically what they were designed for.
  #10   Spotlight this post!  
Unread 10-01-2011, 21:29
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: How should we wire the photoswitchs?

Oh, okay. That's why they gave us NPN then. Cool!
__________________
-- Marshal Horn
  #11   Spotlight this post!  
Unread 10-01-2011, 22:03
bakketti bakketti is offline
Registered User
FRC #0443 (Freelance Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Denver, Co
Posts: 18
bakketti is an unknown quantity at this point
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by Alan Anderson View Post
DO is the "Dark Output". It is active (i.e. connected to ground) when the sensor is looking at "dark", and inactive (i.e. allowed to float) when the sensor sees "light".

LO is the "Light Output". It is active when the sensor is looking at "light", and inactive when the sensor sees "dark".
Just as a sanity check... Looking at the Wiring Diagrams for the NPN ouputs: Dark Output is the Black line and Light Output is the White line. Is that a correct statement?
  #12   Spotlight this post!  
Unread 11-01-2011, 14:02
Tem1514 Mentor's Avatar
Tem1514 Mentor Tem1514 Mentor is offline
Registered User
FRC #1514
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Toronto
Posts: 238
Tem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to beholdTem1514 Mentor is a splendid one to behold
Re: How should we wire the photoswitchs?

Lets be very careful with those 'line sensors' and the electrical hookup.

Some facts that we do know. The sensor will work just fine on 12 volts DC which generally means at the output (ie: LO,DO ) MAY have a voltage range from 0VDC to 12VDC. The Digital sidecar does have a 'general purpose' I/O lines which opearte in the 0VDC to 5VDC range!!!!!

That means if the sensor sources a 12VDC level you can kiss your digital sidecar goodbye as the blue smoke comes out. NO, a series resistor will only limit the current, not the voltage and either or both will kill a digital sidecar.

To be on the safe side I would use the analog sidecar to input the sensors.

I have not looked at the sensors tech sheets yet but will sure err on the side of caution.

Of course one way to find out is to look at the 'sample code' and see where the information for the sensors is read.
  #13   Spotlight this post!  
Unread 11-01-2011, 14:30
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: How should we wire the photoswitchs?

Quote:
Originally Posted by Tem1514 Mentor View Post
The sensor will work just fine on 12 volts DC which generally means at the output (ie: LO,DO ) MAY have a voltage range from 0VDC to 12VDC. The Digital sidecar does have a 'general purpose' I/O lines which opearte in the 0VDC to 5VDC range!!!!!
The sensor outputs do not source anything. They will never have a voltage greater than what they are connected to. If you connect LO or DO to the Digital Sidecar, it will either have 5 volts (when inactive) or zero volts (when active) on the output.

Quote:
I have not looked at the sensors tech sheets yet but will sure err on the side of caution.
If you haven't looked at the documentation, you shouldn't be giving advice about how to use things.

Quote:
Of course one way to find out is to look at the 'sample code' and see where the information for the sensors is read.
It reads it from the Digital Sidecar DIO pins.
  #14   Spotlight this post!  
Unread 11-01-2011, 14:50
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,795
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: How should we wire the photoswitchs?

The light sensor outputs will provide a closure to power common or will remain open circuit. The digital side car digital inputs have pullup resistors to +5 volts. So when the sensor is open, the output will be pulled up to 5 volts through the DSC and when the sensor is closed, the output will be pulled down zero volts through the NPN transistor in the sensor. No other components are needed. The 12 volt input is required to power the emitter and other internal electronics.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #15   Spotlight this post!  
Unread 11-01-2011, 21:08
caffel caffel is offline
Registered User
AKA: Charlie Affel
FRC #0423
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 1999
Location: Springfield, PA
Posts: 72
caffel is an unknown quantity at this point
Re: How should we wire the photoswitchs?

The original question is quite direct, but to rephrase it:

What should be connected to:
1. White
2. Black
3. Blue
4. Brown.

We have read all of the Allen Bradley docs.

They seem to show that once the two bleeder resistors are in place that the unit has two leads left.
Since one is supply at 11-30 volts DC and the other must be common, there are no leads left to serve as the output.
Where and how does the output signal get connected to the CRIO I/O?
__________________
Charlie Affel,
Mentor 423
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


All times are GMT -5. The time now is 07:26.

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