Go to Post i swear, if it were april fools day, i would not believe this whole lord dumpling/dean kamen thing...but then again, this is FIRST - sure_smile [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 15-01-2006, 03:04
doubleslash's Avatar
doubleslash doubleslash is offline
driven
AKA: Justin Huang
FRC #0649 (Saratoga Robotics)
Team Role: Leadership
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Saratoga, CA
Posts: 11
doubleslash is an unknown quantity at this point
Send a message via AIM to doubleslash
Interfacing with Allen-Bradley Sensors

Two questions about interfacing with the Allen-Bradley IR sensors:
  1. How to hook it up: Are the outputs analog or digital (I'm guessing digital)? What are the output voltages of the green and white wires? If we assume that the output voltage is the same as the input voltage (12V) is it safe to hook it up to the robot controller?
  2. How to read the outputs: Now supposing that we have managed to hook it up, what are the outputs of the green and white wires? On the specs, one wire is labeled as "N.O." and the other "N.C.", which we think means "normally open" and "normally closed." I would assume that one wire returns a 1 if the receiver has a signal, 0 if it doesn't, and vice versa for the other wire, but am not certain. We can't really test this ourselves without knowing the answers to question 1, "how to hook it up."
If anyone knows the answers or learns how to interface with the IR sensors through something I may have overlooked, please let me know. Thanks!
__________________
I, I'm allergic to bee stings. They cause me to uh, die.
  #2   Spotlight this post!  
Unread 15-01-2006, 10:24
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Interfacing with Allen-Bradley Sensors

Quote:
Originally Posted by doubleslash
Two questions about interfacing with the Allen-Bradley IR sensors:
  1. How to hook it up: Are the outputs analog or digital (I'm guessing digital)? What are the output voltages of the green and white wires? If we assume that the output voltage is the same as the input voltage (12V) is it safe to hook it up to the robot controller?
  2. How to read the outputs: Now supposing that we have managed to hook it up, what are the outputs of the green and white wires? On the specs, one wire is labeled as "N.O." and the other "N.C.", which we think means "normally open" and "normally closed." I would assume that one wire returns a 1 if the receiver has a signal, 0 if it doesn't, and vice versa for the other wire, but am not certain. We can't really test this ourselves without knowing the answers to question 1, "how to hook it up."
If anyone knows the answers or learns how to interface with the IR sensors through something I may have overlooked, please let me know. Thanks!
Umm, did you read the spec sheet? That pretty much covers it.

To get you started:
There is a transmitter and a receiver. The transmitter just gets DC power (anything between 11 and 28 volts), red is +

The receiver also gets 11-28 volts, brown is + and blue is -.

The output is definitely digital - on or off. It may or may not necessarily have the correct voltage level to be interfaced to the "Digital" inputs of the RC - look up the specs for the RC digital inputs!!

The way the output works is this: One "output" wire is green (normally open) and the other is white (normally closed). That means that with no object in the way, the "switch" in the unit is either open, or closed. (If it is closed, current flows).

Depending on whether you have a PNP or NPN output (look in the spec sheet for the model number) you hook the 'other' output wire to either + or -, and the unit switch inside connects to the other power leg.

For example, if you have PNP, and want N.O., one side goes to + the other to Green, when something is in the beam, the green wire grounds and current will flow.

Does that help?

Don
__________________

I am N2IRZ - What's your callsign?
  #3   Spotlight this post!  
Unread 23-01-2006, 17:29
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
Re: Interfacing with Allen-Bradley Sensors

Hi,
We use 3-wire, PNP prox switches. Our hookup looks like this.

Brown +12V
Blue 0V
Black (signal) to digital input (sig).

Now, to get the program to actually see the input we had to add 'pull-down' resistor.

We placed a 4.7K resistor between black (signal) and blue(0v). Works well.

Programming, we got satisfactory results sampling every 1 mSec. We use two prox switches to count gear teeth.

Regards,
ChuckB
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #4   Spotlight this post!  
Unread 24-01-2006, 13:15
Andy Brockway Andy Brockway is offline
Engineer
FRC #0716 (Who'sCTEKS)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Falls Village, CT
Posts: 459
Andy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond repute
Re: Interfacing with Allen-Bradley Sensors

According to the parts list and the data sheets, the A-B sensor is NPN. I can understand how to wire a PNP sensor to the RC, but how do you wire an NPN sensor?
__________________
Andy Brockway
Team 716, The Who'sCTEKS
  #5   Spotlight this post!  
Unread 24-01-2006, 14:34
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
Re: Interfacing with Allen-Bradley Sensors

Andy,
I attached a sketch of what should work. The NPN is a sinking device when it is made so I have added a pullup resistor. I have the signal going through an opto-isolator chip.

Opto-isolation is to keep the +12V for the prox isolated from the +5V.

Regards,
ChuckB
Attached Thumbnails
Click image for larger version

Name:	NPN.gif
Views:	119
Size:	3.4 KB
ID:	3896  
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #6   Spotlight this post!  
Unread 24-01-2006, 14:41
Andy Brockway Andy Brockway is offline
Engineer
FRC #0716 (Who'sCTEKS)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Falls Village, CT
Posts: 459
Andy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond reputeAndy Brockway has a reputation beyond repute
Re: Interfacing with Allen-Bradley Sensors

Quote:
Originally Posted by cbolin
Andy,
I attached a sketch of what should work. The NPN is a sinking device when it is made so I have added a pullup resistor. I have the signal going through an opto-isolator chip.

Opto-isolation is to keep the +12V for the prox isolated from the +5V.

Regards,
ChuckB
Thanks Chuck.

Unfortunately I do not have the time to find parts to build custom circuits. I have no electronic support on the team. I will have to leave this for the off season and use one of the Banner sensors from past years.

This looks similar to the FP issue of last year, the vendor did not investigate what the requirements are for plug and play.
__________________
Andy Brockway
Team 716, The Who'sCTEKS
  #7   Spotlight this post!  
Unread 24-01-2006, 15:10
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: Interfacing with Allen-Bradley Sensors

I would have expected an NPN output to be perfectly compatible with the RC digital input, with no additional circuitry required. The inputs will sense a contact closure just fine. They should sense an open-collector NPN transistor the same way. My advice: just connect it, signal to signal, ground to ground.
  #8   Spotlight this post!  
Unread 24-01-2006, 18:24
cbolin's Avatar
cbolin cbolin is offline
Programming & Electrical
FRC #0342 (Burning Magnetos)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Charleston, SC
Posts: 72
cbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to beholdcbolin is a splendid one to behold
Re: Interfacing with Allen-Bradley Sensors

Alan,
If I am right, the NPN prox will send a 12V signal, when not made to the digital input....I am not sure this will work. If I can dig up an NPN I will give it a try.
Chuck
__________________
Team 342 Programming & Control Systems
Good luck and have fun!
  #9   Spotlight this post!  
Unread 24-01-2006, 23: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: Interfacing with Allen-Bradley Sensors

A sensor with an open-collector NPN output will send no voltage. It will provide a path to ground when active, and it will appear as an open circuit when not active. That is exactly what the digital inputs on the robot controller want to see.

If this isn't how you thought it works, consider why you had to add a 12v pullup to your suggested circuit.
  #10   Spotlight this post!  
Unread 31-01-2006, 14:11
zachriggle zachriggle is offline
Registered User
FRC #1940
 
Join Date: Jan 2006
Location: Michigan
Posts: 37
zachriggle is infamous around these parts
Re: Interfacing with Allen-Bradley Sensors

Our IR receiver only has a red, black, white, green, and fully-stripped (ground?) wire. There is NO blue wire.

Any ideas?
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
Sharp IR distance sensors Gdeaver Electrical 13 10-02-2007 20:36
jumper cabling from sensors to controller Gary Dillard Electrical 4 23-12-2005 07:42
Bumper sensors jeffmorris FIRST Tech Challenge 1 02-10-2005 16:20
Getting Fancy with Sensors FadyS. Programming 30 10-03-2004 15:02
Why not analog sensors?? gnormhurst Programming 16 07-03-2004 16:14


All times are GMT -5. The time now is 04:33.

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