Go to Post More teams will want to join, peers who are not on the team will understand the program better, television will become interested in FIRST again, sponsors will be easier to get, cancer will be cured, the Israelis and Palestineians will live in harmony, and we will have world peace. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 02-03-2012, 19:02
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
Control System Design Contest Proposal

Background: In this thread about Jaguars vs Victors I suggested a design competition for FRC teams to design a new integrated control system to replace the current one, which many feel is too disjointed and complicated. That discussion started to dominate the thread and I decided to form one here to hold that discussion, the relevant part of my original post is below:

Personally, I'd really like to see FIRST open up the control system with a design competition. Let teams design and submit control system ideas, designed around what teams want/need and their resources and let the FIRST community and it's thousands of brilliant minds weigh in. We already have a competition to design robots in the winter and spring, why not control system summer and fall?

While the guys at NI and TI have done an admirable job, I do agree the current system is an amalgam of several good ideas with bits hacked together to work in a manner that's.... well let's go with frustrating. But those guys were small in numbers, and probably did not have all that much to work with. I sincerely think the mentors and students of FIRST stand a good chance of coming up with an effective, workable solution to our somewhat oddball use case. Even if only because of the sheer amounts of brainpower we have at our disposal.

So, what have you guys got? Maybe we should start with a list of basic requirements for the system, I've quoted part of Al's suggested requirement from the original thread:

Quote:
Originally Posted by Al Skierkiewicz View Post
So here is my list...
1. Out of the box it has to work for rookies running default software or at least is easily loaded with default software without any other programming in less than one half hour.
2. Can control Jags or Victors, Spikes or whatever control devices someone wants to include to drive motors and such.
3. Can run down to 4 volts input.
4. Has imbedded wireless controls of some sort.
5. Has sufficient software power to process sensors, cameras, etc. and development includes C++, Java, Labview or any other development software in general use.
6. Has at least a serial port and an ethernet port, several would be ideal.
7. Has sufficient I/O for at least 8 or 16 PWM, relay, solenoid, digital and analog ports and/or can be simply expanded for the I/O needed (i.e. plugin modules).
8. I/O is easily accomplished without sophisticated tooling.
9. Is a mature product or product line available to all teams, domestic and foreign.
10. Always of interest is something that is low cost, or is manufactured by a company interested in donating sufficient quantities to help our teams keep costs low.

Please keep in mind that team expansion is increasing by leaps and bounds and could easily reach 8-10,000 in this decade. Please feel free to add to this list your requirements.
and then my two cents:

Quote:
Originally Posted by Matt Krass View Post
On top of that, a big requirement from me is that it be more robust, and i don't mean in terms of environmental conditions. I mean high school students plugging it in backwards and short circuiting it and getting swarf (still laughing) in it. I think the blue bits are quite well designed, based on the fact that my students haven't managed to kill them yet .
Let the discussion begin!

Matt
__________________
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!)
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2012, 19:55
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,620
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: Control System Design Contest Proposal

(Moved from old topic...)

I think I'd like to see:

1. A good alarm on the robot that traps any voltage drops below a specific threshold and reports it when something bothers to check (I built one so I know this can be done and how handy it is). Mind you, not merely an analog to digital converter, a latched alarm that doesn't depend on being checked.

2. The ability to separate the power for the control logic from the power for the motors (at least for troubleshooting, I can power all the Propellers on my test frame with a pair of D cell batteries if I wanted).

3. The ability to store data on the robot that will survive a complete power down (already built that with flash). Why? Cause when things go nuts you can read that memory and unlike with the WiFi you don't have the overhead of reliable TCP/IP and buffering up.

4. The ability to check the quality of the link from the field control (that's a ghost that's caused enough headaches). Again, probably gonna need the memory for that....cause right now I can't tell you after the robot powers down if you lost the field.

5. I2C, SPI or serial (emulated is fine, but with completely functional examples for the software).

6A. Circuit protection that is consistent. So a 40A breaker that actually trips at 40A and does so over and over...not once at 40A, once at 30A, once at 20A and then maybe will be like that for a while.

or

6B. A latching current monitoring system that can tell you if you trip the breaker from over current.

(I've already built 6B and frankly so can anyone...look at the TI appnote for the current monitor in the black Jaguar.)

7. This is pure programming and controller design:

It must be able to do more than one thing at a time...and not because your a wizard that can hand punch player piano roles (though if you can get your robot to run on player piano roles post it LOL). It is surprising difficult to thread with the cRIO as configured for FIRST...it does work...it took a while to figure it out.

Course the Parallax Propellers eliminate this concern a whole different way...you just keep adding chips and cogs until you have enough and they can all run at the same time (communication between them is a bit more tricky because of it).

8. The connectors have to latch. There's nothing quite like a great robot failing because a poor connector slipped off.

9. Documentation. I know that the reason no one will find the blue prints for human kind's greatest creations is because someone drew them on napkins during lunch and then left the used napkins in the garbage, but we need people to learn this stuff and guidance from the people with the most experience with it is always welcome. Leverage technology and use a Wiki if you must. Also, JavaDocs with notes like "does not work" is not what I mean.

10. It has to be cheap enough to ship to all the teams quickly and safely, and it has to be economical enough to send teams a baseline system within the existing funding constraints (the new cRIO has lowered the bar on the total package price by a fair bit, thanks NI).

11. >NO< undocumented connectors. You too can keep the smoke in my ears and in your electronics. Just make sure people understand what connects to what clearly. Oh and send at least test cables for something like the Jaguar with a bill of materials.
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2012, 19:56
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,620
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: Control System Design Contest Proposal

(Partially moved the contextually relevant parts from old topic...)

I think that video capability should be optional (that's why it didn't bother me when I built my Parallax Propeller based test platform I have that the Parallax Propeller's USB host capability is sort of slow for webcam use...I figured a laptop would do it if it was needed...sort of like you add a compressor and tank for pneumatics if you want them). I think if you can remove features you don't want...and are resource expensive like this...the more variance you can have in what you use that weight savings for elsewhere. Some teams might not want to tackle the challenge of video processing (even though libraries like PyGames are making that easy as Py )

So I would think flexibility....but not at the expense of reliability or practicality should be a priority of some sort.

Last edited by techhelpbb : 02-03-2012 at 20:06.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-03-2012, 20:30
Aren Siekmeier's Avatar
Aren Siekmeier Aren Siekmeier is offline
on walkabout
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: 대한민국
Posts: 735
Aren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond reputeAren Siekmeier has a reputation beyond repute
Re: Control System Design Contest Proposal

I see no mention of a system that is quick to boot and establish communications. For whatever the reasons may be (there a few threads discussing it), the current 802.11 scheme takes a while and has plenty of issues besides. So if that means scrapping 802.11 for a proprietary radio link IFI-style or modifying the wifi setup to streamline things, whatever. The general requirement is quick boots and quick and rock solid connections.

Also it'd be nice if the controller booted faster...
Reply With Quote
  #5   Spotlight this post!  
Unread 02-03-2012, 20:44
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,620
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: Control System Design Contest Proposal

Quote:
Originally Posted by compwiztobe View Post
I see no mention of a system that is quick to boot and establish communications. For whatever the reasons may be (there a few threads discussing it), the current 802.11 scheme takes a while and has plenty of issues besides. So if that means scrapping 802.11 for a proprietary radio link IFI-style or modifying the wifi setup to streamline things, whatever. The general requirement is quick boots and quick and rock solid connections.

Also it'd be nice if the controller booted faster...
Thanks for reminding me of my single greatest issue with the current control system.

Code needs to download into the system *quickly* and 2 minutes is not quick enough.

It might also be nice if you can download code back from the robot.

Last edited by techhelpbb : 02-03-2012 at 20:48.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-03-2012, 20:45
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: Control System Design Contest Proposal

Quote:
Originally Posted by compwiztobe View Post
I see no mention of a system that is quick to boot and establish communications. For whatever the reasons may be (there a few threads discussing it), the current 802.11 scheme takes a while and has plenty of issues besides. So if that means scrapping 802.11 for a proprietary radio link IFI-style or modifying the wifi setup to streamline things, whatever. The general requirement is quick boots and quick and rock solid connections.

Also it'd be nice if the controller booted faster...
I'm not sure, but I think there was a point in there about boot up time

I agree, Wi-Fi has too much overhead in general for this setup, including the time for the router and everything to start up, connect together... etc. I'd really actually like to see an 802.15.4 based system, but I'm not sure it has the bandwidth for the full video streaming everyone is spoiled by now (In my day we didn't have streaming video, we drove our robots with our eyes! ) but something could almost certainly be worked out. Maybe there are Wi-Fi based solutions that are simply faster and more streamlined?

I do think the system shouldn't take so long to start up, but I'm spoiled by the IFI system that just started running, so perhaps the boot up time isn't as long as it feels to me.

I've transplanted my comments from the other thread here as well:

Quote:
Originally Posted by techhelpbb
2. The ability to separate the power for the control logic from the power for the motors (at least for troubleshooting).
The old control system had a back up battery (7.2V) that was added specifically to prevent motors from browning out the controller and radio. The boost converter on the PD board we have now does a pretty good job of protecting the controller from blackouts.

If you meant just to have them connected to separate power so you can turn off one without the other, then just use a separate battery and PD board to run the controls and tie the negatives together.

Quote:
Originally Posted by techhelpbb
4. The ability to check the quality of the link from the field control (that's a ghost that's caused enough headaches).
You can do this by monitoring the wi-fi signal strength and ping latency, but those aren't great indicators, but if we're going to be stuck so many layers away from the actual radio hardware, we don't have any accurate link integrity data.

Quote:
Originally Posted by techhelpbb
6A. Circuit protection that is consistent. So a 40A breaker that actually trips at 40A and does so over and over...not once at 40A, once at 30A, once at 20A and then maybe will be like that for a while.

or

6B. A latching current monitoring system that can tell you if you trip the breaker from over current.
The 2005 breaker board had a serial port on it that would tell the controller about breakers that popped, it was pretty useful. I've heard rumors the current PD board was supposed to have that, but it didn't make the cut. I suspect the people making the decision underestimated just how useful that data is.

Matt
__________________
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!)
Reply With Quote
  #7   Spotlight this post!  
Unread 02-03-2012, 20:55
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,620
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: Control System Design Contest Proposal

Quote:
Originally Posted by Matt Krass View Post
I agree, Wi-Fi has too much overhead in general for this setup, including the time for the router and everything to start up, connect together... etc. I'd really actually like to see an 802.15.4 based system, but I'm not sure it has the bandwidth for the full video streaming everyone is spoiled by now (In my day we didn't have streaming video, we drove our robots with our eyes! ) but something could almost certainly be worked out. Maybe there are Wi-Fi based solutions that are simply faster and more streamlined?
My test robot runs DD-WRT. Hack the routers, streamline the protocol or just run UDP if you don't want the overhead of TCP/IP. So what if it ends up being 802.11ish...that's just a few million sources of interference you don't need to bother with. Besides there's no rule you have to transmit IP at all, or even this sort of traffic at any level in that particular range. Course eventually you'll get the FCC's attention if you go too crazy, but that sort of stuff shouldn't need to happen for what you ask.

Just put down the cantenna. You won't be needing that: http://www.instructables.com/id/WiFi...thout-pigtail/

Last edited by techhelpbb : 02-03-2012 at 20:59.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-03-2012, 21:02
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: Control System Design Contest Proposal

Quote:
Originally Posted by techhelpbb View Post
My test robot runs DD-WRT. Hack the routers, streamline the protocol or just run UDP if you don't want the overhead of TCP/IP. So what if it ends up being 802.11ish...that's just a few million sources of interference you don't need to bother with. Besides there's no rule you have to transmit IP at all, or even this sort of traffic at any level in that particular range. Course eventually you'll get the FCC's attention if you go too crazy, but that sort of stuff shouldn't need to happen for what you ask.
Given the (very) real-time nature of what we're dealing with, UDP is probably best. I mean really, if the robot loses a packet, by the time it figures it out, the data is ancient history. I'd retain TCP for important things like software downloads and such, where losing data is actually quite bad.

I suppose, Wi-Fi itself isn't really the problem, but more the actual radio hardware setup we have now, so that could probably be improved on without being replaced entirely.

Matt
__________________
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!)
Reply With Quote
  #9   Spotlight this post!  
Unread 02-03-2012, 21:05
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,620
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: Control System Design Contest Proposal

Quote:
Originally Posted by Matt Krass View Post
I've transplanted my comments from the other thread here as well:

The old control system had a back up battery (7.2V) that was added specifically to prevent motors from browning out the controller and radio. The boost converter on the PD board we have now does a pretty good job of protecting the controller from blackouts.

If you meant just to have them connected to separate power so you can turn off one without the other, then just use a separate battery and PD board to run the controls and tie the negatives together.
I'm suggesting this system wide basically. So that everything with control logic (including the Jaguars and Victors) can have that logic powered up from a separate source from the one that powers the motors.

Quote:
You can do this by monitoring the wi-fi signal strength and ping latency, but those aren't great indicators, but if we're going to be stuck so many layers away from the actual radio hardware, we don't have any accurate link integrity data.
Actually I'd just like packet statistics for the control system. Especially if there's a laptop on the robot it's quite doable. You don't need to go quite to the point of a whole WireShark packet sniffer, but you could at least tag the types and quantities of packets sent and received that would be a great help.

Speaking of which I'd like a real time clock in the control system please, regardless of the presence of the laptop (epoch time is fine and it doesn't need to be from 1970 like in Unix).

Quote:
The 2005 breaker board had a serial port on it that would tell the controller about breakers that popped, it was pretty useful. I've heard rumors the current PD board was supposed to have that, but it didn't make the cut. I suspect the people making the decision underestimated just how useful that data is.
Really would like to have confirmation of the magnitude of the current that did the tripping. I realize this adds weight, so as I originally planned and did these could be modular. I think they are most important on drive systems and other places where occasional overloads might happen and get misdiagnosed.

In point of fact someone will point out that a DMM can do this (but slower) or an oscilloscope with a current probe can do this, faster but much heavier. I'm looking for the compromise. Something light enough for competition, approved for competition, but removable for those that don't want it. Like the suggestion I gave for reverse voltage protection on the Jaguars.

Last edited by techhelpbb : 02-03-2012 at 21:11.
Reply With Quote
  #10   Spotlight this post!  
Unread 03-03-2012, 00:49
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,620
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: Control System Design Contest Proposal

Here's a fun idea (but this isn't really a must have by any means):

Take a smartphone with a USB port and WiFi and use that as the robot controller, most have at least one camera, some 2.

Use the USB port to hook up to the I/O devices through a custom module.

Don't bother with a router, don't bother with a PC.

Now the whole robot controller core is feather weight, has it's own power supply with battery, and is well the size of your phone.

All the radio bands you could want, when you don't want it, sell it off...people buy these things.

Hmm, is there an app for that ?
Reply With Quote
  #11   Spotlight this post!  
Unread 03-03-2012, 01:16
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: Control System Design Contest Proposal

Quote:
Originally Posted by techhelpbb View Post
I'm suggesting this system wide basically. So that everything with control logic (including the Jaguars and Victors) can have that logic powered up from a separate source from the one that powers the motors.
Aha, I see, it makes sense, but I'm not sure it is really weight feasible to add a secondary power source like that, and I'm not sure what advantage it would really get you?

Quote:
Originally Posted by techhelpbb View Post
Actually I'd just like packet statistics for the control system. Especially if there's a laptop on the robot it's quite doable. You don't need to go quite to the point of a whole WireShark packet sniffer, but you could at least tag the types and quantities of packets sent and received that would be a great help.

Speaking of which I'd like a real time clock in the control system please, regardless of the presence of the laptop (epoch time is fine and it doesn't need to be from 1970 like in Unix).
I think the current FMS software tracks that data, you might be able to get your hands on it if you ask the right person, perhaps Mark McLeod? He seems to have a lot of background info on what's going on there. An RTC is a nice feature, but for the 3 minute bursts of activity is it really necessary?

Quote:
Originally Posted by techhelpbb View Post
Really would like to have confirmation of the magnitude of the current that did the tripping. I realize this adds weight, so as I originally planned and did these could be modular. I think they are most important on drive systems and other places where occasional overloads might happen and get misdiagnosed.

In point of fact someone will point out that a DMM can do this (but slower) or an oscilloscope with a current probe can do this, faster but much heavier. I'm looking for the compromise. Something light enough for competition, approved for competition, but removable for those that don't want it. Like the suggestion I gave for reverse voltage protection on the Jaguars.
Since the over-current protection in Jaguars is software based, it would easy enough to save the value when the shutdown activates. For the breakers, it would have to be another solution obviously.

Matt
__________________
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!)
Reply With Quote
  #12   Spotlight this post!  
Unread 03-03-2012, 01:52
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,620
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: Control System Design Contest Proposal

Quote:
Originally Posted by Matt Krass View Post
Aha, I see, it makes sense, but I'm not sure it is really weight feasible to add a secondary power source like that, and I'm not sure what advantage it would really get you?
Testing mostly and perhaps the elimination of replicated parts (instead of 10 speed controls trying to regulate their control logic power, you have 1 cleanly regulated power source that does the whole step up and down once). If you put a COTS computing device on the robot now you add a second power source (the battery in it).

Quote:
I think the current FMS software tracks that data, you might be able to get your hands on it if you ask the right person, perhaps Mark McLeod? He seems to have a lot of background info on what's going on there.
Thanks, I'll follow up on that after some sleep.

Quote:
An RTC is a nice feature, but for the 3 minute bursts of activity is it really necessary?
For logging, especially if there's a place to store the logs, it could help. I mean you can do it in software now...it's not incredibly accurate but it works and it works well enough for competition purposes. I just figure if you have a decent time source it's one less thing someone new had to figure out (besides my little flash logging module already has an RTC for this whole reason...I didn't want to have to rely on more code in the system you were logging if I could avoid it).

Quote:
Since the over-current protection in Jaguars is software based, it would easy enough to save the value when the shutdown activates. For the breakers, it would have to be another solution obviously.

Matt
Yeap, the Jaguars can collect the data, but where on the robot can you put it so that it survives once you turn off the power? You can send it back to the driver's station if the communications is cooperating. Also this requires checking that current sensor which I'm sort of trying to avoid as it adds to the traffic on the CAN. Really it doesn't need to be something you have to poll. It's easy enough to make a circuit that simply latches if the current exceeds the threshold (so it can respond quickly without interrupting what you are doing...and much faster than the circuit protection). I'm proposing something not so clever as a digital to analog converter...more a circuit that produces a simple on or off with a reset (flip-flop). So off is under current limit, and on is exceeded the limit...feel free to reset and try again.

The nice part is, even a novice programmer could monitor that and know if they went over the current limits...and more importantly then they can decide what to do with that event before they end up tripping the circuit protection. However, and more importantly, it can be on the robot while it moves and it just immediately removes the doubt if you are over those current limits and how often it happens. It's doesn't even really matter if it's a Jaguar. Heck hang an LED off it...you see the light start wondering why.
Reply With Quote
  #13   Spotlight this post!  
Unread 03-03-2012, 10:25
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: Control System Design Contest Proposal

Quote:
Originally Posted by techhelpbb View Post
Testing mostly and perhaps the elimination of replicated parts (instead of 10 speed controls trying to regulate their control logic power, you have 1 cleanly regulated power source that does the whole step up and down once). If you put a COTS computing device on the robot now you add a second power source (the battery in it).
I see, but I'm still not convinced it would help enough to warrant the extra power source. And a COTS computing device doesn't necessarily have a power source, especially if you use a small embedded mini-ITX board or something.

Quote:
Originally Posted by techhelpbb View Post
For logging, especially if there's a place to store the logs, it could help. I mean you can do it in software now...it's not incredibly accurate but it works and it works well enough for competition purposes. I just figure if you have a decent time source it's one less thing someone new had to figure out (besides my little flash logging module already has an RTC for this whole reason...I didn't want to have to rely on more code in the system you were logging if I could avoid it).
I am convinced, being able to log and time data offboard would be useful, actually there were a couple times we were debugging an intermittent task crash this season that would have been useful. Once the system dies, there was no way to get the information we needed. It was a lot of blind guessing, and a lot of ibuprofen.

Quote:
Originally Posted by techhelpbb View Post
Yeap, the Jaguars can collect the data, but where on the robot can you put it so that it survives once you turn off the power? You can send it back to the driver's station if the communications is cooperating. Also this requires checking that current sensor which I'm sort of trying to avoid as it adds to the traffic on the CAN. Really it doesn't need to be something you have to poll. It's easy enough to make a circuit that simply latches if the current exceeds the threshold (so it can respond quickly without interrupting what you are doing...and much faster than the circuit protection). I'm proposing something not so clever as a digital to analog converter...more a circuit that produces a simple on or off with a reset (flip-flop). So off is under current limit, and on is exceeded the limit...feel free to reset and try again.

The nice part is, even a novice programmer could monitor that and know if they went over the current limits...and more importantly then they can decide what to do with that event before they end up tripping the circuit protection. However, and more importantly, it can be on the robot while it moves and it just immediately removes the doubt if you are over those current limits and how often it happens. It's doesn't even really matter if it's a Jaguar. Heck hang an LED off it...you see the light start wondering why.
I see, I guess I was thinking too high level (monitoring the current and logging spikes and dips and breaker pops), you just mean detecting and recording a transient over-current system. It might be worth considering, in addition to a digital signal indicating the spike, perhaps one that indicates voltage present at the node with a comparator (to determine if the breaker is currently open or closed, maybe a moot point with self resetting breakers?) and a reset line to clear the latched fault?

Matt
__________________
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!)
Reply With Quote
  #14   Spotlight this post!  
Unread 03-03-2012, 10:52
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,620
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: Control System Design Contest Proposal

Quote:
Originally Posted by Matt Krass View Post
I see, but I'm still not convinced it would help enough to warrant the extra power source. And a COTS computing device doesn't necessarily have a power source, especially if you use a small embedded mini-ITX board or something.
That's very true, but it's allowed if you want it (so far as I can tell at least).

The way I look at it, I can do this right now (and on two I did)....but I probably have to ruin the speed control for competition and I see no reason for that.

There's no reason you couldn't use the main battery for everything if you really want to and don't mind the issues from the motor. In point of fact, if you separate the control supplies and the motor supplies you could just use a big capacitor on the existing battery. The control logic doesn't require much (a couple of C or D cells is enough for what I have). A capacitor could probably provide just enough 'ride-through' for a short time. Actually, if you wanted you could get a little exotic and use a LiPo battery back for that if a suitable charger was available cheap. Then it would be cell phone weight.

Actually for fun my existing test frame has a Boss Audio 3.5 Farad (you didn't read that wrong) capacitor on the frame with the voltage meter 'cap'. The whole reason it was there was to try providing a lower internal resistance to hold up the battery if the speed controls get too much and cause a brown out. Just something I was playing with and it was less than $100. (Yes now besides stick welding with the robot's battery you have a capacitor to insure you can lightly weld with your robot as well....lol)

Quote:
I am convinced, being able to log and time data offboard would be useful, actually there were a couple times we were debugging an intermittent task crash this season that would have been useful. Once the system dies, there was no way to get the information we needed. It was a lot of blind guessing, and a lot of ibuprofen.

I see, I guess I was thinking too high level (monitoring the current and logging spikes and dips and breaker pops), you just mean detecting and recording a transient over-current system. It might be worth considering, in addition to a digital signal indicating the spike, perhaps one that indicates voltage present at the node with a comparator (to determine if the breaker is currently open or closed, maybe a moot point with self resetting breakers?) and a reset line to clear the latched fault?

Matt
Right now my logger prototype uses the CAN bus and has an RS232 level serial port as a back up (so you can put it on a cRIO serial port if you tinkered a bit, or put it on the CAN bus). I originally built it both to monitor the CAN bus and because I figured CAN was more direct than bit banging out serial on digital I/O.

Yes I agree, there are going to be times when under or over is not enough. Right now my current monitor uses a window comparator set with fixed resistors so you can actually tell if you have too much or too little (if you want...otherwise ignore one side). The same with my voltage monitor. I thought about using 'digital potentiometers' and I tried it...but I'm not sure the extra cost is all that necessary when you can get cheap good enough resistors at RadioShack. Besides the worst that happens is someone uses the wrong resistor and it trips at 60A instead of 30A...it's not the circuit protection you'll live. People just need to learn Ohm's law or use a look up table and learn how to read color code (actually right now the resistors can be fixed into a connector so you don't even need that, could just get the connector with resistors in it for that setting).

Course I used rail-rail JFET opamps so there's the whole slew rate business, but still that's much faster than a DMM and much more practical in this application than an oscilloscope. I actually previously discussed basically what I'm talking about here in these forums. I could have done this with discrete transistors but even with surface mount I'm not sure that saves me anything over the integrated package...besides then there's that whole SWARF! thing and more possible points of contact.

I think in order for this to useful you need the reset (set reset flip-flop (or one made of gates) or JK flip-flop). Otherwise basically all that the thing is good for is the first over/under limit. Hopefully this is set below the circuit protection threshold and it actually doesn't matter if it's above the battery negative...it's easy enough to clamp the high impedance input if it's put in backwards. Though back to my previous point I'd prefer that putting things in backwards requires at least as much effort as a square peg in a round hole to achieve.

Last edited by techhelpbb : 03-03-2012 at 11:08.
Reply With Quote
  #15   Spotlight this post!  
Unread 03-03-2012, 12:46
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,748
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: Control System Design Contest Proposal

I'm doing my best to follow this thread, and I may ask clarifying questions or point things out from time to time.

Logging was mentioned. The DS now has a Charts tab that displays the packet loss and trip time for communications -- same as the field has. It displays CPU usage, RAM, flash, and system voltage. It doesn't have any current data available to log. The robot flash is capable of logging info, but I'm not sure how much data or what data should be logged by default.

The DS also logs the mode that the field or DS asked to be run and if the robot code is instrumented, it logs what code actually ran on the robot.

The DS data is saved on the DS and a log viewer is in the Program Files/FRC Driver Station folder.

Greg McKaskle
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 08:32.

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