View unanswered posts | View active topics It is currently Fri Jun 22, 2018 11:13 am

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
Battery and Performance?
Author Message
Rookie

Joined: Fri Oct 26, 2012 2:01 pm
Posts: 6
Battery and Performance?
Does the amount of charge effect the overall performance of the code typed. I am having all sorts of issues with the robots. They would not perform as the code was typed. As a last resort I pulled the battery, put a fresh on in and it seemed to slove the problem. Am I asking a non question? Sorry, very new at this.

Thanks for any input.

Josh

Thu Jan 17, 2013 10:13 am

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Re: Battery and Performance?
Depending on how the robot is programmed, battery life can have a definite impact on the robot's performance. This is especially true if the program contains 'move for time' commands:

 Code:motor[motorB] = 100;motor[motorC] = 100;wait1MSec(1000);

The reason for this is that the motor[] commands tell the NXT to send a certain power level (not speed value) to the motors. Without going too much into the math behind the numbers, as the battery charge drops the amount of available 'power' that can be sent to the motors drops as well. Thus, you will see a difference in performance between a fresh, newly charged battery and a battery that has been used for a couple of hours.

The best way to circumvent this is to use the NXT motor's built-in encoders to control how many rotations the motors have traveled. These encoders have the advantage of returning the same amount of 'ticks' per revolution no matter what speed or power level the motors are running at. To learn more about the NXT's motors and their built-in encoders, take a look atour wiki page on the subject.

Also, I would suggest taking a look through our video curriculum trainer. It walks you through pretty much everything I've just gone over, plus it can help you learn about programming motors and sensors for the NXT in ROBOTC.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Thu Jan 17, 2013 10:40 am
Rookie

Joined: Fri Oct 26, 2012 2:01 pm
Posts: 6
Re: Battery and Performance?
I understand what you are saying(power of battery can effect time), however my problem was a bit different(my apologies I may not have explained it well).

The robot would not even run the program that the kids typed in. It performed in a completely different manner ie. went straight and made no turns(even though it was programmed to do so). When I changed the batteries it appeard to be ok.

So I guess my question is "can battery performance affect the coding of a program?" I would think not - which leads me to another question...

Thank you again,

Josh

Thu Jan 17, 2013 11:13 am

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Re: Battery and Performance?
Would you be able to post the code using the [code] tags? The battery level shouldn't affect what the robot is told to do by the program, but lower battery levels could make small, low power movements effectively null and void (especially if the motors aren't given enough power to move; I'd have to see the code to confirm this though).

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Thu Jan 17, 2013 12:15 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 4 posts ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

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

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning