Skip to content

Commit ca58711

Browse files
committed
Version 2.1 - mW output and internal LCD handling
1 parent 9b3c0d5 commit ca58711

File tree

6 files changed

+160
-64
lines changed

6 files changed

+160
-64
lines changed

.cproject

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,51 +16,49 @@
1616
<configuration artifactName="${ProjName}" buildArtefactType="de.innot.avreclipse.buildArtefactType.app" buildProperties="org.eclipse.cdt.build.core.buildArtefactType=de.innot.avreclipse.buildArtefactType.app,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release" description="" id="de.innot.avreclipse.configuration.app.release.1661013684" name="Release" parent="de.innot.avreclipse.configuration.app.release">
1717
<folderInfo id="de.innot.avreclipse.configuration.app.release.1661013684." name="/" resourcePath="">
1818
<toolChain id="de.innot.avreclipse.toolchain.winavr.app.release.337246503" name="AVR-GCC Toolchain" resourceTypeBasedDiscovery="false" superClass="de.innot.avreclipse.toolchain.winavr.app.release">
19-
<option id="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.release.1791940151" name="Generate HEX file for Flash memory" superClass="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.release"/>
20-
<option id="de.innot.avreclipse.toolchain.options.toolchain.objcopy.eeprom.app.release.1437207615" name="Generate HEX file for EEPROM" superClass="de.innot.avreclipse.toolchain.options.toolchain.objcopy.eeprom.app.release" value="false" valueType="boolean"/>
21-
<option id="de.innot.avreclipse.toolchain.options.toolchain.objdump.app.release.357654205" name="Generate Extended Listing (Source + generated Assembler)" superClass="de.innot.avreclipse.toolchain.options.toolchain.objdump.app.release"/>
22-
<option id="de.innot.avreclipse.toolchain.options.toolchain.size.app.release.1871197005" name="Print Size" superClass="de.innot.avreclipse.toolchain.options.toolchain.size.app.release"/>
23-
<option id="de.innot.avreclipse.toolchain.options.toolchain.avrdude.app.release.1995671909" name="AVRDude" superClass="de.innot.avreclipse.toolchain.options.toolchain.avrdude.app.release"/>
19+
<option id="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.release.1791940151" name="Generate HEX file for Flash memory" superClass="de.innot.avreclipse.toolchain.options.toolchain.objcopy.flash.app.release" useByScannerDiscovery="false"/>
20+
<option id="de.innot.avreclipse.toolchain.options.toolchain.objcopy.eeprom.app.release.1437207615" name="Generate HEX file for EEPROM" superClass="de.innot.avreclipse.toolchain.options.toolchain.objcopy.eeprom.app.release" useByScannerDiscovery="false" value="false" valueType="boolean"/>
21+
<option id="de.innot.avreclipse.toolchain.options.toolchain.objdump.app.release.357654205" name="Generate Extended Listing (Source + generated Assembler)" superClass="de.innot.avreclipse.toolchain.options.toolchain.objdump.app.release" useByScannerDiscovery="false"/>
22+
<option id="de.innot.avreclipse.toolchain.options.toolchain.size.app.release.1871197005" name="Print Size" superClass="de.innot.avreclipse.toolchain.options.toolchain.size.app.release" useByScannerDiscovery="false"/>
23+
<option id="de.innot.avreclipse.toolchain.options.toolchain.avrdude.app.release.1995671909" name="AVRDude" superClass="de.innot.avreclipse.toolchain.options.toolchain.avrdude.app.release" useByScannerDiscovery="false"/>
2424
<targetPlatform id="de.innot.avreclipse.targetplatform.winavr.app.release.1258308891" name="AVR Cross-Target" superClass="de.innot.avreclipse.targetplatform.winavr.app.release"/>
2525
<builder buildPath="${workspace_loc:}/${ProjName}/Release" id="de.innot.avreclipse.target.builder.winavr.app.release.1604293556" keepEnvironmentInBuildfile="false" name="AVR GNU Make Builder" superClass="de.innot.avreclipse.target.builder.winavr.app.release"/>
2626
<tool id="de.innot.avreclipse.tool.assembler.winavr.app.release.46340294" name="AVR Assembler" superClass="de.innot.avreclipse.tool.assembler.winavr.app.release">
27-
<option id="de.innot.avreclipse.assembler.option.debug.level.1333531448" name="Generate Debugging Info" superClass="de.innot.avreclipse.assembler.option.debug.level" value="de.innot.avreclipse.assembler.option.debug.level.none" valueType="enumerated"/>
27+
<option id="de.innot.avreclipse.assembler.option.debug.level.1333531448" name="Generate Debugging Info" superClass="de.innot.avreclipse.assembler.option.debug.level" useByScannerDiscovery="false" value="de.innot.avreclipse.assembler.option.debug.level.none" valueType="enumerated"/>
2828
<inputType id="de.innot.avreclipse.tool.assembler.input.1801625326" superClass="de.innot.avreclipse.tool.assembler.input"/>
2929
</tool>
3030
<tool id="de.innot.avreclipse.tool.compiler.winavr.app.release.1372071518" name="AVR Compiler" superClass="de.innot.avreclipse.tool.compiler.winavr.app.release">
31-
<option id="de.innot.avreclipse.compiler.option.debug.level.1640693399" name="Generate Debugging Info" superClass="de.innot.avreclipse.compiler.option.debug.level" value="de.innot.avreclipse.compiler.option.debug.level.g3" valueType="enumerated"/>
32-
<option id="de.innot.avreclipse.compiler.option.optimize.33375696" name="Optimization Level" superClass="de.innot.avreclipse.compiler.option.optimize" value="de.innot.avreclipse.compiler.optimize.size" valueType="enumerated"/>
33-
<option id="de.innot.avreclipse.compiler.option.incpath.1717064685" name="Include Paths (-I)" superClass="de.innot.avreclipse.compiler.option.incpath" valueType="includePath">
31+
<option id="de.innot.avreclipse.compiler.option.debug.level.1640693399" name="Generate Debugging Info" superClass="de.innot.avreclipse.compiler.option.debug.level" useByScannerDiscovery="false" value="de.innot.avreclipse.compiler.option.debug.level.g3" valueType="enumerated"/>
32+
<option id="de.innot.avreclipse.compiler.option.optimize.33375696" name="Optimization Level" superClass="de.innot.avreclipse.compiler.option.optimize" useByScannerDiscovery="false" value="de.innot.avreclipse.compiler.optimize.size" valueType="enumerated"/>
33+
<option id="de.innot.avreclipse.compiler.option.incpath.1717064685" name="Include Paths (-I)" superClass="de.innot.avreclipse.compiler.option.incpath" useByScannerDiscovery="false" valueType="includePath">
3434
<listOptionValue builtIn="false" value="E:/Elektro/arduino/hardware/arduino/avr/variants/standard"/>
3535
<listOptionValue builtIn="false" value="E:/Elektro/arduino/hardware/arduino/avr/cores/arduino"/>
3636
</option>
37-
<option id="de.innot.avreclipse.compiler.option.def.528223329" name="Define Syms (-D)" superClass="de.innot.avreclipse.compiler.option.def"/>
37+
<option id="de.innot.avreclipse.compiler.option.def.528223329" name="Define Syms (-D)" superClass="de.innot.avreclipse.compiler.option.def" useByScannerDiscovery="false"/>
3838
<inputType id="de.innot.avreclipse.compiler.winavr.input.2038006680" name="C Source Files" superClass="de.innot.avreclipse.compiler.winavr.input"/>
3939
</tool>
4040
<tool id="de.innot.avreclipse.tool.cppcompiler.app.release.1845316012" name="AVR C++ Compiler" superClass="de.innot.avreclipse.tool.cppcompiler.app.release">
41-
<option id="de.innot.avreclipse.cppcompiler.option.debug.level.1171274398" name="Generate Debugging Info" superClass="de.innot.avreclipse.cppcompiler.option.debug.level" value="de.innot.avreclipse.cppcompiler.option.debug.level.g3" valueType="enumerated"/>
42-
<option id="de.innot.avreclipse.cppcompiler.option.optimize.39578510" name="Optimization Level" superClass="de.innot.avreclipse.cppcompiler.option.optimize" value="de.innot.avreclipse.cppcompiler.optimize.size" valueType="enumerated"/>
43-
<option id="de.innot.avreclipse.cppcompiler.option.incpath.752692776" name="Include Paths (-I)" superClass="de.innot.avreclipse.cppcompiler.option.incpath" valueType="includePath">
41+
<option id="de.innot.avreclipse.cppcompiler.option.debug.level.1171274398" name="Generate Debugging Info" superClass="de.innot.avreclipse.cppcompiler.option.debug.level" useByScannerDiscovery="false" value="de.innot.avreclipse.cppcompiler.option.debug.level.g3" valueType="enumerated"/>
42+
<option id="de.innot.avreclipse.cppcompiler.option.optimize.39578510" name="Optimization Level" superClass="de.innot.avreclipse.cppcompiler.option.optimize" useByScannerDiscovery="false" value="de.innot.avreclipse.cppcompiler.optimize.size" valueType="enumerated"/>
43+
<option id="de.innot.avreclipse.cppcompiler.option.incpath.752692776" name="Include Paths (-I)" superClass="de.innot.avreclipse.cppcompiler.option.incpath" useByScannerDiscovery="false" valueType="includePath">
4444
<listOptionValue builtIn="false" value="E:/Elektro/arduino/hardware/arduino/avr/variants/standard"/>
4545
<listOptionValue builtIn="false" value="E:/Elektro/arduino/hardware/arduino/avr/cores/arduino"/>
4646
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src}&quot;"/>
4747
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/${ProjName}/src/lib}&quot;"/>
48+
<listOptionValue builtIn="false" value="&quot;${workspace_loc:/SBMInfo/src/lib/LiquidCrystal}&quot;"/>
4849
</option>
49-
<option id="de.innot.avreclipse.cppcompiler.option.def.1867196469" name="Define Syms (-D)" superClass="de.innot.avreclipse.cppcompiler.option.def"/>
50-
<option id="de.innot.avreclipse.cppcompiler.option.optimize.other.247153119" name="Other Optimization Flags" superClass="de.innot.avreclipse.cppcompiler.option.optimize.other" value="-ffunction-sections -fdata-sections" valueType="string"/>
51-
<option id="de.innot.avreclipse.cppcompiler.option.optimize.packstruct.477407436" name="Pack structs (-fpack-struct)" superClass="de.innot.avreclipse.cppcompiler.option.optimize.packstruct" value="false" valueType="boolean"/>
52-
<option id="de.innot.avreclipse.cppcompiler.option.optimize.shortenums.1764657050" name="Short enums (-fshort-enums)" superClass="de.innot.avreclipse.cppcompiler.option.optimize.shortenums" value="false" valueType="boolean"/>
50+
<option id="de.innot.avreclipse.cppcompiler.option.def.1867196469" name="Define Syms (-D)" superClass="de.innot.avreclipse.cppcompiler.option.def" useByScannerDiscovery="false"/>
5351
<inputType id="de.innot.avreclipse.cppcompiler.input.1320840307" superClass="de.innot.avreclipse.cppcompiler.input"/>
5452
</tool>
5553
<tool id="de.innot.avreclipse.tool.linker.winavr.app.release.1098932434" name="AVR C Linker" superClass="de.innot.avreclipse.tool.linker.winavr.app.release"/>
5654
<tool id="de.innot.avreclipse.tool.cpplinker.app.release.698797395" name="AVR C++ Linker" superClass="de.innot.avreclipse.tool.cpplinker.app.release">
57-
<option id="de.innot.avreclipse.cpplinker.option.libs.2014114297" name="Libraries (-l)" superClass="de.innot.avreclipse.cpplinker.option.libs" valueType="libs">
55+
<option id="de.innot.avreclipse.cpplinker.option.libs.2014114297" name="Libraries (-l)" superClass="de.innot.avreclipse.cpplinker.option.libs" useByScannerDiscovery="false" valueType="libs">
5856
<listOptionValue builtIn="false" value="UnoCore"/>
5957
</option>
60-
<option id="de.innot.avreclipse.cpplinker.option.libpath.462019446" name="Libraries Path (-L)" superClass="de.innot.avreclipse.cpplinker.option.libpath" valueType="stringList">
58+
<option id="de.innot.avreclipse.cpplinker.option.libpath.462019446" name="Libraries Path (-L)" superClass="de.innot.avreclipse.cpplinker.option.libpath" useByScannerDiscovery="false" valueType="stringList">
6159
<listOptionValue builtIn="false" value="&quot;${workspace_loc}/corelib&quot;"/>
6260
</option>
63-
<option id="de.innot.avreclipse.cpplinker.option.otherlinkargs.1717523034" name="Other Arguments" superClass="de.innot.avreclipse.cpplinker.option.otherlinkargs" value="-Wl,--gc-sections -mrelax" valueType="string"/>
61+
<option id="de.innot.avreclipse.cpplinker.option.otherlinkargs.1717523034" name="Other Arguments" superClass="de.innot.avreclipse.cpplinker.option.otherlinkargs" useByScannerDiscovery="false" value="" valueType="string"/>
6462
<inputType id="de.innot.avreclipse.tool.cpplinker.input.429552073" name="OBJ Files" superClass="de.innot.avreclipse.tool.cpplinker.input">
6563
<additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
6664
<additionalInput kind="additionalinput" paths="$(LIBS)"/>

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Dynamic values is checked every 3 seconds and printed if changed.
1414

1515
Tested with bq20z70, bq20z451, bq2084, bq80201DBT, bq40z50.
1616

17+
![My setup](https://github.com/ArminJo/Smart-Battery-Module-Info_For_Arduino/blob/master/extras/Breadboard.jpg)
18+
19+
![My setup](https://github.com/ArminJo/Smart-Battery-Module-Info_For_Arduino/blob/master/extras/With_LCD.jpg)
20+
1721
## German Documentation
1822
Gibt die Daten des SMB Controllers aus.
1923
Basiert auf https://github.com/PowerCartel/PackProbe von Power Cartel http://powercartel.com/projects/packprobe/. Hier gibt es auch weitere wertvolle Informationen.
@@ -47,7 +51,7 @@ Sample outputs can be found in folder extras.
4751

4852
```
4953
START ../src/SBMInfo.cpp
50-
Version 1.1 from Jul 25 2018
54+
Version 2.1 from Oct 27 2018
5155
I2C initalized sucessfully
5256
Found attached I2C device at 0xB
5357
@@ -84,9 +88,9 @@ Manufacturer Status (BIN): 0b0
8488
- State: 0b0
8589
8690
*** RATE TEST INFO ***
87-
Setting AT rate to 100 mAh
91+
Setting AT rate to 100 mA
8892
TimeToFull at rate: 265 min
89-
Setting AT rate to -100 mAh
93+
Setting AT rate to -100 mA
9094
TimeToEmpty at rate: 3061 min
9195
Can be delivered for 10 seconds at rate: 1
9296

extras/SBM_Spec_V1_1.pdf

139 KB
Binary file not shown.

extras/With_LCD.jpg

50.3 KB
Loading

0 commit comments

Comments
 (0)