Power Down

This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.

Moderators: 99jonathan, roger, imaqine

Power Down

Postby pigeek » Wed Apr 09, 2008 3:21 pm

in the middle of running programs, my NXT just shuts down. its usually after 5 minutes (like theres been no activity). i drove my car in circles and it just shut down.

any suggestions or ideas how to keep it from happening? i'm doing a mapping project and it doesnt have time to map a certain area before it shuts down.
pigeek
New User
 
Posts: 3
Joined: Tue Jan 29, 2008 5:31 pm

Postby mdsmitty » Wed Apr 09, 2008 4:39 pm

You most likely need to replace or charge your batteries.
mdsmitty
Novice
 
Posts: 78
Joined: Tue Feb 27, 2007 3:07 am

Postby pigeek » Wed Apr 09, 2008 5:54 pm

i've charged the batteries. its like the robot thinks its being inactive and powers down even when its running. its always after 5 minutes also which is the standard inactivity shut down time
pigeek
New User
 
Posts: 3
Joined: Tue Jan 29, 2008 5:31 pm

Postby JavaMan » Wed Apr 09, 2008 10:30 pm

I had the same problem. You need to change the setting on how long it take before the nxt goes to sleep.

Jman
look up and see the chemtrails
www.carnicom.com
User avatar
JavaMan
Novice
 
Posts: 27
Joined: Tue Apr 01, 2008 1:47 pm
Location: United States

Postby gloomyandy » Sat Apr 12, 2008 11:45 am

Just to clarify. I assume you are using iCommand with the standard firmware. leJOS does not have any powerdown after a period options.... It will not auto-powerdown.

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4119
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby NMMDev » Thu Jul 23, 2009 10:53 am

Sorry to bring this up again, but I appear to be having exactly the same problem.

Regardless of what it's doing (idle or running a program), my NXT shuts down at about the 5 minute mark. I need it to be on indefinitely.

- I have set the Sleep Time to every value from 0 through to 10.

- I have used fresh batteries.

- I am using LeJOS 0.8, not iCommand.

Anyone else have this problem?
NMMDev
New User
 
Posts: 7
Joined: Thu Jul 23, 2009 10:09 am

Postby gloomyandy » Thu Jul 23, 2009 11:10 am

Hi,
so just to be clear. If you run a leJOS program on the nxt (i.e. you download and run the program), that loops forever updating the screen with say the current time, then it will shutdown after 5 minutes? Have you actually tried doing exactly this?

There is no timeout logic in the firmware so I would be very surprised if the NXT shuts down in the above case. The only timeout logic is in the leJOS menu program (which is why it may shut down if you are running a program on your PC that controls the NXT, remotely)....

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4119
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby NMMDev » Thu Jul 23, 2009 11:36 am

Hi Andy

I have a test app that runs a motor backwards and forwards indefinitely. This dies after 5 minutes.

If I switch on the brick and leave it (nothing running), it shuts down after 5 minutes.

I am not connecting via either USB or Bluetooth. Just to be sure, I unplugged the USB.
NMMDev
New User
 
Posts: 7
Joined: Thu Jul 23, 2009 10:09 am

Postby pEhrlich » Thu Jul 23, 2009 12:16 pm

Hmm. I think I remember something like this when I was just starting out, I had a program for a car that would drive motors forever (I would just be changing speed to control it.) After about 5 mins, the brick would shut off. Unfortunately I can't find the thread on it to tell you why, but I would suggest running a loop test (something similar to what Andy said,) as the motor operator might be different. Someone else will know more than I :)
User avatar
pEhrlich
Advanced Member
 
Posts: 158
Joined: Fri Jan 04, 2008 1:38 am

Postby NMMDev » Thu Jul 23, 2009 12:19 pm

And just to be absolutely absolutely clear... :D

This fails at the the 5 minute mark.

Code: Select all
import lejos.nxt.*;

public class Test
{
   public static void main(String[] args)
   {
      new Test();
   }

   Test()
   {
      int i = 0;
      
      while(true)
      {
         i++;
         LCD.drawString(""+i, 0, 0);
      }
   }

}
NMMDev
New User
 
Posts: 7
Joined: Thu Jul 23, 2009 10:09 am

Postby gloomyandy » Thu Jul 23, 2009 12:33 pm

When you say fails... Do you mean that the device is gets powered off. I assume you can simply restart it by pressing the orange key when it is in that state? I just want to check to see if it has powered off or has got locked up in some way...

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4119
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby NMMDev » Thu Jul 23, 2009 12:49 pm

It powers off. As you say, I press the orange button and it starts up again.
NMMDev
New User
 
Posts: 7
Joined: Thu Jul 23, 2009 10:09 am

Postby gloomyandy » Thu Jul 23, 2009 2:38 pm

Interesting... I'll try it on my NXTs later.... I assume you are running 0.8?

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4119
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Postby NMMDev » Thu Jul 23, 2009 3:03 pm

Yes

Thanks!
NMMDev
New User
 
Posts: 7
Joined: Thu Jul 23, 2009 10:09 am

Postby gloomyandy » Thu Jul 23, 2009 7:00 pm

Hi,
I've just had three NXTs (2 with Lego rechargeable batteries and one with normal batteries) running for about an hour (at which point I turned them off). So I don't think this is a general problem. What type of batteries are you using? The NXT does have a thermal fuse device to protect it, I wonder if your NXT is faulty and is overheating this?

Andy
User avatar
gloomyandy
leJOS Team Member
 
Posts: 4119
Joined: Fri Sep 28, 2007 2:06 pm
Location: UK

Next

Return to NXJ Hardware

Who is online

Users browsing this forum: No registered users and 0 guests

more stuff