Go to Post Here we go again with all kinds of speculation. We can never out guess FIRST. - BobC [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
  #16   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,798
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.
  #17   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.
  #18   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,756
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
  #19   Spotlight this post!  
Unread 12-01-2011, 08:28
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: 239
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?

When the photoswitch is wired accourding to schematics that come with it the DO and LO signal lines will give out either a 0volt or 12volt signal. This was CONFIRMED last night during a bench test.

Bench test hookup as per instructions;
Brown wire to + 12 volts (VCC) from the power distrabution board.
Blue wire to 0 volts (Ground) from PD board.
Two 10K (10,000) ohm resistors (load), have one end connected to VCC.
The other end of one resistor goes to the White wire, call this TP1 and then the last free end of the other resistor goes to the Black wire, call this TP2

Testing;
With a voltmeter set at 20VDC range;
- connect the meter negitive lead to Ground and then one-at-a-time measure the voltage at TP1 or TP2 with the positive lead of the voltmeter.

Results;
WHITE wire at resistor junction will show;
- 0 volts when sensor is OPEN
- +12 volts (VCC) when sensor SEEs an object

BLACK wire at resistor junction will show;
- 0 volts when sensor is OPEN
- +12 volts (VCC) when sensor SEEs an object

So wiring the photowitch as per the instructions WILL give 0 to 12 volt signals which will kill a digital side car.


With that said IT SHOULD be possible to referance the LOAD resistors to +5 volts via the digital side car GPI/O pins. This is for a later test, unless someone else would like to try it.
  #20   Spotlight this post!  
Unread 12-01-2011, 09:07
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
When the photoswitch is wired accourding to schematics that come with it the DO and LO signal lines will give out either a 0volt or 12volt signal. This was CONFIRMED last night during a bench test.
What are the "schematics that come with it"?

Quote:
Bench test hookup as per instructions;
Brown wire to + 12 volts (VCC) from the power distrabution board.
Blue wire to 0 volts (Ground) from PD board.
Two 10K (10,000) ohm resistors (load), have one end connected to VCC.
The other end of one resistor goes to the White wire, call this TP1 and then the last free end of the other resistor goes to the Black wire, call this TP2
Nobody gave any instructions to put resistors to +12 on the outputs. You're not reading what we're saying: just connect the outputs to the Digital Sidecar.

Quote:
So wiring the photowitch as per the instructions WILL give 0 to 12 volt signals which will kill a digital side car.
Why are you so sure that a 12 volt signal will do fatal damage? Have you looked at the Digital Sidecar design?

Quote:
With that said IT SHOULD be possible to referance the LOAD resistors to +5 volts via the digital side car GPI/O pins. This is for a later test, unless someone else would like to try it.
Why are you using "LOAD resistors"? They're not necessary. The Digital Sidecar inputs provide the necessary pullup to 5 volts.
  #21   Spotlight this post!  
Unread 12-01-2011, 12:12
Hugh Meyer's Avatar
Hugh Meyer Hugh Meyer is offline
Registered User
FRC #1741 (Red Alert Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2008
Location: Greenwood Indiana
Posts: 158
Hugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud ofHugh Meyer has much to be proud of
Re: How should we wire the photoswitchs?

Hi Al and Alan,

The data sheet says the low end of the power supply range is 10.8 volts. We often log voltages below that value when the robot is running. Do you think this would be an issue. I was thinking about a converter that would maintain 12 or 24 volts, similar to what is inside the PD board. Alternatively it would be nice to be able to connect it to the 24 VDC that runs the cRio. We tried that last year with some optical sensors and it got called out as illegal by Andy's inspection crew.

Any thoughts on this?

-Hugh
  #22   Spotlight this post!  
Unread 12-01-2011, 12:54
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by Tem1514 Mentor View Post
Bench test hookup as per instructions;
Brown wire to + 12 volts (VCC) from the power distrabution board.
Blue wire to 0 volts (Ground) from PD board.
***Two 10K (10,000) ohm resistors (load), have one end connected to VCC.
***The other end of one resistor goes to the White wire, call this TP1 and then the last free end of the other resistor goes to the Black wire, call this TP2
Tem1514 Mentor,

I have starred the issues above. The Rockwell sensors use what's called an open-collector output.

http://en.wikipedia.org/wiki/Open_collector

I won't go into the gory details. However, the way it works is that it has only two output states - high impedance (or disconnected) and low. What this means is that a pull-up resistor to any (reasonable) voltage may be used to pull up the signal when outputting a "high" (which is the output's high impedance state). In the case of a low, the output will drive the signal low. This allows devices running at different voltages to "talk" to one another.

What others have been trying to say is that this pull-up resistor is included for each input of the digital side car. Thus, one could (conceivably) use any open-collector output source to connect to the DSG regardless of the core voltage the device uses to operate. An extra external pull-up resistor (or "Load" in the datasheet) is not required.

I hope I have shed some light on the situation that has been causing some distension between FIRST participants. Thanks.

- Bryce

P.S. For a BJT (transistor type), the output is called open-collector. It's MOSFET (transistor type) counterpart is called an open-drain output.

|-|-|-|
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #23   Spotlight this post!  
Unread 12-01-2011, 13:29
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by Greg McKaskle View Post
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
Is there an equivalent version of these tutorials for Windriver C++ programming? I tried to find something similar to this nice really concise list of lessons on the WPI website but my net-fu may just be weak.

Also is there an example code using Windriver to do the line following? I saw the question asked earlier but not answered and just wanted to re-ask it.
  #24   Spotlight this post!  
Unread 12-01-2011, 14:20
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 Bryscus View Post
P.S. For a BJT (transistor type), the output is called open-collector. It's MOSFET (transistor type) counterpart is called an open-drain output.
For a mechanical switch, it's called a switch. They all work the same way as far as the Digital Sidecar input is concerned.
  #25   Spotlight this post!  
Unread 12-01-2011, 14:45
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by Alan Anderson View Post
For a mechanical switch, it's called a switch. They all work the same way as far as the Digital Sidecar input is concerned.
Word.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #26   Spotlight this post!  
Unread 12-01-2011, 16:33
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,756
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?

Quote:
Is there an equivalent version of these tutorials for Windriver C++ programming?
The paper on line following and vision are not language specific. Many of the other tutorials are. But you are welcome to watch them anyway.

I've seen good tutorials and training given by WPI, on the ThinkTank site, and by some teams.

Greg McKaskle
  #27   Spotlight this post!  
Unread 12-01-2011, 16:37
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: 239
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?

I’ll be brief here and skip all the electronic information as how it works and what is required to make it work

To connect the photo sensor to the Digital I/O inputs

Wire colors on the sensor are
Brown wire to + 12 volts from the power distribution board (PD).
Blue wire to 0 volts (Ground/Negative ) from PD board.

You now need the White wire on a PWM cable. The Red and Black wire on the PWM cable you do not need so either remove them or insulate so they can not short to anything.

With the White wire in the PWM cable connect it to EITHER the White OR Black wire on the sensor. Plug the PWM cable into the Digital Sidecar (general purpose I/O) side.

The cRIO will now be able to read the sensor as a logical 1 or 0 that may be used as required by your software. You will even be able to see the sensor state on the Classmate diagnostic screen.
  #28   Spotlight this post!  
Unread 12-01-2011, 16:40
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,798
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?

Quote:
Originally Posted by Hugh Meyer View Post
The data sheet says the low end of the power supply range is 10.8 volts. We often log voltages below that value when the robot is running.

Any thoughts on this?

-Hugh
Hugh,
You are correct that the power does sag during a match. However, these are generally short duration pulses. I would expect that the sensors have some power supply immunity built in that will allow them to survive the short pulses. Since I have no robot system experience with these yet, I cannot tell for sure if we will see problems. We can only wait and see what teams report. I will check with Kate this weekend and see if she did any testing.
Andy was correct in calling you on the 24v power. The rules are specific that the 24 volt output can only be used for the Crio and one 24 volt solenoid module. that about maxes out the current ability of the regulator.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #29   Spotlight this post!  
Unread 12-01-2011, 16:49
Bryscus's Avatar
Bryscus Bryscus is offline
EE, CpE
AKA: Bryce B.
FRC #0180 (SPAM)
Team Role: Engineer
 
Join Date: Jan 2009
Rookie Year: 1999
Location: Jupiter, FL
Posts: 173
Bryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud ofBryscus has much to be proud of
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by Tem1514 Mentor View Post
The Red and Black wire on the PWM cable you do not need so either remove them or insulate so they can not short to anything.
Yeah, you COULD do that, but I would still connect ground (black wire) on the PWM cable to the blue wire (if for no other reason than mechanical robustness of the PWM cable). Technically the PDB and DSG share a common ground, but there are slight differences that may give you weird effects. I would connect the ground to the DSG as well just to be on the safe side.

- Bryce
__________________
The opulence of the front office decor varies inversely with the fundamental solvency of the firm.
  #30   Spotlight this post!  
Unread 12-01-2011, 22:55
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 solved my problem. I was wiring the black and white wires to the middle (power) pins on the digital inputs. That was probably causing the flashing yellow/orange light issue I was experiencing before. Works as expected when powered.
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 14:08.

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