Go to Post Most importantly, get some sleep. - Libby K [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-05-2012, 22:59
Steven Sigley's Avatar
Steven Sigley Steven Sigley is offline
Electrical Mentor for Team 701
FRC #0701 (RoboVikes)
Team Role: Electrical
 
Join Date: Oct 2008
Rookie Year: 2007
Location: NorCal
Posts: 293
Steven Sigley is a name known to allSteven Sigley is a name known to allSteven Sigley is a name known to allSteven Sigley is a name known to allSteven Sigley is a name known to allSteven Sigley is a name known to all
Re: FIRST: take advantage of your mentors expertise

Quote:
Originally Posted by de_ View Post
Imagine if a robot would reboot in a few seconds.
Please. Please make this happen. It'd be a dream come true.
__________________
2013 Colorado Regional Champions!
2013 Sacramento Regional Champions!
Reply With Quote
  #2   Spotlight this post!  
Unread 02-05-2012, 10:42
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,623
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: FIRST: take advantage of your mentors expertise

As I have offered with the electronic motor controls and with LinuxBoy's CAN terminators. Anyone that requires a little prototype help with this please let me know.

The issue of sample speed plays to how fast a 'glitch' or transient you can catch. For example let's say that you hit a bump and your D-Link AP radio connector opens up for 1uS. If you happened to take a sample before or after you might not see that happen. It's an effect of taking discrete samples and it's part of quantization.

The idea of holding off capturing huge amounts of data, and limiting the duration of the data you do capture by time is a very good idea. It means that you could sample more frequently during the time you do sample because you suspect you have a problem you definitely want to catch. This also means that you limit the amount of pointless stuff you need to see later.

Also if you have a sample buffer fast enough to collect data very quickly there's nothing stopping you from using it slowly as well if you desire. In that way if you wanted you could still capture all of the voltage you monitor throughout the duration of a match without additional hardware. You just need to be able to adjust the trigger and sample speed.

Yes these terms are all familiar to people that use oscilloscopes.

Last edited by techhelpbb : 02-05-2012 at 10:50.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-05-2012, 13:46
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
Re: FIRST: take advantage of your mentors expertise

re sampling: I'd thought capturing power line transients might best be done with a custom analog over voltage or under voltage threshold circuit that thats trigger a counter that measures the length of the glitch and stops when the power returns to within normal bounds. The logger gets interrupted and it reads the count. Might need a little distributed PIC to do it. The threshold under voltage or over voltage threshold would be such that could or would cause corruption, hangs or reboots in the CRio and other critical devices. The logger would record a "device Bridge PS undervoltage for X ms" event.

Overvoltage detection would immediately identify situations where the bridge or camera were accidently powered with 12v, both of which happened to us this year. Also our Crio rebooted a number of times, cause never absolutely confirmed.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-05-2012, 13:51
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,623
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: FIRST: take advantage of your mentors expertise

Quote:
Originally Posted by de_ View Post
re sampling: I'd thought capturing power line transients might best be done with a custom analog over voltage or under voltage threshold circuit that thats trigger a counter that measures the length of the glitch and stops when the power returns to within normal bounds. The logger gets interrupted and it reads the count. Might need a little distributed PIC to do it. The threshold under voltage or over voltage threshold would be such that could or would cause corruption, hangs or reboots in the CRio and other critical devices. The logger would record a "device Bridge PS undervoltage for X ms" event.

Overvoltage detection would immediately identify situations where the bridge or camera were accidently powered with 12v, both of which happened to us this year. Also our Crio rebooted a number of times, cause never absolutely confirmed.
I completely agree.

That's what I already made a set of modules with op-amps that have a voltage reference, a voltage divider and a latch at the output (a latching voltage comparator).

You set them for the voltage you want to consider too high, or too low and when it hits that point the output sets and stays that way till you clear it.

You can feed that output into the cRIO, drive an LED with it, or connect it to something like a relay as a breaker.

The fancy version uses digital pots (R2R ladders) and is actually calibrated and self testing from a small hand held unit I made.

I originally created them because I kept getting told Team 11's robot mounted Jaguar electronic motor controls had power quality issues last year. So I finally got fed up and made something fast enough (and practical to use on a moving robot) to demonstrate the truth or falsehood of the statement. It wasn't true.

Obviously there is a time for the output to transition, so there is a response time, but it's *much* smaller than for a data logger, and approaches the sort of response time you get from an oscilloscope. Really I could actually do this with discrete transistors or on a wafer...but this is a kid's toy.

The reason I didn't set the circuit up to time the length of the glitch is that it's once again a quantization issue. Even if a small cheap PIC looks at the output of the voltage comparator if the glitch is fast enough it just disappears. With the latch you can force a really short glitch to show up...even if your time counter resolution is too low. So what if your counter misrepresents a 0.1uS glitch for something longer? It's still a glitch and it did not slip by.

Last edited by techhelpbb : 03-05-2012 at 14:00.
Reply With Quote
Reply


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 15:28.

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