Quick Start Guide for the Atmel SB202

APPLICATION NOTE
Atmel AVR362: Quick Start Guide for the Atmel SB202
8-bit Atmel Microcontrollers
Features
•
•
Kit setup requirement
Step-by-step procedures
Introduction
The Atmel® SB202 Smart Battery board manages two, three, or four Li-ion battery
cells in series. This document gives an introduction on how to set up the SB202 with
an Atmel SB200 demonstration board. It explains the setup procedure step by step to
make the SB202 work properly together with the SB200.
Figure 1.
The SB202 mounted on the SB200 in a four-cell configuration.
8376B−AVR−08/2012
1.
Kit setup requirement
The following are needed to set up the kit platform:
1.
2.
3.
4.
2.
One Atmel SB202.
One Atmel SB200.
Four 16340 Li-ion battery cells, provided with the SB200. These batteries have built-in protection to ensure
that misuse does not expose the user to any danger, as Li-ion battery cells can be explosive.
Atmel AVR® Battery Studio, which is used with a PC to interact with the SB202 through the SB200’s USBSMBus gateway and depict the momentary battery status. AVR Battery Studio is available for download from
the ATAVRSB200 page on http://www.atmel.com/tools/ATAVRSB200.aspx.
Quick start step-by-step guide
The Atmel SB202 firmware is configured by default in production for 4s battery cells. The following procedure can be
used to get the kit started with the default firmware:
1.
2.
3.
4.
5.
6.
7.
8.
9.
Insert the SB202 onto the Atmel SB200.
Set the large, red Number of Cells jumper to position 4. Please take caution to ensure that the jumper’s
position is set correctly according to the actual number of cells used. If the jumper is placed incorrectly, it may
short some battery cells.
Insert battery cells in the CELL 1, CELL 2, CELL 3 and CELL 4 sockets, taking care to be aware of their
polarity. The mounting order should be: CELL1 – CELL2 – CELL3 – CELL4, and the demounting order should
be CELL4 – CELL3 – CELL2 – CELL1.
Connect the USB cable between the PC and the SB200.
Connect 18~20V DC to the SB200, with the “+” at the center pin.
Either press the HWB button on the SB200 or start the charger via the PC software to power up the SB202.
The HWB button starts a charge for a maximum of one minute or until you press the button again. The charge
voltage is set according to which SB20x is connected.
Start the Atmel AVR Battery Studio PC software.
Select 4 as the numbers of cells in the pop-up window. Verify that the USB status is “Connected” and that the
board indicated in the output area in AVR Battery Studio is SB202. If the output area is hidden, it can be
displayed by selecting View – Toolbars – Output from the menu. The SB202 will run through a calibration the
first time it is started, which may last up to 30 seconds.
Try the read commands from the SB202. Check the following checkboxes:
a. Voltage
b. Current
c. RelativeStateOfCharge
d. RemainingCapacity
e. VoltageCell2
f. VoltageCell1
g. VoltageCell3
h. VoltageCell4
After completing this step, the kit is essentially set up. Battery data can be read out and shown on the PC software.
The following steps are intended to check and calibrate the battery to make it work properly.
10. Check the manufacture information by reading the following commands:
a.
b.
c.
d.
ManufacturerName (Atmel)
DeviceName (SB202-4 – four cell)
DeviceChemistry (Lithium-Ion)
ManufacturerData (AVR474 application note)
Atmel AVR362: Quick Start Guide for the Atmel SB202 [APPLICATION NOTE]
8376B−AVR−08/2012
2
11. Test authentication
a.
b.
c.
d.
e.
f.
Open the authentication dialog by selecting Tools – Authentication from the menu
Choose HMAC: the HMAC-SHA2 encryption will be used
The default key for HMAC-SHA2 is “This is a long key for HMAC-SHA2.” Type the key in the Key textbox
Type 31 bytes as the host challenge: for example (without the quotes), “You can pass the Authentication”,
or “1234567890123456789012345678901”
Push WRITE, and then READ. The result is “HMAC correct!”
Change the key, and try again. The result will be “HMAC incorrect...”
The Atmel SB202 also supports authentication based on AES, but a recompilation is needed to change the encryption
method. For more details, please refer to the Atmel application note “AVR474: ATAVRSSB202 Firmware User’s Guide”.
12. Recalibrate the shunt resistor. The shunt resistor on the SB202 has an accuracy of ±1%, and can, therefore,
cause inaccurate measurements if it is not calibrated to the actual resistance. Click the shunt resistor shown
on the diagram in the PC software and the shunt resistor window through which the new shunt resistance can
be updated will appear. For details on how to update shunt resistance, please refer to the application note
“AVR491: Quick Start Guide for SB200”.
13. Perform charge or discharge. The SB200 includes a built-in charger and loader. In general, the charging
current should not be more than 0.7Coulomb, while the discharging current should be less than 1.2Coulomb.
For more details, please refer to the application note “AVR491: Quick Start Guide for SB200”.
Atmel AVR362: Quick Start Guide for the Atmel SB202 [APPLICATION NOTE]
8376B−AVR−08/2012
3
3.
EVALUATION BOARD/KIT IMPORTANT NOTICE
This evaluation board/kit is intended for use for FURTHER ENGINEERING, DEVELOPMENT, DEMONSTRATION, OR
EVALUATION PURPOSES ONLY. It is not a finished product, and may not (yet) comply with some or any technical or
legal requirements that are applicable to finished products, including, without limitation, directives regarding
electromagnetic compatibility, recycling (WEEE), FCC, CE, or UL (except as may be otherwise noted on the board/kit).
Atmel supplied this board/kit “AS IS,” without any warranties, with all faults, at the buyer’s and further users’ sole risk.
The user assumes all responsibility and liability for proper and safe handling of the goods. Further, the user indemnifies
Atmel from all claims arising from the handling or use of the goods. Due to the open construction of the product, it is the
user’s responsibility to take any and all appropriate precautions with regard to electrostatic discharge and any other
technical or legal concerns.
EXCEPT TO THE EXTENT OF THE INDEMNITY SET FORTH ABOVE, NEITHER USER NOR ATMEL SHALL BE
LIABLE TO EACH OTHER FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES.
No license is granted under any patent right or other intellectual property right of Atmel covering or relating to any
machine, process, or combination in which such Atmel products or services might be or are used.
Mailing Address: Atmel Corporation, 2325 Orchard Parkway, San Jose, CA 95131
Copyright © 2012, Atmel Corporation
Atmel AVR362: Quick Start Guide for the Atmel SB202 [APPLICATION NOTE]
8376B−AVR−08/2012
4
Atmel Corporation
Atmel Asia Limited
Atmel Munich GmbH
Atmel Japan G.K.
1600 Technology Drive
Unit 01-5 & 16, 19F
Business Campus
16F Shin-Osaki Kangyo Bldg.
San Jose, CA 95110
BEA Tower, Millennium City 5
Parkring 4
1-6-4 Osaki, Shinagawa-ku
USA
418 Kwun Tong Road
D-85748 Garching b. Munich
Tokyo 141-0032
Tel: (+1)(408) 441-0311
Kwun Tong, Kowloon
GERMANY
JAPAN
Fax: (+1)(408) 487-2600
HONG KONG
Tel: (+49) 89-31970-0
Tel: (+81)(3) 6417-0300
www.atmel.com
Tel: (+852) 2245-6100
Fax: (+49) 89-3194621
Fax: (+81)(3) 6417-0370
Fax: (+852) 2722-1369
© 2012 Atmel Corporation. All rights reserved. / Rev.: 8376B−AVR−08/2012
Atmel®, Atmel logo and combinations thereof, AVR®, AVR Studio®, Enabling Unlimited Possibilities®, and others are registered trademarks or trademarks of Atmel
Corporation or its subsidiaries. Other terms and product names may be trademarks of others.
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this
document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, ATMEL ASSUMES
NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS AND PROFITS, BUSINESS INTERRUPTION, OR LOSS OF
INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no
representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and products descriptions at any time
without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in,
automotive applications. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.