Go to Post and isn't this fun? :) CD is great :D - rick.oliver [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-03-2005, 15:35
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Robot Jumping on Power Up

Since we upgraded our RC to the V10 Master Code, we have noticed a problem with all PWM's jumping to full on (254) for a fraction of a second after power up.

This problem does not appear with a robot reset while power is on... Just once every power up.

Is anyone else seeing this or, even better, figured out what causes it?

If we are the only ones, we may have a defective controller...

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #2   Spotlight this post!  
Unread 13-03-2005, 16:10
KTorak's Avatar
KTorak KTorak is offline
Fire Rescue 47
AKA: Kyle Dersch
FRC #1023 (Bedford Express)
Team Role: Driver
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Montgomery Village, MD
Posts: 899
KTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond reputeKTorak has a reputation beyond repute
Send a message via AIM to KTorak
Re: Robot Jumping on Power Up

Our robot jumps when we reset it after downloading code to it...the only way we have stopped it is to just make sure its disabled when you do it.
__________________
Kyle D- Myspace - Facebook
2008 Bedford Express Driver & Build & Design (Team) Co-Leader
2007 Bedford Express Driver & Build & Design (Team) Leader
2006 Bedford Express Driver, Build Team Member, & Board of Directors
2005 Bedford Express Rookie, Build Team Member & Robot Operator
-
2008 - GLR Quarter Finalist
2007 - GLR Finalist & Boilermaker Finalist & MARC Off Season Event Winner
2006 - GLR Johnson & Johnson Sportsmanship Award & Archimedes 7th Seed Quarter Finalist
2005 - GLR Finalist & Judges Award.
2004 - GLR Semi Finalist.
2003 - GLR/DTR Quarter Finalist & GLR/NAT'L Rookie All Star.
  #3   Spotlight this post!  
Unread 13-03-2005, 19:03
team222badbrad's Avatar
team222badbrad team222badbrad is offline
3D Printing Specialist
AKA: Bradley Rigdon
FRC #0222 (The Tigertrons)
Team Role: Mentor
 
Join Date: Sep 2001
Rookie Year: 2000
Location: Tunkhannock, PA
Posts: 1,091
team222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond reputeteam222badbrad has a reputation beyond repute
Send a message via AIM to team222badbrad
Exclamation Re: Robot Jumping on Power Up

Last year our arm would do this...

On nearly ever start up the robot would jump the drill motors powering our arm and this created a short grinding noise from the sprocket jumping the chain....

I think this only happened though when the IO was being powered from the RC with the tether?

We never really sought out a fix; we just laughed ever time it happened
(We considered the grinding noise to be the tigers ROAR!)

It probably has something to do with the firmware/software in the RC?
__________________
Tigertrons are on Facebook!

http://www.printo3d.com

16th FIRST season for me.
  #4   Spotlight this post!  
Unread 13-03-2005, 19:31
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Robot Jumping on Power Up

Quote:
Originally Posted by KTorak
Our robot jumps when we reset it after downloading code to it...the only way we have stopped it is to just make sure its disabled when you do it.
The problem is how to disable... If you disconnect a tether or power down the OI at a competition, your radio is active and can/will interfere with robots on the field.

JMHO,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #5   Spotlight this post!  
Unread 13-03-2005, 19:54
kjohnson's Avatar
kjohnson kjohnson is offline
Insert Clever Title Here
AKA: Kyle J.
FRC #1610 (BOT)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Virginia
Posts: 575
kjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond repute
Re: Robot Jumping on Power Up

We had a problem with our robot wanting to launch off of our cart when we turned it on - but as long as someone is just holding it it won't go anywhere. 1610 also had this problem (I helped them with a battery change in finals).
  #6   Spotlight this post!  
Unread 13-03-2005, 20:04
devicenull devicenull is offline
Robot? We need a robot?
no team
 
Join Date: Sep 2004
Rookie Year: 1234
Location: n/a
Posts: 359
devicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nicedevicenull is just really nice
Re: Robot Jumping on Power Up

We aren't having this problem.. I hear no motors moving unless we tell them to
  #7   Spotlight this post!  
Unread 13-03-2005, 20:05
CmptrGk's Avatar
CmptrGk CmptrGk is offline
Programming Mentor
AKA: Dillon
FRC #0716 (Who'sCTEKS)
Team Role: College Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Kent,CT
Posts: 212
CmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud ofCmptrGk has much to be proud of
Re: Robot Jumping on Power Up

im glad to hear that this was not just a problem with our robot. but the only differnece is that it has always done it. even with the factory firmware. i thought that it was a problem in my code, that was hiding from me. well mabey there will be a fix by nationals, even though this is not a big problem it is still a problem.
__________________
#14


"Great autonomous mode Dillon."," It hasn't been written yet"
after an Archimedes match


  #8   Spotlight this post!  
Unread 13-03-2005, 20:44
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: Robot Jumping on Power Up

If you have a competition port adapter connected you should power up in 'disabled' mode

I would have someone look at your code. It sounds like maybe you are using some motion smoothing algorythm, and one of the variables gets cleared to zero on powerup (instead of the last commanded or last output value)

in otherwords, you may have variables in your code that are not correctly initialized, so the first time through the loop you get an unexpected output.

PID control can be especially tricky to initialize, there may be several variables that would have to be initalized to the right value to get a 127 output on the first pass through the loop.

Last edited by KenWittlief : 13-03-2005 at 20:47.
  #9   Spotlight this post!  
Unread 13-03-2005, 20:48
kjohnson's Avatar
kjohnson kjohnson is offline
Insert Clever Title Here
AKA: Kyle J.
FRC #1610 (BOT)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Virginia
Posts: 575
kjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond reputekjohnson has a reputation beyond repute
Re: Robot Jumping on Power Up

Quote:
Originally Posted by KenWittlief
I would have someone look at your code. It sounds like maybe you are using some motion smoothing algorythm, and one of the variables gets cleared to zero on powerup (instead of the last commanded or last output value)

in otherwords, you may have variables in your code that are not correctly initialized, so the first time through the loop you get an unexpected output.
We do have one, so this may be the problem. It is not a "critical" problem that really needs to be fixed - its more of a nuisance.
  #10   Spotlight this post!  
Unread 13-03-2005, 22:11
bombadier337's Avatar
bombadier337 bombadier337 is offline
1337 U53R
AKA: Shaver
None #1541 (MidloCANics)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Richmond VA
Posts: 123
bombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nicebombadier337 is just really nice
Send a message via AIM to bombadier337
Re: Robot Jumping on Power Up

We only had this problem when tethering the bot. It never happened when using our radio modems during practice, but every time we plugged in the tether it jumped. I figure that's just what happens when the PWM signal generator is initialized or something.
__________________
Midlothian High School - Team 1541
2005 Radioshack Innovation in Control - NASA/VCU Regional
2005 Rookie Inspiration - NASA/VCU Regional
  #11   Spotlight this post!  
Unread 13-03-2005, 22:19
probizzle's Avatar
probizzle probizzle is offline
Registered User
AKA: Prabhas Pokharel
#0639 (Code Red)
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2003
Location: Ithaca
Posts: 78
probizzle will become famous soon enoughprobizzle will become famous soon enough
Send a message via AIM to probizzle
Re: Robot Jumping on Power Up

Hmm,
I'm surprised so many people have the same problem.

I only had it once, and that was when I forgot to initialize all my pwms to 127. Because as unsigned chars, everything was initialized to 0, and that means that that motor was moving.
I would urge you to make absolutely sure that you initialize your pwms, because (most of the time), the robot does only what you tell it to do.
__________________
Code Red Team 639 Winners of the 2005 FingerLakes Regional with 191 and 494.
--
http://pset.deu83.com << my baby
http://www.setgame.com/set/ << it's mother
  #12   Spotlight this post!  
Unread 13-03-2005, 23:43
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Robot Jumping on Power Up

Quote:
Originally Posted by KenWittlief
If you have a competition port adapter connected you should power up in 'disabled' mode

I would have someone look at your code. It sounds like maybe you are using some motion smoothing algorythm, and one of the variables gets cleared to zero on powerup (instead of the last commanded or last output value)

in otherwords, you may have variables in your code that are not correctly initialized, so the first time through the loop you get an unexpected output.

PID control can be especially tricky to initialize, there may be several variables that would have to be initalized to the right value to get a 127 output on the first pass through the loop.
Ken,

I have this problem on PWMs which I do not use... If I attach a servo to them they jump after power up and then go to the "initialized" value of 127. My code (other than initialization) does not reference them but they will jump upon the next power up just the same...
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #13   Spotlight this post!  
Unread 14-03-2005, 00:22
Dan9874123's Avatar
Dan9874123 Dan9874123 is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Mar 2003
Location: Old Lyme, CT
Posts: 35
Dan9874123 can only hope to improve
Send a message via AIM to Dan9874123
Re: Robot Jumping on Power Up

hmm, either A: it's a problem in user initialization and you need to check those values, or
B: it's a bad RC and you need to send it in for repairs, contact US FIRST about it. Although it doesn't prevent the RC from functioning properly it can be a serious safety hazard, or potentially damaging the robot.
__________________
"Better to remain silent and be thought a fool, than to speak out and erase all doubt"
Abraham Lincoln
  #14   Spotlight this post!  
Unread 14-03-2005, 00:39
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Re: Robot Jumping on Power Up

Quote:
Originally Posted by Mike Betts
If I attach a servo to them they jump after power up and then go to the "initialized" value of 127. My code (other than initialization) does not reference them but they will jump upon the next power up just the same...
Mike, are you certain that all of your output variables have been initialized before you first call putdata()?

I imagine you've tried this already, but have you checked to make sure that the data you're getting from the OI is OK on the first loop? I vaguely recall someone saying that on the first loop the data they got from the OI was junk and that they had to ignore it to get rid of the problem.
  #15   Spotlight this post!  
Unread 14-03-2005, 01:21
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: Robot Jumping on Power Up

Quote:
Originally Posted by Mike Betts
Since we upgraded our RC to the V10 Master Code, we have noticed a problem with all PWM's jumping to full on (254) for a fraction of a second after power up.
Mike
We did not see this problem when we upgraded to V10 at the Sac regional.

If you are not using the custom pwm outputs, and have the default call that sets them up at the end of the main loop, try commenting this code out. We have had strange behavior, in the past, when this call was left in and taking it out is standard procedure at this point.

Another thing for you to check is that you are running the patch that was published by IFI late in the build period last year. Without it, you can get bad effects upon startup. If you started with this year's default code, you would have this patch.

If you resolve the problem, please post the resolution.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Robot Ever(again) Corey Balint General Forum 26 04-08-2004 23:03
RoboCup International Competition 2004 - Lisbon, Portugal patrickrd Televised Robotics 21 04-07-2004 05:43
Public apology from myself (Team 830) Don Wright Rules/Strategy 13 14-03-2004 22:02
Kamikaze Robot Strategy... Joe Johnson Rules/Strategy 30 07-04-2002 21:42
Calling all Lawyers... ...Define "all parts" Joe Johnson General Forum 10 13-03-2002 15:12


All times are GMT -5. The time now is 03:26.

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