Go to Post I've come to the conclusion that the only way Pat's awesomeness can be explained is.... Pat Fairbank is a cookie. - Jonathan Norris [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 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.
  #2   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.
  #3   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,770
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.
  #4   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
  #5   Spotlight this post!  
Unread 11-01-2011, 21:24
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,770
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?

Charlie,
The Brown lead is connected to a positive (+12 V) output of the PD through a 20 amp breaker. The Blue lead is connected to the associated negative output of the PD. The White Lead and the Black Lead should be connected to two different digital inputs on the Digital Side Car depending on how you choose to use the device. If you choose to use a PWM cable to connect to the DSC, please cut the red wire as close to the PWM connector as you can, pull back the red wire back at least one inch and cut off the end. You may then cutoff the other end of the PWM cable, connect the black wire of the PWM to the negative wiring (Blue & Black) of the power and sensor. The white or signal wire in your PWM cable can then be connected to the White or Black lead on the sensor. The resistor loads shown in the drawing are not needed as they are provided internal to the digital inputs on the Digital Side Car. You may connect several sensors in parallel to share power supply connections only. All connections need to be insulated and soldering is recommended to keep wiring together.
The loads shown on the Rockwell drawing are indicative of relays or solenoids that are part of a control system and operate at the same voltage as the power supply, in this case 12 volts.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.

Last edited by Al Skierkiewicz : 11-01-2011 at 21:43.
  #6   Spotlight this post!  
Unread 11-01-2011, 23:32
andreboos andreboos is offline
Registered User
FRC #3021 (The Agency)
Team Role: Programmer
 
Join Date: Dec 2009
Rookie Year: 2010
Location: San Diego
Posts: 132
andreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the roughandreboos is a jewel in the rough
Re: How should we wire the photoswitchs?

I've wired the sensor with:

Blue: +12v from PDB
Brown: Ground on PDB
White: a DS signal pin
Black: another DS signal pin

When it receives power the orange and yellow lights alternate. Is there any documentation about the status lights? I read the document regarding Teach mode but I don't think that applies to our sensor (no push-button that I can find).

I think my code is correct but I'd like to see example code (Didn't they specifically mention that in the kickoff broadcast?). I can't find any bundled with WindRiver.
  #7   Spotlight this post!  
Unread 21-01-2011, 11:18
DFZXA DFZXA is offline
Registered User
FRC #3055 (Furious George)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Minnesota
Posts: 60
DFZXA is infamous around these parts
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by andreboos View Post
I've wired the sensor with:

Blue: +12v from PDB
Brown: Ground on PDB
White: a DS signal pin
Black: another DS signal pin

When it receives power the orange and yellow lights alternate. Is there any documentation about the status lights? I read the document regarding Teach mode but I don't think that applies to our sensor (no push-button that I can find).

I think my code is correct but I'd like to see example code (Didn't they specifically mention that in the kickoff broadcast?). I can't find any bundled with WindRiver.
Did you ever fix the alternating orange and yellow alternating lights? We have two sensors working properly just one does this weird alternating thing
  #8   Spotlight this post!  
Unread 21-01-2011, 11: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 DFZXA View Post
Did you ever fix the alternating orange and yellow alternating lights? We have two sensors working properly just one does this weird alternating thing
Yes, he did.
  #9   Spotlight this post!  
Unread 21-01-2011, 15:28
tommy0019's Avatar
tommy0019 tommy0019 is offline
Registered User
FRC #2957
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 23
tommy0019 is an unknown quantity at this point
Re: How should we wire the photoswitchs?

we are trying to get our line sensors to work. we have it wired as:

sensor blue- 0v
Sensor brown- +12v
Sensor white- white pwm to signal pin on digital i/o section of the DSC.
sensor black- nothing

we were trying to run the autonomous mode from a new robot code project and it only runs a pre-programmed drive and doesn't respond to the sensors. then we put a jumper on the 2 power pins for the digital i/o side and when we enabled the autonomous mode nothing happened at all.

a note: our sensors are showing green when not by anything and orange and red when over the reflective tape. i heard the red meant it was over it's threshhold. what threshhold is that and is it fixed with the sensitivity knob or not?

I am asking if anyone could give any advice so we can get our line sensors working correctly.
  #10   Spotlight this post!  
Unread 21-01-2011, 15:35
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,800
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by tommy0019 View Post
then we put a jumper on the 2 power pins for the digital i/o side...
The Digital I/O side doesn't have 2 power pins or use jumpers.

Could you be connecting them to the PWM side (all white connectors)?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 21-01-2011, 16:04
tommy0019's Avatar
tommy0019 tommy0019 is offline
Registered User
FRC #2957
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 23
tommy0019 is an unknown quantity at this point
Re: How should we wire the photoswitchs?

The side of the DSC that is labeled Digital i/o has 14 sets of 3 pins(sig, pwr, -) we have the sensors connected as so all with the white pwm cables.

right to digital i/o 3
center to digital i/o 2
left to digital i/o 1

There is a set of two pins right next to those 14 that are labeled pwr and (-). i am guessing that they supply power to the digital i/o pins. we put a volt meter on the pins and the supplied power when the jumper was connected.
  #12   Spotlight this post!  
Unread 21-01-2011, 16:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,800
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by tommy0019 View Post
There is a set of two pins right next to those 14 that are labeled pwr and (-). i am guessing that they supply power to the digital i/o pins. we put a volt meter on the pins and the supplied power when the jumper was connected.
Those pins are only an extra ground/5v set for devices that just need power.
Do not use a jumper to short those.

The Digital I/O was shorted out by that...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 21-01-2011 at 16:14.
  #13   Spotlight this post!  
Unread 21-01-2011, 16:15
tommy0019's Avatar
tommy0019 tommy0019 is offline
Registered User
FRC #2957
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Minnesota
Posts: 23
tommy0019 is an unknown quantity at this point
Re: How should we wire the photoswitchs?

those are the correct place to put them, right(without the jumper)?

do you have any ideas as to why our robot isn't responding to the sensors?
  #14   Spotlight this post!  
Unread 21-01-2011, 16:25
DFZXA DFZXA is offline
Registered User
FRC #3055 (Furious George)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2007
Location: Minnesota
Posts: 60
DFZXA is infamous around these parts
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by Alan Anderson View Post
Yes, he did.
So what'd he do then? Our robot just turns randomly in a cricle when we start the program and I'm not sure if this is the problem.
  #15   Spotlight this post!  
Unread 12-01-2011, 01:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: How should we wire the photoswitchs?

There are some tutorials on the lower right of http://decibel.ni.com/content/docs/DOC-8923. The line following one will review how the LEDs and trim knob are used.

Greg McKaskle
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 12:15.

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