Posts

Showing posts with the label Battery

Can I Have Backup Power For An Arduino Device?

Answer : you could set up a relay to work in reverse with the mains power, have your backup battery connected to the gate contacts of the relay, and then use the mains power running your project to open the relay and keep it open as long as there is power. if the mains turns off, then the relay closes and the battery is connected. you might want to put something in line with the power to the arduino to make sure you don't get any spikes when things switch. hope this helps as i love kittens I suggest this "Battery boost" circuit from AdaFruit. It's designed to do exactly what you describe. An Arduino needs a smooth, steady 5 V supply with no "blips". The AdaFruit unit does just that, and charges the battery while on Mains supply.

Apple - Can I Manually Limit The %CPU Used By A Process?

Answer : cputhrottle is the tool you need. You can install it with Homebrew. You can monitor a series of processes by name by running the Bash script below. I'm not quite sure how to turn this into a login item since cputhrottle requires superuser permissions. Run it as a script, in an Automator workflow, whatever: # Get the Process/App names from Activity Monitor and put them here apps=("AppOne" "AppTwo" "AppThree") # Set the respective limits here limits={30 40 50) while true; do for app in ${apps}; do for limit in ${limits}; do for pid in $(pgrep ${app}); do sudo /path/to/cputhrottle ${pid} ${limit} done done done done [Edited] I've added a different version for this script (a bash script), which might be useful for people looking for limiting the CPU for multiple applications. This new script also allows you to specify a list containing the application name and the CPU limit for it. The main di...

Android - Bought A New Battery, Do I Need To Calibrate It?

Answer : No Calibration of batteries (Li Ion or Li Po, used in almost all mobile devices) is a myth You can start using it straight away and charge as you normally did with earlier batteries This post will help you understand more: Looking for a consistent answer about battery calibration Using calibration apps doesn't really help as the battery files in system (to which these apps write) are renewed and previous data erased when you charge / reboot As explained in this article It [ Batterystats.bin file which stores calibration information ] has no impact on the current battery level shown to you. It has no impact on your battery life.......it is reset every time you unplug from power with a relatively full charge (thus why the battery usage UI data resets at that point)... Explanation in Italics mine from the same article Related Myth : Charging a new battery for X hours Charging a new battery for x hours before use is a " legacy hangover ...