Giter Site home page Giter Site logo

ESP32 WEMOS LOLIN32 lite about max1704x HOT 5 CLOSED

porrey avatar porrey commented on September 17, 2024
ESP32 WEMOS LOLIN32 lite

from max1704x.

Comments (5)

tmargot avatar tmargot commented on September 17, 2024

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.

porrey avatar porrey commented on September 17, 2024

try a reset() and and quickstart() as shown in this example: https://porrey.github.io/max1704x/examples/basic

from max1704x.

tmargot avatar tmargot commented on September 17, 2024

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.

porrey avatar porrey commented on September 17, 2024

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.

tmargot avatar tmargot commented on September 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.