Community Question

hi there,
Im working with the EZB-4 and 21x servos + a lot leds, camera and sensors..
the robot needs a lot power in action.
in the same second If my robot says: "my battery is low", he collapse..
I have no time for a reaction. its not good for the optical look.. I dont want scratches.. or a broken arm.. you know.
So I need to find a way to programming a better "battery is low warning". or a optical LED.. the best and coolest way is a live status inside the EZ-Robot Software..

thanks
Marty
May 5 2015
@Smarty.

No worries. :)
May 5 2015
@Smarty.

I forgot to add a sleep() command in post #24.
It just helps give the processor time to think. You can change the value to what you want. I put it as 500 milliseconds and Rich done it for a 1000 which essentually runs the script loop every half a second of sl1 second, so you can change this to what you want.
May 5 2015
Also in post #24 you need to put $voltage=GetVoltage() inside your loop or you are only reading the battery voltage just once....

Code:


:loop
$voltage=GetVoltage()

If($voltage<6.9)
saywait("warning, battery voltage is low")
endif
sleep(1000)
goto(loop)

DJ Sures
Synthiam
May 5 2015
If your battery is low and you run the battery less than the warning - it may explode. There are dozens of warnings all over the website and in the EZ_B. The message is there for a reason. LiPo batteries CANNOT run less than the specified voltage. The battery is low is there for a reason. It's a lot of code with a great deal of testing to ensure LiPo battery life expectancy and safety.

This warning message cannot be ignored.
May 6 2015
thanks for the warning @DJ
Question
Avatarby Smarty
Published Tuesday, May 5, 2015