Possible Battery Level Module

Started by StormCapture, November 15, 2016, 06:19:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

StormCapture

One of the things that frustrate me is the 3 bar battery levels Canon have.

Is it possible to get Magic Lantern to "Talk" with the battery parts and display how much in a percentage approximately is remaining and possibly approximate run time also?

- Canon 650D DSLR


a1ex

http://builds.magiclantern.fm/features.html - look for CONFIG_BATTERY_INFO.

Feel free to reverse engineer it (maybe look for ADC channels). CHDK should be a good starting point.

StormCapture

How would you do it with a Lua Script Garry23? that is all new to me with coding and all of that


A1ex: I looked at that list and it's not highlighted and not supported for my camera (650D) which is a bit of a shame unless it comes down the track over more builds for other cameras but am willing to wait.

garry23

@StormCapture

I'm afraid you will need to do some coding, but Lua scripting is easier than C coding changes in the ML core.

Have a look here first: https://davidmilligan.github.io/ml-lua/

Also, you may wish to scan some of my posts here: photography.grayheron.net

Like you I started out as a non-coder.

Look at the examples  ;)

Cheers

Garry

dmilligan

Lua simply exposes the ML functionality that is already there. Your camera and others do not have this functionality at all, so Lua won't help you. (BTW, most ML cameras that can read battery info as a percentage, are already displaying it on the screen). As a1ex has already mentioned this will require some reverse engineering, which is usually harder than writing Lua or even C. It might not even be possible.

StormCapture

Sounds fairly complicated, especially for someone who has no background behind it all,

Thanks anyway guys.