Go to Post Off-season events aren't just for gameplay, they should also be a training session for new students and rookie teams. - Bill Moore [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 Rating: Thread Rating: 7 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 25-01-2015, 17:19
Lightfoot26's Avatar
Lightfoot26 Lightfoot26 is offline
Just Out For A Rip, Bud...
AKA: Seth Lightfoot
FRC #1625 (Winnovation)
Team Role: Mentor
 
Join Date: Dec 2009
Rookie Year: 2010
Location: Winnebago, IL
Posts: 120
Lightfoot26 is just really niceLightfoot26 is just really niceLightfoot26 is just really niceLightfoot26 is just really niceLightfoot26 is just really nice
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Quote:
Originally Posted by Al Skierkiewicz View Post
Seth,
Can you tell us which meter you were using and I am guessing you were in continuity mode and not resistance mode? It is possible that there is a component in series with the negative lead on one or more of the control components. Your meter might have reduced the impedance sufficiently to allow the sensor to turn on. Depending on the component and the series impedance, it is possible that the sensors are not receiving sufficient power supply to operate. As I remember, the Banner sensors require a specific power supply voltage.
Al, I guessed that some circuitry internal to the meter was affecting my results but I couldn't quite put my finger on it. I was in continuity mode and I believe it was on one of our Extech MN35's (I am away from the shop and can't confirm this, but I am fairly confident that's the meter we used). It was very odd, but the sensor functioned perfectly with the meter in place and operated as Scott described in the original post when the meter wasn't being used. If it helps, the working Allen-Bradley sensors are the 42EF-D1MNAK-A2 and the Banners we tested were the QS30LV.
__________________
Winnovation Team 1625 (2010-??)
  • Electrical/Programming Captain (2011-2013)
  • Auxiliary Driver (2012-2013)
  • Team Captain (2013)
  • Alumni (Graduated May 2013)
  • Electrical and Programming Mentor (2014-??)
  #2   Spotlight this post!  
Unread 26-01-2015, 08:52
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,763
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: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Seth,
That meter, as most modern meters, apply a current to the probes when in the "diode" mode and then measure the voltage drop directly. In a normal diode or transistor junction, the meter would read 0.7v. The specs say that the current in this meter is limited to 1 ma when in the diode mode.
I have to ask, was the "ON" indicator on the sensor illuminated and the output was not sensed by the roboRio? The RoboRio has a 40k pullup resistor to 3.3 volts which may not be enough to pas current through the Banner sensor.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 26-01-2015, 20:51
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Did some more extensive testing tonight during our meeting.

The Working AB Part number was
42CA-P2MNB-A2

Another non-functioning Banner sensor was QS30LV

We also found the following Banner Switches to also work.
T18SN6FF50

T30SN6FF400

I tested with the sensors connected to the both the 12v 2a power rail, and also wired direct to the same power leads as the roboRIO without any impact on working state.

Both non-working Banner part numbers status lights work as expected, and I tested multiple sensors of each type, Power indicator works, and sensor tripped worked, just would not fire the roborio input.
__________________
The sooner we get behind schedule, the more time we have to catch up.


Last edited by tr6scott : 27-01-2015 at 08:33. Reason: Took out dash in AB part number.
  #4   Spotlight this post!  
Unread 26-01-2015, 22:04
crake crake is offline
National Instruments
AKA: Chris Rake
no team (Athena)
Team Role: Engineer
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 184
crake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Questions:

- What are the properties of the Banner sensor? What clues does the sensor datasheet give you?
- What is the pull up/down configuration of the roboRIO for that particular DIO line? Hint, pg 15 of the user manual - or look above
- What does this circuit look like when "on"? "off"?
- Will this work?
- If not, how can you change the circuit to make this work?

Extra bonus

- Why did hooking up a multimeter make this work?
  #5   Spotlight this post!  
Unread 27-01-2015, 06:14
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

I guess it is no longer accepted to ask "Any hardware guys can explain what is going on, or what power source I should be used to power the sensors so the RoboRIO can sense the ground state?"

If you are not going to explain what is happening, could you at least give some links on where I could go to find the answer?

I'm just trying to figure out if I have spend another $600 on sensors that work with the roboRIO, so we have a functioning bot is the near future.

From your post, you obviously believe there is some way to make these sensors work with the roborio, yet I am no closer to finding that answer.
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #6   Spotlight this post!  
Unread 27-01-2015, 06:27
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Looks like the roborio has 40kOhms to 3.3v pull ups, while the DSC has 10kOhms to 5v pull up.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	49
Size:	48.1 KB
ID:	18004  
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #7   Spotlight this post!  
Unread 27-01-2015, 06:37
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Sensor Cut Sheets, DS18 non-working, T18 working.
Attached Thumbnails
Click image for larger version

Name:	DS18Capture.PNG
Views:	48
Size:	157.9 KB
ID:	18005  Click image for larger version

Name:	T18Capture.PNG
Views:	40
Size:	167.2 KB
ID:	18006  
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #8   Spotlight this post!  
Unread 27-01-2015, 08:17
FrankJ's Avatar
FrankJ FrankJ is online now
Robot Mentor
FRC #2974 (WALT)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Marietta GA
Posts: 1,880
FrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond reputeFrankJ has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

We have not got this far yet so I really have not tested anything. But. The RoboRIO is actually 3.3V (5V compatable) (If I understand what the NI guys said.)& the side car was 5V? Assuming you are not seeing the 0V state, maybe the Banner is not pulling the pin low enough?

Looking at the RoboRIO specification Low state is 0.0 V to 0.8 V. On state for the DS18 is <1.8 volts. So it working looks iffy. On state for the T18 is <1V The RoboRIO spec is on the NI web site.

Although looking at the NI 9403 (CRio DIO module) it has the same 0.8V max for V low Maybe it is more forgiving?
__________________
If you don't know what you should hook up then you should read a data sheet

Last edited by FrankJ : 27-01-2015 at 09:16. Reason: fixed decimal . in on state volts
  #9   Spotlight this post!  
Unread 27-01-2015, 08: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,112
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: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Quote:
Originally Posted by tr6scott View Post
Sensor Cut Sheets, DS18 non-working, T18 working.
The suspicious difference I see is the "ON-state saturation voltage".
DS18: < 1.6V @ 100 mA
T18: < 1V at 10 mA dc, < 1.5V at 100 mA dc

Perhaps the roboRIO input's logic 0 threshhold is too low for the DS18 to satisfy without assistance. When I get to the workshop on Wednesday I plan to do some experimentation.
  #10   Spotlight this post!  
Unread 27-01-2015, 09:06
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Thanks Guys, the delivery on the AB ones are 2/16 from the factory...
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #11   Spotlight this post!  
Unread 27-01-2015, 09:17
crake crake is offline
National Instruments
AKA: Chris Rake
no team (Athena)
Team Role: Engineer
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 184
crake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond reputecrake has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Forgive me, I was channeling my physics professor there for a moment. He never told me the answer directly (team 900, am I right?)

There are a couple of differences between myRIO and cRIO.

myRIO DIO (for the most part - there are exceptions with DIO14 and DIO15 which are 2.2k to 3.3V) have 40k pull up to 3.3V

cRIO DIO with side car has a 10k pull up to 5V AND a weak >20k pull DOWN (internal to an ASIC on the NI 9403 module).

This means that the roboRIO has a far weaker pull up than the cRIO w/side car.

From the datasheets it isn't entirely clear to me how they have NPN circuit configured, but I suspect that if you had a strong pull up your sensor will start working. I agree that the differences in saturation voltages is a strong candidate as to why some sensors work with roboRIO as-configured while others don't.

Anyway, try placing a nice strong pull-up on DIO to 3.3V (say, 1k).
  #12   Spotlight this post!  
Unread 27-01-2015, 09:25
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

For the record, I was testing with DIO6 on the base interface, aka NOT MXP connector.

Thanks for the help.
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #13   Spotlight this post!  
Unread 27-01-2015, 09: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,763
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: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Chris,
I would suggest the same thing, although I think I would start with 10k to limit current. However, I am still trying to analyze why a meter, testing continuity, between two common points should make this work. The lights on the sensor indicate that switching is taking place. I would expect that the output of the Banner sensor is a photo transistor that includes a series resistor for over current protection. However, simply connecting a meter seems to indicate that the power common wiring is not as low impedance as one would expect. I would suggest someone with a scope actually check the operation of the sensor and report your findings.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #14   Spotlight this post!  
Unread 27-01-2015, 10:00
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 505
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

Al, I don't have access to a scope.
Seeing I don't completely understand the circuitry of the sensor, or the roboRio, Let me state what I think I am to do to test.

Wire a resistor (1k, 10k) from the 3.3v+ which looks to be available on the MXP port pin 33, to the signal line of DIO6, along with the sensor output. Sensor still being powered from the 12v 2a rail of the VRM.

Did I follow that right?
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #15   Spotlight this post!  
Unread 27-01-2015, 10:06
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Photoeye's not working-Difference between RoboRIO and Digital Side Card?

I tested using a QS30LV banner sensor on the roboRIO, powering it directly from the PDP, and then later with the VRM. I got the same negative results with each.

Again, the VRM is not isolated.

My banner sensor pulls the digital input rail on the RIO (from it's typical 3.3V) to 0.7V when in the "off" state [not ok]. Reading the banner sensor datasheet, I see it's "off" current is "<200uA". Reading the RIO user manual, the internal pullup in the RIO is 40Kohm. This suggests the sensor pulls about 65uA. (3.3V - 0.065mA X 40K = 0.7 V). This also matches the sensor data sheet (<200uA).

We want the voltage on the RIO digital input at least be above 2V when the sensor is "off". This is the minimum input high threshold of the RIO input. Otherwise we will always get a logic low [not ok] regardless of the beam breaking/or complete.

So... I added a 1K pullup from sensor ouput to the VRM's 5V rail. A 1K pullup to 5V along with the internal 40K pullup to 3.3V thevenizes to 4.958V with 0.975K impedence.
The roboRIO digital input rail only drops to 4.9V (really nothing at all). This follows assuming the sensor drew about 65uA in the off state.

This sounds like a simple case of checking the current leakage of your sensor against the strength of the pullup. Those sensors Scott mentioned that work have an "off" current of "<1uA" according to their data sheets.

Since the cRIO had a 10K pullup to 5V, and ~20K pulldown to ground, that thevenizes to 6.6K pullup to 3.3V. That means the roboRIO digital inputs (0 through 13) have weaker pullups, so having to add an external pullup makes sense to me, even if it is a little annoying

If that's a problem then read the datasheet of your sensors before purchasing. Or just buy some resistors.

I don't understand the poster who connected a continuity meter between sensor output and ground. Why would you do this? This is not a useful test. Also why was the system powered while doing continuity checks? Yes continuity adds current into the system. Probably was enough to makeup for the weak pull, hence the sensor started working. That's not a useful clue, especially when we have datasheets that tell us the impedances of all of our components.
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 09: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