Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:11 11 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Battery Status display

Author Message
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 08:35am 05 Mar 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 3308
Posted: 08:42am 05 Mar 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 159
Posted: 10:24pm 05 Mar 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 188
Posted: 07:28am 07 Mar 2018
Copy link to clipboard 
Print this post

Nice work Mike!

GTG!
...... Don't worry mate, it'll be GoodToGo!
 
MikeO
Senior Member

Joined: 11/09/2011
Location: Australia
Posts: 275
Posted: 03:59am 14 Mar 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 446
Posted: 04:04am 14 Mar 2018
Copy link to clipboard 
Print this post

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: Australia
Posts: 275
Posted: 04:27am 14 Mar 2018
Copy link to clipboard 
Print this post

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
Edited by MikeO 2018-03-15
Codenquilts
 
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 07:52am 14 Mar 2018
Copy link to clipboard 
Print this post

  MikeO said  
The 170 is [] my go to chip


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 BTWEdited by CaptainBoing 2018-03-15
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025