Asked — Edited
I am building a BB8 and everything is going fine, however I was wondering if there was a way to change the "battery is low" warning. Having BB8 suddenly speak really ruins the whole effect. I was wondering if there was a way to change the warning to something else that would fit more with the BB8 character?.
Upgrade to ARC Pro
Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
1) disable the battery warning
2) setup a voltage divider source vcc to 3.3 v
3) connect the voltage divider to one EZB's ADC port
4) use EZ-Script (loop) to monitor the ADC port, when the value reaches a threshold play sound file.
P.S. I just put I piece of paper between the speaker and the EZ-B so it is no longer connecting, I tend to loose stuff...
You just set a loop that checks getvoltage().
What you have to remember is if your running servos or things that use lots of power, your battery could drop in voltage temporarily, and then recover. I would avoid putting a halt script or something else in the if commands that could interfere. Instead just wait for the sound to repeatedly play non stop as an indication. You can also write code to do repeated checks before it triggers. This would allow you to add commands that stop functions of the bot.
something like this:
NOTE: I made a couple of changes since I first posted it.