MAX17043 LiPo Fuel Gauge connects to Arduino via I2C #1

  Переглядів 29,726

Julian Ilett

Julian Ilett

10 років тому

The MAX17043 LiPo Fuel Gauge is connected to a TP4056 LiPo charger module and a 240mAh LiPo pack.
LiPo Fuel Gauge Lithium battery detection module A/D conversion IIC MAX17043
r.ebay.com/w58Mhn
IIC I2C 0.96" 128X64 TWO (B-Y)Color OLED Display Module For AVR PIC Arduino
r.ebay.com/1YkRhT

КОМЕНТАРІ: 51
@Chriva
@Chriva 10 років тому
I love your varius projects, Julian. Keep it up! =)
@sykey666
@sykey666 7 років тому
hi. i know this is a old video but i was wondering if you could upload a wiring diagram of the fuel gauge, charger, battery and arduino. i am hoping to do similar thing for a project myself now
@tobortine
@tobortine 10 років тому
Enjoyed the video. I'd recommend a logic analyser if you're getting into protocols like i2c. The simple ones that use PC software are very cheap and incredibly useful.
@JulianIlett
@JulianIlett 10 років тому
I must have been lucky, the software part of this project was pretty straightforward. I wouldn't mind a logic analyser to play with though.
@jorenmartijn
@jorenmartijn 9 років тому
You could desolder the jst connector from this to make it even slimmer. Got one of these myself and one Adafruit Lipo battery and one I ripped out of a tiny video camera. I'm probably going to experiment with this this week.
@muh1h1
@muh1h1 10 років тому
great work julian, can't wait to see it running! :)
@claytonaxl6126
@claytonaxl6126 2 роки тому
you all probably dont care but does anyone know a method to log back into an Instagram account?? I somehow lost my account password. I would appreciate any tips you can give me.
@walterjabari8430
@walterjabari8430 2 роки тому
@Clayton Axl instablaster :)
@claytonaxl6126
@claytonaxl6126 2 роки тому
@Walter Jabari Thanks so much for your reply. I got to the site thru google and I'm in the hacking process atm. Looks like it's gonna take a while so I will reply here later when my account password hopefully is recovered.
@muh1h1
@muh1h1 2 роки тому
@@claytonaxl6126 wow, spam is getting smarter...
@claytonaxl6126
@claytonaxl6126 2 роки тому
@Walter Jabari it worked and I actually got access to my account again. I am so happy! Thank you so much, you saved my account!
@eleongo
@eleongo 7 років тому
Can I do the same for automotive battery (car battery)? I'm trying to create a system to estimate its lifespan and capacity.
@universalsailor
@universalsailor 10 років тому
Hi Julian, I always enjoy your vids. Do you know if there are any Arduino groups around west London? Also, can you recommend any books suitable for someone hoping to take electronics a bit further than the absolute basics -- I'm thinking something like a general practical handbook of the handiest circuits and ICs. Looking for books on Amazon or ebay is difficult because you can't easily flip through them to get a feel for which ones are going to be useful. (The ones I've bought so far with promising sounding names have turned out to be a bit of a disappointment.)
@JulianIlett
@JulianIlett 10 років тому
There's a hackspace in London and another in Reading. I've never bought electronics books (just had loads of magazines in the old days), but most people seem to recommend The Art of Electronics - Horowitz.
@mbijjk
@mbijjk 5 років тому
Why do some people change the R3 resistor for low MAH batteries and some don’t. Thanks
@suhaibsk2727
@suhaibsk2727 2 роки тому
Can i use this sensor for my solar panel battery (12v 40Ah)?????if not pls suggest a solution.
@JoopMedia
@JoopMedia 10 років тому
Hey Julian, I've always just used the analogue pin on arduino with voltage divider and a function I wrote ages ago for battery level (including analogue smoothing algorithm) which has always worked great for me to show voltage / percentage remaining etc, however I've been playing with one of those adafruit high side DC current sensor (In219 or something, can't remember) but anyway, really like it and very accurate, I'm interested to see how this little chap pans out for you, I've looked at this lipo 'fuel gauge' but not sure what it offers over 'standard' arduino analogue input method etc?.. My latest project is using data logging to analyse the battery current and voltage continually and therefore i can calculate the total power usage in terms of mAH consumed over time and reference that against the total mAh of the battery. With Lipo chemistry we need to avoid going anything below 30% charge for nice long life of the cell.. obviously the only way to make a true lipo 'fuel gauge' is to indeed monitor live usage and calculate total consumption. Otherwise it's just best guess based on mapping percentage of voltage - usually 4.2v 100% down to around 3.5v as 0%. Great vid, interested to see how you get on in part 2 ;). Btw, which OLED you got there? I'm running dual 128x64 oleds (mono colour, 1.3" adafruit) absolutely rocks on the teensy 3.1 :). Cheers bud.
@JulianIlett
@JulianIlett 10 років тому
I was just curious about what this chip does. Now that the software is working, the fuel gauge is pretty impressive. I'll try to show how it works in part 2 of this video. I'll put a link to the OLED module in the description.
@sdevane75
@sdevane75 4 роки тому
FYI. They are just €2.10 on Aliexpres
@jordanlee1439
@jordanlee1439 9 років тому
Questions: Why is it for LiPo? Does this mean that no other battery pack can be used?
@csongorvarga
@csongorvarga 7 років тому
If I build a battery bank with multiple 18650 batteries in parallel, can I monitor them with a single MAX17043? Would it provide a correct soc readings?
@JulianIlett
@JulianIlett 7 років тому
I think so. I don't remember the data sheet specifying a maximum (or minimum) cell capacity.
@csongorvarga
@csongorvarga 7 років тому
Julian Ilett Thanks a lot for your response. I gone through the data sheet and could not find any restriction on capacity. I was thinking about building a backup battery for raspberry pi. I want to use the fuel gauge to tell rpi to safely shut down before the battery goes flat. One more question if I may ask: let's say I have my batteries, lipo charger and the fuel gauge just like in your setup. I connect the output to a boost converter to get the 5V needed for the rpi. Can I simply connect this 5V and the 5V from the regular power supply? So when there is mains power I draw current from the power supply not from the battery/boost converter? Or this does not work like that? I wish to do something from off the self parts. The new rpi draws 2.1A on 5V, and I am not sure if I could power the entire setup via the TP4056 charger.
@rizkyp
@rizkyp 9 років тому
Julian how to use 2 max 17043? Can i set two different slave address to each one? Thanks. I need to monitor two battery at once using arduino nano.
@saiyourbaeee
@saiyourbaeee Рік тому
u can use IC 74985
@maecoe2243
@maecoe2243 7 років тому
Is it possible to connect a solar Panel on the LiPo charger and switch automatically between solar Panel and USB charging??
@octocat7949
@octocat7949 7 років тому
yes
@adamstybr9928
@adamstybr9928 5 років тому
Yes, but without specialized solar charger efficiency will be terrible
@erlendse
@erlendse 10 років тому
You should break the connection between protection and charger, and insert the fual gauge there. Otherwise I expect you to get very wrong capacity messurements. Are you sure the battery is not protected by a board on the cell?
@JulianIlett
@JulianIlett 10 років тому
The fuel gauge is designed to connect directly to the LiPo cell. This LiPo cell is definitely unprotected - I previously allowed it to discharge to quite a low voltage.
@erlendse
@erlendse 10 років тому
Cut the traces on the charger/protection board, and insert the gauge board there. The gauge is designed to be connected after the protection circuit. You only need to split charger & protection , or get a protection board from elsewhere.
@JulianIlett
@JulianIlett 10 років тому
erlendse Oh yes, you're right. I probably should have put the fuel gauge after the protection circuit so that it's powered down when the protection MOSFET goes open circuit. The way I've connected it, the fuel gauge is continuously drawing power from the battery. However, when the Arduino and display are switched off, it's possible the SCL and SDA lines will pull low, putting the fuel gauge into SLEEP mode which draws just 0.5uA.
@lezbriddon
@lezbriddon 10 років тому
I must be missing the point in why this is more use than just getting the voltage with an analog pin?
@JulianIlett
@JulianIlett 10 років тому
Battery voltage is not always linearly related to remaining capacity, particularly when charging.
@lezbriddon
@lezbriddon 10 років тому
Julian Ilett true but t seems all it does is take a voltage reading and then from that uses some formula to compute a 0-100 value, which the arduino could do itself in software, and I think in this case software option is cheaper & smaller physical footprint, even if you wanted good accuracy all you would have to do is measure the voltage as it discharges under similar load and log that every 15 minutes, and you have a lookup table of voltage to projected minutes, do same for charging. if you want it to learn then it could take the current reading, one from 15mins prev, compare those two to the corresponding two in the lookup table and apply a compensation factor, to project a more accurate time, if you kept the table in eeprom you could make it update the table to account for battery aging... more tricky, but more versatile.
@JulianIlett
@JulianIlett 10 років тому
lez briddon That's all true, and I could save a fiver by doing that, but the Maxim chip does a pretty good job without look-up tables. If I were building these to sell, I'd want to save every penny and developing my own algorithm would be justified. For a one-off, I'd rather pay a bit more and have someone else do all the hard work.
@nishanthg769
@nishanthg769 Рік тому
I used arduino UNO and i am getting SOC: -1.00%, VCELL: -0.02V as output and nothing else please help
@nhobuiquangngoc2760
@nhobuiquangngoc2760 Рік тому
Hi, I have the same problem as you, did you fix it?
@sdevane75
@sdevane75 4 роки тому
Help -anyone got this working on a raspberry?
@hungdang6333
@hungdang6333 2 роки тому
i found I2C address at 0x32 ,it didn't work even though i changed the address from 0x36 to 0x32 in the library
@nhobuiquangngoc2760
@nhobuiquangngoc2760 Рік тому
chào người ae Việt Nam chúng ta, tôi cũng bị lỗi này, bạn đã khắc phục được lỗi này chưa
@hungdang6333
@hungdang6333 Рік тому
@@nhobuiquangngoc2760 ko fix đc bạn ơi chip đó chip fix đọc bậy bạ sai tùm lum à
@nhobuiquangngoc2760
@nhobuiquangngoc2760 Рік тому
@@hungdang6333 vậy là do chúng ta mua phải một bộ phận nhỏ chip lỗi, hay là toàn bộ module max17043 hiện đang có trên thị trường này đều là chip lỗi vậy bạn, tại vì tôi lại đặt thêm 2 con module nữa ở shop nước ngoài với hy vọng nó không bị lỗi
@hungdang6333
@hungdang6333 Рік тому
@@nhobuiquangngoc2760 bạn mua hàng trung 80% fake r
@hungdang6333
@hungdang6333 Рік тому
con đó tôi thấy hàng mỹ đắt hơn rất nhiều
@PaulHuininken
@PaulHuininken 10 років тому
The logo on the board is from sparkfun, where you can find all the info www.sparkfun.com/products/10617 This seems to be a clone.
@JulianIlett
@JulianIlett 10 років тому
I think the board may be genuine - possibly re-worked
@PaulHuininken
@PaulHuininken 10 років тому
Then it is a genuine board. I like your channel very much. I putted a link to it and to www.256.co.uk/ on the Dutch Arduino forum. Thank you.
MAX17043 LiPo Fuel Gauge connects to Arduino via I2C #2
7:29
Julian Ilett
Переглядів 23 тис.
DIY LiPo Charge/Protect/5V Boost Circuit
11:31
GreatScott!
Переглядів 785 тис.
Первая поломка Scirocco! Балацко попал на мотор.
1:13:12
Building a haptic input knob from scratch!
11:29
scottbez1
Переглядів 1,1 млн
Connecting a Relay Module to a Microcontroller
11:41
Brad Henson
Переглядів 204 тис.
Arduino (выпуск 06): контроль заряда аккумулятора
20:47
Андрей Гурский
Переглядів 4 тис.
“Hello, world” from scratch on a 6502 - Part 1
27:25
Ben Eater
Переглядів 4,6 млн
Charging a Lithium 18650 Cell using the TP4056
12:30
Julian Ilett
Переглядів 403 тис.
Breadboarding tips
20:16
Ben Eater
Переглядів 413 тис.
Subscribe for more!! #procreate #logoanimation #roblox
0:11
Animations by danny
Переглядів 3,9 млн
Опасная флешка 🤯
0:22
FATA MORGANA
Переглядів 724 тис.
The PA042 SAMSUNG S24 Ultra phone cage turns your phone into a pro camera!
0:24
Компьютерная мышь за 50 рублей
0:28
dizzi
Переглядів 2,1 млн
Google Pixel 8A Impressions: Just Get The 8!
7:23
Marques Brownlee
Переглядів 970 тис.