Germany
Asked — Edited
Resolved Resolved by Steve G!

My Battery Is Low

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


ARC Pro

Upgrade to ARC Pro

ARC Pro will give you immediate updates and new features needed to unleash your robot's potential!

United Kingdom
#25  

@Smarty.

No worries.:)

United Kingdom
#26  

@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.

#27  

Also in post #24 you need to put $voltage=GetVoltage() inside your loop or you are only reading the battery voltage just once....


:loop
$voltage=GetVoltage()

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

PRO
Synthiam
#28  

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.

Germany
#29  

thanks for the warning @DJ