View unanswered posts | View active topics It is currently Tue Sep 16, 2014 3:27 am






Reply to topic  [ 11 posts ] 
NXT Brick freezing 
Author Message
Rookie

Joined: Sun Mar 06, 2011 6:53 pm
Posts: 7
Post NXT Brick freezing
We are having a problem where out robot's NXT brick keeps freezing up mid-telop . We checked our code and there does not seem to be a place where the the brick would have trouble executing the code. We tried to switch bricks and had the same issue.

The code is attached, any help would be appreciated.

Thanks


Attachments:
1 22 1.c [5.86 KiB]
Downloaded 546 times
Sun Feb 12, 2012 3:51 pm
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3221
Location: Rotterdam, The Netherlands
Post Re: NXT Brick freezing
Are you using a separate power source for your Samantha module? I've heard that sudden power surges due to motor activity can cause a brown-out and reset of the module.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Mon Feb 13, 2012 2:36 am
Profile WWW
Rookie

Joined: Sun Mar 06, 2011 6:53 pm
Posts: 7
Post Re: NXT Brick freezing
the Samantha is powered off the 12 volt battery where the brick is powered of a NXT rechargeable battery. The Samantha lights are still on even after the brick freezes.


Mon Feb 13, 2012 9:47 am
Profile
Rookie

Joined: Wed Jul 21, 2010 11:23 pm
Posts: 39
Post Re: NXT Brick freezing
Are you certain the NXT brick is freezing? Or is the NXT program still running and you are you just losing joystick control of your robot? What do you do to unfreeze the NXT? Can you still exit the program with the grey button once the problem appears?

We ran into some major issues early in the season where a momentary loss of connection in the 12VDC feed to Samantha caused the wifi connection to drop, which in turn caused a loss of control to the robot. It turned out to be a damaged pin in the battery connector. Jiggling the wires (or driving the robot) caused the power to drop out momentarily from time to time. We have now replaced all the battery connectors with PowerPole and the problem went away.


Mon Feb 13, 2012 10:26 pm
Profile
Rookie

Joined: Sun Mar 06, 2011 6:53 pm
Posts: 7
Post Re: NXT Brick freezing
it is defiantly the brick even when we turn off the robot power the screen remains frozen and we have to take out the batteries or reset to get it working again. We attempted switching bricks to see if it was the brick but the same thing happened on the second brick (not all the time just some times)


Mon Feb 13, 2012 11:30 pm
Profile
Rookie

Joined: Wed Jul 21, 2010 11:23 pm
Posts: 39
Post Re: NXT Brick freezing
I vaguely recall having issues when writing an INT variable to a Servo, but I don't think it was crashing the NXT it was more of an overflow issue causing the servo to go to unexpected positions. Anyhow, you might want to change the line servotarget[arm] = (short) input; Nothing else in your code looks like it should cause a problem. Are you definitely using RobotC V3.05 with the corresponding NXT firmware (9.07)?

You probably also want to change the line input=thing/100*250; to input=(thing*250)/100;, but again that wouldn't cause a major program hang problem.


Tue Feb 14, 2012 1:23 am
Profile
Rookie

Joined: Sun Mar 06, 2011 6:53 pm
Posts: 7
Post Re: NXT Brick freezing
i'll try the math changes (although for it to work properly i think i have to divide before i multiply) and i'll check the firmwear, although i believe that is also up to date, (we meet Sundays so i can't check till then)


Wed Feb 15, 2012 12:07 am
Profile
Rookie

Joined: Sun Mar 06, 2011 6:53 pm
Posts: 7
Post Re: NXT Brick freezing
OK we implemented the math changes suggested earlier, and the brick still froze.

Other observations:
-we were preforming multiple tasks
-the battery power was at about 12.9 volts


Sun Feb 26, 2012 3:44 pm
Profile
Rookie

Joined: Sun Feb 27, 2011 3:41 pm
Posts: 20
Post Re: NXT Brick freezing
The most effective thing we have done to fix this was to have a strip of wire hanging from the bottom of our robot touching the ground. FIRST recommends this and it is supposed to ground the extra charge on the robot.


Sun Mar 04, 2012 8:47 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: NXT Brick freezing
I didn't know that the robot built up charge, and that it caused problems. I have gotten some nasty static shocks cleaning up fields in the winter though.

_________________
sudo rm -rf /


Sun Mar 04, 2012 10:08 pm
Profile
Rookie

Joined: Sun Feb 27, 2011 3:41 pm
Posts: 20
Post Re: NXT Brick freezing
that fixed our problems as well with the nxt freezing...we just added a wire to the bottom.


Thu Apr 19, 2012 12:09 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.