Home
STEVAL-ISB012V1 Li-Ion battery monitor and gas
Contents
1. MICROCONTROLLER SECTION JTAG JNTRST PB4 JTAG JTDO PB3 JTAG JTDI PA15 CFG1 PB8 BOOTO MENU PB9 12C1 SDA PB7 I2C1 SCL PB6 STC3105 ALM PB5 JTAG JTCK PA14 3v3 GND 3V3 1 USB PU PC13 2 CFGO_PC14 3 DOWN PC15 4 OSCN 5 OSC OUT nRST 1 GND 3V3 ENTER Pat LCD_RS_PA1 ICDEP 12 VBAT PC13_ANT1_TAMP PC14 OSC32 IN PC15 OSC32 OUT PD0 OSC IN PD1 OSC OUT NRST VESA STM32F102C8T6 VDDA PAQ_WKUP PAI PA2 36 3V3 35 GND 34 JTAG_JIMS_PAT3 33 USBDP_PA12 32 USBDM PATT 314 LOAD SW PA10 30 PAS 29 UP PAB 28 LCD D7 PBi5 27 LCD DE PBid 26 LCD D5 PB13 25 LCD D4 PBi2 R20 10K 1 CFGO PC14 2 GND 3 R21 10K 1 CFG1 PB8 2 GND 3 CONFIGURATION JUMPERS 42 55 R51 1M STC3105 ALM PZ D13 MSD_MISO_PA6 MSD MOSI PA7 LED PBO LD6920 LBO PB10 CHRG PA3 MSD NSS PA4 MSD SCK PA5 BOOT1 LED2_PB11 GND 3V3 STC3105 BATTERY MONITORING IC R33 VBAT_B ALM 6 X H NC STC3105 SDA STC3105 SCL 2_ spa 3 SCL Ik R49 0 R36 CG B 150 vw LED E al STC31051QT L y R40 20milli ohm Cathode Anode Ref U12 TS3431ILT LED1 PBO LED2 PB11 o STC4054 BAT POWER SELECTION NOTE CONNECT GND PIN OF STC3105 DIRECTLY WITH SHUN T RESISTOR NOT THROUGH GND PLANE Doc ID 0
2. 16 5 1 How to enter the capacity of the battery 16 5 2 Entering low SOC threshold of the baten 17 5 8 Entering low voltage threshold of the battery naana 18 5 4 Entering RLX counter current threshold nn 19 5 5 Status LED description si aede x RE AE ER EE ae 19 5 6 HyperTerminal display settings llle 20 6 Graphical user interface application 23 6 1 Installation of the GUI Lauree perd erbe RE bekakt eds PEG pd EE 23 6 2 Board initialization PP 26 6 3 Key battery parameters 27 6 4 Other battery parameters oenen 28 6 5 Battery status and data log 29 7 Hardware design description 0 00 cece eee eee eee 31 7 1 Microcontroller STM32 oo boi pb easbeedas hel deg Ae box 31 7 2 Battery monitor IC STO3105 geen Beer 32 7 3 ESD protection davibB s lt cre2iseuxe dns eure Xd aRUR GN bereide 33 2 55 Doc ID 022389 Rev 1 ky UM1481 Contents 7 4 Voltage regulator zoer Ie E dam 0 xd rede veuss ad o ERR D 33 7 5 STC4054 charget ars d22echne ee eacivessieuasenviase steeds 33 7 6 Power MOSFET nnen 34 8 Connectors and jumpers 35 8 1 JTAG connector llleeeeeeee ees 35 8 2 USB connector lt en 36 8 3 Power supply connector 37 8 4 LED CONNEC nn nn ar eenen LEER Rides I 37 8 5 JUMPER ad cbe eere Su vete an OR a AER E 38 8 6 J mperJlO rM EE EE 38 8 7 Jumper JAA ise x aoe es ES eee ee a XD eae a Aas 38 8 8 Jumper J9 external MCU
3. UM1481 STC3105 parameter setting and display 5 STC3105 parameter setting and display 5 1 How to enter the capacity of the battery When a new battery is connected to the board depending on requirements the user can enter the total capacity of the battery If the user doesn t enter the capacity of the battery a default value of a total capacity equal to 1500 mAh is considered and all the data is shown accordingly To enter the battery capacity select the Settings tab and select the appropriate option Now the user is able to see the image shown below in Figure 15 Figure 15 Entry of parameters related to SOC aaa mAh AM10737v1 Using the UP and DOWN switch sets the number To move to the next digit press enter When all the digits are set the user is able to see the image shown in Figure 16 Figure 16 Message after entering value of parameter Enter to CONTI Menu to RE ENTER AM10738v1 If the user enters the wrong value i e O or more than 10950 mAh with 20 mQ sense resistor then it shows the message as in Figure 17 and the default value i e 1500 mAH is stored When the value entered is right it is updated in total capacity Figure 17 Wrong value entry message Wrona Value Default Saved AM10739v1 Doc ID 022389 Rev 1 17 55 STC3105 parameter setting and display UM1481 If the capacity is entered for example 740 mAh and capacity learning is not comple
4. Graphical user interface application UM1481 6 3 28 55 Figure 34 Board connected 1 Gas Gauge Application MITT Help H LI EN We Internal Resistance 100 mOhm OCV9 OCV8 OCV7 Oe OVS OCV4 OCVS OCV2 OCV1 EA oe Des D ES re e eo ES SOC9 SOCB SOC7 SOCG SOC5 SOC4 SOCI SOC2 SOC1 nud Lk EA EA EN ES EN EA EN EOS ECH Battery Low SOC Alarm LJ Registers Control Regista _______ Mode Register Witz Dat BitS Bit 4 BIt3 Dit 2 t 1 Bito Bit7 Bit6 Bit5 Bit4 Bits BR2 cu AM10745v1 To start evaluating board parameters and its configuration the user must first connect the board to a USB port using the USB micro B cable and then connect the GUI using the connect tab When the board is connected properly to the GUI it shows the message The board is connected as shown in Figure 34 Key battery parameters The following are the parameters that appear on the first page key parameter page of the GUI as shown in Figure 35 Board hardware it is possible to read and write the value of the sense resistor as well as the room temperature value Alarm it is possible to R W the battery low voltage alarm as well as the low SOC alarm Battery parameters it is possible to read and write total battery capacity internal resistance of the battery pack as well as the open circuit voltage and its relative SOC percentage table to be used for an estimation of initial SOC of battery depending on the open cir
5. Ier UM1481 YZ User manual STEVAL ISB012V1 Li lon battery monitor and gas gauge based on the STC3105 Introduction This document describes an easy and compact solution to monitor voltage current and capacity of single cell Li lon batteries using the STC3105 which has a highly efficient gas gauge In addition the board has an internal charger in order to charge the battery Battery charging can be done through the USB port or by using a DC adaptor The board contains the following devices m Battery monitoring device STC3105 Microcontroller STM32F102C8 Voltage regulator LD1117AXX33 Li lon battery charger STC4054 Step up converter L6920 Figure 1 STEVAL ISB012V1 single cell Li lon battery monitor and gas gauge based on the STC3105 MLLLLLLLLELLLLLI SE ex T Moni INE Ma AM10723v1 August 2012 Doc ID 022389 Rev 1 1 55 www st com Contents UM1481 Contents 1 Liza lm 5 1 1 Typical applications caches EEN 5 2 Getting started e ve civ wean eros c ede eee ROC QC ede EE aca 6 2 1 ici co ringer engra nnar A E Kette TT 6 22 Setting pthe board sanar naren 6 2 3 Hardware layout eg sk RR renta ERA Ka enten bike E RAS 8 3 System OVERVIEW ad acra OE Nr i de o ye MC C DR B b a i 9 3 1 General description of product architecture 9 3 2 Automatic battery capacity learning 10 4 User interface section Llll l leeeeeeeeesse 12 5 STC3105 parameter setting and display
6. V SOC etc ShowLow ShowLow Sep SOOMarm Volt Alarm SE Pressed DevicelD HEX 12 SelectMode SOCALMTH X Current C RegCounterHigh D CSOCALMTH gt Voltage ALM Relaxation lt Voltage gt RegVoltageLow Total Capacity RegSO Basd ow RegSO aseHigh SOOMarm RegSOOALM Low Volt Alarm RegSOO LM Low RegVolt Alarm RegRlxTime AM10728v1 D Doc ID 022389 Rev 1 13 55 User interface section UM1481 14 55 During startup the following welcome message appears on the LCD display Figure 7 Welcome message Battery ing Demo AM10729v1 If the battery is absent or empty below 3 V the user sees either of these two messages as shown in Figure 8 and 9 and the battery must be connected to the board Figure 8 Battery absent message Batt Absent ar Low Battery AM10730v1 Figure 9 Battery low indication NE Warning Low Battery AM10731v1 After some delay from the welcome message the LCD automatically starts displaying various battery parameters data screen as shown in Figure 10 Figure 10 Battery parameters display AM10732v1 Doc ID 022389 Rev 1 ky UM1481 User interface section On pressing the MENU key program execution enters the main menu as shown in Figure 11 Figure 11 Main menu screen BATTERY STATUS REGISTER INFO AM10733v1 While scrolling through the menu
7. 58 025 e 1 VOLTRGE V 1 Se COUNTER Sec 1 CURRENT 1 CURRENT CAPACITY Aa 1 TOTAL CAPACITY 1 CURRENT CAPACITY Gi 1 DEVICE ID HEX 1 REG VOLTAGE LOW 1 REG VOLTAGE HIGH 1 REG CURRENT LOW 1 REG CURRENT HIGH 1 REG RLX COUNTER 1 REG CHARGE LOW 1 VALUES ARE BEING UPDATED EVERY 5 SECS STMICROELECTRONICS Kee STEVRL ISB0012V1 STC3105 BATTERY MONITORING DEMO 4 0918 H 0x8D 0x06 0x9C OxFF 0x94 0x6D REG CHARGE HIGH 0x10 Si TRE AE VALUES ARE BEING UPDATED EVERY BY SLR E Peene STMICROELECTRONICS pana STEVRL ISB0012V1 STC3105 BATTERY MONITORING DEMO 3 VOLTRGE V 4 0918 3 RELAXATION COUNTER Sec H 7 CURRENT mA i 58 850 7 CURRENT CAPACITY mAh 1408 6 7 TOTAL CAPACITY mAh E 1500 0 7 CURRENT CAPACITY X f 93 911 DEVICE ID HEX 12 proc rs n REGISTER LEVEL INFORMATION HEN 777777 a REG VOLTAGE LOW 0x8D 7 REG VOLTAGE HIGH 0x06 3 REG CURRENT LOW 0x9C 7 REG CURRENT HIGH OxFF 3 REG RLM COUNTER 0x94 hi REG CHARGE L 0x6D 3 REG CHAI Ox j bidens VALUES ARE BEING UPDATED EVERY 9 SEC 77777770777 P Connected 0 00 20 Auto detect 9600 8 N 1 NUM Once the HyperTerminal is open the parameters are shown as in Figure 27 These parameters are updated on the HyperTerminal every 5 seconds as configured in the firmware With the capture text feature of the HyperTerminal it is possible to create a text file showing the information regarding the battery status O
8. Gauge Demo on your computer To continue click Next i Cancel AM10750v1 Doc ID 022389 Rev 1 ky UM1481 Graphical user interface application D Figure 29 GUI installation step 2 License Agreement STC3105 Gas Gauge Demo InstallShield Wizard Please read the following license agreement carefully I de not accept the terms of the license agreement SOFTWARE LICENSE AGREEMENT This Software License Agreement Agreement is displayed for You to read prior to downloading and using the Licensed Software If you choose not to agree with these provisions do not download or install the enclosed Licensed Software and the related documentation and design tools By using the Licensed Software You are agreeing to be bound by the terms and conditions of this Agreement Do not use the Licensed Software until You have read and agreed to the v AM10751v1 Accept the license agreement and click Next Figure 30 GUI installation step 3 Customer Information Please enter your information User Name User Company Name ST Microelectronics Install this application for Only for me User STC3105 Gas Gauge Demo InstallShield Wizard Anyone who uses this computer all users AM10752v1 Doc ID 022389 Rev 1 25 55 Graphical user interface application UM1481 26 55 e Click Next to continue installing the application F
9. STM32 low density USB U1 access line 48 pin 32 K LQFP48 STMicroelectronics STM32F102C8T6A Flash 6 K RAM U10 Reset circuit SOT23 3 WX STMicroelectronics STM1816RWX7F ESDAULC6 3BP6 ESD S U3 protection for high speed SOT 666 STMicroelectronics ESDAULC6 3BP6 2 interface O S UA Battery monitor IC with TDEN 3 0 X 2 0 X ST Microelectronics STC3105IQT Dx Coulomb counter gas gauge 0 75 Co U5 Step up converter TSSOP8 STMicroelectronics L6920D 2 800 mA standalone linear Li lon i U6 TSOT23 5L TMi lectroni TC4054GR ST devices baisi E E SOT23 5 STMicroelectronics STC4054G regulation Low drop fixed and U7 adjustable positive voltage SOT 223 STMicroelectronics LD1117AS33TR regulators D pa STESA dowdrop power SMB STMicroelectronics STPS1L30U Schottky rectifier DUAL P channel 20 V e Q7 STripFET Power MOSFET SO 8 STMicroelectronics STS4DPF20L Very low drop and low noise U8 voltage regulator low ESR SOT23 5L STMicroelectronics LD2985BM18R capacitors compatible with inhibit function 1 8 V 99 9 L8v LINN en jo Ig Got 9H 68 c00 CI 990d Table 21 Bill of material continued Manufacturer s e Sech ordering code Supplier Category Ref design Component description Package Manufacturer orderable part Supplier ordering code number or equivalent N channel 30 V STripFETTM e Q6 Il power MOSFET SOT 223 STMicroelectronics STNANFOS3L Q5 Q8 Q9 L
10. below Initially the total capacity of the battery is assumed to be default i e 1500 mAh here The user can change the total capacity of the battery to the required value as mentioned in Section 5 1 In order to learn the actual capacity of the battery we need to first discharge it completely and then charge it back to 10096 To achieve this follow the steps below 1 Do not connect external charger with the board and change switch position SW8 towards external charger This ensures that the battery is not charged on first connection Place the jumper between pin 1 and 2 of J3 2 Connect power source USB wall adapter to the board and then connect the battery 3 Steps 1 and 2 ensure the battery is neither being charged nor discharged and so it measures OCV in order to estimate initial SOC of the battery 4 Now in order to discharge the battery we must disconnect the external power source the board acts as a load and consumes power from the battery 5 Similarly if the user wants to charge the battery either an internal or external charger can be used by adjusting SW8 accordingly 6 Battery parameters appear on the LCD screen as shown in Figure 5 Figure 5 Data screen AM10727v1 7 Change the jumper position to pin 2 and 3 of J3 8 When battery voltage falls below 3 2 V LED D2 turns on and indicates that battery is low Now it is recommended to start charging the battery using an internal or external
11. by pressing the menu button or navigation buttons one of the options is always indicated by the arrow mark lt as shown in Figure 9 By pressing the enter key the corresponding tab is selected which is indicated by the arrow mark lt To scroll between the different options use the UP and DOWN switches For example if relaxation time RLX TIME is being displayed on the LCD screen as shown in Figure 12 Figure 12 Relaxation time display on LCD AM10734v1 On pressing DOWN the LCD displays current as shown in Figure 13 Figure 13 Battery current display AM10735v1 If the UP key is pressed then the voltage is displayed as shown in Figure 14 ky Doc ID 022389 Rev 1 15 55 User interface section UM1481 16 55 Figure 14 Battery voltage display AM10736v1 On pressing the MENU key control exits all the sub levels and returns to the main menu screen If the MENU key is pressed again the battery parameter display appears There are 5 switches mounted on the board to scroll through these available options They are as follows e SW1 enter switch to select the currently indicated option using the arrow e SW2 menu switch to go to the main menu from any point of the display menu e SW3 and SW4 UP and DOWN switches to scroll between the different options displayed on the LCD e SW5 reset switch to reset the microcontroller Doc ID 022389 Rev 1 ky
12. part numbers used to develop this application are shown in Table 2 Table 2 Microcontroller details Feature Description Sales type STM32F102C8T6A USB access line USB 2 0 full speed interface Package LQFP 48 7 x 7 mm Flash Kbytes 64 SRAM Kbytes 10 Operating voltage 2 0 to 3 6 V The microcontroller is used to communicate with and control the STC3105 device USB communication to display data on the PC LCD driving interfacing menu keys and menu operation Doc ID 022389 Rev 1 ky UM1481 Hardware design description 7 2 Battery monitor IC STC3105 The STC3105 monitors the critical parameters of a single cell Li lon battery voltage and current SOC etc and includes hardware functions to implement a gas gauge for battery charge monitoring based on a programmable 12 to 14 bit A D converter With a typical 20 mQ external sense resistor the gas gauge system provides a capacity of up to 10950 mAh with a resolution of 0 2 mAh as described below e Calculation of the maximum battery capacity being supported by the STC3105 The voltage drop across the external sense resistor is integrated during a conversion period and input to a 12 to 14 bit AD converter The output conversion is accumulated into a 28 bit accumulator The LSB value is set by the internal gain and internal reference and is 11 77 uV at maximum resolutions The conversion cycle for n bit resolution is 2 n clock cycles Using the
13. 105 with external MCU Jumper J10 Table 13 SDA pin for IC communication Jumper Description 1 2 Connecting the SDA pin of the STC3105 with onboard MCU STM32 2 3 Connecting the SDA pin of the STC3105 with external MCU Jumper J11 Table 14 SCL pin for DC communication Connecting the SCL pin of the STC3105 with onboard MCU STM32 Connecting the SCL pin of the STC3105 with external MCU Jumper J9 external MCU connection Table 15 Pinout for external microcontroller connections Jumper Pin function Description 1 Alarm Pinout for the ALM pin of the STC3105 for external MCU 2 NC NC 3 I2C SDC Pinout for the SDA line for external MCU 4 IOC SCL Pinout for the SCL line for external MCU 5 GND Pinout for the GND connection for external MCU Doc ID 022389 Rev 1 39 55 Connectors and jumpers UM1481 8 9 8 10 8 11 8 12 40 55 Jumper J3 Table 16 Jumper J3 configuration details Jumper Description Put the jumper in this position before powering up the board when a new battery is Te connected This ensures a clearing of the STC3105 RAM resistors Put the jumper in this position once the parameters of the battery appear on no screen As shown in Figure 5 This jumper is basically used to ensure that the RAM registers of the STC3105 device are cleared at the time of powering up the board Jumper 15 It is used to connect the load as well as the battery to the bo
14. 22389 Rev 1 AM10757v1 UM1481 Hardware schematic Figure 42 Battery charger and regulator section LCD SECTION J2 R24 LCD RS PA LCD E PA2 E E R27 DBO R29 DB1 R30 DB2 R32 DB3 LCD Di PB12 DB4 LCD D5 PB13 DB5 LCD D6 PB14 DB6 LCD D7 PB15 DB7 R34 LED LED LCD_CONNECTOR STC3105 ALM PB5 4 STC3105 ALM 2 EXT STC3105 ALM 3 EXTERNAL CONTROLLER SELECTION JUMPERS J7 EXT_STC3105_ALM EXT_STC3105 SDA EXT STC3105 SCL I2C1 SDA PB7 i STC3105 SDA 2 EXT STC3105 SDA 3 I2C1 SCL PB6 STC3105 SCL EXT STC3105 SCL WALL ADAPTOR AM10758v1 d Doc ID 022389 Rev 1 43 55 Hardware schematic UM1481 Figure 43 Switches and MOSFET switching section MOSFET SWITCHING SECTION ABS e VBAT B 1 LOAD SW PA10 H Q7 27 STS4DPF20L Q5 2STR1230 C30 tuF SINGLE CELL OUT U8 OUT IN 5 BYPASS gt 2 GND VCC INHIBIT Oo GND LD2985BM18R dL ug 74V1G14CTR 3 VBAT_B Either mount Q8 R47 and R61 or U9A and R59 N Ch MOSFET switching Section SWITCHES ENTER_P
15. 3 ESD protection device ESDAULC6 3BP6 are monolithic application specific devices dedicated to ESD protection of high speed interfaces such as USB 2 0 Ethernet links and video lines For more details please refer to the device datasheet Table 5 USBLCS6 details Feature Description Order code ESDAULC6 3BP6 Package SOT 666 7 4 Voltage regulator The LD1117 is a low drop voltage regulator able to provide up to 800 mA of output current available even in the adjustable version VREF 1 25 V High efficiency low drop voltage and the low quiescent current make them particularly suitable for low noise low power applications and in battery powered systems For more details please refer to the device datasheet A power supply of 3 3 V is generated using this IC to power up the LCD microcontroller and all other peripherals except the STC3105 which is always powered up from the battery only Table 6 Voltage regulator Feature Description Sales type LD1117AS33TR Package SOT 223 7 5 STC4054 charger IC The STC4054 charger IC is a linear mode charger which charges the battery at 4 2 V at programmable current level During constant current charging mode the charging current is programmed to a value of around 350 mA This value is selected by connecting a 1 2 8 kQ resistor Rprog across the PROG pin When the battery voltage approaches the charge voltage 4 20 V the charger enters into a constant voltage charging mode and the charging current decreases
16. 32 768 Hz internal clock the conversion cycle time is 125 to 500 ms for a 12 to 14 bit resolution The AD converter output is in 2 s complement format When a conversion cycle is completed the result is added to the charge accumulator The LSB value of the charge accumulator in mAH LSB value of ADC conversion cycle time 10 sense resistor 3600 LSB value of ADC 11 77 uV conversion time 500 mS for 14 bit resolution sense resistor 10 MQ to 50 mQ Maximum capacity of battery supported in mAH LSB value of charge accumulator 228 2 Resolution of charge register maximum capacity of battery supported 218 Table 3 Maximum capacity and charge register LSB resolution for various values of Rsense Sense resistor value DIG un ee Resolution of AD register in 10 mQ 21900 0 6 20 mQ 10950 0 3 30 MQ 7300 0 2 40 mQ 5450 0 16 50 mQ 4350 0 13 The device is programmable through the I C interface This device also has 16 RAM bytes 1 byte unique device ID and an ALM pin RAM contents are retained even up to a minimum battery voltage of 2 0 V For more details refer to the STC3105 datasheet Table 4 STC3105 details Feature Description Order code STC3105IQT Package TDFN 3 0 X 2 0 X 0 75 Operating voltage 2 7 to 5 5 V Operating current consumption 50 uA Doc ID 022389 Rev 1 33 55 Hardware design description UM1481 7
17. 99 09 Table 21 Bill of material continued Category Resistors Manufacturer s e T ordering code Supplier Ref design Component description Package Manufacturer orderable part Supplier ordering code number or equivalent R22 R23 R54 R63 330 Q SMD0805 Any R24 3 3 KQ SMD0805 Any R2 R3 R4 R5 R13 R15 R18 R19 R5 10 kQ SMD0805 Any 8 R72 R74 R25 R26 220 SMD0805 Any R27 R29 R3 0 R32 R33 R47 R62 1kQ SMD0805 Any R70 R60 R6 R7 R8 R9 R11 R14 R20 R21 R2 8 R44 R46 1 MQ SMD0805 Any R48 R51 R5 2 R59 R68 R31 R41 1 5 KQ SMD0805 Any R34 100 Q SMD0805 Any R36 1500 SMD0805 Any R37 R53 2 2 KQ SMD0805 Any R38 R39 4 7 kQ SMD0805 Any Resistor metal strip 0 02 Q OHMITE Parti 0 5 R40 SMD01206 OHMITE LVK12RO20DER Farnell 1462292 0 5 W R43 2 8k 1 SMD0805 Any R35 R42 10M SMD0805 Any L8v LINN en jo Ig GIL 9H 68 c00 CI 990d Table 21 Bill of material continued Manufacturer s e T ordering code Supplier Category Ref design Component description Package Manufacturer orderable part Supplier ordering code number or equivalent R45 2 2 MQ SMD0805 Any R50 R71 470 kQ SMD0805 Any Resistors e d 100 kQ SMD0805 Any R47 33 kQ SMD0805 Any R69 330 kQ SMD0805 Any SW1 SW2 Tactile switch SW3 SWA Pushbutton switch SMD SPNO SMD MULTICOMP DTSM 32S B Farnell Part 9471898 Switches SW5 6 mm x 3 5 mm Slide Swi
18. A0 en Q6 zi STNANFO3L J17 CON3 2STR1230 Q9 SINGLE CELL OUT DOWN PC15 6920 IN 6920 OUT JTAG CONNECTOR 12 13 15 16 19 mm ou AM10759v1 ky Doc ID 022389 Rev 1 44 55 UM1481 Hardware schematic Figure 44 USB and 5 V output section J5 6 SHELL USB_VCC USB SECTION e USBDM_PA11 C14 15pF USBDM USBDP ID USB GND R28 1M 1 5 VOLT OUTPUT R37 2 2k USB Micro B connector 6920_IN u5 1 02 _USBDP_PA1 2 1 03 ESDAULC6 3BP6 USB DP 6920 OUT A 2 LD6920_LBO_PB10 FB USB_PU_PC13 C18 47uF 16V 6920 IN a LBI LX LBO GROUND REF SHDN C21 100nF ae L6920D 6920 IN C20 T 47uF 16V C16 15pF R60 1K VBAT B L 3 L2 1 Cathode Vss STM1816RWX7F Anode Ref Utt TS3431ILT Doc ID 022389 Rev 1 AM10760v1 45 55 A 10 Bill of material Table 21 Bill of material Manufacturer s d ordering code Supplier Category Ref design Component description Package Manufacturer orderable part Supplier ordering code number or equivalent
19. ESULT IN PERSONAL INJURY DEATH OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE ST PRODUCTS WHICH ARE NOT SPECIFIED AS AUTOMOTIVE GRADE MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER S OWN RISK Resale of ST products with provisions different from the statements and or technical features set forth in this document shall immediately void any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever any liability of ST ST and the ST logo are trademarks or registered trademarks of ST in various countries Information in this document supersedes and replaces all information previously supplied The ST logo is a registered trademark of STMicroelectronics All other names are the property of their respective owners 2012 STMicroelectronics All rights reserved STMicroelectronics group of companies Australia Belgium Brazil Canada China Czech Republic Finland France Germany Hong Kong India Israel Italy Japan Malaysia Malta Morocco Philippines Singapore Spain Sweden Switzerland United Kingdom United States of America www st com ky Doc ID 022389 Rev 1 55 55
20. When the current level reaches the end of charge level the battery is almost fully charged and the charger enters maintenance mode For more details please refer to the device datasheet Table 7 Voltage regulator Feature Description Order code STC4054GR Package TSOT23 5L 34 55 Doc ID 022389 Rev 1 ky UM1481 Hardware design description 7 6 Power MOSFET There are two MOSFETs under a single 8 pin package One of these MOSFETs is used to connect the external load to battery and the other one is for the demo board to battery Table 8 Power MOSFET Feature Description Sales Type STS4DPF20L Package SO 8 ky Doc ID 022389 Rev 1 35 55 Connectors and jumpers UM1481 8 Connectors and jumpers 8 1 JTAG connector Figure 38 JTAG connector Debug JTAG port 19 17 15 13 11 9 7 5 3 1 ODO LI DI DODO ETE LILIET EI DI DEI ET TETTE 2018 16 14 12 108 6 4 2 AMOB8033v1 Table 9 Pin description of JTAG Pin Number Description Pin number Description 1 3 3 V power 2 3 3 V power 3 TRST 4 GND 5 TDI 6 GND 7 TMS 8 GND 9 TCK 10 GND 11 RTCK 12 GND 13 TDO 14 GND 15 nSRST 16 GND 17 DBGRQ 18 GND 19 DBGACK 20 GND The JTAG connector is available on the board for re programming the microcontroller and debugging 36 55 Doc ID 022389 Rev 1 UM1481 Connectors and jumpers 8 2 USB connector The standard USB micro B type 5 pin connecto
21. ae ue RE EE Bee seh ba eb qe ee 36 Micro B USB connector neee eee 37 Power supply connector neee 38 Microcontroller and battery monitoring section nee 42 Battery charger and regulator section oee 43 Switches and MOSFET switching section 44 USB and 5 V output section 0 0000s 45 Doc ID 022389 Rev 1 5 55 Key features UM1481 1 1 6 55 Key features The board demonstrates the capability of the STC3105 device which uses the Coulomb counter method to track the state of charge in order to track when the battery is charging or discharging The STC3105 uses accurate measurements of the battery voltage to estimate battery s initial state of charge SOC The board also measures current voltage relaxation time and other battery parameters set by the user using the STC3105 battery monitoring device The onboard STM32 microcontroller is interfaced with USB STC3105 LCD and switches Battery parameters are sent to the PC via the USB using the virtual COM port and can be observed using the HyperTerminal as well as the GUI The board can also display parameters on the LCD 4 switches are available for scrolling through the MENU Charging and discharging status is displayed by the and sign respectively on the LCD and also the LED D2 toggles during charging of the battery and is turned off during discharging The board also shows low voltage and SOC alarms using LED D13 depending on respective threshol
22. ant to ST s terms and conditions of sale Purchasers are solely responsible for the choice selection and use of the ST products and services described herein and ST assumes no liability whatsoever relating to the choice selection or use of the ST products and services described herein No license express or implied by estoppel or otherwise to any intellectual property rights is granted under this document If any part of this document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products or services or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such third party products or services or any intellectual property contained therein UNLESS OTHERWISE SET FORTH IN ST S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY WITH RESPECT TO THE USE AND OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND THEIR EQUIVALENTS UNDER THE LAWS OF ANY JURISDICTION OR INFRINGEMENT OF ANY PATENT COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES ST PRODUCTS ARE NOT RECOMMENDED AUTHORIZED OR WARRANTED FOR USE IN MILITARY AIR CRAFT SPACE LIFE SAVING OR LIFE SUSTAINING APPLICATIONS NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY R
23. ard Table 17 Jumper J15 configuration details Jumper Description 1 2 For load connection 2 3 For battery connection Terminal block J12 Table 18 Terminal block J12 details Pin Description Terminal block J14 Table 19 Terminal block J14 details Pin Description Battery positive terminal B Battery negative terminal Doc ID 022389 Rev 1 ky UM1481 Connectors and jumpers 8 13 Terminal block J13 Table 20 Terminal block J13 details Pin Description Load External load positive terminal Load External load negative terminal Note The load is connected to the battery via a MOSFET Once battery voltage falls below 3 15 V the MOSFET disconnects load from the battery This prevents the battery from going into deep discharge 8 14 Charger selection switch SW8 This switch is used to select between an internal onboard charger and an external charger Indication is printed on the board 8 15 External power supply selection switch SW7 This switch is used to select between the USB and Wall adapter Indication is printed on the board 8 16 uSD connector J8 The provision of an external uSD card to store various battery parameters in the future has been made Doc ID 022389 Rev 1 41 55 Hardware schematic UM1481 9 Figure 41 Hardware schematic Microcontroller and battery monitoring section OSC OUT
24. charger in order to avoid a deep discharge of the battery Doc ID 022389 Rev 1 11 55 System overview UM1481 Note 12 55 9 If charging is still not enabled battery voltage falls further and the board enters shutdown mode When battery voltage is around 2 7 V the board is turned off 10 A fully charged condition is achieved when charging current falls below 50 mA for about 30 seconds along with a battery voltage of at least 4 17 V This can be seen by a change in name from Total Capacity to Actual Capacity This can be observed on both the LCD and HyperTerminal If battery charging is stopped inside the automatic battery capacity leaning phase it does not impact it as the STC3105 takes care of battery capacity calculations by using its registers The only thing to be taken into account is that the battery should not be removed from the system and battery voltage should be above 3 1 V If any of the conditions are not met battery capacity learning restarts Doc ID 022389 Rev 1 ky UM1481 User interface section 4 User interface section There are various options available on the board to display the battery status device ID register info etc Figure 6 shows all the information which it is possible to display on the LCD by using the relevant keys Figure 6 Display flow chart WelcomeMessage YES LowSOC Check Low Volt Low voltageor soc ShowBatteryparameters NO
25. connection 38 8 9 JUMPER IG Pr 39 8 10 Jumper 5 oe sos amen at be et RR Gaeta SES Paride Reese adea 39 8 11 Terminal block J12 en 39 8 12 Terminal block J14 en 39 8 13 Terminal block J12 nn 40 8 14 Charger selection switch SW8 ussllsls lesen 40 8 15 External power supply selection switch SW7 40 8 16 uSD connector J8 en 40 9 Hardware schematic 41 10 Bill of material oaanardrervanssinwransnantnenseennts wenn wee 45 11 References ierg boca ones tetas cutee ENEE eueusnu ba 51 12 Abbreviations cm cits ox eee heal eet OR S sE RE INN DR 52 13 REVISION HISIOIV uua sg soy ick Ros E aen nerede CR eee d ee 53 ky Doc ID 022389 Rev 1 3 55 List of tables UM1481 List of tables Table 1 Table 2 Table 3 Table 4 Table 5 Table 6 Table 7 Table 8 Table 9 Table 10 Table 11 Table 12 Table 13 Table 14 Table 15 Table 16 Table 17 Table 18 Table 19 Table 20 Table 21 Table 22 Table 23 4 55 LED description 55 an irren Pane trate denas e tae wet d waded de dta 20 Microcontroller details llle 32 Maximum capacity and charge register LSB resolution for various values of Rsense 33 SIGCS3105 details aou cud zoe eee Rn Rel d x daa ace a P qon dea 33 USBECO details 42422 need rn ae A Ed i i luctu Reds 34 Voltage regulator 34 Voltage regulator ns oan oa oen Pahoa er ea RR et a EELER or ee n RA ee 34 Power MOSFET neee eee 35 Pin description
26. cuit voltage Control register it is possible to read the value of the control register as well as write the 1 bit bit 0 of this register Mode register it is possible to read the value of the mode register as well as write the 3 d and 4 bits bit 2 and 3 Doc ID 022389 Rev 1 ky UM1481 Graphical user interface application Figure 35 Key parameter page 1 Gas Gauge Application File Gas Gauge Logfile Help ei ER c Sense Resistor mOhm Battery Total Capacity rem Temperature c Internal Resistance mOhm OCV9 OCV8 OCV7 OCV6 OCVS OCV4 OCV3 OCV2 OCV1 Pn Foe Deo Ds ES e o o EZ Alarm SOC9 SOC8 SOC7 SOC6 SOCS SOC4 SOC3 SOC2 SOC1 nud mv ool coo EN Res EN EN EN EN EN Battery Low SOC Alarm 10 Regstes ZG LQLLLLLDQEDDLLLLLGLLLLGe LLAGLGBSEAOBS BGICDLLLLLLLLLLLLLL ZGmQESLLLGLLGQpJ Control Register Mode Register Bit7 Bit6 Bits Bit4 Bit3 Bit2 BI 1 22823 123 2 I3 KE ee SUM 1 AM10746v1 6 4 Other battery parameters The following are the parameters that appear on the first page of the GUI as shown in Figure 36 e Battery parameters it is possible to read and write the value of Maximum SOC at which the battery is assumed to be fully charged entered here in percentage of battery total capacity defined under key battery parameters Battery min voltage defines the cut off voltage below which the battery is assumed to be empty and th
27. der 2 54 J2 LCD_connector 14022 EE le S Any mm pitch J5 USB micro B connector SMD Molex 47589 0001 MOUSER 538 47589 0001 Header 4 pin 1x4 J15 BATT and LOAD_CONN way 2 54 mm Any pitch J8 p SD connector SMD EE MSPNO9 DO 1002 1 Technology C14 C16 C32 15 pF SMD0805 Any Capacitors cu 64 20 pF SMD0805 Any C15 4 7 nF SMD0805 Any L8v LINN en jo Ig 99 67 9H 68 c00 CI 990d Table 21 Bill of material continued Manufacturer s e T ordering code Supplier Category Ref design Component description Package Manufacturer orderable part Supplier ordering code number or equivalent C2 C4 C5 C6 C7 C8 C9 C10 C11 100 nF SMD0805 Any C17 C21 C22 C33 C19 C29 C30 C31 1 uF SMD0805 Any C35 C36 22 pF SMD0805 Any EIA 3216 18 size B or aluminum 140 Capacitors C18 C20 47 HEINEN electrolytic Any Lelon Any VZS470M1ETR Any VZS470M1ETRO5 capacitors SMD 0506 Mouser 06 25 V 47 UF 20 5X5 7 Aluminum electrolytic 667 ECE C23 100 pF 16 V capacitors Panasonic ECG ECE A1CKA101 Mouser A1CKA101 leaded 100 pF 16 V C28 2 2 UF SMD0805 Any C33 C34 4 7 UF SMD0805 Any D2 D3 D7 LEDs D13 red LED SMD0805 Any Inductors L1 10 uH SMD Colltronics Div of SD53 100 R Digi Key 513 1457 1 ND Cooper Bussmann R1 R10 R12 Resistors R49 DNM 0 SMD0805 Any R61 DNM J 149 amp UJ JO Ig rev LINN D ASH 68 c00 AI 90d
28. ds set by the user A battery with a capacity up to 10950 mAh can be monitored by the board with a 20 mQ sense resistor An external internal charger can be selected for charging the battery using a switch SW8 This allows the user to use evaluate the STC3105 with their own battery charger system The onboard charger STC4054 can be used as an internal charger for the Li lon battery The USB is used for communication with the PC to send the various battery parameters Power from the USB micro B connector can also be used to power on the board and charge the battery The user also has an option of interfacing their microcontroller to the STC3105 device using jumpers The onboard monitoring device STC3105 can be disconnected from the onboard microcontroller and the user can connect their own microcontroller gas gauge host device using the relevant pins Typical applications Battery monitoring for handheld devices such as PDAs mobile phones MP3 players Medical and health care products such as a Glucometer Digital cameras USB chargers digital photo frames Consumer applications using an Li lon battery Doc ID 022389 Rev 1 ky UM1481 Getting started 2 2 1 2 2 Getting started Package The STEVAL ISBO12V1 demonstration board package includes the following Hardware content Demonstration board STEVAL ISBO12V1 Documentation User manual this document Schematics Gerber files BOM list Microco
29. e external load is disconnected and indicated by LED D2 glowing Battery min SOC corresponding to SOC at battery nearly empty 96 System parameters it is possible to read and write various parameters like battery relaxation time battery relaxation time before OCV measurement in seconds battery low current relaxation timer current threshold i e battery max discharge current for OCV measurement application min current minimum application current consumption in mA 0 charging end current end charge current in mA charging min current min charge current in mA Doc ID 022389 Rev 1 29 55 Graphical user interface application UM1481 6 5 30 55 Figure 36 Other battery parameters page OTHER BATTERY PARAMETERS System Charging Min Current Mex SOC u ES Charging Lnd Current xa Battery Min Voltage x00 mv Application Min Current mS Battery Min SOC Es red Battery Low Current ve o Battery Relax Time AM10747v1 Battery status and data log Here it is possible to observe various battery parameters at a regular interval set by configurable log rate in addition it is also possible to observe the separate graphs of battery voltage current and SOC percentage in respect to time on the same page as shown in Figure 37 The zoomed view of graphs as well as zoom in and zoom out can be seen by simply positioning the mouse over the desired graph This option can be enabled and disabled thr
30. e virtual COM port feature After installing the driver provided for the virtual COM port or the gas gauge GUI driver which automatically installs the virtual COM port driver in addition to the GUI the user can see the battery parameters and other register information on the HyperTerminal window of the PC To do this the user should connect the micro USB cable between the board and the PC and select the device manager under the hardware tab of system properties as shown in Figure 24 Figure 23 My computer hardware properties System Restore Automatic U General Computes Name Device Manager propere of any device es The Device Manager ists all the hardware devices installed x on your Computer Use the Device Manager lo change the Remote Advanced Device Manager J Zn Drives Signing lets you make ture thal matoled drivers we i compstible valh Windows Windows Update lets you set up how Windows connects to Windows Update bor drivers DiverSiging Jl Windows Update Hardere Profiles Hardware profiles provide a way for you to set up and store x2 diferent hardware cortiga ster Hardware Prolles EE Now the user is able to see the STM Virtual COM Port under ports COM amp LPT Take a note of the COM port number Figure 24 Board appearing as a COM port device under device manager i Device Manager File Action View Help maem m Computer Se Disk drives Display adap
31. econd manual slide switch SW8 is used to select the battery charger either internal or external A MOSFET is provided between the battery and the L6920 which connects the board and is acting as a load to the battery to the battery in the absence of any external power source USB wall adapter and similarly disconnects boards from the battery in the presence of any external power source Doc ID 022389 Rev 1 ky UM1481 System overview 3 2 e Ina similar manner another MOSFET is provided between an external load and battery When battery voltage falls below the cut off value 3 15 V it disconnects the external load from the battery e Whenever the microcontroller accesses the STC3105 registers the LED D3 blinks and the values are updated e LED D2 toggles if the battery is in a charging position with either an internal or external charger This LED is turned off if the battery is being discharged and is turned on if the battery voltage is below 3 2 V e LED D13 turns on if any alarm condition occurs i e battery voltage or SOC goes below the threshold set by the user A related message also appears on the LCD Similarly if the battery is absent or deeply discharged this LED turns on and a warning message appears on the screen Automatic battery capacity learning Whenever a new battery is connected to the board it automatically estimates the present SOC percentage depending on the open circuit voltage refer to step 3
32. igure 31 GUI installation step 4 STC3105 Gas Gauge Demo InstallShield Wizard Setup Status STC3105 Gas Gauge Demo is configuring your new software installation Cancel AM10753v1 e Thesetup installs the application and then starts the installation of the virtual COM port driver Figure 32 GUl installation step 5 Device Driver Installation Wizard Completing the Device Driver Installation Wizard The drivers were successfully installed on this computer You can now connect your device to this computer If your device came with instructions please read them first Driver Name Status WV STMicroelectronics usb Ready to use AM10754v1 d Doc ID 022389 Rev 1 D UM1481 Graphical user interface application 6 2 Board initialization Figure 33 Board connection command Board connection command LGas Gouge gt alkcatien File GieGauge Logfile Help SHEI KE fi Board Hardware Sense Resistor EE En Alarm Battery Low Vol Alarm Battery Low SOC Alarm Serial Port Registers Control Register Bit7 Bit6 Bits Bit4 BS BR BRI BRO Doc ID 022389 Rev 1 KEY PARAMETERS Battery ow9 OCV8 OCV7 OCV6 OCV5 OCV4 OCV3 OCV2 OCV1 Serial Port Selection Battery Total Capacity Internal Resistance RI SOCS SOC4 SOC3 SOC2 SOC1 m EN EN EN EN EN KN i Mode Register Bit7 BAG Bit S Dit4 Dit3 Dit 2 BRI BO AM10755v1 27 55
33. ils 10 BELICE 11 Display flow chart on oen EE aes ca be a aes Pe eon Ye ca ee E i RR d 13 Welcome message nennen 14 Battery absent message eneen 14 Battery low indication nnee 14 Battery parameters display oee 14 Main menu screen 15 Relaxation time display on LCD 15 Battery current display 15 Battery voltage display lt gt lt neee 16 Entry of parameters related to GO 17 Message after entering value of parameter neen eee 17 Wrong value entry message eneen en 17 Total capacity display eeen 18 Change in the name of total capacity after complete learning of capacity 18 Alarm parameter setting eneen 18 Low voltage alarm setting neee eee 19 Relaxation counter current threshold value entry eee 20 My computer hardware properties 21 Board appearing as a COM port device under device manager 21 HyperTerminal settings eene 22 COM port property settings onee eee mh 22 HyperTerminal display 23 GUI installation step 24 GUI installation step 2 oenen enen eneen eee 25 GUI installation step 3 enen enen eneen eee 25 GUI installation step 4 nen enen eneen RR Ih 26 GUI installation step 5 enen eenen eee 26 Board connection command eee 27 Board Connected 25 cerae red er ande ar ae pom ales an A arte a 28 Key parameter page eneen eee 29 Other battery parameters Gage 30 Battery log and graph eee 31 JTAG connector nao cee irate dd yas r
34. mage shown in Figure 16 If the user enters any value below 150 mAh or above 7300 mAH the board shows the message in Figure 17 and enters default value i e 150 mAH Entering low voltage threshold of the battery If the user wants to change the low voltage alarm threshold from the default value i e 2 9 V 3 2 V they must use the setting MENU The low voltage alarm threshold is configurable and different to the cut off voltage which is fixed at 3 15 V and used to disconnect an external load from the battery To enter the battery low voltage alarm threshold select the Settings tab and select the appropriate option Now the user is able to see the image shown below Figure 21 Low voltage alarm setting AAAA Cim AM10743v1 The UP and DOWN switch sets the number To move to the next digit press enter When all the digits are set the user is able to see the image shown in Figure 16 This parameter changes the contents of REG ALARM VOLTAGE If the user enters any value below 2 9 V or above 4 2 V the board shows the message in Figure 17 and enters the default value i e 2 9 V Doc ID 022389 Rev 1 19 55 STC3105 parameter setting and display UM1481 5 4 5 5 20 55 Entering RLX counter current threshold If the user wants to change the relaxation counter current threshold from the default value i e 40 mA it is necessary to use the setting MENU To enter the battery relaxa
35. ntroller firmware Pre programmed STM32F102C8T6 device soldered onto the demonstration board Virtual COM port driver Gas gauge application GUI Setting up the board The following steps should be taken to set up the board 1 Standalone operation Get the jumper between pin 1 and 2 of J3 This ensures the clearing of the RAM registers of the STC3105 and indicates the connection of a fresh battery For details refer to jumper J3 The board can be powered up by a power adapter 5 V power supply by connecting the micro B USB cable or by the battery to be monitored A Connect the Li lon battery pack to the board with appropriate polarity across J14 A welcome message STC3105 battery monitoring demo is displayed on the LCD during startup Once again place the jumper between pin 2 and 3 of J3 For details refer to jumper J3 Now use the navigation keys SW1 SW2 SW3 and SWA to scroll through the menu Battery charging and discharging If an external power source USB or 5 V adaptor is present the internal charger can be used to charge the battery using switch SW8 Switch SW7 is used to select between the wall adapter or USB as the power source An external charger can also be connected directly across J12 Switch SW8 is used to select either an internal or external charger External load can also be connected to the board across J13 or J15 When external load and power supply is not pre
36. oas i e in Bi Ey cus connector Power LII i van l Ge e SA el Battery m Ne and load connector HI ENTER Ld dtm cms NEE Cr TR Wad el Ot 1 ey 3 SI7E 107MM179MM w STC3105 Navigation MCU keys Crystal External micro Jumper J3 connector AM10725v1 Doc ID 022389 Rev 1 9 55 d System overview UM1481 3 3 1 10 55 System overview General description of product architecture Figure 4 System architecture details STC4054 External Charger Connector Battery Pack Load Connector AM10726v1 System architecture details The STM32 communicates with the STC3105 using DC communication protocol to obtain information regarding battery capacity relaxation time current voltage etc The board is able to run on a battery source When the battery reaches its critical voltage the board goes into shutdown mode To keep track of the battery status the STC3105 is always powered up by the battery The L6920 is configured to step up input voltage to 5 V Then LD1117AS33TR produces a constant output voltage of 3 3 V to power on the LCD and the STM32 LCD and switches are used for user interface Onboard charger is provided to charge the battery Two manual slide switches are provided on the board The SW7 slide switch is used to allow the user to choose only one external power supply at a time i e either USB or an external wall adapter The s
37. of JTAG nende eenen hh 36 USB connector pin description eneen eee 37 LCD connector pin description 38 ALM pin connection of STC3105 neen 39 SDA pin for DC communication 39 SCL pin for DC communication 39 Pinout for external microcontroller connections 39 Jumper J3 configuration details 40 Jumper J15 configuration details 40 Terminal block J12 details 40 Terminal block J14 details 40 Terminal block J13 details 41 Billiot material ne ies td iteram baad hx we IR Re Loewe EE hed 46 Abbreviations tn exact anb Yio wae Cae eee NIE ee Gee a eee gu es 53 Document revision history 54 Doc ID 022389 Rev 1 ky UM1481 List of figures List of figures Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure 22 Figure 23 Figure 24 Figure 25 Figure 26 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Figure 34 Figure 35 Figure 36 Figure 37 Figure 38 Figure 39 Figure 40 Figure 41 Figure 42 Figure 43 Figure 44 STEVAL ISBO12V1 single cell Li lon battery monitor and gas gauge based on the Seil PI CET 1 STEVAL ISBO12V1 single cell Li lon battery monitor 8 Hardware layout i siue SEN a eee de RR Gc Rok oe EIN be ee Rs o 9 System architecture deta
38. ough the options available on the same page If the user wants to start a new log there is also an available option to clear the previous screen The log rate can also be changed by using the appropriate option The following are the key features Observe various parameters like battery voltage battery current battery SOC in mAH etc at a regular interval set by the log rate The GUI can display separate graphs of battery voltage current and SOC percentage in respect to time on the same page Zoom in and zoom out effect of graph is also available It is possible to clear the log if necessary in order to view a new log Doc ID 022389 Rev 1 ky UM1481 Graphical user interface application Figure 37 Battery log and graph Gas Gauge Application File GasGauge Logfile Help LX NN LR Voltage vs Time Voltage vs Time a A Log Rate 1 sec Time of Start Log 6 10 2011 5 07 PM Battery Current 80 6245 mA Battery Voltage 3 94548 V Battery SOC 854 25 mAH eee T mr 1 2 3 4 5 6 7 8 Battery Relative SOC 57 Time sec Voltage V Battery Full Cha MEUS Current vs Time Battery Status Current vs Time Plot Enlarge Effect a Enable a Disable 5 6 Time sec SOC vs Time AM10748v1 Note For more details please refer to the help file available in the GUI Doc ID 022389 Rev 1 31 55 d Hardware design description UM1481 7 7 1 32 55 Hardware design desc
39. ow voltage fast switehing SOT 23 STMicroelectronics 2STR1230 NPN power transistor Shas Q3 Low voltage fastSwi tching SOT 23 STMicroelectronics 2STR2215 PNP power transistor U9 Single Schmitt inverter SOT323 5L STMicroelectronics 74V1G14CTR Uti U12 Programmable shunt voltage cor 3 STMicroelectronics TS3431ILT reference pied y1 Quartz crystal 8 MHz SMD ECS Inc ECS 80 S 5PX TR Digi Key XC1243CT ND Box header right angle 20 way J1 JTAG connector 2x10 pin 2 54 Protectron P9604 20 15 1 mm x 2 54 mm Connectors piten and Socket DC power jumpers J6 Power jack 2 5 mm 2 5 mm right Protectron PDCJ01 08 Protectron PDCJ01 08 angle locking type J3 J4 J7 J10 J11 CON3 s ud a Any J16 and J17 P J 49 amp UJ JO Ig rev LINN 9H 68 c00 GI 90d SS 8v Table 21 Bill of material continued Manufacturer s e T ordering code Supplier Category Ref design Component description Package Manufacturer orderable part Supplier ordering code number or equivalent 1x5 header 2 54 J9 CON5 mm x 2 54 mm 1 pitch Header top entry 2 way 2 pin through hole J12 J13 through hole vertical vertical plug WEIDMULLER Farnell Fare J14 SL 5 08 2 180 1121826 plug 5 08 mm pitch Socket block screw 2 way Pluggable J12 J13 26 14AWG pitch spacing Parti Connectors J14 5 08 mm terminal block no WEIDMULLER BL 5 08 2 Farnell 1131811 of contacts 2 and Jumpers 1x16 hea
40. pen this file with WordPad Doc ID 022389 Rev 1 23 55 Graphical user interface application UM1481 6 6 1 24 55 Graphical user interface application It is possible to monitor and set various battery parameters using a GUI which also communicates with the demo board through the USB virtual COM port Only one of the two HyperTerminal or GUI can be run at any one time The key features of the GUI are e Itcan show gas gauge results such as voltage current etc at the log frequency set by the user e It also shows three different graphs of voltage current and SOC percentage with respect to time e Theusercan set various parameters like key battery parameters battery total capacity etc alarm parameters SOC and voltage alarm board hardware parameters sense resistor vin resistor and some other battery parameters e The gas gauge can also be started and stopped using the GUI e Itis also possible to read mode and control registers as well as write some bits of these two registers After proper installation of the GUI demo the user can read and write various parameters of the board as mentioned below Installation of the GUI e Click the setup package and start the installation of the application Figure 28 GUI installation step 1 STC3105 Gas Gauge Demo InstallShield Wizard Welcome to the InstallShield Wizard for STC3105 Gas Gauge Demo The InstallShield Wizard will install STC3105 Gas
41. r is used An additional 4 connections pins 6 9 in the schematics are connected to the body of the connector The maximum current drawn by the board from the USB host hub should be less than 500 mA in any condition to respect the USB specifications Figure 39 Micro B USB connector AM10749v1 Table 10 USB connector pin description Pin number Description VBUS power 5 V supply from USB bus DM USB D signal DP USB D signal GND ground signal SHIELD SHIELD SHIELD SHIELD jo 0o Ooc m COC I ky Doc ID 022389 Rev 1 37 55 Connectors and jumpers UM1481 8 3 Power supply connector The adaptor connector is available for connecting an external voltage source An adaptor of 5 V DC can be used Figure 40 Power supply connector DC 5V Viewed from front AM10756v1 8 4 LCD connector Table 11 LCD connector pin description Pin no Details 1 GND 2 3 3 V 3 Contrast connect to 3 3 V through resistor ARS 5 GND 6 Enable 7 GND 8 GND 9 GND 10 GND FDA 12 D5 13 D6 14 D7 15 3 3 V 16 GND 38 55 Doc ID 022389 Rev 1 ky UM1481 Connectors and jumpers 8 5 8 6 8 7 8 8 Jumper J7 Table 12 ALM pin connection of STC3105 Jumper Description 1 2 Connecting the ALM pin of the STC3104 with onboard MCU STM32 2 3 Connecting the ALM pin of the STC3
42. ription The board supports both USB and a wall adapter external supply A switch SW7 is used to choose between these two When an external supply is absent the whole board consumes power from the battery In this case the step up converter device L6920 steps up battery voltage to 5 V The voltage from these sources external or L6920 is connected to a low drop out regulator LD1117V which gives 3 3 V output This output is used for powering up devices such as the LCD microcontroller etc The STC3105 battery monitoring device always receives power from the battery In order to avoid the loss of data stored in the RAM registers of the STC3105 during power off Microcontroller STM32 The STM32 is a 32 bit MCU based on the popular ARM 32 bit Cortex M3 CPU The STM32 device STM32F102C8T6A used in this demonstration board runs at 48 MHz The microcontroller has single cycle multiplication and hardware division The device supports low power mode such as sleep stop and also standby This device microcontroller has up to 5 communication interfaces which includes two I Cs 400 kHz three USARTs two SPIs 12 Mbit s and USB 2 0 full speed interface For more details refer to the STM32F102x8 datasheet and RM0008 reference manual For this application a minimum of one DC to interface with the STC3105 is needed a USB to support a USB based charger and USB data transfer and some general purpose IOs for the user interface are required The
43. sent the board itself acts as a load to the battery and discharges it Make sure to connect the external power supply source if battery voltage is below cut off voltage It is shown by LED D2 Cut off voltage is set to 3 2 V below this any external load connected at J13 J15 is also disconnected by MOSFET Q7 acting as a switch between battery and external load Doc ID 022389 Rev 1 7 55 Getting started UM1481 3 Displaying battery parameters on PC HyperTerminal To display battery parameters on the HyperTerminal connect the micro B cable and open a new HyperTerminal window Details are given in Figure 2 Figure 2 STEVAL ISB012V1 single cell Li lon battery monitor JTAG connector PPE PERE LEBEL LD AE Reset switch Switch SW8 Status LEDS External charger connector Switch SW7 Battery USB connector connector External load connector ower Jack Li lon battery pack heu STC3105 Menu navigation keys External mocro Jumper J3 connector AM10724v1 V d 8 55 Doc ID 022389 Rev 1 UM1481 Getting started 2 3 Hardware layout The hardware layout of the PCB is shown in Figure 3 which shows all the components mounted on the board Figure 3 Hardware layout JTAG connector Reset switch Switch SW8 Status LEDs External charger Switch SW7 connector Battery connector USB mate connector e m Dl 35 1777 eres ei e H tse cre
44. tch 2 position Through hole ne SW7 SW8 Vertical Black T H 3 0 mm pitch TE connectivity SLS121PC04 Digi Key 450 1598 ND Others Ones ECD 16 x 2 alpha Modular Oriole numeric LCD JBla ew JO lg rev LINN References UM1481 11 52 55 References 1 STC3105 datasheet 2 STMw32 datasheet Doc ID 022389 Rev 1 UM1481 Abbreviations 12 Abbreviations Table 22 Abbreviations Term Meaning SOC Battery state of charge i e capacity charge available in battery LED Light emitting diode LDO Low dropout regulator MCU Microcontroller unit GUI Graphical user interface LCD Liquid crystal display mAH Milli ampere hour USB Universal serial bus Li lon Lithium lon MOSFET Metal oxide semiconductor field effect transistor uSD Micro SD card ky Doc ID 022389 Rev 1 53 55 Revision history UM1481 13 54 55 Revision history Table 23 Document revision history Date 07 Aug 2012 Revision 1 Initial release Changes Doc ID 022389 Rev 1 UM1481 Please Read Carefully Information in this document is provided solely in connection with ST products STMicroelectronics NV and its subsidiaries ST reserve the right to make changes corrections modifications or improvements to this document and the products and services described herein at any time without notice All ST products are sold pursu
45. ted the user sees the image in Figure 18 on the LCD showing total capacity Figure 18 Total capacity display TOTAL CAPACITY 746 mAh AM10740v1 If capacity learning is over the actual capacity is displayed on the LCD for total capacity as shown in Figure 19 Figure 19 Change in the name of total capacity after complete learning of capacity ACTUAL CAPACITY 135 08 mAh AM10741v1 5 2 Entering low SOC threshold of the battery This is the threshold value of SOC below which the battery is supposed to be empty or if the charge available in the battery is not sufficient to run the load The board indicates an alarm once the battery capacity SOC drops below this If the user wants to change the LOW SOC alarm threshold it changes the contents of REG ALARM SOC LOW and REG ALARM SOC HIGH from the default value i e 10 of default battery capacity 150 mAH the user must use the setting menu Figure 20 Alarm parameter setting ENTER SOC ALM ENTER UOLT ALM AM10742v1 To enter the battery LOW SOC Alarm select the Settings tab and select the appropriate option Now the user is able to see the image shown in Figure 15 18 55 Doc ID 022389 Rev 1 ky UM1481 STC3105 parameter setting and display 5 3 Note Using the UP and DOWN switch sets the number To move to the next digit press enter When all the digits are set the user is able to see the i
46. ters 2 DYD CD ROM drives S IDE ATA ATAPI controllers Keyboards Mice and other pointing devices 2 Monitors A88 Network adapters JN Ports COM amp LPT d Communications Port COM1 d d Intel R Remote PC Assist Technology SOL COM4 E STMicroelectronics Virtual COM Port COM15 Processors Sound video and game controllers t System devices E A Universal Serial Bus controllers Doc ID 022389 Rev 1 21 55 STC3105 parameter setting and display UM1481 Open the HyperTerminal window as shown in Figure 24 and select the same COM port number which was shown with the name STM Virtual COM Port Set the properties as shown in Figure 26 Figure 25 HyperTerminal settings Connect To B STC3105 Battery Monitoring Demo Enter details for the phone number that you want to dial Country region Area code Phone number Connect using COM4 Figure 26 COM port property settings 1C3105 Battery Monitoring Demo Hyper Terminal Dug e 5 0D Sr COM13 Properties Port Settings Bits per second 9600 Data bits 8 Parity Stop bits Flow control Auto detect Auto detect D 22 55 Doc ID 022389 Rev 1 UM1481 STC3105 parameter setting and display D Figure 27 HyperTerminal display STC3105 Battery Monitoring Demo Hyper Terminal File Edit View Call Transfer Help
47. tion counter current threshold select the Settings tab and select the appropriate option It is now possible to see the information in Figure 22 Figure 22 Relaxation counter current threshold value entry HEE mH AM10744v1 Using the UP and DOWN switch sets the number We can enter this threshold value in multiples of 20 mA only To move to the next digit press enter When all the digits are set the user is able to see the information shown in Figure 16 If the user enters any value below 40 mA or above 4 8 A the board shows the information in Figure 17 If the user enters a value that is not a multiple of 20 mA then the value entered is automatically for the lower closest value available in multiples of 20 mA e g if the user enters 65 mA then the board automatically accepts 60mA as it is the closest value lower than 65 mA and also a multiple of 20 mA Status LED description Table 1 LED description LED Description Toggling OFF ON Charging discharging Battery below D2 stat s Charging Discharging 3 45 V D3 STC3105 register Register being No acc s Some problem access accessed per second Alarm occurred D13 Alarm LED Alarm situation refer Noal rm refer to displayed to message on display message to see type of alarm Doc ID 022389 Rev 1 ky UM1481 STC3105 parameter setting and display 5 6 D HyperTerminal display settings The STC3105 board supports th
Download Pdf Manuals
Related Search
Related Contents
manuale di installazione e programmazione quick User guide Pentax 17454 Digital Camera User Manual Frigidaire FFQG5100PW Installation Instructions youniversal3Dメガネ X104 Scanned Document 広報 日本の象徴、世界の宝である富士山を 地元の皆さん JVC Model SR-TS1U User's Manual Copyright © All rights reserved.
Failed to retrieve file