Go to Post This is a risk. Life is full of risks. FIRST is life... therefore, FIRST is full of risks. - Andy Baker [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
  #46   Spotlight this post!  
Unread 16-01-2011, 16:07
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,811
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?

Hugh,
Could you try wiring an electrolytic cap across the power input to the photoswitch? Say 500mmfd? As of now this is an illegal addition, but if it works, we may be able to get the rules changed. Let me know if you are someone else has tried it and the mod works.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #47   Spotlight this post!  
Unread 16-01-2011, 22:04
kstl99's Avatar
kstl99 kstl99 is offline
Registered User
AKA: Kevin
FRC #1922 (Oz-Ram)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Hopkinton, NH
Posts: 404
kstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond reputekstl99 has a reputation beyond repute
Send a message via AIM to kstl99
Re: How should we wire the photoswitchs?

I have two questions. Our three sensors were powered with the black and white wires tied together. Can this destroy them? One does not seem to work properly.

After this error was found we bench tested two of them. We hooked one lead of a digital multimeter and the sensor's brown wire to +12 from the PDB. The sensor's blue wire was connected to the - of the PDB. The other lead of the meter was connected to the sensor's black wire. One showed +12 when the sensor saw or did not see the target although the indicator lights reacted, apparently bad. The second sensor we tested went from +12 to a reading of about 3 volts that drifted up to about 8 volts. Could the second one's strange reading be a result of using the meter as a load? We will test it on the sidecar tomorrow but I am curious about the reading.
__________________
  #48   Spotlight this post!  
Unread 17-01-2011, 01:18
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 kstl99 View Post
I have two questions. Our three sensors were powered with the black and white wires tied together. Can this destroy them?
This should not have caused any damage. Since one output is switched to ground when the sensor is active, and the other output is switched to ground when the sensor is inactive, the combined wires would always have been grounded. Fortunately, grounding an NPN output has no lasting effects.

Quote:
After this error was found we bench tested two of them. We hooked one lead of a digital multimeter and the sensor's brown wire to +12 from the PDB. The sensor's blue wire was connected to the - of the PDB. The other lead of the meter was connected to the sensor's black wire. One showed +12 when the sensor saw or did not see the target although the indicator lights reacted, apparently bad. The second sensor we tested went from +12 to a reading of about 3 volts that drifted up to about 8 volts. Could the second one's strange reading be a result of using the meter as a load? We will test it on the sidecar tomorrow but I am curious about the reading.
Did you have anything else connected to the sensor's output? The black and white wires do not supply current; they can only sink it. The voltage will read zero when the output is active. However, without a pullup resistor (which the Digital Sidecar pins provide), the signal will float to an indeterminate voltage when inactive.
  #49   Spotlight this post!  
Unread 17-01-2011, 07:39
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,811
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?

I agree with Alan that there should have been no damage to the sensor outputs. I would recommend you retest the sensors but instead use the ohm meter function and measure between the blue wire and the outputs. When triggered, this should measure low resistance and when not triggered it should measure high resistance. If they do not match the changes indicated by the LEDs on the sensor then they are defective.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #50   Spotlight this post!  
Unread 17-01-2011, 08:02
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?

Quote:
Originally Posted by Al Skierkiewicz View Post
Hugh,
Your voltage graph is pretty typical of the kind of short duration spikes that occur on the robot. In our experience, the voltage falls actually much lower on occasion. It is not uncommon for it to go down to 4 volts at the input of a speed controller that is pulling a lot of current. It is a good reason to use #10 AWG for drive motors instead of #12 or #14 where the voltage drop across the wire is higher. I will check and see if I can find any data from the manufacturer on how low these sensors actually can operate.
Al,

The supply voltage requirements are 10.7 v to 30 v; hence the performance fluctuations with PDB output when the motors are running under load. Our team posted a question as to whether the rules can be changed to allow use of the regulated 12 v (or 24 v) outputs.
__________________
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
  #51   Spotlight this post!  
Unread 17-01-2011, 08:04
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,811
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?

Jon,
All I can tell you is that we are in the early stages of discussing the problem at this point. More to follow.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #52   Spotlight this post!  
Unread 17-01-2011, 08:27
spooncwru spooncwru is offline
Registered User
FRC #0126
 
Join Date: Jan 2009
Location: Clinton, MA
Posts: 13
spooncwru is an unknown quantity at this point
Re: How should we wire the photoswitchs?

We connected the brown and blue wires to the 12V out on the PD board and the black and white wires (in turn) to the DSC with no results. The voltage output from the sensor is 0.38V for off and 0.76V for on (or vice versa, depending on which wire you use), and doesn't seem to be a big enough difference for the DSC to distinguish.

What we're going to try next is to pull in a relay when the load shifts that will send the 5V supply from the DSC back to the 5V signal. I'll post an update if this works.
  #53   Spotlight this post!  
Unread 17-01-2011, 08:31
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,811
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 spooncwru View Post
We connected the brown and blue wires to the 12V out on the PD board and the black and white wires (in turn) to the DSC with no results. The voltage output from the sensor is 0.38V for off and 0.76V for on (or vice versa, depending on which wire you use), and doesn't seem to be a big enough difference for the DSC to distinguish.

What we're going to try next is to pull in a relay when the load shifts that will send the 5V supply from the DSC back to the 5V signal. I'll post an update if this works.
I have to ask, did you connect the sensor output to a signal input on the DSC? If the robot is powered on and the sensor connection at the DSC is removed, does the pin read 5 volts? If it does not, you may not have power feeding the DSC, you may not be on an input pin, or you may have a wiring error.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #54   Spotlight this post!  
Unread 17-01-2011, 09:29
spooncwru spooncwru is offline
Registered User
FRC #0126
 
Join Date: Jan 2009
Location: Clinton, MA
Posts: 13
spooncwru is an unknown quantity at this point
Re: How should we wire the photoswitchs?

Quote:
Originally Posted by Al Skierkiewicz View Post
I have to ask, did you connect the sensor output to a signal input on the DSC? If the robot is powered on and the sensor connection at the DSC is removed, does the pin read 5 volts? If it does not, you may not have power feeding the DSC, you may not be on an input pin, or you may have a wiring error.
It's a great question, those things should always be checked first. We connected the sensor output to the DIO signal input of the DSC. The DSC has 12V power (verified). We didn't verify the 5V from the power pin of the DIO breakout, but we will tonight. For what it's worth, we're running several speed controllers and servos from that DSC, so we didn't think about checking the DIO power.

Thanks for the feedback!

Sean
  #55   Spotlight this post!  
Unread 17-01-2011, 12:03
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,811
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?

Sean,
The DSC is just a pass through for the DIO module NI9403 but does contain pullup resistors on each line. However, the individual lines are configurable as either input or output in Crio software. i.e. you have to configure as input to receive data. If configured as an output, and the output is low, you may measure the values you stated above. The 9403 is a TTL I/O.

This is from the 9403 data sheet.

Input Voltage –0.25 to 5.25 V

High, VIH 2.2 V min

Low, VIL 0.8 V max

Hysteresis, VH 0.2 V min
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #56   Spotlight this post!  
Unread 17-01-2011, 14:18
lu190034052 lu190034052 is offline
Registered User
FRC #0005
 
Join Date: Dec 2010
Location: canada
Posts: 6
lu190034052 is an unknown quantity at this point
Re: How should we wire the photoswitchs?

could i connect all of the 3 wires(brown, blue, black/white) into the sidecar? which means use the whole pwm cable instead of connect the power wires to the PDB. And how can i check if the signal is back? if there a basic labview VI to check it?
  #57   Spotlight this post!  
Unread 17-01-2011, 15:18
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,811
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 lu190034052 View Post
could i connect all of the 3 wires(brown, blue, black/white) into the sidecar? which means use the whole pwm cable instead of connect the power wires to the PDB. And how can i check if the signal is back? if there a basic labview VI to check it?
No,
The sensor requires 12 volts and the DSC will only give you 5 volts at the PWM connector array. If you choose to use PWM cable to connect signals to the DSC, I recommend you snip the red wire (+5 volts) at the cable mounted PWM cable connector, pull the wire back an inch up the ribbon and cut it off. Better still is to remove the +5 pin in the cable mounted PWM connector and pull the wire back an inch and cut it off.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #58   Spotlight this post!  
Unread 17-01-2011, 17:49
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: How should we wire the photoswitchs?

In lieu of the general confusion there seems to be (or has been) with the way the NPN output on the photoswitch works with the digital side car, I thought this little guide I wrote a while ago may be of some help.

http://www.mattkrass.com/?page_id=763

It explains the use of pull-up resistors (such as used in the digital side car) with sensor outputs like this, as well as pull-down resistors for other uses. While not very specific to this situation, I hope it can be of some help.

If there is interest I can expand on this material and write up a whitepaper on Digital I/O as a primer for teams.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #59   Spotlight this post!  
Unread 18-01-2011, 07:17
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,811
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?

Matt,
Nice tutorial. It should be of use to anyone who is wondering what pullup resistors do and what logic levels are needed to for the DSC.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #60   Spotlight this post!  
Unread 19-01-2011, 21:56
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 756
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: How should we wire the photoswitchs?

Since I have now sucessfully got the Auto Mode line tracker working I thought I'd just clarify one thing...
We know there are two outputs fom the sensor Normally Open (Black) and Normally Closed (White).

I've found that the Sample Auto code that comes with the Robot template assumes a Normally Closed input, so if possible, wire the sensor's White wire to the White PWM wire (makes sense in hindsight).

If you connect the Black wire instead, then the logic in the sample program is inverted and there is no way for it to track. In my case, this is what I had, so I just inverted the logic inside the code and it works fine.

So:

Sensor Brown +12V
Sensor Blue 0V (GND)
Sensor White PWM White to DSC
Sensor Black No Connect.

Phil.

I also verified that the Flashing Orange LED means you have an output connected to a power source (in my case the PWM cable was offset by one pin and incorrectly connected to the +5V pin instead of the input pin). Smart little sensors those.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
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 18: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