Comments (5)
I changed my code to: FuelGauge.begin(&Wire, true, 0x32);
now I have a battery percentage and voltage of 0. Not sure what is wrong now, but at least it is connected.
from max1704x.
try a reset() and and quickstart() as shown in this example: https://porrey.github.io/max1704x/examples/basic
from max1704x.
Thanks for the reply, I have run the example suggested. First log has very high mV and percentage, then mV goes instantly to 0mV and the percentage slowly goes down to 0%. Any ideas?
18:44:57.253 ->
18:44:57.253 -> Wire.begin()
18:44:57.301 -> Resetting device...
18:44:57.532 -> Initiating quickstart mode...
18:44:57.671 -> Reading device...
18:44:57.671 ->
18:44:57.671 -> Device Reading:
18:44:57.671 -> Address: 0x32
18:44:57.671 -> Version: 3
18:44:57.671 -> ADC: 3884
18:44:57.671 -> Voltage: 4855.00 mV
18:44:57.671 -> Percent: 184.67%
18:44:57.671 -> Is Sleeping: No
18:44:57.671 -> Alert: No
18:44:57.671 -> Threshold: 4%
18:44:57.671 -> Compensation: 0x97
18:44:57.671 ->
18:44:57.671 -> Device Reading:
18:44:57.671 -> Address: 0x32
18:44:57.671 -> Version: 3
18:44:57.671 -> ADC: 3884
18:44:57.671 -> Voltage: 4855.00 mV
18:44:57.671 -> Percent: 184.67%
18:44:57.671 -> Is Sleeping: No
18:44:57.671 -> Alert: No
18:44:57.671 -> Threshold: 4%
18:44:57.671 -> Compensation: 0x97
18:44:57.671 ->
18:44:59.682 -> Device Reading:
18:44:59.682 -> Address: 0x32
18:44:59.682 -> Version: 3
18:44:59.682 -> ADC: 0
18:44:59.682 -> Voltage: 0.00 mV
18:44:59.682 -> Percent: 183.72%
18:44:59.682 -> Is Sleeping: No
18:44:59.682 -> Alert: No
18:44:59.682 -> Threshold: 4%
18:44:59.682 -> Compensation: 0x97
18:44:59.682 ->
...
18:49:07.535 -> Device Reading:
18:49:07.535 -> Address: 0x32
18:49:07.535 -> Version: 3
18:49:07.535 -> ADC: 0
18:49:07.535 -> Voltage: 0.00 mV
18:49:07.535 -> Percent: 71.43%
18:49:07.535 -> Is Sleeping: No
18:49:07.535 -> Alert: No
18:49:07.535 -> Threshold: 4%
18:49:07.535 -> Compensation: 0x97
18:49:07.535 ->
18:49:09.536 -> Device Reading:
18:49:09.536 -> Address: 0x32
18:49:09.536 -> Version: 3
18:49:09.536 -> ADC: 0
18:49:09.536 -> Voltage: 0.00 mV
18:49:09.536 -> Percent: 70.61%
18:49:09.536 -> Is Sleeping: No
18:49:09.536 -> Alert: No
18:49:09.536 -> Threshold: 4%
18:49:09.536 -> Compensation: 0x97
18:49:09.536 ->
18:49:11.537 -> Device Reading:
18:49:11.537 -> Address: 0x32
18:49:11.537 -> Version: 3
18:49:11.537 -> ADC: 0
18:49:11.537 -> Voltage: 0.00 mV
18:49:11.537 -> Percent: 69.62%
18:49:11.537 -> Is Sleeping: No
18:49:11.584 -> Alert: No
18:49:11.584 -> Threshold: 4%
18:49:11.584 -> Compensation: 0x97
18:49:11.584 ->
...
18:51:58.775 -> Device Reading:
18:51:58.775 -> Address: 0x32
18:51:58.775 -> Version: 3
18:51:58.775 -> ADC: 0
18:51:58.822 -> Voltage: 0.00 mV
18:51:58.822 -> Percent: 1.85%
18:51:58.822 -> Is Sleeping: No
18:51:58.822 -> Alert: Yes
18:51:58.822 -> Threshold: 4%
18:51:58.822 -> Compensation: 0x97
18:51:58.822 ->
18:52:00.831 -> Device Reading:
18:52:00.831 -> Address: 0x32
18:52:00.831 -> Version: 3
18:52:00.831 -> ADC: 0
18:52:00.831 -> Voltage: 0.00 mV
18:52:00.831 -> Percent: 1.41%
18:52:00.831 -> Is Sleeping: No
18:52:00.831 -> Alert: Yes
18:52:00.831 -> Threshold: 4%
18:52:00.831 -> Compensation: 0x97
18:52:00.831 ->
18:52:02.840 -> Device Reading:
18:52:02.840 -> Address: 0x32
18:52:02.840 -> Version: 3
18:52:02.840 -> ADC: 0
18:52:02.840 -> Voltage: 0.00 mV
18:52:02.840 -> Percent: 1.00%
18:52:02.840 -> Is Sleeping: No
18:52:02.840 -> Alert: Yes
18:52:02.840 -> Threshold: 4%
18:52:02.840 -> Compensation: 0x97
18:52:02.840 ->
18:52:04.848 -> Device Reading:
18:52:04.848 -> Address: 0x32
18:52:04.848 -> Version: 3
18:52:04.848 -> ADC: 0
18:52:04.848 -> Voltage: 0.00 mV
18:52:04.848 -> Percent: 0.59%
18:52:04.848 -> Is Sleeping: No
18:52:04.848 -> Alert: Yes
18:52:04.848 -> Threshold: 4%
18:52:04.848 -> Compensation: 0x97
18:52:04.848 ->
18:52:06.838 -> Device Reading:
18:52:06.838 -> Address: 0x32
18:52:06.838 -> Version: 3
18:52:06.838 -> ADC: 0
18:52:06.838 -> Voltage: 0.00 mV
18:52:06.885 -> Percent: 0.17%
18:52:06.885 -> Is Sleeping: No
18:52:06.885 -> Alert: Yes
18:52:06.885 -> Threshold: 4%
18:52:06.885 -> Compensation: 0x97
18:52:06.885 ->
from max1704x.
Since it runs on address 0x32 it is a cloned chip (not produced by Maxim Integrated). No are clones are bad, but most do not work. I have seen a few reports off good clones. For example, some sold on Ali Express seems to work. I purchased a clone from Amazon and could not get it to work. I had similar results as what you are seeing on yours. The one I purchased from SparkFun works flawlessly. I can't say for sure you have a non-functioning clone, but it is a possibility.
Here is a popular thread with some users going back and forth on ways to get them working.
https://forum.arduino.cc/t/max17043-fuel-gauge-not-working-at-all/329534/12
from max1704x.
That is disappointing, I bought three of these from AliExpress. Oh well, as in UK Sparkfun themselves are out of the question, so will head over to Amazon.co.uk and hope the Sparkfun I buy there is an original. Much appreciate the help, thank you, and thank you for this library, it is brilliant work. Take care.
from max1704x.
Related Issues (16)
- Question about power consumption HOT 5
- Clone max1743 address 0x76 wrong readings HOT 7
- Aliexpress 0x32 Clone Support HOT 16
- Use Wire1 HOT 1
- Stopping charge HOT 8
- Fuel Gauge at 0x32 HOT 1
- I'm having issues regarding showing the battery percentage. HOT 5
- Battery never shows more than 90% charge HOT 7
- Esp8266 Compilation Error HOT 1
- [Discussion] Wake doesn't wake instantly?
- Why read sensor error,What do I do HOT 2
- Library should not initialize I2C subsystem itself HOT 2
- Inconsistent values HOT 6
- Add ESP32 support HOT 1
- Question. Is ok with max17040 or 17041? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from max1704x.