Giter Site home page Giter Site logo

steves2j / battery-shield-factory-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from u-blox/battery-shield-factory-test

0.0 1.0 0.0 52 KB

Factory test program for the primary battery shield, originally designed for the C030 board and carrying a BQ35100 battery monitoring chip

C++ 100.00%

battery-shield-factory-test's Introduction

Battery Shield Factory Test

This is the mbed test program for the C030 primary battery shield. It instantiates a BQ35100 battery gauge and lights the LED on the C030 board as follows:

  • Flashing amber: running but no conclusion yet.
  • Flashing green: pass (BQ35100 is there and battery is at or above the threshold of 2.8 Volts)
  • Flashing red: fail (not able to enable gauging on BQ35100 or battery is below threshold)
  • Solid red: failed to even start.

Progress may also be monitored with a serial terminal running at 9600 baud.

To build this program, import it into your mbed environment, set the target to any UBLOX_C030 target and the toolchain to your favourite toolchain (e.g. GCC_ARM) and compile it. Then drag and drop the binary onto the C030 board to which the primary battery shield is attached.

The program is not actually specific to UBLOX_C030 boards, any mbed board with an I2C interface and a three-colour LED may be used (obviously you will need to change main.cpp so that the LED1, LED2, LED3, I2C_SDA and I2C_SCL pins are correct for that board).

A pre-built binary that may be used on a UBLOX_C030_U201 board is also included.

NOTE: this program has it's own version of the BQ35100 driver rather than linking to the library since it will be used on production parts which have been sealed and hence the reading of the seal codes that is usually done in the init() call to the driver (so that the device can be configured through API calls) has to be hacked out.

battery-shield-factory-test's People

Contributors

robmeades avatar

Watchers

James Cloos avatar

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.