Go to Post Our "gracious professionalism" credo insists that we make decisions that are based solely on the desire to inspire and recognize science and technology using robot construction and competition as a vehicle. - Al Skierkiewicz [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 08-02-2012, 23:08
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Banner Signal Issue

So this year, we've decided to use Banner's QS18VN6D optical sensor to detect the presence of balls in our acquirer. Sadly, it doesn't work as of yet.

We know that the sensor itself works for two reasons
1 - the yellow light turns on and off in response to an object in front of the sensor
2 - when the oscilloscope is hooked up as per the included diagram*, it reads high and low values (the white lead is low by default; it turns high when something is in front of it)

However, the problem is that the signal bizarrely doesn't exist
1 - when a multimeter is hooked up to read the circuit as indicated*, the voltage across signal and ground is a constant 0
2 - the computer sees constant "TRUE", likely because of this^ problem.

When on the robot, the power supply is a 12V, 20A output from the PDB; the signal is hooked up to, obviously, the Digital Sidecar, by connecting the "sensor in" as seen here* to a Digital I/O.


*Sensor in would be the signal lead on the scope/pos lead on the meter, sensor out would be the ground leads on the scope and meter.

Does anyone have any ideas as to why this isn't working**? Thanks.

** On an afterthought, I just remembered that at one point, we accidentally hooked up the Digital I/O pin from the sensor to the 5V power instead of the signal (it is now appropriately plugged into the signal pins) - could this have fried the sensor, somehow? I doubt it, since the sensor operates up to 30V, but I'm just tossing it out there.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners

Last edited by slijin : 08-02-2012 at 23:42.
  #2   Spotlight this post!  
Unread 08-02-2012, 23:26
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Banner Signal Issue

Based on the datasheet you linked to, this is an NPN (aka sinking) output. You would want to connect the collector to your digitial I/O line so the sensor pulls it down or lets the pullup resistor pull it up.

Yes, there may be some minimum voltage it operates at, and 5V might not work. However, based on your schematic, I think you have it hooked up wrong. Refer to the wiring diagrams on page 5 of the datasheet. You want to apply 12V across blue and brown. Then, using a suitable pullup resistor (the digital sidecar has pullups on its inputs), connect to either black or white. You should see the state of that signal change when you present an object versus when an object is not present.

You can use 5V on the pullup (the open collector output will just pull it down), but you need 12V across blue/brown to give the light and detector circuitry the appropriate supply voltage.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000

Last edited by jee7s : 08-02-2012 at 23:33. Reason: corrected the wire colors for the supply voltage
  #3   Spotlight this post!  
Unread 08-02-2012, 23:27
Ninja_Bait's Avatar
Ninja_Bait Ninja_Bait is offline
Former Prez of Making Things Go
AKA: Jake Potter
FRC #0694 (StuyPulse)
Team Role: Alumni
 
Join Date: Apr 2010
Rookie Year: 2008
Location: New York
Posts: 650
Ninja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond reputeNinja_Bait has a reputation beyond repute
Re: Banner Signal Issue

Quote:
Originally Posted by slijin View Post
** On an afterthought, I just remembered that we accidentally hooked up the Digital I/O pin from the sensor to the 5V power instead of the signal - could this have fried the sensor, somehow? I doubt it, since the sensor operates up to 30V, but I'm just tossing it out there.
Just to be sure, Sam, that was fixed, right?
__________________
You can't fix something that isn't broken... but you can always break things that aren't fixed!

  #4   Spotlight this post!  
Unread 08-02-2012, 23:36
eugenebrooks eugenebrooks is offline
Team Role: Engineer
AKA: Dr. Brooks
no team (WRRF)
 
Join Date: Jan 2004
Rookie Year: 2001
Location: Livermore, CA
Posts: 601
eugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond reputeeugenebrooks has a reputation beyond repute
Re: Banner Signal Issue

xx

Last edited by eugenebrooks : 08-02-2012 at 23:38.
  #5   Spotlight this post!  
Unread 08-02-2012, 23:39
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Banner Signal Issue

Quote:
Originally Posted by jee7s View Post
Based on the datasheet you linked to, this is an NPN (aka sinking) output. You would want to connect the collector to your digitial I/O line so the sensor pulls it down or lets the pullup resistor pull it up.

Yes, there may be some minimum voltage it operates at, and 5V might not work. However, based on your schematic, I think you have it hooked up wrong. Refer to the wiring diagrams on page 5 of the datasheet. You want to apply 12V across blue and brown. Then, using a suitable pullup resistor (the digital sidecar has pullups on its inputs), connect to either black or white. You should see the state of that signal change when you present an object versus when an object is not present.

You can use 5V on the pullup (the open collector output will just pull it down), but you need 12V across blue/brown to give the light and detector circuitry the appropriate supply voltage.
I wired in a pullup resistor as per the spec sheet diagram across the white lead (as indicated in the diagram I posted). The power supply is 12V, as the operating voltage of the sensor is 10-30V (as I also noted).

Thank you for your input, although those problems you point out are not the ones I am having.

Jake, that issue has been resolved, but I can't be sure if such a hookup would or wouldn't have lasting effects on the sensor itself.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners

Last edited by slijin : 08-02-2012 at 23:41.
  #6   Spotlight this post!  
Unread 08-02-2012, 23:42
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Banner Signal Issue

If you can describe a bit more of that scope flicker, it may lend an explanation.

Here's a possibility: If you get rapid flicker when the object is present, then it's probably a supply issue where the system can operate with little load (i.e. it's not pulling current through your 1K pullup). Once it has to switch, however, the current draw causes a power dropout. This could be either the internal circuitry going undervoltage or your supply line going undervoltage. Once the unit loses power, the supply returns to the nominal condition, it turns on, and it tries to signal again, repeating the power loss. This would explain a fast flicker with an object constantly presented to it.

As your teammate said, verify your supply voltages and report back.

As a cautionary note, I'm not sure if the DSC is 12V tolerant. Those 5V pullups on the DSC PCB would do the job you want.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000
  #7   Spotlight this post!  
Unread 08-02-2012, 23:48
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Banner Signal Issue

I hadn't realized the implications of that last comment in your first post.

Referring back to my earlier comments about hooking it up wrong, I was referring to your application of 5V to the sensor line.

When that connection was made, you hooked up voltage directly to the collector of the NPN transistor at the output. When the sensor switched to indicate the object was present, there was no resistor to limit current.

So, yes, you may have fried the output by exceeding the power dissipation spec of the output transistor (which isn't in the datasheet...but I'm sure is not large). If you have an untouched sensor, try hooking it up and see if you get the same result. The flicker you observe could be that potentially damaged transistor.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000
  #8   Spotlight this post!  
Unread 08-02-2012, 23:48
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Banner Signal Issue

Quote:
Originally Posted by jee7s View Post
If you can describe a bit more of that scope flicker, it may lend an explanation.

Here's a possibility: If you get rapid flicker when the object is present, then it's probably a supply issue where the system can operate with little load (i.e. it's not pulling current through your 1K pullup). Once it has to switch, however, the current draw causes a power dropout. This could be either the internal circuitry going undervoltage or your supply line going undervoltage. Once the unit loses power, the supply returns to the nominal condition, it turns on, and it tries to signal again, repeating the power loss. This would explain a fast flicker with an object constantly presented to it.

As your teammate said, verify your supply voltages and report back.
Sorry if I wasn't clear on that point; by "flickering" I meant to say that the sensor appropriately responds to the presence of something within its field of vision by turning on and off. The latter issue has since been rectified (it was inducing an output overload signal, which is how I noticed it).

Quote:
Originally Posted by jee7s View Post
As a cautionary note, I'm not sure if the DSC is 12V tolerant. Those 5V pullups on the DSC PCB would do the job you want.
The RightSight sensors last year were wired in a similar fashion; their power was supplied by the PDB, and their outputs directly into Digital I/O, so I'm inclined to believe that this isn't necessarily the case, though I could be wrong. (In that event, would I have to wire in voltage converters or something similar? - that seems excessively complex to me).

What exactly do you mean by the 5V pullups on the DSC PCB? emphasis mine.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #9   Spotlight this post!  
Unread 08-02-2012, 23:49
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: Banner Signal Issue

Don't use a resistor when connecting it to the robot. Just give it 12 volt power on the blue wire, common on the brown one, and run either white or black to a digital input signal pin on the Digital Sidecar. There's already a pullup to 5 volts on that pin, and it will read the sensor's output just fine as it is.
  #10   Spotlight this post!  
Unread 08-02-2012, 23:52
jee7s jee7s is offline
Texan FIRSTer, ex-frc2789, ex-frc41
AKA: Jeffrey Erickson
FRC #6357
 
Join Date: Nov 2007
Rookie Year: 1997
Location: Dripping Springs, TX
Posts: 319
jee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond reputejee7s has a reputation beyond repute
Re: Banner Signal Issue

Quote:
Originally Posted by slijin View Post
What exactly do you mean by the 5V pullups on the DSC PCB? emphasis mine.
PCB = printed circuit board. By that I refer to the guts of the DSC, if you removed the blue housing. As Alan pointed out, there are already pullup resistors there on that board, so you shouldn't need anything external.
__________________

2013 Alamo Regional Woodie Flowers Finalist Award Winner
2012 Texas Robot Roundup Volunteer of the Year
Texas Robot Roundup Planning Committee, 2012-present
FRC 6357 Mentor, 2016-
FRC 2789 Mentor, 2009-2016 -- 2 Golds, 2 Silvers, 8 Regional Elimination Appearances

FRC 41 Mentor 2007-2009
FLL Mentor 2006
FRC 619 Mentor 2002
FRC 41 Student 1998-2000
  #11   Spotlight this post!  
Unread 09-02-2012, 00:01
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: Banner Signal Issue

Quote:
Originally Posted by Alan Anderson View Post
Don't use a resistor when connecting it to the robot. Just give it 12 volt power on the blue wire, common on the brown one, and run either white or black to a digital input signal pin on the Digital Sidecar. There's already a pullup to 5 volts on that pin, and it will read the sensor's output just fine as it is.
And to think I'd just remembered that last year's sensors had no pullups when they were wired... >_<

Thanks; I'll be sure to make sure this gets done tomorrow.
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #12   Spotlight this post!  
Unread 09-02-2012, 11:30
Shaun Coon's Avatar
Shaun Coon Shaun Coon is offline
Registered User
FRC #2487
 
Join Date: Jan 2012
Location: New York
Posts: 45
Shaun Coon is a jewel in the roughShaun Coon is a jewel in the roughShaun Coon is a jewel in the roughShaun Coon is a jewel in the rough
Re: Banner Signal Issue

So you hook the Brown+ and Blue - up to the 12 V powerdist. Board with a 20 Amp breaker and then you connect the white wire to the white wire of a PWM and then to the digital Sicard
Blue -> ( - )
Brown -> PWR
White or Black -> SIG
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:40.

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