|
Forum Index : Microcontroller and PC projects : Battery Status display
| Author | Message | ||||
| MikeO Senior Member Joined: 11/09/2011 Location: AustraliaPosts: 275 |
This status display is to be installed in my Caravan. The pictures are from the first test run. The code is a much modified version of the SC AC Energy meter. The Graphing and Logging facilities have been retained, Amp Hour and State of Charge calculation are added. Current sense is via a ASC711EX current sensor. ![]() Mike Codenquilts |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
Excellent job. I have wanted to do the same thing for my off road camper but other priorities keep getting in the way. You have encouraged me to finally dust off the current sensors and get developing. Geoff Graham - http://geoffg.net |
||||
| Bill7300 Senior Member Joined: 05/08/2014 Location: AustraliaPosts: 159 |
I agree with Geoff, an excellent job,Mike. As it happens, I'm sitting in our van now and moving on to an unpowered site tomorrow for a week or so. I could use your concept here and now. I'll see if I can order some current sensors so that I can tackle a project along these lines once we get back home in a couple of months. Keep us posted as you make your inevitable refinements. Bill Bill |
||||
| GoodToGo! Senior Member Joined: 23/04/2017 Location: AustraliaPosts: 188 |
Nice work Mike! GTG! ...... Don't worry mate, it'll be GoodToGo! |
||||
| MikeO Senior Member Joined: 11/09/2011 Location: AustraliaPosts: 275 |
Installed !! and working really well, better than I had expected I have to say. Just some trimming of the SoC calculations etc to do but otherwise all functioning. Reads Battery voltage and current (Charge and Discharge) Calculates watts and expended Load in Amp Hours Calculates Battery State of Charge Plots Voltage and Current Diagnostics GUI with Voltage/Current and Offset adjustments Current code etc on my server ![]() ![]() Codenquilts |
||||
| Azure Guru Joined: 09/11/2017 Location: AustraliaPosts: 446 |
Look forward to having a look at the code. Do you have any details on the SC AC Energy Meter mods you made? |
||||
| MikeO Senior Member Joined: 11/09/2011 Location: AustraliaPosts: 275 |
Its all software really, its took me Age......s to work out how the SC software was functioning and to remodel to suit low voltage battery monitoring. It doesn't use the cfunctions they had for voltage and current sensing as I didn't need the speed they did plus no zero crossing etc. This has been replaced with my own routines for current sense and stabilisation, average sampling and averaging is ~50/sec. Also the cfunction for tariff calculations was not required. Ploting and logging is retained but turned off as a default, not sure of its day to day usefulness but it could be as a diagnostic tool. Even so its still uses most of the memory but its very responsive and seems quite accurate and stable. The MX170 chip still amazes me , how it performs and what can be achieved with it without going to the 470 and beyond with all their expense and extra complexity. The 170 is still my go to chip simple, low component count and what's more I can see the pins! I will be posting the hardware requirement on my server soon but they are quite simple and can be done on vero and married with a 170 backpack. I have used my 8 port controller board (1.3) and I am considering a ver 1.4 with some further functions . Mike Codenquilts |
||||
| CaptainBoing Guru Joined: 07/09/2016 Location: United KingdomPosts: 2171 |
yep... I am even using one to handle the indicators on a friends motorbike rebuild. It's only four indicators (oil, neutral, turn & hi-beam) but they are a mixture of sensing methods and I wanted to give him reduced brightness on the indications at night... why break your back with the electronics? A '170B with a bit of code handles all the logic and gives variable PWM for night viewing (and he is over-joyed with the lamp-test dance when he turns the key)... I am gradually recovering from the guilt Your charge controller is a lovely project BTW |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |