Code Monkey home page Code Monkey logo

bq769x0-arduino-library's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bq769x0-arduino-library's Issues

batCurrent calculation problem

Hi
I think here in updateCurrent function you should use shuntResistorValue_mOhm insteade of 5.0
Am i right?

if (ignoreCCReadyFlag == true || sys_stat.bits.CC_READY == 1)
{
adcVal = (readRegister(0x32) << 8) | readRegister(0x33);
batCurrent = adcVal * 8.44 / 5.0; // mA

about 3cell with arduıno

your this project very very great and ı will use in my graduate project.. so , thank you very much

ı want to ask some queastions ;

ı will use arduıno and l included cloumb countıng SOC and OCV from mbed to arduıno. l use bq 76920 for 3 cells so what kind of settings l must make (for 3 cells ) in software and arduıno sketch ?...

and l designed pcb in eagle like you but l use 1206 47ohm res for batteries res, but you used 2512 47ohm res. can it be problem?

best regards and so so thank you,

bootPin ?????

Guten Tag Martin,

Gibt es ein Grund warum in ArduinoLibrary nutzen Sie bootpin? Für mbed nutzen Sie es nicht?
Danke.

MfG
Andrew.
PS:
Ich habe beide Bibliotheken angeschaut. Für mbed frisst zu viel Speicher.

Incorrect ADC Calculations

FYI. Please update line 623 of the .cpp file to be:

int16_t adcVal = 0; //has to explicitly be a 16bit signed int.

Merely calling out "int adcVal = 0;" is not enough. According to the datasheet, the adc value must explicitly be a 16 bit value, otherwise the signed calculation will break.

The ADC current is signed (2's compliment), because the BQ chips can sense charging and discharging.

void printRegisters(void); error

sample code doesn't compile :(
Error is connected with :

#if BQ769X0_DEBUG
void printRegisters(void);
#endif

When I comment it, it compiles, but I need this for debuging of course.
I assume, that this is a simple problem, but I have not much experience with programming. Please help.

adc_offset should be signed char/signed int8_t rather than int

Hi,

The adc_offset is currently defined as int, but it is 8 bits long and signed.

With it being read into an int, the sign-bit will be interpreted incorrectly.

Could it be updated to change:

int adcOffset;  // mV

to

signed char adcOffset;  // mV

?

Thanks,

David

High side

Congratulations for your project. Is it possible to use the library also for the high side configuration, using bq769200 and bq76200?

CRC Implementation

Will this library be able to work with BQ769x0 devices which have CRC enabled at any point? If not if you could point me in the right direction I could have a go at implementing it myself.

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.