@ -0,0 +1,21 @@ | |||||
\relax | |||||
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{1}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Part Selection Summary}{3}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Current monitor}{5}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}PCB Revision - Modular Parts}{6}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Cut out with pliers and reuse parts.\relax }}{7}} | |||||
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.3.1}Ripped off by temperature sensors}{7}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces technoblogy has an article on using a micro with an external thermocouple\relax }}{8}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {3}Bom Notes}{8}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}SOD323 (diode) is equal to 0805}{9}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {4}PCB Build and Test Notes}{9}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Current usage, and Solar Project}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Current Limiting resistor on LT1512}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Separate Grounds 1512}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}Switches Max Current}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.5}Usage}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.6}Forgot V Dividers for batteries gt 5v}{11}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {5}Rev 2 Build}{11}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Solution: Grounding Soldering Issue}{11}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Vin Input Cap}{12}} |
@ -0,0 +1,338 @@ | |||||
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 24 JAN 2020 00:43 | |||||
entering extended mode | |||||
restricted \write18 enabled. | |||||
%&-line parsing enabled. | |||||
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ | |||||
batterycharge_stationdata/docs/10.tex | |||||
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/b | |||||
atterycharge_stationdata/docs/10.tex | |||||
LaTeX2e <2017/01/01> patch level 3 | |||||
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls | |||||
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo | |||||
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option) | |||||
) | |||||
\c@part=\count79 | |||||
\c@section=\count80 | |||||
\c@subsection=\count81 | |||||
\c@subsubsection=\count82 | |||||
\c@paragraph=\count83 | |||||
\c@subparagraph=\count84 | |||||
\c@figure=\count85 | |||||
\c@table=\count86 | |||||
\abovecaptionskip=\skip41 | |||||
\belowcaptionskip=\skip42 | |||||
\bibindent=\dimen102 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty | |||||
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty | |||||
Package: keyval 2014/10/28 v1.15 key=value parser (DPC) | |||||
\KV@toks@=\toks14 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty | |||||
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty | |||||
Package: trig 2016/01/03 v1.10 sin cos tan (DPC) | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg | |||||
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration | |||||
) | |||||
Package graphics Info: Driver file: pdftex.def on input line 99. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def | |||||
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty | |||||
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO) | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty | |||||
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO) | |||||
) | |||||
\Gread@gobject=\count87 | |||||
)) | |||||
\Gin@req@height=\dimen103 | |||||
\Gin@req@width=\dimen104 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty | |||||
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty | |||||
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR) | |||||
Package caption3 Info: TeX engine: e-TeX on input line 67. | |||||
\captionmargin=\dimen105 | |||||
\captionmargin@=\dimen106 | |||||
\captionwidth=\dimen107 | |||||
\caption@tempdima=\dimen108 | |||||
\caption@indent=\dimen109 | |||||
\caption@parindent=\dimen110 | |||||
\caption@hangindent=\dimen111 | |||||
) | |||||
\c@ContinuedFloat=\count88 | |||||
) (./10.aux) | |||||
\openout1 = `10.aux'. | |||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii | |||||
[Loading MPS to PDF converter (version 2006.09.02).] | |||||
\scratchcounter=\count89 | |||||
\scratchdimen=\dimen112 | |||||
\scratchbox=\box26 | |||||
\nofMPsegments=\count90 | |||||
\nofMParguments=\count91 | |||||
\everyMPshowfont=\toks15 | |||||
\MPscratchCnt=\count92 | |||||
\MPscratchDim=\dimen113 | |||||
\MPnumerator=\count93 | |||||
\makeMPintoPDFobject=\count94 | |||||
\everyMPtoPDFconversion=\toks16 | |||||
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty | |||||
Package: pdftexcmds 2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty | |||||
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO) | |||||
Package ifluatex Info: LuaTeX not detected. | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty | |||||
Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch | |||||
) | |||||
Package pdftexcmds Info: LuaTeX not detected. | |||||
Package pdftexcmds Info: \pdf@primitive is available. | |||||
Package pdftexcmds Info: \pdf@ifprimitive is available. | |||||
Package pdftexcmds Info: \pdfdraftmode found. | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty | |||||
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty | |||||
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty | |||||
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO) | |||||
)) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty | |||||
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty | |||||
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty | |||||
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO) | |||||
Package etexcmds Info: Could not find \expanded. | |||||
(etexcmds) That can mean that you are not using pdfTeX 1.50 or | |||||
(etexcmds) that some package has redefined \expanded. | |||||
(etexcmds) In the latter case, load this package earlier. | |||||
))) | |||||
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 | |||||
38. | |||||
Package grfext Info: Graphics extension search list: | |||||
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE | |||||
G,.JBIG2,.JB2,.eps] | |||||
(grfext) \AppendGraphicsExtensions on input line 456. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg | |||||
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv | |||||
e | |||||
)) | |||||
Package caption Info: Begin \AtBeginDocument code. | |||||
Package caption Info: End \AtBeginDocument code. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <12> on input line 11. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <8> on input line 11. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <6> on input line 11. | |||||
(./10.toc | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <10.95> on input line 3. | |||||
) | |||||
\tf@toc=\write3 | |||||
\openout3 = `10.toc'. | |||||
[1 | |||||
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] | |||||
Overfull \hbox (3.29704pt too wide) in paragraph at lines 20--25 | |||||
\OT1/cmr/m/n/10.95 https://electronics.stackexchange.com/questions/95970/how-to | |||||
-use-battery- | |||||
[] | |||||
Overfull \hbox (548.30061pt too wide) in paragraph at lines 26--28 | |||||
[]\OT1/cmr/m/n/10.95 https://www.st.com/content/ccc/resource/technical/document | |||||
/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:cont | |||||
ent/translations/en.CD00132951.pdf | |||||
[] | |||||
Overfull \hbox (107.1064pt too wide) in paragraph at lines 46--49 | |||||
[]\OT1/cmr/m/n/10.95 https://www.maximintegrated.com/en/products/power/battery- | |||||
management/MAX1772.html | |||||
[] | |||||
Overfull \hbox (119.66849pt too wide) in paragraph at lines 62--67 | |||||
[]\OT1/cmr/m/n/10.95 http://www.eevblog.com/forum/beginners/mc34063-battery-cha | |||||
rger/msg1378671/#msg1378671 | |||||
[] | |||||
[2] | |||||
Overfull \hbox (7.91602pt too wide) in paragraph at lines 79--79 | |||||
[]\OT1/cmtt/m/n/10.95 I'd recommend just float charging. It takes only a little | |||||
longer[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 and is easier on the batteries. You will need to limit t | |||||
he initial[] | |||||
[] | |||||
Overfull \hbox (7.91602pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 charge current to about 0.1 C (so 2 A for a 20 AH batter | |||||
y). The[] | |||||
[] | |||||
Overfull \hbox (2.16733pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 easiest way to do this is a constant current/ constant v | |||||
oltage[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 power supply. Set the current limit to the desired charg | |||||
e current,[] | |||||
[] | |||||
Overfull \hbox (2.16733pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 temperature if needed). The voltage on the battery will | |||||
slowly[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 increase over time until it reaches ~13.8 V, then the cu | |||||
rrent will[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 slowly drop over time until it reaches nearly zero. At t | |||||
hat point,[] | |||||
[] | |||||
Overfull \hbox (19.41339pt too wide) in paragraph at lines 79--79 | |||||
[]\OT1/cmtt/m/n/10.95 the battery is fully charged and you can either remove th | |||||
e charger[] | |||||
[] | |||||
[3] | |||||
LaTeX Font Info: Try loading font information for OMS+cmr on input line 106. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd | |||||
File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions | |||||
) | |||||
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10.95> not available | |||||
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 106. | |||||
[4] [5] | |||||
<../pics/modular_reusable.jpg, id=24, 435.12563pt x 412.54124pt> | |||||
File: ../pics/modular_reusable.jpg Graphic file (type jpg) | |||||
<use ../pics/modular_reusable.jpg> | |||||
Package pdftex.def Info: ../pics/modular_reusable.jpg used on input line 190. | |||||
(pdftex.def) Requested size: 435.12456pt x 412.54024pt. | |||||
Package caption Warning: \captionsetup{type*=...} or \captionof | |||||
(caption) outside box or environment on input line 191. | |||||
See the caption package documentation for explanation. | |||||
Overfull \hbox (92.12456pt too wide) in paragraph at lines 190--191 | |||||
[][] | |||||
[] | |||||
[6] [7 <../pics/modular_reusable.jpg>] | |||||
<../pics/tinythermocouple.jpg, id=32, 1134.2375pt x 525.965pt> | |||||
File: ../pics/tinythermocouple.jpg Graphic file (type jpg) | |||||
<use ../pics/tinythermocouple.jpg> | |||||
Package pdftex.def Info: ../pics/tinythermocouple.jpg used on input line 200. | |||||
(pdftex.def) Requested size: 340.27388pt x 157.79071pt. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <9> on input line 203. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <5> on input line 203. | |||||
[8 <../pics/tinythermocouple.jpg>] [9] | |||||
[10] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 276--278 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 279--281 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 285--287 | |||||
[] | |||||
[11] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 298--300 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 301--303 | |||||
[] | |||||
[12] (./10.aux) ) | |||||
Here is how much of TeX's memory you used: | |||||
2609 strings out of 494945 | |||||
41763 string characters out of 6181032 | |||||
96823 words of memory out of 5000000 | |||||
5893 multiletter control sequences out of 15000+600000 | |||||
10198 words of font info for 36 fonts, out of 8000000 for 9000 | |||||
14 hyphenation exceptions out of 8191 | |||||
39i,8n,39p,1023b,239s stack positions out of 5000i,500n,10000p,200000b,80000s | |||||
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/ | |||||
cmbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12 | |||||
.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></ | |||||
usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/sha | |||||
re/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texli | |||||
ve/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf | |||||
-dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fo | |||||
nts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/ty | |||||
pe1/public/amsfonts/cm/cmtt10.pfb> | |||||
Output written on 10.pdf (12 pages, 311687 bytes). | |||||
PDF statistics: | |||||
81 PDF objects out of 1000 (max. 8388607) | |||||
55 compressed objects within 1 object stream | |||||
0 named destinations out of 1000 (max. 500000) | |||||
11 words of extra memory for PDF output out of 10000 (max. 10000000) | |||||
@ -0,0 +1,325 @@ | |||||
\documentclass[11pt]{article} | |||||
%Gummi|065|=) | |||||
\usepackage{graphicx} | |||||
\usepackage{caption} | |||||
\title{\textbf{BatteryMonitorBoard}} | |||||
\author{Steak Electronics} | |||||
\date{} | |||||
\begin{document} | |||||
\maketitle | |||||
\tableofcontents | |||||
\section{Overview} | |||||
\section{Chip Hunting} | |||||
Need to find a chip for battery charging. Some sheets have been saved. I looked at TI primarily. Though considered one AD/LTC. BQ2954 is out of the question as its too complex in its application circuit. THe BQ2000 is a 8 pin DIP and seems like a good start. That will cover nicad/nimh, and lithium batteries. | |||||
Though the BQ2000 is a bit of a mess as well. Data sheet has a complex circuit. There is a simpler one here: | |||||
http://www.ti.com/lit/pdf/sluu007 | |||||
and | |||||
https://electronics.stackexchange.com/questions/95970/how-to-use-battery-charge-controller-bq2002n | |||||
Regardless of the contents of that post, the fact is, the chip requires a lot of stuff. | |||||
https://www.st.com/content/ccc/resource/technical/document/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:content/translations/en.CD00132951.pdf | |||||
This chip: stc4054, is extremely simple. Limited to 1 lithium cell (so only 4.2 volts max) but application circuit is lean, and it has a shutdown pin, so you can turn off the charger. Price is the cheapest as well, at 1.50 for 1. | |||||
That looks hopeful. Why not multiple? | |||||
Need to remember to be careful of 4.1 lithium batteries. Most chargers are 4.2, and its easy to forget that there is a difference. | |||||
MCP73826 is another reasonable option. Slightly more complex, but not by much. | |||||
RT9526A is also simple. Let's start with the st chip. | |||||
Looks like the voltage on that pin should be between 1.2 and 2.4 in order to turn it off. Below 1.2 it is on, and monitoring current. Above 1.2 but below 2.4 it is off. above 2.4 it's putting 35ua into the battery. I think. | |||||
Also like the LTC1734, which is lithium / nicad. But expensive at 3-4 dollars. Don't see any lead acid battery chargers on digi that aren't being obsoleted. There's not one. I did see some on manufacturer's pages though. Just not here. | |||||
There is one microchip one (lead acid) based on a pic. App circuit is complex. | |||||
AN1015 is the app note. | |||||
So need a lead, and nicd charger still. | |||||
Tomorrow I'd like to look at maxim. I see this: | |||||
https://www.maximintegrated.com/en/products/power/battery-management/MAX1772.html | |||||
But the application circuit is too much for what I want to deal with. | |||||
Seems lead acid battery chargers are not as common as they must've been before. | |||||
Onsemi is only lithium batteries. | |||||
Mouser has only universal chargers, no lead. But universal includes lead. | |||||
let's check linear. LT1510 is an 8 pin simple device. Though it's nicad and lithium only. It says it can do lead in table, but not in datasheet. | |||||
lt1510 would work for nicad. data sheet figure 6 has a circuit for nicad. | |||||
What about lead? | |||||
lt1513 does the three main types: nicd,li-ion,lead | |||||
At a cost of \$10. | |||||
At digi, the bq2031 is the only lead battery chip (not multi type) that is in production. Not much choice. EDIT: actually that is not | |||||
recommended for new designs either. | |||||
http://www.eevblog.com/forum/beginners/mc34063-battery-charger/msg1378671/\#msg1378671 | |||||
Here he uses a boost regulator to power a battery. Essentially just setting the voltage. | |||||
http://www.eevblog.com/forum/projects/switching-lead-acid-battery-charger-ic/msg806972/\#msg806972 | |||||
Here is some better advice. | |||||
quote: | |||||
\begin{verbatim} | |||||
I'd recommend just float charging. It takes only a little longer | |||||
and is easier on the batteries. You will need to limit the initial | |||||
charge current to about 0.1 C (so 2 A for a 20 AH battery). The | |||||
easiest way to do this is a constant current/ constant voltage | |||||
power supply. Set the current limit to the desired charge current, | |||||
and the voltage to the float voltage (13.8 V adjusted for | |||||
temperature if needed). The voltage on the battery will slowly | |||||
increase over time until it reaches ~13.8 V, then the current will | |||||
slowly drop over time until it reaches nearly zero. At that point, | |||||
the battery is fully charged and you can either remove the charger | |||||
or just leave it on. | |||||
\end{verbatim} | |||||
Which is what I did with my solar battery charger, and it worked well. So I suppose there is no need for anything more than a vreg for lead batteries. This time I will go to the recommended 13.8 instead of what I had before (around 12) and I will do the same trickle charge method. Simple. Done. | |||||
May use 1512 instead. \$5 in 150 quantity. Hm... | |||||
\$10 in single. | |||||
That would cover lead, nicad. | |||||
Will need jumpers on R1 and R2 depending on what battery type. According to data sheet, li-ion the divider is a float voltage. In nicd, it is a top limit. | |||||
OK, i've decided: | |||||
\subsection{Part Selection Summary} | |||||
LT1512, and STC4054. | |||||
For starters, I will use stc as lithium and lt as nicad / lead. | |||||
this will avoid the worry of jumpers, and what not. Later I can be flexible. | |||||
Now onto other parts. I need some way to monitor the current, and of course a voltage tap. | |||||
Where to put current sense? I think before the battery. | |||||
I should put some jumpers in, so I can isolate everything though. I dont' want to mix circuits at the start. So isolate the charger from the op amp and sense, at first. | |||||
Let's go with the basic differential op amp in microchip an1332. I need a vreg supply (linear) at 15.5 volts, for the op amp, so it's above the lead battery voltage. Simplest two switchers I see are lm2577 or the mk3608. The mk is easier to use. | |||||
With that we have: | |||||
\begin{itemize} | |||||
\item Battery charger x 2 | |||||
\item voltage monitor x 2 | |||||
\item current monitor x 2 | |||||
\item ethernet (using off the shelf enc modules for now, but maybe | |||||
on board later). | |||||
\item microcontroller (nano) | |||||
\item temperature monitor (something like max6675 looks nice. can put on board, without difficulty). | |||||
\item additional taps into adc, and some op amps and current shunts not populated to be used as extra current - voltage converters. At least two. Put on modular schematic. | |||||
\end{itemize} | |||||
I also want a general current and voltage monitor. I want | |||||
to be able to watch the load on a battery, and record that as well... | |||||
Perhaps that will be separate. I might want to grab some off the shelf | |||||
current / voltage monitoring stuff, or just throw a few op amps with breakouts on the board. | |||||
Let's build. | |||||
Keep all schematics modular! | |||||
\textbf{A note on lt1512 tuning} | |||||
\begin{verbatim} | |||||
How this is tuned: | |||||
The V divider on Feedback pin | |||||
determines float voltage. | |||||
The R downstream of I_feedback | |||||
(after 24 ohm resistor) | |||||
determines current (100mV / R) | |||||
See data sheet for more details. | |||||
Put Simply: Set float voltage on r divider | |||||
and make sure current resistor is high enough | |||||
to be low current. | |||||
\end{verbatim} | |||||
\textbf{Calculating LT1512 vdivider} | |||||
\begin{verbatim} | |||||
Example calculation for R1: | |||||
R1 = (R2(Vbat - 1.245) )\ (1.245+R2(0.3uA)) | |||||
with default R2 at 12,400 | |||||
Desired Vbat float of 13.8 (lead) | |||||
(13.8 - 1.245) * 12400 == 155682 | |||||
1.245 + (12400 * .000003) == .03720 + 1.245 == 1.2822 | |||||
155682/1.2822 == 121417 | |||||
It would be evil for them to put 0.3uA and | |||||
expect you to convert that to 0.000003A | |||||
But that's what they did. At least they | |||||
give an example to check. | |||||
Five zeros on that. | |||||
\end{verbatim} | |||||
Based on the vdivider, what you are seeing is for high voltages, with R2 being the recommended 12.4K, is R1 150K at ~13, R1 220K at ~9V. | |||||
Some more notes | |||||
\begin{verbatim} | |||||
checking the given example: | |||||
41200 * (8.2 - 1.245) 286546 | |||||
41200 * 0.000003 + 1.245 == 1.3605 | |||||
lowest possible value (1.3V charge) | |||||
(1.3 - 1.245 ) * 12400 == 682 | |||||
(12400 * .000003 ) + 1.245 == 1.28 | |||||
682 / 1.28 == 532 | |||||
so lowest resistor value must be 500 about... | |||||
\end{verbatim} | |||||
Lowest resistor would be 536. (e48 resistor) | |||||
\subsection{Current monitor} | |||||
I considered doing an (high side) op amp with external resistors per AN1322 microchip app note, but decided to go instead with a current monitor, ala ina169. There are a number of INA chips being advertised. Adafruit, for example sells the INA219 and there are many articles | |||||
about other current sense in the same family. There is the shunt | |||||
resistor value, and the gain resistor to set. I will use based off of the adafruit example, as well as the ti example a 1ohm shunt (for up to 1A readings, seems as you decrease the shunt you get more capacity in amperage to read), with a 1K gain resistor, which TI gives as an example in a table. That means voltage will equal current. | |||||
For the inductor | |||||
see lt data sheet for details. | |||||
must not be series resistance greater than 0.1 ohms. | |||||
\subsection{PCB Revision - Modular Parts} | |||||
I decided to route out some of the pcb, so I can possibly reuse the temperature sensor and perhaps the lithium battery charger. This was on revision 2. I got the first revision already made after a marathon one Sunday morning from 8-2pm. Here's how it is routed out. | |||||
\includegraphics{../pics/modular_reusable.jpg} | |||||
\captionof{figure}{Cut out with pliers and reuse parts.} | |||||
\subsubsection{Ripped off by temperature sensors} | |||||
The community around Arduino advertises the LM35, advertises the MAX6675. The latter is \$10 in one off quantity (\$5 from ebay), the former isn't cheap either, at \$2.00 about. Though the LM35 has a much more limited range. The LM35 is great as it's extremely simple to use (power and read voltage which converts directly to temperature). | |||||
I'll have to find an alternative for the MAX6675. At \$10 it's just stupid. A micro can do temperature as well. Maybe \$5 would be acceptable, but \$10 is not. How big are your pockets? | |||||
\vspace{0.4in} | |||||
\includegraphics[scale=0.3]{../pics/tinythermocouple.jpg} | |||||
\captionof{figure}{technoblogy has an article on using a micro with an external thermocouple} | |||||
Cheapest thermocouple on Digikey, is a digilent (they just import) thermocouple at \$10. Next is a DFRobot (chinese adafruit) at \$30 with a module included. Thermocouples are not cheap! Onto ebay.\footnote{Thermocouples: I forgot how they work today. I've read of them before but haven't used them much (have seen them in toasters. Now that I know they are worth \$5-10 I'm going to start retrieving them from broken toasters). When two dissimilar metals are put together, and then the metals are heated, you can get a voltage across them. This voltage can be read with an ADC. This phenomenon has a name, but the name is not important. Names just add another thing you need to remember. Bad idea. (OK, I remembered it, now I can fool myself into feeling intelligent - seebeck effect. Now let me go count my hertz, and volts, and teslas...) Wikipedia calls it the thermoelectric effect.} | |||||
After some research I decided to go with the Digilent probe. The cheapest used probe on ebay is \$10. I don't want the new ones from US, which is only \$5 cheaper. | |||||
\section{Bom Notes} | |||||
I should try to get rid of some expensive items where possible. | |||||
\vspace{0.2in} | |||||
tantalum is \$1. Try a ceramic. | |||||
MAX6675 is \$10. | |||||
Slide pot is just for fun. That can be removed. | |||||
\vspace{0.2in} | |||||
On the subject of boms, I have made two. The LT portion is complex, and requires its own bom. The rest of the items are on a different bom. I keep some things in stock so a few items have been omitted. | |||||
\subsection{SOD323 (diode) is equal to 0805} | |||||
Looks like the SOD323, diode / SC-73 package is near the 0805 package in size. SOD323 is slightly smaller, but not by much. They are probably interchangeable in practice. | |||||
\section{PCB Build and Test Notes} | |||||
I built the PCB. There were a few errors which I've put in the TODO file, but nothing show stopping. There will be a rev2 pcb. A few notes: | |||||
On the LT1512, if you float the voltage divider, and Feedback pin, the device will short out. My power supply continually is saving me on this. | |||||
For the voltage divider, you don't actually see the float voltage, between R1, and R2 of the divider, I don't think. The voltage, however does rise, above the divider, where the Vsw pin is. What you do see is the 1.24 reference, or some voltage near it. | |||||
What I'm seeing now, is if you connect a scope probe to the lt charge pin, (pin which charges the battery) you can adjust the divider and see the voltage rise. That must be the float voltage. Meanwhile, the feedback pin, which is downstream of the charge pin, has always about 1.24 or so. | |||||
So seems to work well. For a while, I misunderstood how the voltage divider was supposed to work, and spent a few hours double checking the divider values. I had wired the switches wrong in rev 1, but that was not the issue. The issue was my expectation to see the voltage between the divider actually be the float voltage, when that float voltage was above the divider. Must be some transistor math doing a calculation on the voltage divider. | |||||
With the 0.2 ohm resistor (in typical application first page of LT1512 data sheet), I had changed it to a 1ohm. That was still not enough, and I instead substituted in a 10ohm. This limits charging to 10mA. The 1 ohm resistor seemed to have some issue of high float voltages causing thermal runway... Maybe a 5 ohm resistor can be used for 20mA charging. This was only on high float voltages. With the 1 Nicd, I was able to do 80-100mA of charging, without issue. But once float is around 5-6 volts you start to get issues with the current growing exponentially from the main PSU, and the LT1512 chip overheating. (At \$8 each, a melted chip is to be avoided). | |||||
\subsection{Current usage, and Solar Project} | |||||
This project is a descendant of the solar battery charger project. I'm going to restart that project with some of these components, but might use the LT1372, or some other more efficient regulator. No current limiting should be necessary, given that I will use small solar panels (though current limit, might need to be in consideration). | |||||
The INA169 draws about 90uA when measuring the 10mA of current going through for a 6V lead battery. | |||||
\subsection{Current Limiting resistor on LT1512} | |||||
The Resistor after I Feedback, R10 (in my schematic. it's the 0.2 ohm resistor in the official data sheet)... In the circuit here, it is 1 ohm. It | |||||
will allow about 80mA into a NiCd at 1.2 | |||||
volts. At this level, there is an issue with | |||||
charging voltages above single cell lithium values. What happens | |||||
is that the circuit starts using over an amp of current and | |||||
the LT chip overheats. | |||||
If you increase the resistance, you | |||||
can lower the current output and thus also charge 6-12v | |||||
batteries. | |||||
Test with a current limiting power supply! | |||||
\subsection{Separate Grounds 1512} | |||||
I did not separate the grounds on the first run, and while there might be more noise (I didn't measure) everything seems to work, regardless. | |||||
\subsection{Switches Max Current} | |||||
These switches have a max current of 300mA. | |||||
\subsection{Usage} | |||||
Here's how to use this device. Plug in a 9-12V PSU. Connect USB to computer (bbb, rpi preferred for long term usage). | |||||
Measure the voltage divider. This value is found after the large diode, but before the voltage divider. Adjust the switches, and pot as needed. Check with a DMM, for the voltage - that will be the final charge voltage. | |||||
Connect battery + into INA169 (high side current sense) . Connect INA169 v out into LT CONN (which is same as where float voltage is measured). | |||||
Connect battery - into ground. Check ina169 ADC reading with Serial out or DMM, it should reflect the charging. You can also put a DMM in series with battery to confirm its charging. | |||||
\subsection{Forgot V Dividers for batteries gt 5v} | |||||
I guess I forgot a voltage divider on this board. I'll need at least 2 or 3 pins on the ADC to be 10\%, so that I can measure 6 and 12v lead batteries. Hmph. For rev 2 I guess. | |||||
\section{Rev 2 Build} | |||||
The board tends to slowly ramp up, pulling 150 at start, then moving eventually to 500mA (testing at fuse) before cutting back to about 400mA, and the 5V output has a bit of switching on it (thermal shutdown, possibly). It also heats up both the LT and the LM317 at this point. | |||||
\\ | |||||
I recall having this problem with the first board though I was able to get it working, after breaking some traces. On this board, occasionally, I was able to see it pull 60mA, and the output voltage became high. Otherwise the LT FB (I call it the LT Float voltage) became what was expected. But when it was 500mA (shorting?), the float V is low. More research needed. It's possible the LT chip has been damaged too much. The scope is quite clear on what is going on, though. And I was getting output voltages earlier with/without overheating. This is without a battery connected, though a battery added does not make a difference. | |||||
\\ | |||||
I hear a snap when its turning on sometimes. EDIT: maybe I do not... | |||||
\subsection{Solution: Grounding Soldering Issue} | |||||
This is revision two. On this board, I was getting intermittent issues where the board would suddenly ramp up in current draw from about 10mA to 200 to 300 to 400mA before overheating, and then it would restart the process. I found the LTC IC getting hot. | |||||
\\ | |||||
Before, I had already checked over the schematic once or twice before, so I was fairly confident that was not the issue. I started by reviewing the block diagram of the data sheet. The two inputs, Ifeedback and feedback pins seemed of interest. I tried disconnecting them. At this point, the same behaviour was occuring. I also tried disconnecting the output from the vdivider. | |||||
None of these changes made any difference. I checked the continuity of GND pins, and low and behold, pin 3 (GND-S) was intermittent. Normal GND was OK (Pin 2). | |||||
It turned out to be an assembly issue. The soldering was not 100\%. This led to intermittent issues. Push on the board enough, and it makes contact. | |||||
\textbf{Behaviour of Board with Pins N/C}: | |||||
\\ | |||||
Once I resoldered Pin 3 (GND-S) I still had three other pins disconnected. I found that the board immediately tried to pull more than 1A from my PSU (which shut off). After connecting the three pins (it looks like the FB pin was the cause of this), the board returned to normal operation. | |||||
So there are two error scenarios here: | |||||
\\ | |||||
1, GND-S is not connected, and the board slowly ramps up before overheating, and triggering self shutoff. | |||||
\\ | |||||
2. FB (or perhaps another pin) is not connected, and the board instantly tries to pull > 1A current. | |||||
\subsection{Vin Input Cap} | |||||
I had a 2.2uf but it looks like a 22uF is recommended. I threw on a 100uf Electrolytic I had for now. Next revision will have a 22uF tantalum similar to the output cap. | |||||
\end{document} | |||||
@ -0,0 +1,322 @@ | |||||
\documentclass[11pt]{article} | |||||
%Gummi|065|=) | |||||
\usepackage{graphicx} | |||||
\usepackage{caption} | |||||
\title{\textbf{BatteryMonitorBoard}} | |||||
\author{Steak Electronics} | |||||
\date{} | |||||
\begin{document} | |||||
\maketitle | |||||
\tableofcontents | |||||
\section{Overview} | |||||
\section{Chip Hunting} | |||||
Need to find a chip for battery charging. Some sheets have been saved. I looked at TI primarily. Though considered one AD/LTC. BQ2954 is out of the question as its too complex in its application circuit. THe BQ2000 is a 8 pin DIP and seems like a good start. That will cover nicad/nimh, and lithium batteries. | |||||
Though the BQ2000 is a bit of a mess as well. Data sheet has a complex circuit. There is a simpler one here: | |||||
http://www.ti.com/lit/pdf/sluu007 | |||||
and | |||||
https://electronics.stackexchange.com/questions/95970/how-to-use-battery-charge-controller-bq2002n | |||||
Regardless of the contents of that post, the fact is, the chip requires a lot of stuff. | |||||
https://www.st.com/content/ccc/resource/technical/document/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:content/translations/en.CD00132951.pdf | |||||
This chip: stc4054, is extremely simple. Limited to 1 lithium cell (so only 4.2 volts max) but application circuit is lean, and it has a shutdown pin, so you can turn off the charger. Price is the cheapest as well, at 1.50 for 1. | |||||
That looks hopeful. Why not multiple? | |||||
Need to remember to be careful of 4.1 lithium batteries. Most chargers are 4.2, and its easy to forget that there is a difference. | |||||
MCP73826 is another reasonable option. Slightly more complex, but not by much. | |||||
RT9526A is also simple. Let's start with the st chip. | |||||
Looks like the voltage on that pin should be between 1.2 and 2.4 in order to turn it off. Below 1.2 it is on, and monitoring current. Above 1.2 but below 2.4 it is off. above 2.4 it's putting 35ua into the battery. I think. | |||||
Also like the LTC1734, which is lithium / nicad. But expensive at 3-4 dollars. Don't see any lead acid battery chargers on digi that aren't being obsoleted. There's not one. I did see some on manufacturer's pages though. Just not here. | |||||
There is one microchip one (lead acid) based on a pic. App circuit is complex. | |||||
AN1015 is the app note. | |||||
So need a lead, and nicd charger still. | |||||
Tomorrow I'd like to look at maxim. I see this: | |||||
https://www.maximintegrated.com/en/products/power/battery-management/MAX1772.html | |||||
But the application circuit is too much for what I want to deal with. | |||||
Seems lead acid battery chargers are not as common as they must've been before. | |||||
Onsemi is only lithium batteries. | |||||
Mouser has only universal chargers, no lead. But universal includes lead. | |||||
let's check linear. LT1510 is an 8 pin simple device. Though it's nicad and lithium only. It says it can do lead in table, but not in datasheet. | |||||
lt1510 would work for nicad. data sheet figure 6 has a circuit for nicad. | |||||
What about lead? | |||||
lt1513 does the three main types: nicd,li-ion,lead | |||||
At a cost of \$10. | |||||
At digi, the bq2031 is the only lead battery chip (not multi type) that is in production. Not much choice. EDIT: actually that is not | |||||
recommended for new designs either. | |||||
http://www.eevblog.com/forum/beginners/mc34063-battery-charger/msg1378671/\#msg1378671 | |||||
Here he uses a boost regulator to power a battery. Essentially just setting the voltage. | |||||
http://www.eevblog.com/forum/projects/switching-lead-acid-battery-charger-ic/msg806972/\#msg806972 | |||||
Here is some better advice. | |||||
quote: | |||||
\begin{verbatim} | |||||
I'd recommend just float charging. It takes only a little longer | |||||
and is easier on the batteries. You will need to limit the initial | |||||
charge current to about 0.1 C (so 2 A for a 20 AH battery). The | |||||
easiest way to do this is a constant current/ constant voltage | |||||
power supply. Set the current limit to the desired charge current, | |||||
and the voltage to the float voltage (13.8 V adjusted for | |||||
temperature if needed). The voltage on the battery will slowly | |||||
increase over time until it reaches ~13.8 V, then the current will | |||||
slowly drop over time until it reaches nearly zero. At that point, | |||||
the battery is fully charged and you can either remove the charger | |||||
or just leave it on. | |||||
\end{verbatim} | |||||
Which is what I did with my solar battery charger, and it worked well. So I suppose there is no need for anything more than a vreg for lead batteries. This time I will go to the recommended 13.8 instead of what I had before (around 12) and I will do the same trickle charge method. Simple. Done. | |||||
May use 1512 instead. \$5 in 150 quantity. Hm... | |||||
\$10 in single. | |||||
That would cover lead, nicad. | |||||
Will need jumpers on R1 and R2 depending on what battery type. According to data sheet, li-ion the divider is a float voltage. In nicd, it is a top limit. | |||||
OK, i've decided: | |||||
\subsection{Part Selection Summary} | |||||
LT1512, and STC4054. | |||||
For starters, I will use stc as lithium and lt as nicad / lead. | |||||
this will avoid the worry of jumpers, and what not. Later I can be flexible. | |||||
Now onto other parts. I need some way to monitor the current, and of course a voltage tap. | |||||
Where to put current sense? I think before the battery. | |||||
I should put some jumpers in, so I can isolate everything though. I dont' want to mix circuits at the start. So isolate the charger from the op amp and sense, at first. | |||||
Let's go with the basic differential op amp in microchip an1332. I need a vreg supply (linear) at 15.5 volts, for the op amp, so it's above the lead battery voltage. Simplest two switchers I see are lm2577 or the mk3608. The mk is easier to use. | |||||
With that we have: | |||||
\begin{itemize} | |||||
\item Battery charger x 2 | |||||
\item voltage monitor x 2 | |||||
\item current monitor x 2 | |||||
\item ethernet (using off the shelf enc modules for now, but maybe | |||||
on board later). | |||||
\item microcontroller (nano) | |||||
\item temperature monitor (something like max6675 looks nice. can put on board, without difficulty). | |||||
\item additional taps into adc, and some op amps and current shunts not populated to be used as extra current - voltage converters. At least two. Put on modular schematic. | |||||
\end{itemize} | |||||
I also want a general current and voltage monitor. I want | |||||
to be able to watch the load on a battery, and record that as well... | |||||
Perhaps that will be separate. I might want to grab some off the shelf | |||||
current / voltage monitoring stuff, or just throw a few op amps with breakouts on the board. | |||||
Let's build. | |||||
Keep all schematics modular! | |||||
\textbf{A note on lt1512 tuning} | |||||
\begin{verbatim} | |||||
How this is tuned: | |||||
The V divider on Feedback pin | |||||
determines float voltage. | |||||
The R downstream of I_feedback | |||||
(after 24 ohm resistor) | |||||
determines current (100mV / R) | |||||
See data sheet for more details. | |||||
Put Simply: Set float voltage on r divider | |||||
and make sure current resistor is high enough | |||||
to be low current. | |||||
\end{verbatim} | |||||
\textbf{Calculating LT1512 vdivider} | |||||
\begin{verbatim} | |||||
Example calculation for R1: | |||||
R1 = (R2(Vbat - 1.245) )\ (1.245+R2(0.3uA)) | |||||
with default R2 at 12,400 | |||||
Desired Vbat float of 13.8 (lead) | |||||
(13.8 - 1.245) * 12400 == 155682 | |||||
1.245 + (12400 * .000003) == .03720 + 1.245 == 1.2822 | |||||
155682/1.2822 == 121417 | |||||
It would be evil for them to put 0.3uA and | |||||
expect you to convert that to 0.000003A | |||||
But that's what they did. At least they | |||||
give an example to check. | |||||
Five zeros on that. | |||||
\end{verbatim} | |||||
Based on the vdivider, what you are seeing is for high voltages, with R2 being the recommended 12.4K, is R1 150K at ~13, R1 220K at ~9V. | |||||
Some more notes | |||||
\begin{verbatim} | |||||
checking the given example: | |||||
41200 * (8.2 - 1.245) 286546 | |||||
41200 * 0.000003 + 1.245 == 1.3605 | |||||
lowest possible value (1.3V charge) | |||||
(1.3 - 1.245 ) * 12400 == 682 | |||||
(12400 * .000003 ) + 1.245 == 1.28 | |||||
682 / 1.28 == 532 | |||||
so lowest resistor value must be 500 about... | |||||
\end{verbatim} | |||||
Lowest resistor would be 536. (e48 resistor) | |||||
\subsection{Current monitor} | |||||
I considered doing an (high side) op amp with external resistors per AN1322 microchip app note, but decided to go instead with a current monitor, ala ina169. There are a number of INA chips being advertised. Adafruit, for example sells the INA219 and there are many articles | |||||
about other current sense in the same family. There is the shunt | |||||
resistor value, and the gain resistor to set. I will use based off of the adafruit example, as well as the ti example a 1ohm shunt (for up to 1A readings, seems as you decrease the shunt you get more capacity in amperage to read), with a 1K gain resistor, which TI gives as an example in a table. That means voltage will equal current. | |||||
For the inductor | |||||
see lt data sheet for details. | |||||
must not be series resistance greater than 0.1 ohms. | |||||
\subsection{PCB Revision - Modular Parts} | |||||
I decided to route out some of the pcb, so I can possibly reuse the temperature sensor and perhaps the lithium battery charger. This was on revision 2. I got the first revision already made after a marathon one Sunday morning from 8-2pm. Here's how it is routed out. | |||||
\includegraphics{../pics/modular_reusable.jpg} | |||||
\captionof{figure}{Cut out with pliers and reuse parts.} | |||||
\subsubsection{Ripped off by temperature sensors} | |||||
The community around Arduino advertises the LM35, advertises the MAX6675. The latter is \$10 in one off quantity (\$5 from ebay), the former isn't cheap either, at \$2.00 about. Though the LM35 has a much more limited range. The LM35 is great as it's extremely simple to use (power and read voltage which converts directly to temperature). | |||||
I'll have to find an alternative for the MAX6675. At \$10 it's just stupid. A micro can do temperature as well. Maybe \$5 would be acceptable, but \$10 is not. How big are your pockets? | |||||
\vspace{0.4in} | |||||
\includegraphics[scale=0.3]{../pics/tinythermocouple.jpg} | |||||
\captionof{figure}{technoblogy has an article on using a micro with an external thermocouple} | |||||
Cheapest thermocouple on Digikey, is a digilent (they just import) thermocouple at \$10. Next is a DFRobot (chinese adafruit) at \$30 with a module included. Thermocouples are not cheap! Onto ebay.\footnote{Thermocouples: I forgot how they work today. I've read of them before but haven't used them much (have seen them in toasters. Now that I know they are worth \$5-10 I'm going to start retrieving them from broken toasters). When two dissimilar metals are put together, and then the metals are heated, you can get a voltage across them. This voltage can be read with an ADC. This phenomenon has a name, but the name is not important. Names just add another thing you need to remember. Bad idea. (OK, I remembered it, now I can fool myself into feeling intelligent - seebeck effect. Now let me go count my hertz, and volts, and teslas...) Wikipedia calls it the thermoelectric effect.} | |||||
After some research I decided to go with the Digilent probe. The cheapest used probe on ebay is \$10. I don't want the new ones from US, which is only \$5 cheaper. | |||||
\section{Bom Notes} | |||||
I should try to get rid of some expensive items where possible. | |||||
\vspace{0.2in} | |||||
tantalum is \$1. Try a ceramic. | |||||
MAX6675 is \$10. | |||||
Slide pot is just for fun. That can be removed. | |||||
\vspace{0.2in} | |||||
On the subject of boms, I have made two. The LT portion is complex, and requires its own bom. The rest of the items are on a different bom. I keep some things in stock so a few items have been omitted. | |||||
\subsection{SOD323 (diode) is equal to 0805} | |||||
Looks like the SOD323, diode / SC-73 package is near the 0805 package in size. SOD323 is slightly smaller, but not by much. They are probably interchangeable in practice. | |||||
\section{PCB Build and Test Notes} | |||||
I built the PCB. There were a few errors which I've put in the TODO file, but nothing show stopping. There will be a rev2 pcb. A few notes: | |||||
On the LT1512, if you float the voltage divider, and Feedback pin, the device will short out. My power supply continually is saving me on this. | |||||
For the voltage divider, you don't actually see the float voltage, between R1, and R2 of the divider, I don't think. The voltage, however does rise, above the divider, where the Vsw pin is. What you do see is the 1.24 reference, or some voltage near it. | |||||
What I'm seeing now, is if you connect a scope probe to the lt charge pin, (pin which charges the battery) you can adjust the divider and see the voltage rise. That must be the float voltage. Meanwhile, the feedback pin, which is downstream of the charge pin, has always about 1.24 or so. | |||||
So seems to work well. For a while, I misunderstood how the voltage divider was supposed to work, and spent a few hours double checking the divider values. I had wired the switches wrong in rev 1, but that was not the issue. The issue was my expectation to see the voltage between the divider actually be the float voltage, when that float voltage was above the divider. Must be some transistor math doing a calculation on the voltage divider. | |||||
With the 0.2 ohm resistor (in typical application first page of LT1512 data sheet), I had changed it to a 1ohm. That was still not enough, and I instead substituted in a 10ohm. This limits charging to 10mA. The 1 ohm resistor seemed to have some issue of high float voltages causing thermal runway... Maybe a 5 ohm resistor can be used for 20mA charging. This was only on high float voltages. With the 1 Nicd, I was able to do 80-100mA of charging, without issue. But once float is around 5-6 volts you start to get issues with the current growing exponentially from the main PSU, and the LT1512 chip overheating. (At \$8 each, a melted chip is to be avoided). | |||||
\subsection{Current usage, and Solar Project} | |||||
This project is a descendant of the solar battery charger project. I'm going to restart that project with some of these components, but might use the LT1372, or some other more efficient regulator. No current limiting should be necessary, given that I will use small solar panels (though current limit, might need to be in consideration). | |||||
The INA169 draws about 90uA when measuring the 10mA of current going through for a 6V lead battery. | |||||
\subsection{Current Limiting resistor on LT1512} | |||||
The Resistor after I Feedback, R10 (in my schematic. it's the 0.2 ohm resistor in the official data sheet)... In the circuit here, it is 1 ohm. It | |||||
will allow about 80mA into a NiCd at 1.2 | |||||
volts. At this level, there is an issue with | |||||
charging voltages above single cell lithium values. What happens | |||||
is that the circuit starts using over an amp of current and | |||||
the LT chip overheats. | |||||
If you increase the resistance, you | |||||
can lower the current output and thus also charge 6-12v | |||||
batteries. | |||||
Test with a current limiting power supply! | |||||
\subsection{Separate Grounds 1512} | |||||
I did not separate the grounds on the first run, and while there might be more noise (I didn't measure) everything seems to work, regardless. | |||||
\subsection{Switches Max Current} | |||||
These switches have a max current of 300mA. | |||||
\subsection{Usage} | |||||
Here's how to use this device. Plug in a 9-12V PSU. Connect USB to computer (bbb, rpi preferred for long term usage). | |||||
Measure the voltage divider. This value is found after the large diode, but before the voltage divider. Adjust the switches, and pot as needed. Check with a DMM, for the voltage - that will be the final charge voltage. | |||||
Connect battery + into INA169 (high side current sense) . Connect INA169 v out into LT CONN (which is same as where float voltage is measured). | |||||
Connect battery - into ground. Check ina169 ADC reading with Serial out or DMM, it should reflect the charging. You can also put a DMM in series with battery to confirm its charging. | |||||
\subsection{Forgot V Dividers for batteries gt 5v} | |||||
I guess I forgot a voltage divider on this board. I'll need at least 2 or 3 pins on the ADC to be 10\%, so that I can measure 6 and 12v lead batteries. Hmph. For rev 2 I guess. | |||||
\section{Rev 2 Build} | |||||
The board tends to slowly ramp up, pulling 150 at start, then moving eventually to 500mA (testing at fuse) before cutting back to about 400mA, and the 5V output has a bit of switching on it (thermal shutdown, possibly). It also heats up both the LT and the LM317 at this point. | |||||
I recall having this problem with the first board though I was able to get it working, after breaking some traces. On this board, occasionally, I was able to see it pull 60mA, and the output voltage became high. Otherwise the LT FB (I call it the LT Float voltage) became what was expected. But when it was 500mA (shorting?), the float V is low. More research needed. It's possible the LT chip has been damaged too much. The scope is quite clear on what is going on, though. And I was getting output voltages earlier with/without overheating. This is without a battery connected, though a battery added does not make a difference. | |||||
I hear a snap when its turning on sometimes. | |||||
\subsection{Solution: Grounding Soldering Issue} | |||||
This is revision two. On this board, I was getting intermittent issues where the board would suddenly ramp up in current draw from about 10mA to 200 to 300 to 400mA before overheating, and then it would restart the process. I found the LTC IC getting hot. | |||||
I recall I had already checked over the schematic once or twice before, so I was fairly confident that was not the issue. I started by reviewing the block diagram of the data sheet. The two inputs, Ifeedback and feedback pins seemed of interest. I tried disconnecting them. At this point, the same behaviour was occuring. I also tried disconnecting the output from the vdivider. | |||||
None of these changes made any difference. I checked the continuity of GND pins, and low and behold, pin 3 (GND-S) was intermittent. Normal GND was OK (Pin 2). | |||||
It turned out to be an assembly issue. The soldering was not 100\%. This led to intermittent issues. Push on the board enough, and it makes contact. | |||||
\textbf{Behaviour of Board with Pins N/C}: | |||||
\\ | |||||
Once I resoldered Pin 3 (GND-S) I still had three other pins disconnected. I found that the board immediately tried to pull more than 1A from my PSU (which shut off). After connecting the three pins (it looks like the FB pin was the cause of this), the board returned to normal operation. | |||||
So there are two error scenarios here: | |||||
\\ | |||||
1, GND-S is not connected, and the board slowly ramps up before overheating, and triggering self shutoff. | |||||
\\ | |||||
2. FB (or perhaps another pin) is not connected, and the board instantly tries to pull > 1A current. | |||||
\subsection{Vin Input Cap} | |||||
I had a 2.2uf but it looks like a 22uF is recommended. I threw on a 100uf Electrolytic I had for now. Next revision will have a 22uF tantalum similar to the output cap. | |||||
\end{document} | |||||
@ -0,0 +1,18 @@ | |||||
\contentsline {section}{\numberline {1}Overview}{1} | |||||
\contentsline {section}{\numberline {2}Chip Hunting}{1} | |||||
\contentsline {subsection}{\numberline {2.1}Part Selection Summary}{3} | |||||
\contentsline {subsection}{\numberline {2.2}Current monitor}{5} | |||||
\contentsline {subsection}{\numberline {2.3}PCB Revision - Modular Parts}{6} | |||||
\contentsline {subsubsection}{\numberline {2.3.1}Ripped off by temperature sensors}{7} | |||||
\contentsline {section}{\numberline {3}Bom Notes}{8} | |||||
\contentsline {subsection}{\numberline {3.1}SOD323 (diode) is equal to 0805}{9} | |||||
\contentsline {section}{\numberline {4}PCB Build and Test Notes}{9} | |||||
\contentsline {subsection}{\numberline {4.1}Current usage, and Solar Project}{10} | |||||
\contentsline {subsection}{\numberline {4.2}Current Limiting resistor on LT1512}{10} | |||||
\contentsline {subsection}{\numberline {4.3}Separate Grounds 1512}{10} | |||||
\contentsline {subsection}{\numberline {4.4}Switches Max Current}{10} | |||||
\contentsline {subsection}{\numberline {4.5}Usage}{10} | |||||
\contentsline {subsection}{\numberline {4.6}Forgot V Dividers for batteries gt 5v}{11} | |||||
\contentsline {section}{\numberline {5}Rev 2 Build}{11} | |||||
\contentsline {subsection}{\numberline {5.1}Solution: Grounding Soldering Issue}{11} | |||||
\contentsline {subsection}{\numberline {5.2}Vin Input Cap}{12} |
@ -0,0 +1,24 @@ | |||||
\relax | |||||
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{1}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Part Selection Summary}{3}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Current monitor}{5}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}PCB Revision - Modular Parts}{6}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Cut out with pliers and reuse parts.\relax }}{7}} | |||||
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.3.1}Ripped off by temperature sensors}{7}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces technoblogy has an article on using a micro with an external thermocouple\relax }}{8}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {3}Bom Notes}{8}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}SOD323 (diode) is equal to 0805}{9}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {4}PCB Build and Test Notes}{9}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Current usage, and Solar Project}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Current Limiting resistor on LT1512}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Separate Grounds 1512}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}Switches Max Current}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.5}Usage}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.6}Forgot V Dividers for batteries gt 5v}{11}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces Rev 2\relax }}{11}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {5}Rev 2 Build}{11}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Solution: Grounding Soldering Issue}{12}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Vin Input Cap}{13}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.3}Terminal Blocks}{13}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces Barrier Strips that are PCB mount are stronger than terminal blocks.\relax }}{13}} |
@ -0,0 +1,387 @@ | |||||
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 24 JAN 2020 00:50 | |||||
entering extended mode | |||||
restricted \write18 enabled. | |||||
%&-line parsing enabled. | |||||
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ | |||||
batterycharge_stationdata/docs/11.tex | |||||
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/b | |||||
atterycharge_stationdata/docs/11.tex | |||||
LaTeX2e <2017/01/01> patch level 3 | |||||
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls | |||||
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo | |||||
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option) | |||||
) | |||||
\c@part=\count79 | |||||
\c@section=\count80 | |||||
\c@subsection=\count81 | |||||
\c@subsubsection=\count82 | |||||
\c@paragraph=\count83 | |||||
\c@subparagraph=\count84 | |||||
\c@figure=\count85 | |||||
\c@table=\count86 | |||||
\abovecaptionskip=\skip41 | |||||
\belowcaptionskip=\skip42 | |||||
\bibindent=\dimen102 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty | |||||
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty | |||||
Package: keyval 2014/10/28 v1.15 key=value parser (DPC) | |||||
\KV@toks@=\toks14 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty | |||||
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty | |||||
Package: trig 2016/01/03 v1.10 sin cos tan (DPC) | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg | |||||
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration | |||||
) | |||||
Package graphics Info: Driver file: pdftex.def on input line 99. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def | |||||
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty | |||||
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO) | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty | |||||
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO) | |||||
) | |||||
\Gread@gobject=\count87 | |||||
)) | |||||
\Gin@req@height=\dimen103 | |||||
\Gin@req@width=\dimen104 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty | |||||
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty | |||||
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR) | |||||
Package caption3 Info: TeX engine: e-TeX on input line 67. | |||||
\captionmargin=\dimen105 | |||||
\captionmargin@=\dimen106 | |||||
\captionwidth=\dimen107 | |||||
\caption@tempdima=\dimen108 | |||||
\caption@indent=\dimen109 | |||||
\caption@parindent=\dimen110 | |||||
\caption@hangindent=\dimen111 | |||||
) | |||||
\c@ContinuedFloat=\count88 | |||||
) (./11.aux) | |||||
\openout1 = `11.aux'. | |||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii | |||||
[Loading MPS to PDF converter (version 2006.09.02).] | |||||
\scratchcounter=\count89 | |||||
\scratchdimen=\dimen112 | |||||
\scratchbox=\box26 | |||||
\nofMPsegments=\count90 | |||||
\nofMParguments=\count91 | |||||
\everyMPshowfont=\toks15 | |||||
\MPscratchCnt=\count92 | |||||
\MPscratchDim=\dimen113 | |||||
\MPnumerator=\count93 | |||||
\makeMPintoPDFobject=\count94 | |||||
\everyMPtoPDFconversion=\toks16 | |||||
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty | |||||
Package: pdftexcmds 2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty | |||||
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO) | |||||
Package ifluatex Info: LuaTeX not detected. | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty | |||||
Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch | |||||
) | |||||
Package pdftexcmds Info: LuaTeX not detected. | |||||
Package pdftexcmds Info: \pdf@primitive is available. | |||||
Package pdftexcmds Info: \pdf@ifprimitive is available. | |||||
Package pdftexcmds Info: \pdfdraftmode found. | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty | |||||
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty | |||||
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty | |||||
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO) | |||||
)) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty | |||||
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty | |||||
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty | |||||
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO) | |||||
Package etexcmds Info: Could not find \expanded. | |||||
(etexcmds) That can mean that you are not using pdfTeX 1.50 or | |||||
(etexcmds) that some package has redefined \expanded. | |||||
(etexcmds) In the latter case, load this package earlier. | |||||
))) | |||||
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 | |||||
38. | |||||
Package grfext Info: Graphics extension search list: | |||||
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE | |||||
G,.JBIG2,.JB2,.eps] | |||||
(grfext) \AppendGraphicsExtensions on input line 456. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg | |||||
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv | |||||
e | |||||
)) | |||||
Package caption Info: Begin \AtBeginDocument code. | |||||
Package caption Info: End \AtBeginDocument code. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <12> on input line 11. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <8> on input line 11. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <6> on input line 11. | |||||
(./11.toc | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <10.95> on input line 3. | |||||
) | |||||
\tf@toc=\write3 | |||||
\openout3 = `11.toc'. | |||||
[1 | |||||
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] | |||||
Overfull \hbox (3.29704pt too wide) in paragraph at lines 20--25 | |||||
\OT1/cmr/m/n/10.95 https://electronics.stackexchange.com/questions/95970/how-to | |||||
-use-battery- | |||||
[] | |||||
Overfull \hbox (548.30061pt too wide) in paragraph at lines 26--28 | |||||
[]\OT1/cmr/m/n/10.95 https://www.st.com/content/ccc/resource/technical/document | |||||
/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:cont | |||||
ent/translations/en.CD00132951.pdf | |||||
[] | |||||
Overfull \hbox (107.1064pt too wide) in paragraph at lines 46--49 | |||||
[]\OT1/cmr/m/n/10.95 https://www.maximintegrated.com/en/products/power/battery- | |||||
management/MAX1772.html | |||||
[] | |||||
Overfull \hbox (119.66849pt too wide) in paragraph at lines 62--67 | |||||
[]\OT1/cmr/m/n/10.95 http://www.eevblog.com/forum/beginners/mc34063-battery-cha | |||||
rger/msg1378671/#msg1378671 | |||||
[] | |||||
[2] | |||||
Overfull \hbox (7.91602pt too wide) in paragraph at lines 79--79 | |||||
[]\OT1/cmtt/m/n/10.95 I'd recommend just float charging. It takes only a little | |||||
longer[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 and is easier on the batteries. You will need to limit t | |||||
he initial[] | |||||
[] | |||||
Overfull \hbox (7.91602pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 charge current to about 0.1 C (so 2 A for a 20 AH batter | |||||
y). The[] | |||||
[] | |||||
Overfull \hbox (2.16733pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 easiest way to do this is a constant current/ constant v | |||||
oltage[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 power supply. Set the current limit to the desired charg | |||||
e current,[] | |||||
[] | |||||
Overfull \hbox (2.16733pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 temperature if needed). The voltage on the battery will | |||||
slowly[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 increase over time until it reaches ~13.8 V, then the cu | |||||
rrent will[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 slowly drop over time until it reaches nearly zero. At t | |||||
hat point,[] | |||||
[] | |||||
Overfull \hbox (19.41339pt too wide) in paragraph at lines 79--79 | |||||
[]\OT1/cmtt/m/n/10.95 the battery is fully charged and you can either remove th | |||||
e charger[] | |||||
[] | |||||
[3] | |||||
LaTeX Font Info: Try loading font information for OMS+cmr on input line 106. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd | |||||
File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions | |||||
) | |||||
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10.95> not available | |||||
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 106. | |||||
[4] [5] | |||||
<../pics/modular_reusable.jpg, id=24, 435.12563pt x 412.54124pt> | |||||
File: ../pics/modular_reusable.jpg Graphic file (type jpg) | |||||
<use ../pics/modular_reusable.jpg> | |||||
Package pdftex.def Info: ../pics/modular_reusable.jpg used on input line 190. | |||||
(pdftex.def) Requested size: 435.12456pt x 412.54024pt. | |||||
Package caption Warning: \captionsetup{type*=...} or \captionof | |||||
(caption) outside box or environment on input line 191. | |||||
See the caption package documentation for explanation. | |||||
Overfull \hbox (92.12456pt too wide) in paragraph at lines 190--191 | |||||
[][] | |||||
[] | |||||
[6] [7 <../pics/modular_reusable.jpg>] | |||||
<../pics/tinythermocouple.jpg, id=32, 1134.2375pt x 525.965pt> | |||||
File: ../pics/tinythermocouple.jpg Graphic file (type jpg) | |||||
<use ../pics/tinythermocouple.jpg> | |||||
Package pdftex.def Info: ../pics/tinythermocouple.jpg used on input line 200. | |||||
(pdftex.def) Requested size: 340.27388pt x 157.79071pt. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <9> on input line 203. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <5> on input line 203. | |||||
[8 <../pics/tinythermocouple.jpg>] [9] | |||||
[10] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 273--275 | |||||
[] | |||||
<../pics/DSCN2552.JPG, id=45, 803.0pt x 602.25pt> | |||||
File: ../pics/DSCN2552.JPG Graphic file (type jpg) | |||||
<use ../pics/DSCN2552.JPG> | |||||
Package pdftex.def Info: ../pics/DSCN2552.JPG used on input line 276. | |||||
(pdftex.def) Requested size: 401.49902pt x 301.12425pt. | |||||
Overfull \hbox (41.49902pt too wide) in paragraph at lines 276--277 | |||||
[][] | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 280--282 | |||||
[] | |||||
[11 <../pics/DSCN2552.JPG>] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 283--285 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 289--291 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 292--294 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 295--297 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 304--306 | |||||
[] | |||||
[12] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 307--309 | |||||
[] | |||||
LaTeX Font Info: Try loading font information for OML+cmr on input line 310. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/omlcmr.fd | |||||
File: omlcmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions | |||||
) | |||||
LaTeX Font Info: Font shape `OML/cmr/m/n' in size <10.95> not available | |||||
(Font) Font shape `OML/cmm/m/it' tried instead on input line 310. | |||||
Underfull \hbox (badness 10000) in paragraph at lines 316--318 | |||||
[] | |||||
<../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG, id=52, 803.0pt x | |||||
602.25pt> | |||||
File: ../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG Graphic file | |||||
(type jpg) | |||||
<use ../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG> | |||||
Package pdftex.def Info: ../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN257 | |||||
2.JPG used on input line 319. | |||||
(pdftex.def) Requested size: 321.1943pt x 240.89572pt. | |||||
[13 <../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG>] (./11.aux) ) | |||||
Here is how much of TeX's memory you used: | |||||
2637 strings out of 494945 | |||||
42472 string characters out of 6181032 | |||||
96823 words of memory out of 5000000 | |||||
5914 multiletter control sequences out of 15000+600000 | |||||
10198 words of font info for 36 fonts, out of 8000000 for 9000 | |||||
14 hyphenation exceptions out of 8191 | |||||
39i,8n,39p,1023b,239s stack positions out of 5000i,500n,10000p,200000b,80000s | |||||
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/ | |||||
share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/ | |||||
texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texliv | |||||
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf | |||||
-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/f | |||||
onts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/typ | |||||
e1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/publi | |||||
c/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfon | |||||
ts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/ | |||||
cmtt10.pfb> | |||||
Output written on 11.pdf (13 pages, 670064 bytes). | |||||
PDF statistics: | |||||
91 PDF objects out of 1000 (max. 8388607) | |||||
61 compressed objects within 1 object stream | |||||
0 named destinations out of 1000 (max. 500000) | |||||
21 words of extra memory for PDF output out of 10000 (max. 10000000) | |||||
@ -0,0 +1,340 @@ | |||||
\documentclass[11pt]{article} | |||||
%Gummi|065|=) | |||||
\usepackage{graphicx} | |||||
\usepackage{caption} | |||||
\title{\textbf{BatteryMonitorBoard}} | |||||
\author{Steak Electronics} | |||||
\date{} | |||||
\begin{document} | |||||
\maketitle | |||||
\tableofcontents | |||||
\section{Overview} | |||||
\section{Chip Hunting} | |||||
Need to find a chip for battery charging. Some sheets have been saved. I looked at TI primarily. Though considered one AD/LTC. BQ2954 is out of the question as its too complex in its application circuit. THe BQ2000 is a 8 pin DIP and seems like a good start. That will cover nicad/nimh, and lithium batteries. | |||||
Though the BQ2000 is a bit of a mess as well. Data sheet has a complex circuit. There is a simpler one here: | |||||
http://www.ti.com/lit/pdf/sluu007 | |||||
and | |||||
https://electronics.stackexchange.com/questions/95970/how-to-use-battery-charge-controller-bq2002n | |||||
Regardless of the contents of that post, the fact is, the chip requires a lot of stuff. | |||||
https://www.st.com/content/ccc/resource/technical/document/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:content/translations/en.CD00132951.pdf | |||||
This chip: stc4054, is extremely simple. Limited to 1 lithium cell (so only 4.2 volts max) but application circuit is lean, and it has a shutdown pin, so you can turn off the charger. Price is the cheapest as well, at 1.50 for 1. | |||||
That looks hopeful. Why not multiple? | |||||
Need to remember to be careful of 4.1 lithium batteries. Most chargers are 4.2, and its easy to forget that there is a difference. | |||||
MCP73826 is another reasonable option. Slightly more complex, but not by much. | |||||
RT9526A is also simple. Let's start with the st chip. | |||||
Looks like the voltage on that pin should be between 1.2 and 2.4 in order to turn it off. Below 1.2 it is on, and monitoring current. Above 1.2 but below 2.4 it is off. above 2.4 it's putting 35ua into the battery. I think. | |||||
Also like the LTC1734, which is lithium / nicad. But expensive at 3-4 dollars. Don't see any lead acid battery chargers on digi that aren't being obsoleted. There's not one. I did see some on manufacturer's pages though. Just not here. | |||||
There is one microchip one (lead acid) based on a pic. App circuit is complex. | |||||
AN1015 is the app note. | |||||
So need a lead, and nicd charger still. | |||||
Tomorrow I'd like to look at maxim. I see this: | |||||
https://www.maximintegrated.com/en/products/power/battery-management/MAX1772.html | |||||
But the application circuit is too much for what I want to deal with. | |||||
Seems lead acid battery chargers are not as common as they must've been before. | |||||
Onsemi is only lithium batteries. | |||||
Mouser has only universal chargers, no lead. But universal includes lead. | |||||
let's check linear. LT1510 is an 8 pin simple device. Though it's nicad and lithium only. It says it can do lead in table, but not in datasheet. | |||||
lt1510 would work for nicad. data sheet figure 6 has a circuit for nicad. | |||||
What about lead? | |||||
lt1513 does the three main types: nicd,li-ion,lead | |||||
At a cost of \$10. | |||||
At digi, the bq2031 is the only lead battery chip (not multi type) that is in production. Not much choice. EDIT: actually that is not | |||||
recommended for new designs either. | |||||
http://www.eevblog.com/forum/beginners/mc34063-battery-charger/msg1378671/\#msg1378671 | |||||
Here he uses a boost regulator to power a battery. Essentially just setting the voltage. | |||||
http://www.eevblog.com/forum/projects/switching-lead-acid-battery-charger-ic/msg806972/\#msg806972 | |||||
Here is some better advice. | |||||
quote: | |||||
\begin{verbatim} | |||||
I'd recommend just float charging. It takes only a little longer | |||||
and is easier on the batteries. You will need to limit the initial | |||||
charge current to about 0.1 C (so 2 A for a 20 AH battery). The | |||||
easiest way to do this is a constant current/ constant voltage | |||||
power supply. Set the current limit to the desired charge current, | |||||
and the voltage to the float voltage (13.8 V adjusted for | |||||
temperature if needed). The voltage on the battery will slowly | |||||
increase over time until it reaches ~13.8 V, then the current will | |||||
slowly drop over time until it reaches nearly zero. At that point, | |||||
the battery is fully charged and you can either remove the charger | |||||
or just leave it on. | |||||
\end{verbatim} | |||||
Which is what I did with my solar battery charger, and it worked well. So I suppose there is no need for anything more than a vreg for lead batteries. This time I will go to the recommended 13.8 instead of what I had before (around 12) and I will do the same trickle charge method. Simple. Done. | |||||
May use 1512 instead. \$5 in 150 quantity. Hm... | |||||
\$10 in single. | |||||
That would cover lead, nicad. | |||||
Will need jumpers on R1 and R2 depending on what battery type. According to data sheet, li-ion the divider is a float voltage. In nicd, it is a top limit. | |||||
OK, i've decided: | |||||
\subsection{Part Selection Summary} | |||||
LT1512, and STC4054. | |||||
For starters, I will use stc as lithium and lt as nicad / lead. | |||||
this will avoid the worry of jumpers, and what not. Later I can be flexible. | |||||
Now onto other parts. I need some way to monitor the current, and of course a voltage tap. | |||||
Where to put current sense? I think before the battery. | |||||
I should put some jumpers in, so I can isolate everything though. I dont' want to mix circuits at the start. So isolate the charger from the op amp and sense, at first. | |||||
Let's go with the basic differential op amp in microchip an1332. I need a vreg supply (linear) at 15.5 volts, for the op amp, so it's above the lead battery voltage. Simplest two switchers I see are lm2577 or the mk3608. The mk is easier to use. | |||||
With that we have: | |||||
\begin{itemize} | |||||
\item Battery charger x 2 | |||||
\item voltage monitor x 2 | |||||
\item current monitor x 2 | |||||
\item ethernet (using off the shelf enc modules for now, but maybe | |||||
on board later). | |||||
\item microcontroller (nano) | |||||
\item temperature monitor (something like max6675 looks nice. can put on board, without difficulty). | |||||
\item additional taps into adc, and some op amps and current shunts not populated to be used as extra current - voltage converters. At least two. Put on modular schematic. | |||||
\end{itemize} | |||||
I also want a general current and voltage monitor. I want | |||||
to be able to watch the load on a battery, and record that as well... | |||||
Perhaps that will be separate. I might want to grab some off the shelf | |||||
current / voltage monitoring stuff, or just throw a few op amps with breakouts on the board. | |||||
Let's build. | |||||
Keep all schematics modular! | |||||
\textbf{A note on lt1512 tuning} | |||||
\begin{verbatim} | |||||
How this is tuned: | |||||
The V divider on Feedback pin | |||||
determines float voltage. | |||||
The R downstream of I_feedback | |||||
(after 24 ohm resistor) | |||||
determines current (100mV / R) | |||||
See data sheet for more details. | |||||
Put Simply: Set float voltage on r divider | |||||
and make sure current resistor is high enough | |||||
to be low current. | |||||
\end{verbatim} | |||||
\textbf{Calculating LT1512 vdivider} | |||||
\begin{verbatim} | |||||
Example calculation for R1: | |||||
R1 = (R2(Vbat - 1.245) )\ (1.245+R2(0.3uA)) | |||||
with default R2 at 12,400 | |||||
Desired Vbat float of 13.8 (lead) | |||||
(13.8 - 1.245) * 12400 == 155682 | |||||
1.245 + (12400 * .000003) == .03720 + 1.245 == 1.2822 | |||||
155682/1.2822 == 121417 | |||||
It would be evil for them to put 0.3uA and | |||||
expect you to convert that to 0.000003A | |||||
But that's what they did. At least they | |||||
give an example to check. | |||||
Five zeros on that. | |||||
\end{verbatim} | |||||
Based on the vdivider, what you are seeing is for high voltages, with R2 being the recommended 12.4K, is R1 150K at ~13, R1 220K at ~9V. | |||||
Some more notes | |||||
\begin{verbatim} | |||||
checking the given example: | |||||
41200 * (8.2 - 1.245) 286546 | |||||
41200 * 0.000003 + 1.245 == 1.3605 | |||||
lowest possible value (1.3V charge) | |||||
(1.3 - 1.245 ) * 12400 == 682 | |||||
(12400 * .000003 ) + 1.245 == 1.28 | |||||
682 / 1.28 == 532 | |||||
so lowest resistor value must be 500 about... | |||||
\end{verbatim} | |||||
Lowest resistor would be 536. (e48 resistor) | |||||
\subsection{Current monitor} | |||||
I considered doing an (high side) op amp with external resistors per AN1322 microchip app note, but decided to go instead with a current monitor, ala ina169. There are a number of INA chips being advertised. Adafruit, for example sells the INA219 and there are many articles | |||||
about other current sense in the same family. There is the shunt | |||||
resistor value, and the gain resistor to set. I will use based off of the adafruit example, as well as the ti example a 1ohm shunt (for up to 1A readings, seems as you decrease the shunt you get more capacity in amperage to read), with a 1K gain resistor, which TI gives as an example in a table. That means voltage will equal current. | |||||
For the inductor | |||||
see lt data sheet for details. | |||||
must not be series resistance greater than 0.1 ohms. | |||||
\subsection{PCB Revision - Modular Parts} | |||||
I decided to route out some of the pcb, so I can possibly reuse the temperature sensor and perhaps the lithium battery charger. This was on revision 2. I got the first revision already made after a marathon one Sunday morning from 8-2pm. Here's how it is routed out. | |||||
\includegraphics{../pics/modular_reusable.jpg} | |||||
\captionof{figure}{Cut out with pliers and reuse parts.} | |||||
\subsubsection{Ripped off by temperature sensors} | |||||
The community around Arduino advertises the LM35, advertises the MAX6675. The latter is \$10 in one off quantity (\$5 from ebay), the former isn't cheap either, at \$2.00 about. Though the LM35 has a much more limited range. The LM35 is great as it's extremely simple to use (power and read voltage which converts directly to temperature). | |||||
I'll have to find an alternative for the MAX6675. At \$10 it's just stupid. A micro can do temperature as well. Maybe \$5 would be acceptable, but \$10 is not. How big are your pockets? | |||||
\vspace{0.4in} | |||||
\includegraphics[scale=0.3]{../pics/tinythermocouple.jpg} | |||||
\captionof{figure}{technoblogy has an article on using a micro with an external thermocouple} | |||||
Cheapest thermocouple on Digikey, is a digilent (they just import) thermocouple at \$10. Next is a DFRobot (chinese adafruit) at \$30 with a module included. Thermocouples are not cheap! Onto ebay.\footnote{Thermocouples: I forgot how they work today. I've read of them before but haven't used them much (have seen them in toasters. Now that I know they are worth \$5-10 I'm going to start retrieving them from broken toasters). When two dissimilar metals are put together, and then the metals are heated, you can get a voltage across them. This voltage can be read with an ADC. This phenomenon has a name, but the name is not important. Names just add another thing you need to remember. Bad idea. (OK, I remembered it, now I can fool myself into feeling intelligent - seebeck effect. Now let me go count my hertz, and volts, and teslas...) Wikipedia calls it the thermoelectric effect.} | |||||
After some research I decided to go with the Digilent probe. The cheapest used probe on ebay is \$10. I don't want the new ones from US, which is only \$5 cheaper. | |||||
\section{Bom Notes} | |||||
I should try to get rid of some expensive items where possible. | |||||
\vspace{0.2in} | |||||
tantalum is \$1. Try a ceramic. | |||||
MAX6675 is \$10. | |||||
Slide pot is just for fun. That can be removed. | |||||
\vspace{0.2in} | |||||
On the subject of boms, I have made two. The LT portion is complex, and requires its own bom. The rest of the items are on a different bom. I keep some things in stock so a few items have been omitted. | |||||
\subsection{SOD323 (diode) is equal to 0805} | |||||
Looks like the SOD323, diode / SC-73 package is near the 0805 package in size. SOD323 is slightly smaller, but not by much. They are probably interchangeable in practice. | |||||
\section{PCB Build and Test Notes} | |||||
I built the PCB. There were a few errors which I've put in the TODO file, but nothing show stopping. There will be a rev2 pcb. A few notes: | |||||
On the LT1512, if you float the voltage divider, and Feedback pin, the device will short out. My power supply continually is saving me on this. | |||||
For the voltage divider, you don't actually see the float voltage, between R1, and R2 of the divider, I don't think. The voltage, however does rise, above the divider, where the Vsw pin is. What you do see is the 1.24 reference, or some voltage near it. | |||||
What I'm seeing now, is if you connect a scope probe to the lt charge pin, (pin which charges the battery) you can adjust the divider and see the voltage rise. That must be the float voltage. Meanwhile, the feedback pin, which is downstream of the charge pin, has always about 1.24 or so. | |||||
So seems to work well. For a while, I misunderstood how the voltage divider was supposed to work, and spent a few hours double checking the divider values. I had wired the switches wrong in rev 1, but that was not the issue. The issue was my expectation to see the voltage between the divider actually be the float voltage, when that float voltage was above the divider. Must be some transistor math doing a calculation on the voltage divider. | |||||
With the 0.2 ohm resistor (in typical application first page of LT1512 data sheet), I had changed it to a 1ohm. That was still not enough, and I instead substituted in a 10ohm. This limits charging to 10mA. The 1 ohm resistor seemed to have some issue of high float voltages causing thermal runway... Maybe a 5 ohm resistor can be used for 20mA charging. This was only on high float voltages. With the 1 Nicd, I was able to do 80-100mA of charging, without issue. But once float is around 5-6 volts you start to get issues with the current growing exponentially from the main PSU, and the LT1512 chip overheating. (At \$8 each, a melted chip is to be avoided). | |||||
\subsection{Current usage, and Solar Project} | |||||
This project is a descendant of the solar battery charger project. I'm going to restart that project with some of these components, but might use the LT1372, or some other more efficient regulator. No current limiting should be necessary, given that I will use small solar panels (though current limit, might need to be in consideration). | |||||
The INA169 draws about 90uA when measuring the 10mA of current going through for a 6V lead battery. | |||||
\subsection{Current Limiting resistor on LT1512} | |||||
The Resistor after I Feedback, R10 (in my schematic. it's the 0.2 ohm resistor in the official data sheet)... In the circuit here, it is 1 ohm. It | |||||
will allow about 80mA into a NiCd at 1.2 | |||||
volts. At this level, there is an issue with | |||||
charging voltages above single cell lithium values. What happens | |||||
is that the circuit starts using over an amp of current and | |||||
the LT chip overheats. | |||||
If you increase the resistance, you | |||||
can lower the current output and thus also charge 6-12v | |||||
batteries. | |||||
Test with a current limiting power supply! | |||||
\subsection{Separate Grounds 1512} | |||||
I did not separate the grounds on the first run, and while there might be more noise (I didn't measure) everything seems to work, regardless. | |||||
\subsection{Switches Max Current} | |||||
These switches have a max current of 300mA. | |||||
\subsection{Usage} | |||||
Here's how to use this device. Plug in a 9-12V PSU. Connect USB to computer (bbb, rpi preferred for long term usage). | |||||
Measure the voltage divider. This value is found after the large diode, but before the voltage divider. Adjust the switches, and pot as needed. Check with a DMM, for the voltage - that will be the final charge voltage. | |||||
Connect battery + into INA169 (high side current sense) . Connect INA169 v out into LT CONN (which is same as where float voltage is measured). | |||||
Connect battery - into ground. Check ina169 ADC reading with Serial out or DMM, it should reflect the charging. You can also put a DMM in series with battery to confirm its charging. | |||||
\subsection{Forgot V Dividers for batteries gt 5v} | |||||
I guess I forgot a voltage divider on this board. I'll need at least 2 or 3 pins on the ADC to be 10\%, so that I can measure 6 and 12v lead batteries. Hmph. For rev 2 I guess. | |||||
\\ | |||||
\includegraphics[scale=0.5]{../pics/DSCN2552.JPG} | |||||
\captionof{figure}{Rev 2} | |||||
\section{Rev 2 Build} | |||||
The board tends to slowly ramp up, pulling 150 at start, then moving eventually to 500mA (testing at fuse) before cutting back to about 400mA, and the 5V output has a bit of switching on it (thermal shutdown, possibly). It also heats up both the LT and the LM317 at this point. | |||||
\\ | |||||
I recall having this problem with the first board though I was able to get it working, after breaking some traces. On this board, occasionally, I was able to see it pull 60mA, and the output voltage became high. Otherwise the LT FB (I call it the LT Float voltage) became what was expected. But when it was 500mA (shorting?), the float V is low. More research needed. It's possible the LT chip has been damaged too much. The scope is quite clear on what is going on, though. And I was getting output voltages earlier with/without overheating. This is without a battery connected, though a battery added does not make a difference. | |||||
\\ | |||||
I hear a snap when its turning on sometimes. EDIT: maybe I do not... | |||||
\subsection{Solution: Grounding Soldering Issue} | |||||
This is revision two. On this board, I was getting intermittent issues where the board would suddenly ramp up in current draw from about 10mA to 200 to 300 to 400mA before overheating, and then it would restart the process. I found the LTC IC getting hot. | |||||
\\ | |||||
Before, I had already checked over the schematic once or twice before, so I was fairly confident that was not the issue. I started by reviewing the block diagram of the data sheet. The two inputs, Ifeedback and feedback pins seemed of interest. I tried disconnecting them. At this point, the same behaviour was occuring. I also tried disconnecting the output from the vdivider. | |||||
\\ | |||||
None of these changes made any difference. I checked the continuity of GND pins, and low and behold, pin 3 (GND-S) was intermittent. Normal GND was OK (Pin 2). | |||||
\\ | |||||
It turned out to be an assembly issue. The soldering was not 100\%. This led to intermittent issues. Push on the board enough, and it makes contact. | |||||
\textbf{Behaviour of Board with Pins N/C}: | |||||
\\ | |||||
Once I resoldered Pin 3 (GND-S) I still had three other pins disconnected. I found that the board immediately tried to pull more than 1A from my PSU (which shut off). After connecting the three pins (it looks like the FB pin was the cause of this), the board returned to normal operation. | |||||
So there are two error scenarios here: | |||||
\\ | |||||
1, GND-S is not connected, and the board slowly ramps up current draw before overheating, and triggering self shutoff. | |||||
\\ | |||||
2. FB (or perhaps another pin) is not connected, and the board instantly tries to pull \textgreater 1A current. | |||||
\subsection{Vin Input Cap} | |||||
I had a 2.2uf but it looks like a 22uF is recommended. I threw on a 100uf Electrolytic I had for now. Next revision will have a 22uF tantalum similar to the output cap. | |||||
\subsection{Terminal Blocks} | |||||
The ones I have are flimsy. Next time I will use Barrier Strip that are pcb mount. These should be more sturdy and usable. See the AIPhone teardown for what they use. (Picture below). | |||||
\\ | |||||
\includegraphics[scale=0.4]{../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG} | |||||
\captionof{figure}{Barrier Strips that are PCB mount are stronger than terminal blocks.} | |||||
\end{document} | |||||
@ -0,0 +1,327 @@ | |||||
\documentclass[11pt]{article} | |||||
%Gummi|065|=) | |||||
\usepackage{graphicx} | |||||
\usepackage{caption} | |||||
\title{\textbf{BatteryMonitorBoard}} | |||||
\author{Steak Electronics} | |||||
\date{} | |||||
\begin{document} | |||||
\maketitle | |||||
\tableofcontents | |||||
\section{Overview} | |||||
\section{Chip Hunting} | |||||
Need to find a chip for battery charging. Some sheets have been saved. I looked at TI primarily. Though considered one AD/LTC. BQ2954 is out of the question as its too complex in its application circuit. THe BQ2000 is a 8 pin DIP and seems like a good start. That will cover nicad/nimh, and lithium batteries. | |||||
Though the BQ2000 is a bit of a mess as well. Data sheet has a complex circuit. There is a simpler one here: | |||||
http://www.ti.com/lit/pdf/sluu007 | |||||
and | |||||
https://electronics.stackexchange.com/questions/95970/how-to-use-battery-charge-controller-bq2002n | |||||
Regardless of the contents of that post, the fact is, the chip requires a lot of stuff. | |||||
https://www.st.com/content/ccc/resource/technical/document/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:content/translations/en.CD00132951.pdf | |||||
This chip: stc4054, is extremely simple. Limited to 1 lithium cell (so only 4.2 volts max) but application circuit is lean, and it has a shutdown pin, so you can turn off the charger. Price is the cheapest as well, at 1.50 for 1. | |||||
That looks hopeful. Why not multiple? | |||||
Need to remember to be careful of 4.1 lithium batteries. Most chargers are 4.2, and its easy to forget that there is a difference. | |||||
MCP73826 is another reasonable option. Slightly more complex, but not by much. | |||||
RT9526A is also simple. Let's start with the st chip. | |||||
Looks like the voltage on that pin should be between 1.2 and 2.4 in order to turn it off. Below 1.2 it is on, and monitoring current. Above 1.2 but below 2.4 it is off. above 2.4 it's putting 35ua into the battery. I think. | |||||
Also like the LTC1734, which is lithium / nicad. But expensive at 3-4 dollars. Don't see any lead acid battery chargers on digi that aren't being obsoleted. There's not one. I did see some on manufacturer's pages though. Just not here. | |||||
There is one microchip one (lead acid) based on a pic. App circuit is complex. | |||||
AN1015 is the app note. | |||||
So need a lead, and nicd charger still. | |||||
Tomorrow I'd like to look at maxim. I see this: | |||||
https://www.maximintegrated.com/en/products/power/battery-management/MAX1772.html | |||||
But the application circuit is too much for what I want to deal with. | |||||
Seems lead acid battery chargers are not as common as they must've been before. | |||||
Onsemi is only lithium batteries. | |||||
Mouser has only universal chargers, no lead. But universal includes lead. | |||||
let's check linear. LT1510 is an 8 pin simple device. Though it's nicad and lithium only. It says it can do lead in table, but not in datasheet. | |||||
lt1510 would work for nicad. data sheet figure 6 has a circuit for nicad. | |||||
What about lead? | |||||
lt1513 does the three main types: nicd,li-ion,lead | |||||
At a cost of \$10. | |||||
At digi, the bq2031 is the only lead battery chip (not multi type) that is in production. Not much choice. EDIT: actually that is not | |||||
recommended for new designs either. | |||||
http://www.eevblog.com/forum/beginners/mc34063-battery-charger/msg1378671/\#msg1378671 | |||||
Here he uses a boost regulator to power a battery. Essentially just setting the voltage. | |||||
http://www.eevblog.com/forum/projects/switching-lead-acid-battery-charger-ic/msg806972/\#msg806972 | |||||
Here is some better advice. | |||||
quote: | |||||
\begin{verbatim} | |||||
I'd recommend just float charging. It takes only a little longer | |||||
and is easier on the batteries. You will need to limit the initial | |||||
charge current to about 0.1 C (so 2 A for a 20 AH battery). The | |||||
easiest way to do this is a constant current/ constant voltage | |||||
power supply. Set the current limit to the desired charge current, | |||||
and the voltage to the float voltage (13.8 V adjusted for | |||||
temperature if needed). The voltage on the battery will slowly | |||||
increase over time until it reaches ~13.8 V, then the current will | |||||
slowly drop over time until it reaches nearly zero. At that point, | |||||
the battery is fully charged and you can either remove the charger | |||||
or just leave it on. | |||||
\end{verbatim} | |||||
Which is what I did with my solar battery charger, and it worked well. So I suppose there is no need for anything more than a vreg for lead batteries. This time I will go to the recommended 13.8 instead of what I had before (around 12) and I will do the same trickle charge method. Simple. Done. | |||||
May use 1512 instead. \$5 in 150 quantity. Hm... | |||||
\$10 in single. | |||||
That would cover lead, nicad. | |||||
Will need jumpers on R1 and R2 depending on what battery type. According to data sheet, li-ion the divider is a float voltage. In nicd, it is a top limit. | |||||
OK, i've decided: | |||||
\subsection{Part Selection Summary} | |||||
LT1512, and STC4054. | |||||
For starters, I will use stc as lithium and lt as nicad / lead. | |||||
this will avoid the worry of jumpers, and what not. Later I can be flexible. | |||||
Now onto other parts. I need some way to monitor the current, and of course a voltage tap. | |||||
Where to put current sense? I think before the battery. | |||||
I should put some jumpers in, so I can isolate everything though. I dont' want to mix circuits at the start. So isolate the charger from the op amp and sense, at first. | |||||
Let's go with the basic differential op amp in microchip an1332. I need a vreg supply (linear) at 15.5 volts, for the op amp, so it's above the lead battery voltage. Simplest two switchers I see are lm2577 or the mk3608. The mk is easier to use. | |||||
With that we have: | |||||
\begin{itemize} | |||||
\item Battery charger x 2 | |||||
\item voltage monitor x 2 | |||||
\item current monitor x 2 | |||||
\item ethernet (using off the shelf enc modules for now, but maybe | |||||
on board later). | |||||
\item microcontroller (nano) | |||||
\item temperature monitor (something like max6675 looks nice. can put on board, without difficulty). | |||||
\item additional taps into adc, and some op amps and current shunts not populated to be used as extra current - voltage converters. At least two. Put on modular schematic. | |||||
\end{itemize} | |||||
I also want a general current and voltage monitor. I want | |||||
to be able to watch the load on a battery, and record that as well... | |||||
Perhaps that will be separate. I might want to grab some off the shelf | |||||
current / voltage monitoring stuff, or just throw a few op amps with breakouts on the board. | |||||
Let's build. | |||||
Keep all schematics modular! | |||||
\textbf{A note on lt1512 tuning} | |||||
\begin{verbatim} | |||||
How this is tuned: | |||||
The V divider on Feedback pin | |||||
determines float voltage. | |||||
The R downstream of I_feedback | |||||
(after 24 ohm resistor) | |||||
determines current (100mV / R) | |||||
See data sheet for more details. | |||||
Put Simply: Set float voltage on r divider | |||||
and make sure current resistor is high enough | |||||
to be low current. | |||||
\end{verbatim} | |||||
\textbf{Calculating LT1512 vdivider} | |||||
\begin{verbatim} | |||||
Example calculation for R1: | |||||
R1 = (R2(Vbat - 1.245) )\ (1.245+R2(0.3uA)) | |||||
with default R2 at 12,400 | |||||
Desired Vbat float of 13.8 (lead) | |||||
(13.8 - 1.245) * 12400 == 155682 | |||||
1.245 + (12400 * .000003) == .03720 + 1.245 == 1.2822 | |||||
155682/1.2822 == 121417 | |||||
It would be evil for them to put 0.3uA and | |||||
expect you to convert that to 0.000003A | |||||
But that's what they did. At least they | |||||
give an example to check. | |||||
Five zeros on that. | |||||
\end{verbatim} | |||||
Based on the vdivider, what you are seeing is for high voltages, with R2 being the recommended 12.4K, is R1 150K at ~13, R1 220K at ~9V. | |||||
Some more notes | |||||
\begin{verbatim} | |||||
checking the given example: | |||||
41200 * (8.2 - 1.245) 286546 | |||||
41200 * 0.000003 + 1.245 == 1.3605 | |||||
lowest possible value (1.3V charge) | |||||
(1.3 - 1.245 ) * 12400 == 682 | |||||
(12400 * .000003 ) + 1.245 == 1.28 | |||||
682 / 1.28 == 532 | |||||
so lowest resistor value must be 500 about... | |||||
\end{verbatim} | |||||
Lowest resistor would be 536. (e48 resistor) | |||||
\subsection{Current monitor} | |||||
I considered doing an (high side) op amp with external resistors per AN1322 microchip app note, but decided to go instead with a current monitor, ala ina169. There are a number of INA chips being advertised. Adafruit, for example sells the INA219 and there are many articles | |||||
about other current sense in the same family. There is the shunt | |||||
resistor value, and the gain resistor to set. I will use based off of the adafruit example, as well as the ti example a 1ohm shunt (for up to 1A readings, seems as you decrease the shunt you get more capacity in amperage to read), with a 1K gain resistor, which TI gives as an example in a table. That means voltage will equal current. | |||||
For the inductor | |||||
see lt data sheet for details. | |||||
must not be series resistance greater than 0.1 ohms. | |||||
\subsection{PCB Revision - Modular Parts} | |||||
I decided to route out some of the pcb, so I can possibly reuse the temperature sensor and perhaps the lithium battery charger. This was on revision 2. I got the first revision already made after a marathon one Sunday morning from 8-2pm. Here's how it is routed out. | |||||
\includegraphics{../pics/modular_reusable.jpg} | |||||
\captionof{figure}{Cut out with pliers and reuse parts.} | |||||
\subsubsection{Ripped off by temperature sensors} | |||||
The community around Arduino advertises the LM35, advertises the MAX6675. The latter is \$10 in one off quantity (\$5 from ebay), the former isn't cheap either, at \$2.00 about. Though the LM35 has a much more limited range. The LM35 is great as it's extremely simple to use (power and read voltage which converts directly to temperature). | |||||
I'll have to find an alternative for the MAX6675. At \$10 it's just stupid. A micro can do temperature as well. Maybe \$5 would be acceptable, but \$10 is not. How big are your pockets? | |||||
\vspace{0.4in} | |||||
\includegraphics[scale=0.3]{../pics/tinythermocouple.jpg} | |||||
\captionof{figure}{technoblogy has an article on using a micro with an external thermocouple} | |||||
Cheapest thermocouple on Digikey, is a digilent (they just import) thermocouple at \$10. Next is a DFRobot (chinese adafruit) at \$30 with a module included. Thermocouples are not cheap! Onto ebay.\footnote{Thermocouples: I forgot how they work today. I've read of them before but haven't used them much (have seen them in toasters. Now that I know they are worth \$5-10 I'm going to start retrieving them from broken toasters). When two dissimilar metals are put together, and then the metals are heated, you can get a voltage across them. This voltage can be read with an ADC. This phenomenon has a name, but the name is not important. Names just add another thing you need to remember. Bad idea. (OK, I remembered it, now I can fool myself into feeling intelligent - seebeck effect. Now let me go count my hertz, and volts, and teslas...) Wikipedia calls it the thermoelectric effect.} | |||||
After some research I decided to go with the Digilent probe. The cheapest used probe on ebay is \$10. I don't want the new ones from US, which is only \$5 cheaper. | |||||
\section{Bom Notes} | |||||
I should try to get rid of some expensive items where possible. | |||||
\vspace{0.2in} | |||||
tantalum is \$1. Try a ceramic. | |||||
MAX6675 is \$10. | |||||
Slide pot is just for fun. That can be removed. | |||||
\vspace{0.2in} | |||||
On the subject of boms, I have made two. The LT portion is complex, and requires its own bom. The rest of the items are on a different bom. I keep some things in stock so a few items have been omitted. | |||||
\subsection{SOD323 (diode) is equal to 0805} | |||||
Looks like the SOD323, diode / SC-73 package is near the 0805 package in size. SOD323 is slightly smaller, but not by much. They are probably interchangeable in practice. | |||||
\section{PCB Build and Test Notes} | |||||
I built the PCB. There were a few errors which I've put in the TODO file, but nothing show stopping. There will be a rev2 pcb. A few notes: | |||||
On the LT1512, if you float the voltage divider, and Feedback pin, the device will short out. My power supply continually is saving me on this. | |||||
For the voltage divider, you don't actually see the float voltage, between R1, and R2 of the divider, I don't think. The voltage, however does rise, above the divider, where the Vsw pin is. What you do see is the 1.24 reference, or some voltage near it. | |||||
What I'm seeing now, is if you connect a scope probe to the lt charge pin, (pin which charges the battery) you can adjust the divider and see the voltage rise. That must be the float voltage. Meanwhile, the feedback pin, which is downstream of the charge pin, has always about 1.24 or so. | |||||
So seems to work well. For a while, I misunderstood how the voltage divider was supposed to work, and spent a few hours double checking the divider values. I had wired the switches wrong in rev 1, but that was not the issue. The issue was my expectation to see the voltage between the divider actually be the float voltage, when that float voltage was above the divider. Must be some transistor math doing a calculation on the voltage divider. | |||||
With the 0.2 ohm resistor (in typical application first page of LT1512 data sheet), I had changed it to a 1ohm. That was still not enough, and I instead substituted in a 10ohm. This limits charging to 10mA. The 1 ohm resistor seemed to have some issue of high float voltages causing thermal runway... Maybe a 5 ohm resistor can be used for 20mA charging. This was only on high float voltages. With the 1 Nicd, I was able to do 80-100mA of charging, without issue. But once float is around 5-6 volts you start to get issues with the current growing exponentially from the main PSU, and the LT1512 chip overheating. (At \$8 each, a melted chip is to be avoided). | |||||
\subsection{Current usage, and Solar Project} | |||||
This project is a descendant of the solar battery charger project. I'm going to restart that project with some of these components, but might use the LT1372, or some other more efficient regulator. No current limiting should be necessary, given that I will use small solar panels (though current limit, might need to be in consideration). | |||||
The INA169 draws about 90uA when measuring the 10mA of current going through for a 6V lead battery. | |||||
\subsection{Current Limiting resistor on LT1512} | |||||
The Resistor after I Feedback, R10 (in my schematic. it's the 0.2 ohm resistor in the official data sheet)... In the circuit here, it is 1 ohm. It | |||||
will allow about 80mA into a NiCd at 1.2 | |||||
volts. At this level, there is an issue with | |||||
charging voltages above single cell lithium values. What happens | |||||
is that the circuit starts using over an amp of current and | |||||
the LT chip overheats. | |||||
If you increase the resistance, you | |||||
can lower the current output and thus also charge 6-12v | |||||
batteries. | |||||
Test with a current limiting power supply! | |||||
\subsection{Separate Grounds 1512} | |||||
I did not separate the grounds on the first run, and while there might be more noise (I didn't measure) everything seems to work, regardless. | |||||
\subsection{Switches Max Current} | |||||
These switches have a max current of 300mA. | |||||
\subsection{Usage} | |||||
Here's how to use this device. Plug in a 9-12V PSU. Connect USB to computer (bbb, rpi preferred for long term usage). | |||||
Measure the voltage divider. This value is found after the large diode, but before the voltage divider. Adjust the switches, and pot as needed. Check with a DMM, for the voltage - that will be the final charge voltage. | |||||
Connect battery + into INA169 (high side current sense) . Connect INA169 v out into LT CONN (which is same as where float voltage is measured). | |||||
Connect battery - into ground. Check ina169 ADC reading with Serial out or DMM, it should reflect the charging. You can also put a DMM in series with battery to confirm its charging. | |||||
\subsection{Forgot V Dividers for batteries gt 5v} | |||||
I guess I forgot a voltage divider on this board. I'll need at least 2 or 3 pins on the ADC to be 10\%, so that I can measure 6 and 12v lead batteries. Hmph. For rev 2 I guess. | |||||
\includegraphics[scale=0.5]{../pics/DSCN2552.JPG} | |||||
\section{Rev 2 Build} | |||||
The board tends to slowly ramp up, pulling 150 at start, then moving eventually to 500mA (testing at fuse) before cutting back to about 400mA, and the 5V output has a bit of switching on it (thermal shutdown, possibly). It also heats up both the LT and the LM317 at this point. | |||||
\\ | |||||
I recall having this problem with the first board though I was able to get it working, after breaking some traces. On this board, occasionally, I was able to see it pull 60mA, and the output voltage became high. Otherwise the LT FB (I call it the LT Float voltage) became what was expected. But when it was 500mA (shorting?), the float V is low. More research needed. It's possible the LT chip has been damaged too much. The scope is quite clear on what is going on, though. And I was getting output voltages earlier with/without overheating. This is without a battery connected, though a battery added does not make a difference. | |||||
\\ | |||||
I hear a snap when its turning on sometimes. EDIT: maybe I do not... | |||||
\subsection{Solution: Grounding Soldering Issue} | |||||
This is revision two. On this board, I was getting intermittent issues where the board would suddenly ramp up in current draw from about 10mA to 200 to 300 to 400mA before overheating, and then it would restart the process. I found the LTC IC getting hot. | |||||
\\ | |||||
Before, I had already checked over the schematic once or twice before, so I was fairly confident that was not the issue. I started by reviewing the block diagram of the data sheet. The two inputs, Ifeedback and feedback pins seemed of interest. I tried disconnecting them. At this point, the same behaviour was occuring. I also tried disconnecting the output from the vdivider. | |||||
None of these changes made any difference. I checked the continuity of GND pins, and low and behold, pin 3 (GND-S) was intermittent. Normal GND was OK (Pin 2). | |||||
It turned out to be an assembly issue. The soldering was not 100\%. This led to intermittent issues. Push on the board enough, and it makes contact. | |||||
\textbf{Behaviour of Board with Pins N/C}: | |||||
\\ | |||||
Once I resoldered Pin 3 (GND-S) I still had three other pins disconnected. I found that the board immediately tried to pull more than 1A from my PSU (which shut off). After connecting the three pins (it looks like the FB pin was the cause of this), the board returned to normal operation. | |||||
So there are two error scenarios here: | |||||
\\ | |||||
1, GND-S is not connected, and the board slowly ramps up before overheating, and triggering self shutoff. | |||||
\\ | |||||
2. FB (or perhaps another pin) is not connected, and the board instantly tries to pull > 1A current. | |||||
\subsection{Vin Input Cap} | |||||
I had a 2.2uf but it looks like a 22uF is recommended. I threw on a 100uf Electrolytic I had for now. Next revision will have a 22uF tantalum similar to the output cap. | |||||
\end{document} | |||||
@ -0,0 +1,19 @@ | |||||
\contentsline {section}{\numberline {1}Overview}{1} | |||||
\contentsline {section}{\numberline {2}Chip Hunting}{1} | |||||
\contentsline {subsection}{\numberline {2.1}Part Selection Summary}{3} | |||||
\contentsline {subsection}{\numberline {2.2}Current monitor}{5} | |||||
\contentsline {subsection}{\numberline {2.3}PCB Revision - Modular Parts}{6} | |||||
\contentsline {subsubsection}{\numberline {2.3.1}Ripped off by temperature sensors}{7} | |||||
\contentsline {section}{\numberline {3}Bom Notes}{8} | |||||
\contentsline {subsection}{\numberline {3.1}SOD323 (diode) is equal to 0805}{9} | |||||
\contentsline {section}{\numberline {4}PCB Build and Test Notes}{9} | |||||
\contentsline {subsection}{\numberline {4.1}Current usage, and Solar Project}{10} | |||||
\contentsline {subsection}{\numberline {4.2}Current Limiting resistor on LT1512}{10} | |||||
\contentsline {subsection}{\numberline {4.3}Separate Grounds 1512}{10} | |||||
\contentsline {subsection}{\numberline {4.4}Switches Max Current}{10} | |||||
\contentsline {subsection}{\numberline {4.5}Usage}{10} | |||||
\contentsline {subsection}{\numberline {4.6}Forgot V Dividers for batteries gt 5v}{11} | |||||
\contentsline {section}{\numberline {5}Rev 2 Build}{11} | |||||
\contentsline {subsection}{\numberline {5.1}Solution: Grounding Soldering Issue}{12} | |||||
\contentsline {subsection}{\numberline {5.2}Vin Input Cap}{13} | |||||
\contentsline {subsection}{\numberline {5.3}Terminal Blocks}{13} |
@ -0,0 +1,24 @@ | |||||
\relax | |||||
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{1}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Part Selection Summary}{3}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Current monitor}{5}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}PCB Revision - Modular Parts}{6}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Cut out with pliers and reuse parts.\relax }}{7}} | |||||
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.3.1}Ripped off by temperature sensors}{7}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces technoblogy has an article on using a micro with an external thermocouple\relax }}{8}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {3}Bom Notes}{8}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}SOD323 (diode) is equal to 0805}{9}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {4}PCB Build and Test Notes}{9}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Current usage, and Solar Project}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Current Limiting resistor on LT1512}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.3}Separate Grounds 1512}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.4}Switches Max Current}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.5}Usage}{10}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {4.6}Forgot V Dividers for batteries gt 5v}{11}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces Rev 2\relax }}{11}} | |||||
\@writefile{toc}{\contentsline {section}{\numberline {5}Rev 2 Build}{11}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Solution: Grounding Soldering Issue}{12}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Vin Input Cap}{13}} | |||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.3}Terminal Blocks}{13}} | |||||
\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces Barrier Strips that are PCB mount are stronger than terminal blocks.\relax }}{13}} |
@ -0,0 +1,387 @@ | |||||
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 24 JAN 2020 00:50 | |||||
entering extended mode | |||||
restricted \write18 enabled. | |||||
%&-line parsing enabled. | |||||
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ | |||||
batterycharge_stationdata/docs/12.tex | |||||
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/b | |||||
atterycharge_stationdata/docs/12.tex | |||||
LaTeX2e <2017/01/01> patch level 3 | |||||
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls | |||||
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo | |||||
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option) | |||||
) | |||||
\c@part=\count79 | |||||
\c@section=\count80 | |||||
\c@subsection=\count81 | |||||
\c@subsubsection=\count82 | |||||
\c@paragraph=\count83 | |||||
\c@subparagraph=\count84 | |||||
\c@figure=\count85 | |||||
\c@table=\count86 | |||||
\abovecaptionskip=\skip41 | |||||
\belowcaptionskip=\skip42 | |||||
\bibindent=\dimen102 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty | |||||
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty | |||||
Package: keyval 2014/10/28 v1.15 key=value parser (DPC) | |||||
\KV@toks@=\toks14 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty | |||||
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty | |||||
Package: trig 2016/01/03 v1.10 sin cos tan (DPC) | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg | |||||
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration | |||||
) | |||||
Package graphics Info: Driver file: pdftex.def on input line 99. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def | |||||
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty | |||||
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO) | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty | |||||
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO) | |||||
) | |||||
\Gread@gobject=\count87 | |||||
)) | |||||
\Gin@req@height=\dimen103 | |||||
\Gin@req@width=\dimen104 | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty | |||||
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty | |||||
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR) | |||||
Package caption3 Info: TeX engine: e-TeX on input line 67. | |||||
\captionmargin=\dimen105 | |||||
\captionmargin@=\dimen106 | |||||
\captionwidth=\dimen107 | |||||
\caption@tempdima=\dimen108 | |||||
\caption@indent=\dimen109 | |||||
\caption@parindent=\dimen110 | |||||
\caption@hangindent=\dimen111 | |||||
) | |||||
\c@ContinuedFloat=\count88 | |||||
) (./12.aux) | |||||
\openout1 = `12.aux'. | |||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9. | |||||
LaTeX Font Info: ... okay on input line 9. | |||||
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii | |||||
[Loading MPS to PDF converter (version 2006.09.02).] | |||||
\scratchcounter=\count89 | |||||
\scratchdimen=\dimen112 | |||||
\scratchbox=\box26 | |||||
\nofMPsegments=\count90 | |||||
\nofMParguments=\count91 | |||||
\everyMPshowfont=\toks15 | |||||
\MPscratchCnt=\count92 | |||||
\MPscratchDim=\dimen113 | |||||
\MPnumerator=\count93 | |||||
\makeMPintoPDFobject=\count94 | |||||
\everyMPtoPDFconversion=\toks16 | |||||
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty | |||||
Package: pdftexcmds 2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty | |||||
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO) | |||||
Package ifluatex Info: LuaTeX not detected. | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty | |||||
Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch | |||||
) | |||||
Package pdftexcmds Info: LuaTeX not detected. | |||||
Package pdftexcmds Info: \pdf@primitive is available. | |||||
Package pdftexcmds Info: \pdf@ifprimitive is available. | |||||
Package pdftexcmds Info: \pdfdraftmode found. | |||||
) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty | |||||
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty | |||||
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty | |||||
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO) | |||||
)) | |||||
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty | |||||
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty | |||||
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO) | |||||
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty | |||||
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO) | |||||
Package etexcmds Info: Could not find \expanded. | |||||
(etexcmds) That can mean that you are not using pdfTeX 1.50 or | |||||
(etexcmds) that some package has redefined \expanded. | |||||
(etexcmds) In the latter case, load this package earlier. | |||||
))) | |||||
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4 | |||||
38. | |||||
Package grfext Info: Graphics extension search list: | |||||
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE | |||||
G,.JBIG2,.JB2,.eps] | |||||
(grfext) \AppendGraphicsExtensions on input line 456. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg | |||||
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv | |||||
e | |||||
)) | |||||
Package caption Info: Begin \AtBeginDocument code. | |||||
Package caption Info: End \AtBeginDocument code. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <12> on input line 11. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <8> on input line 11. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <6> on input line 11. | |||||
(./12.toc | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <10.95> on input line 3. | |||||
) | |||||
\tf@toc=\write3 | |||||
\openout3 = `12.toc'. | |||||
[1 | |||||
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] | |||||
Overfull \hbox (3.29704pt too wide) in paragraph at lines 20--25 | |||||
\OT1/cmr/m/n/10.95 https://electronics.stackexchange.com/questions/95970/how-to | |||||
-use-battery- | |||||
[] | |||||
Overfull \hbox (548.30061pt too wide) in paragraph at lines 26--28 | |||||
[]\OT1/cmr/m/n/10.95 https://www.st.com/content/ccc/resource/technical/document | |||||
/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:cont | |||||
ent/translations/en.CD00132951.pdf | |||||
[] | |||||
Overfull \hbox (107.1064pt too wide) in paragraph at lines 46--49 | |||||
[]\OT1/cmr/m/n/10.95 https://www.maximintegrated.com/en/products/power/battery- | |||||
management/MAX1772.html | |||||
[] | |||||
Overfull \hbox (119.66849pt too wide) in paragraph at lines 62--67 | |||||
[]\OT1/cmr/m/n/10.95 http://www.eevblog.com/forum/beginners/mc34063-battery-cha | |||||
rger/msg1378671/#msg1378671 | |||||
[] | |||||
[2] | |||||
Overfull \hbox (7.91602pt too wide) in paragraph at lines 79--79 | |||||
[]\OT1/cmtt/m/n/10.95 I'd recommend just float charging. It takes only a little | |||||
longer[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 and is easier on the batteries. You will need to limit t | |||||
he initial[] | |||||
[] | |||||
Overfull \hbox (7.91602pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 charge current to about 0.1 C (so 2 A for a 20 AH batter | |||||
y). The[] | |||||
[] | |||||
Overfull \hbox (2.16733pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 easiest way to do this is a constant current/ constant v | |||||
oltage[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 power supply. Set the current limit to the desired charg | |||||
e current,[] | |||||
[] | |||||
Overfull \hbox (2.16733pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 temperature if needed). The voltage on the battery will | |||||
slowly[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 increase over time until it reaches ~13.8 V, then the cu | |||||
rrent will[] | |||||
[] | |||||
Overfull \hbox (25.16208pt too wide) in paragraph at lines 79--79 | |||||
[] \OT1/cmtt/m/n/10.95 slowly drop over time until it reaches nearly zero. At t | |||||
hat point,[] | |||||
[] | |||||
Overfull \hbox (19.41339pt too wide) in paragraph at lines 79--79 | |||||
[]\OT1/cmtt/m/n/10.95 the battery is fully charged and you can either remove th | |||||
e charger[] | |||||
[] | |||||
[3] | |||||
LaTeX Font Info: Try loading font information for OMS+cmr on input line 106. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/omscmr.fd | |||||
File: omscmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions | |||||
) | |||||
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <10.95> not available | |||||
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 106. | |||||
[4] [5] | |||||
<../pics/modular_reusable.jpg, id=24, 435.12563pt x 412.54124pt> | |||||
File: ../pics/modular_reusable.jpg Graphic file (type jpg) | |||||
<use ../pics/modular_reusable.jpg> | |||||
Package pdftex.def Info: ../pics/modular_reusable.jpg used on input line 190. | |||||
(pdftex.def) Requested size: 435.12456pt x 412.54024pt. | |||||
Package caption Warning: \captionsetup{type*=...} or \captionof | |||||
(caption) outside box or environment on input line 191. | |||||
See the caption package documentation for explanation. | |||||
Overfull \hbox (92.12456pt too wide) in paragraph at lines 190--191 | |||||
[][] | |||||
[] | |||||
[6] [7 <../pics/modular_reusable.jpg>] | |||||
<../pics/tinythermocouple.jpg, id=32, 1134.2375pt x 525.965pt> | |||||
File: ../pics/tinythermocouple.jpg Graphic file (type jpg) | |||||
<use ../pics/tinythermocouple.jpg> | |||||
Package pdftex.def Info: ../pics/tinythermocouple.jpg used on input line 200. | |||||
(pdftex.def) Requested size: 340.27388pt x 157.79071pt. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <9> on input line 203. | |||||
LaTeX Font Info: External font `cmex10' loaded for size | |||||
(Font) <5> on input line 203. | |||||
[8 <../pics/tinythermocouple.jpg>] [9] | |||||
[10] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 273--275 | |||||
[] | |||||
<../pics/DSCN2552.JPG, id=45, 803.0pt x 602.25pt> | |||||
File: ../pics/DSCN2552.JPG Graphic file (type jpg) | |||||
<use ../pics/DSCN2552.JPG> | |||||
Package pdftex.def Info: ../pics/DSCN2552.JPG used on input line 276. | |||||
(pdftex.def) Requested size: 401.49902pt x 301.12425pt. | |||||
Overfull \hbox (41.49902pt too wide) in paragraph at lines 276--277 | |||||
[][] | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 280--282 | |||||
[] | |||||
[11 <../pics/DSCN2552.JPG>] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 283--285 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 289--291 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 292--294 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 295--297 | |||||
[] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 304--306 | |||||
[] | |||||
[12] | |||||
Underfull \hbox (badness 10000) in paragraph at lines 307--309 | |||||
[] | |||||
LaTeX Font Info: Try loading font information for OML+cmr on input line 310. | |||||
(/usr/share/texlive/texmf-dist/tex/latex/base/omlcmr.fd | |||||
File: omlcmr.fd 2014/09/29 v2.5h Standard LaTeX font definitions | |||||
) | |||||
LaTeX Font Info: Font shape `OML/cmr/m/n' in size <10.95> not available | |||||
(Font) Font shape `OML/cmm/m/it' tried instead on input line 310. | |||||
Underfull \hbox (badness 10000) in paragraph at lines 316--318 | |||||
[] | |||||
<../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG, id=52, 803.0pt x | |||||
602.25pt> | |||||
File: ../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG Graphic file | |||||
(type jpg) | |||||
<use ../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG> | |||||
Package pdftex.def Info: ../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN257 | |||||
2.JPG used on input line 319. | |||||
(pdftex.def) Requested size: 321.1943pt x 240.89572pt. | |||||
[13 <../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG>] (./12.aux) ) | |||||
Here is how much of TeX's memory you used: | |||||
2637 strings out of 494945 | |||||
42472 string characters out of 6181032 | |||||
96823 words of memory out of 5000000 | |||||
5914 multiletter control sequences out of 15000+600000 | |||||
10198 words of font info for 36 fonts, out of 8000000 for 9000 | |||||
14 hyphenation exceptions out of 8191 | |||||
39i,8n,39p,1023b,239s stack positions out of 5000i,500n,10000p,200000b,80000s | |||||
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/ | |||||
share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/ | |||||
texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texliv | |||||
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf | |||||
-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/f | |||||
onts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/typ | |||||
e1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/publi | |||||
c/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfon | |||||
ts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/ | |||||
cmtt10.pfb> | |||||
Output written on 12.pdf (13 pages, 670143 bytes). | |||||
PDF statistics: | |||||
91 PDF objects out of 1000 (max. 8388607) | |||||
61 compressed objects within 1 object stream | |||||
0 named destinations out of 1000 (max. 500000) | |||||
21 words of extra memory for PDF output out of 10000 (max. 10000000) | |||||
@ -0,0 +1,340 @@ | |||||
\documentclass[11pt]{article} | |||||
%Gummi|065|=) | |||||
\usepackage{graphicx} | |||||
\usepackage{caption} | |||||
\title{\textbf{BatteryMonitorBoard}} | |||||
\author{Steak Electronics} | |||||
\date{} | |||||
\begin{document} | |||||
\maketitle | |||||
\tableofcontents | |||||
\section{Overview} | |||||
\section{Chip Hunting} | |||||
Need to find a chip for battery charging. Some sheets have been saved. I looked at TI primarily. Though considered one AD/LTC. BQ2954 is out of the question as its too complex in its application circuit. THe BQ2000 is a 8 pin DIP and seems like a good start. That will cover nicad/nimh, and lithium batteries. | |||||
Though the BQ2000 is a bit of a mess as well. Data sheet has a complex circuit. There is a simpler one here: | |||||
http://www.ti.com/lit/pdf/sluu007 | |||||
and | |||||
https://electronics.stackexchange.com/questions/95970/how-to-use-battery-charge-controller-bq2002n | |||||
Regardless of the contents of that post, the fact is, the chip requires a lot of stuff. | |||||
https://www.st.com/content/ccc/resource/technical/document/datasheet/df/b9/e6/5b/ec/92/45/ed/CD00132951.pdf/files/CD00132951.pdf/jcr:content/translations/en.CD00132951.pdf | |||||
This chip: stc4054, is extremely simple. Limited to 1 lithium cell (so only 4.2 volts max) but application circuit is lean, and it has a shutdown pin, so you can turn off the charger. Price is the cheapest as well, at 1.50 for 1. | |||||
That looks hopeful. Why not multiple? | |||||
Need to remember to be careful of 4.1 lithium batteries. Most chargers are 4.2, and its easy to forget that there is a difference. | |||||
MCP73826 is another reasonable option. Slightly more complex, but not by much. | |||||
RT9526A is also simple. Let's start with the st chip. | |||||
Looks like the voltage on that pin should be between 1.2 and 2.4 in order to turn it off. Below 1.2 it is on, and monitoring current. Above 1.2 but below 2.4 it is off. above 2.4 it's putting 35ua into the battery. I think. | |||||
Also like the LTC1734, which is lithium / nicad. But expensive at 3-4 dollars. Don't see any lead acid battery chargers on digi that aren't being obsoleted. There's not one. I did see some on manufacturer's pages though. Just not here. | |||||
There is one microchip one (lead acid) based on a pic. App circuit is complex. | |||||
AN1015 is the app note. | |||||
So need a lead, and nicd charger still. | |||||
Tomorrow I'd like to look at maxim. I see this: | |||||
https://www.maximintegrated.com/en/products/power/battery-management/MAX1772.html | |||||
But the application circuit is too much for what I want to deal with. | |||||
Seems lead acid battery chargers are not as common as they must've been before. | |||||
Onsemi is only lithium batteries. | |||||
Mouser has only universal chargers, no lead. But universal includes lead. | |||||
let's check linear. LT1510 is an 8 pin simple device. Though it's nicad and lithium only. It says it can do lead in table, but not in datasheet. | |||||
lt1510 would work for nicad. data sheet figure 6 has a circuit for nicad. | |||||
What about lead? | |||||
lt1513 does the three main types: nicd,li-ion,lead | |||||
At a cost of \$10. | |||||
At digi, the bq2031 is the only lead battery chip (not multi type) that is in production. Not much choice. EDIT: actually that is not | |||||
recommended for new designs either. | |||||
http://www.eevblog.com/forum/beginners/mc34063-battery-charger/msg1378671/\#msg1378671 | |||||
Here he uses a boost regulator to power a battery. Essentially just setting the voltage. | |||||
http://www.eevblog.com/forum/projects/switching-lead-acid-battery-charger-ic/msg806972/\#msg806972 | |||||
Here is some better advice. | |||||
quote: | |||||
\begin{verbatim} | |||||
I'd recommend just float charging. It takes only a little longer | |||||
and is easier on the batteries. You will need to limit the initial | |||||
charge current to about 0.1 C (so 2 A for a 20 AH battery). The | |||||
easiest way to do this is a constant current/ constant voltage | |||||
power supply. Set the current limit to the desired charge current, | |||||
and the voltage to the float voltage (13.8 V adjusted for | |||||
temperature if needed). The voltage on the battery will slowly | |||||
increase over time until it reaches ~13.8 V, then the current will | |||||
slowly drop over time until it reaches nearly zero. At that point, | |||||
the battery is fully charged and you can either remove the charger | |||||
or just leave it on. | |||||
\end{verbatim} | |||||
Which is what I did with my solar battery charger, and it worked well. So I suppose there is no need for anything more than a vreg for lead batteries. This time I will go to the recommended 13.8 instead of what I had before (around 12) and I will do the same trickle charge method. Simple. Done. | |||||
May use 1512 instead. \$5 in 150 quantity. Hm... | |||||
\$10 in single. | |||||
That would cover lead, nicad. | |||||
Will need jumpers on R1 and R2 depending on what battery type. According to data sheet, li-ion the divider is a float voltage. In nicd, it is a top limit. | |||||
OK, i've decided: | |||||
\subsection{Part Selection Summary} | |||||
LT1512, and STC4054. | |||||
For starters, I will use stc as lithium and lt as nicad / lead. | |||||
this will avoid the worry of jumpers, and what not. Later I can be flexible. | |||||
Now onto other parts. I need some way to monitor the current, and of course a voltage tap. | |||||
Where to put current sense? I think before the battery. | |||||
I should put some jumpers in, so I can isolate everything though. I dont' want to mix circuits at the start. So isolate the charger from the op amp and sense, at first. | |||||
Let's go with the basic differential op amp in microchip an1332. I need a vreg supply (linear) at 15.5 volts, for the op amp, so it's above the lead battery voltage. Simplest two switchers I see are lm2577 or the mk3608. The mk is easier to use. | |||||
With that we have: | |||||
\begin{itemize} | |||||
\item Battery charger x 2 | |||||
\item voltage monitor x 2 | |||||
\item current monitor x 2 | |||||
\item ethernet (using off the shelf enc modules for now, but maybe | |||||
on board later). | |||||
\item microcontroller (nano) | |||||
\item temperature monitor (something like max6675 looks nice. can put on board, without difficulty). | |||||
\item additional taps into adc, and some op amps and current shunts not populated to be used as extra current - voltage converters. At least two. Put on modular schematic. | |||||
\end{itemize} | |||||
I also want a general current and voltage monitor. I want | |||||
to be able to watch the load on a battery, and record that as well... | |||||
Perhaps that will be separate. I might want to grab some off the shelf | |||||
current / voltage monitoring stuff, or just throw a few op amps with breakouts on the board. | |||||
Let's build. | |||||
Keep all schematics modular! | |||||
\textbf{A note on lt1512 tuning} | |||||
\begin{verbatim} | |||||
How this is tuned: | |||||
The V divider on Feedback pin | |||||
determines float voltage. | |||||
The R downstream of I_feedback | |||||
(after 24 ohm resistor) | |||||
determines current (100mV / R) | |||||
See data sheet for more details. | |||||
Put Simply: Set float voltage on r divider | |||||
and make sure current resistor is high enough | |||||
to be low current. | |||||
\end{verbatim} | |||||
\textbf{Calculating LT1512 vdivider} | |||||
\begin{verbatim} | |||||
Example calculation for R1: | |||||
R1 = (R2(Vbat - 1.245) )\ (1.245+R2(0.3uA)) | |||||
with default R2 at 12,400 | |||||
Desired Vbat float of 13.8 (lead) | |||||
(13.8 - 1.245) * 12400 == 155682 | |||||
1.245 + (12400 * .000003) == .03720 + 1.245 == 1.2822 | |||||
155682/1.2822 == 121417 | |||||
It would be evil for them to put 0.3uA and | |||||
expect you to convert that to 0.000003A | |||||
But that's what they did. At least they | |||||
give an example to check. | |||||
Five zeros on that. | |||||
\end{verbatim} | |||||
Based on the vdivider, what you are seeing is for high voltages, with R2 being the recommended 12.4K, is R1 150K at ~13, R1 220K at ~9V. | |||||
Some more notes | |||||
\begin{verbatim} | |||||
checking the given example: | |||||
41200 * (8.2 - 1.245) 286546 | |||||
41200 * 0.000003 + 1.245 == 1.3605 | |||||
lowest possible value (1.3V charge) | |||||
(1.3 - 1.245 ) * 12400 == 682 | |||||
(12400 * .000003 ) + 1.245 == 1.28 | |||||
682 / 1.28 == 532 | |||||
so lowest resistor value must be 500 about... | |||||
\end{verbatim} | |||||
Lowest resistor would be 536. (e48 resistor) | |||||
\subsection{Current monitor} | |||||
I considered doing an (high side) op amp with external resistors per AN1322 microchip app note, but decided to go instead with a current monitor, ala ina169. There are a number of INA chips being advertised. Adafruit, for example sells the INA219 and there are many articles | |||||
about other current sense in the same family. There is the shunt | |||||
resistor value, and the gain resistor to set. I will use based off of the adafruit example, as well as the ti example a 1ohm shunt (for up to 1A readings, seems as you decrease the shunt you get more capacity in amperage to read), with a 1K gain resistor, which TI gives as an example in a table. That means voltage will equal current. | |||||
For the inductor | |||||
see lt data sheet for details. | |||||
must not be series resistance greater than 0.1 ohms. | |||||
\subsection{PCB Revision - Modular Parts} | |||||
I decided to route out some of the pcb, so I can possibly reuse the temperature sensor and perhaps the lithium battery charger. This was on revision 2. I got the first revision already made after a marathon one Sunday morning from 8-2pm. Here's how it is routed out. | |||||
\includegraphics{../pics/modular_reusable.jpg} | |||||
\captionof{figure}{Cut out with pliers and reuse parts.} | |||||
\subsubsection{Ripped off by temperature sensors} | |||||
The community around Arduino advertises the LM35, advertises the MAX6675. The latter is \$10 in one off quantity (\$5 from ebay), the former isn't cheap either, at \$2.00 about. Though the LM35 has a much more limited range. The LM35 is great as it's extremely simple to use (power and read voltage which converts directly to temperature). | |||||
I'll have to find an alternative for the MAX6675. At \$10 it's just stupid. A micro can do temperature as well. Maybe \$5 would be acceptable, but \$10 is not. How big are your pockets? | |||||
\vspace{0.4in} | |||||
\includegraphics[scale=0.3]{../pics/tinythermocouple.jpg} | |||||
\captionof{figure}{technoblogy has an article on using a micro with an external thermocouple} | |||||
Cheapest thermocouple on Digikey, is a digilent (they just import) thermocouple at \$10. Next is a DFRobot (chinese adafruit) at \$30 with a module included. Thermocouples are not cheap! Onto ebay.\footnote{Thermocouples: I forgot how they work today. I've read of them before but haven't used them much (have seen them in toasters. Now that I know they are worth \$5-10 I'm going to start retrieving them from broken toasters). When two dissimilar metals are put together, and then the metals are heated, you can get a voltage across them. This voltage can be read with an ADC. This phenomenon has a name, but the name is not important. Names just add another thing you need to remember. Bad idea. (OK, I remembered it, now I can fool myself into feeling intelligent - seebeck effect. Now let me go count my hertz, and volts, and teslas...) Wikipedia calls it the thermoelectric effect.} | |||||
After some research I decided to go with the Digilent probe. The cheapest used probe on ebay is \$10. I don't want the new ones from US, which is only \$5 cheaper. | |||||
\section{Bom Notes} | |||||
I should try to get rid of some expensive items where possible. | |||||
\vspace{0.2in} | |||||
tantalum is \$1. Try a ceramic. | |||||
MAX6675 is \$10. | |||||
Slide pot is just for fun. That can be removed. | |||||
\vspace{0.2in} | |||||
On the subject of boms, I have made two. The LT portion is complex, and requires its own bom. The rest of the items are on a different bom. I keep some things in stock so a few items have been omitted. | |||||
\subsection{SOD323 (diode) is equal to 0805} | |||||
Looks like the SOD323, diode / SC-73 package is near the 0805 package in size. SOD323 is slightly smaller, but not by much. They are probably interchangeable in practice. | |||||
\section{PCB Build and Test Notes} | |||||
I built the PCB. There were a few errors which I've put in the TODO file, but nothing show stopping. There will be a rev2 pcb. A few notes: | |||||
On the LT1512, if you float the voltage divider, and Feedback pin, the device will short out. My power supply continually is saving me on this. | |||||
For the voltage divider, you don't actually see the float voltage, between R1, and R2 of the divider, I don't think. The voltage, however does rise, above the divider, where the Vsw pin is. What you do see is the 1.24 reference, or some voltage near it. | |||||
What I'm seeing now, is if you connect a scope probe to the lt charge pin, (pin which charges the battery) you can adjust the divider and see the voltage rise. That must be the float voltage. Meanwhile, the feedback pin, which is downstream of the charge pin, has always about 1.24 or so. | |||||
So seems to work well. For a while, I misunderstood how the voltage divider was supposed to work, and spent a few hours double checking the divider values. I had wired the switches wrong in rev 1, but that was not the issue. The issue was my expectation to see the voltage between the divider actually be the float voltage, when that float voltage was above the divider. Must be some transistor math doing a calculation on the voltage divider. | |||||
With the 0.2 ohm resistor (in typical application first page of LT1512 data sheet), I had changed it to a 1ohm. That was still not enough, and I instead substituted in a 10ohm. This limits charging to 10mA. The 1 ohm resistor seemed to have some issue of high float voltages causing thermal runway... Maybe a 5 ohm resistor can be used for 20mA charging. This was only on high float voltages. With the 1 Nicd, I was able to do 80-100mA of charging, without issue. But once float is around 5-6 volts you start to get issues with the current growing exponentially from the main PSU, and the LT1512 chip overheating. (At \$8 each, a melted chip is to be avoided). | |||||
\subsection{Current usage, and Solar Project} | |||||
This project is a descendant of the solar battery charger project. I'm going to restart that project with some of these components, but might use the LT1372, or some other more efficient regulator. No current limiting should be necessary, given that I will use small solar panels (though current limit, might need to be in consideration). | |||||
The INA169 draws about 90uA when measuring the 10mA of current going through for a 6V lead battery. | |||||
\subsection{Current Limiting resistor on LT1512} | |||||
The Resistor after I Feedback, R10 (in my schematic. it's the 0.2 ohm resistor in the official data sheet)... In the circuit here, it is 1 ohm. It | |||||
will allow about 80mA into a NiCd at 1.2 | |||||
volts. At this level, there is an issue with | |||||
charging voltages above single cell lithium values. What happens | |||||
is that the circuit starts using over an amp of current and | |||||
the LT chip overheats. | |||||
If you increase the resistance, you | |||||
can lower the current output and thus also charge 6-12v | |||||
batteries. | |||||
Test with a current limiting power supply! | |||||
\subsection{Separate Grounds 1512} | |||||
I did not separate the grounds on the first run, and while there might be more noise (I didn't measure) everything seems to work, regardless. | |||||
\subsection{Switches Max Current} | |||||
These switches have a max current of 300mA. | |||||
\subsection{Usage} | |||||
Here's how to use this device. Plug in a 9-12V PSU. Connect USB to computer (bbb, rpi preferred for long term usage). | |||||
Measure the voltage divider. This value is found after the large diode, but before the voltage divider. Adjust the switches, and pot as needed. Check with a DMM, for the voltage - that will be the final charge voltage. | |||||
Connect battery + into INA169 (high side current sense) . Connect INA169 v out into LT CONN (which is same as where float voltage is measured). | |||||
Connect battery - into ground. Check ina169 ADC reading with Serial out or DMM, it should reflect the charging. You can also put a DMM in series with battery to confirm its charging. | |||||
\subsection{Forgot V Dividers for batteries gt 5v} | |||||
I guess I forgot a voltage divider on this board. I'll need at least 2 or 3 pins on the ADC to be 10\%, so that I can measure 6 and 12v lead batteries. Hmph. For rev 2 I guess. | |||||
\\ | |||||
\includegraphics[scale=0.5]{../pics/DSCN2552.JPG} | |||||
\captionof{figure}{Rev 2} | |||||
\section{Rev 2 Build} | |||||
The board tends to slowly ramp up, pulling 150 at start, then moving eventually to 500mA (testing at fuse) before cutting back to about 400mA, and the 5V output has a bit of switching on it (thermal shutdown, possibly). It also heats up both the LT and the LM317 at this point. | |||||
\\ | |||||
I recall having this problem with the first board though I was able to get it working, after breaking some traces. On this board, occasionally, I was able to see it pull 60mA, and the output voltage became high. Otherwise the LT FB (I call it the LT Float voltage) became what was expected. But when it was 500mA (shorting?), the float V is low. More research needed. It's possible the LT chip has been damaged too much. The scope is quite clear on what is going on, though. And I was getting output voltages earlier with/without overheating. This is without a battery connected, though a battery added does not make a difference. | |||||
\\ | |||||
I hear a snap when its turning on sometimes. EDIT: maybe I do not... | |||||
\subsection{Solution: Grounding Soldering Issue} | |||||
This is revision two. On this board, I was getting intermittent issues where the board would suddenly ramp up in current draw from about 10mA to 200 to 300 to 400mA before overheating, and then it would restart the process. I found the LTC IC getting hot. | |||||
\\ | |||||
Before, I had already checked over the schematic once or twice before, so I was fairly confident that was not the issue. I started by reviewing the block diagram of the data sheet. The two inputs, Ifeedback and feedback pins seemed of interest. I tried disconnecting them. At this point, the same behaviour was occuring. I also tried disconnecting the output from the vdivider. | |||||
\\ | |||||
None of these changes made any difference. I checked the continuity of GND pins, and low and behold, pin 3 (GND-S) was intermittent. Normal GND was OK (Pin 2). | |||||
\\ | |||||
It turned out to be an assembly issue. The soldering was not 100\%. This led to intermittent issues. Push on the board enough, and it makes contact. | |||||
\textbf{Behaviour of Board with Pins N/C}: | |||||
\\ | |||||
Once I resoldered Pin 3 (GND-S) I still had three other pins disconnected. I found that the board immediately tried to pull more than 1A from my PSU (which shut off). After connecting the three pins (it looks like the FB pin was the cause of this), the board returned to normal operation. | |||||
So there are two error scenarios here: | |||||
\\ | |||||
1, GND-S is not connected, and the board slowly ramps up current draw before overheating, and triggering self shutoff. | |||||
\\ | |||||
2. FB (or perhaps another pin) is not connected, and the board instantly tries to pull \textgreater 1A current. | |||||
\subsection{Vin Input Cap} | |||||
I had a 2.2uf but it looks like a 22uF is recommended. I threw on a 100uf Electrolytic I had for now. Next revision will have a 22uF tantalum similar to the output cap. | |||||
\subsection{Terminal Blocks} | |||||
The ones I have are flimsy. Next time I will use Barrier Strip that are pcb mount. These should be more sturdy and usable. See the AIPhone teardown for what they use. (Picture below). | |||||
\\ | |||||
\includegraphics[scale=0.4]{../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG} | |||||
\captionof{figure}{Barrier Strips that are PCB mount are stronger than terminal blocks.} | |||||
\end{document} | |||||
@ -0,0 +1,19 @@ | |||||
\contentsline {section}{\numberline {1}Overview}{1} | |||||
\contentsline {section}{\numberline {2}Chip Hunting}{1} | |||||
\contentsline {subsection}{\numberline {2.1}Part Selection Summary}{3} | |||||
\contentsline {subsection}{\numberline {2.2}Current monitor}{5} | |||||
\contentsline {subsection}{\numberline {2.3}PCB Revision - Modular Parts}{6} | |||||
\contentsline {subsubsection}{\numberline {2.3.1}Ripped off by temperature sensors}{7} | |||||
\contentsline {section}{\numberline {3}Bom Notes}{8} | |||||
\contentsline {subsection}{\numberline {3.1}SOD323 (diode) is equal to 0805}{9} | |||||
\contentsline {section}{\numberline {4}PCB Build and Test Notes}{9} | |||||
\contentsline {subsection}{\numberline {4.1}Current usage, and Solar Project}{10} | |||||
\contentsline {subsection}{\numberline {4.2}Current Limiting resistor on LT1512}{10} | |||||
\contentsline {subsection}{\numberline {4.3}Separate Grounds 1512}{10} | |||||
\contentsline {subsection}{\numberline {4.4}Switches Max Current}{10} | |||||
\contentsline {subsection}{\numberline {4.5}Usage}{10} | |||||
\contentsline {subsection}{\numberline {4.6}Forgot V Dividers for batteries gt 5v}{11} | |||||
\contentsline {section}{\numberline {5}Rev 2 Build}{11} | |||||
\contentsline {subsection}{\numberline {5.1}Solution: Grounding Soldering Issue}{12} | |||||
\contentsline {subsection}{\numberline {5.2}Vin Input Cap}{13} | |||||
\contentsline {subsection}{\numberline {5.3}Terminal Blocks}{13} |
@ -0,0 +1,3 @@ | |||||
EESchema-DOCLIB Version 2.0 | |||||
# | |||||
#End Doc Library |
@ -0,0 +1,542 @@ | |||||
EESchema-LIBRARY Version 2.4 | |||||
#encoding utf-8 | |||||
# | |||||
# BARREL_JACK-conn | |||||
# | |||||
DEF BARREL_JACK-conn CON 0 40 Y Y 1 F N | |||||
F0 "CON" 0 250 50 H V C CNN | |||||
F1 "BARREL_JACK-conn" 0 -200 50 H V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
DRAW | |||||
A -300 99 49 -900 1788 0 1 0 N -300 50 -350 100 | |||||
A -300 101 49 900 -1788 0 1 0 N -300 150 -350 100 | |||||
S 100 150 0 50 0 1 0 N | |||||
P 2 0 1 0 -300 50 0 50 N | |||||
P 2 0 1 0 0 150 -300 150 N | |||||
P 3 0 1 0 100 0 -50 0 -50 -100 N | |||||
P 5 0 1 0 100 -100 -150 -100 -200 -50 -250 -100 -350 -100 N | |||||
X ~ 1 300 100 200 L 50 50 1 1 P | |||||
X ~ 2 300 -100 200 L 50 50 1 1 P | |||||
X ~ 3 300 0 200 L 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# C-device | |||||
# | |||||
DEF C-device C 0 10 N Y 1 F N | |||||
F0 "C" 25 100 50 H V L CNN | |||||
F1 "C-device" 25 -100 50 H V L CNN | |||||
F2 "" 38 -150 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
C? | |||||
C_????_* | |||||
C_???? | |||||
SMD*_c | |||||
Capacitor* | |||||
$ENDFPLIST | |||||
DRAW | |||||
P 2 0 1 20 -80 -30 80 -30 N | |||||
P 2 0 1 20 -80 30 80 30 N | |||||
X ~ 1 0 150 110 D 50 50 1 1 P | |||||
X ~ 2 0 -150 110 U 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_01X01-conn | |||||
# | |||||
DEF CONN_01X01-conn P 0 40 Y N 1 F N | |||||
F0 "P" 0 100 50 H V C CNN | |||||
F1 "CONN_01X01-conn" 100 0 50 V V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_1X01 | |||||
Pin_Header_Angled_1X01 | |||||
Socket_Strip_Straight_1X01 | |||||
Socket_Strip_Angled_1X01 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -50 5 10 -5 0 1 0 N | |||||
S -50 50 50 -50 0 1 0 N | |||||
X P1 1 -200 0 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_01X02-conn | |||||
# | |||||
DEF CONN_01X02-conn P 0 40 Y N 1 F N | |||||
F0 "P" 0 150 50 H V C CNN | |||||
F1 "CONN_01X02-conn" 100 0 50 V V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_1X02 | |||||
Pin_Header_Angled_1X02 | |||||
Socket_Strip_Straight_1X02 | |||||
Socket_Strip_Angled_1X02 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -50 -45 10 -55 0 1 0 N | |||||
S -50 55 10 45 0 1 0 N | |||||
S -50 100 50 -100 0 1 0 N | |||||
X P1 1 -200 50 150 R 50 50 1 1 P | |||||
X P2 2 -200 -50 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_01X03-conn | |||||
# | |||||
DEF CONN_01X03-conn P 0 40 Y N 1 F N | |||||
F0 "P" 0 200 50 H V C CNN | |||||
F1 "CONN_01X03-conn" 100 0 50 V V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_1X03 | |||||
Pin_Header_Angled_1X03 | |||||
Socket_Strip_Straight_1X03 | |||||
Socket_Strip_Angled_1X03 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -50 -95 10 -105 0 1 0 N | |||||
S -50 5 10 -5 0 1 0 N | |||||
S -50 105 10 95 0 1 0 N | |||||
S -50 150 50 -150 0 1 0 N | |||||
X P1 1 -200 100 150 R 50 50 1 1 P | |||||
X P2 2 -200 0 150 R 50 50 1 1 P | |||||
X P3 3 -200 -100 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_01X04-conn | |||||
# | |||||
DEF CONN_01X04-conn P 0 40 Y N 1 F N | |||||
F0 "P" 0 250 50 H V C CNN | |||||
F1 "CONN_01X04-conn" 100 0 50 V V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_1X04 | |||||
Pin_Header_Angled_1X04 | |||||
Socket_Strip_Straight_1X04 | |||||
Socket_Strip_Angled_1X04 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -50 -145 10 -155 0 1 0 N | |||||
S -50 -45 10 -55 0 1 0 N | |||||
S -50 55 10 45 0 1 0 N | |||||
S -50 155 10 145 0 1 0 N | |||||
S -50 200 50 -200 0 1 0 N | |||||
X P1 1 -200 150 150 R 50 50 1 1 P | |||||
X P2 2 -200 50 150 R 50 50 1 1 P | |||||
X P3 3 -200 -50 150 R 50 50 1 1 P | |||||
X P4 4 -200 -150 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_01X05-conn | |||||
# | |||||
DEF CONN_01X05-conn P 0 40 Y N 1 F N | |||||
F0 "P" 0 300 50 H V C CNN | |||||
F1 "CONN_01X05-conn" 100 0 50 V V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_1X05 | |||||
Pin_Header_Angled_1X05 | |||||
Socket_Strip_Straight_1X05 | |||||
Socket_Strip_Angled_1X05 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -50 -195 10 -205 0 1 0 N | |||||
S -50 -95 10 -105 0 1 0 N | |||||
S -50 5 10 -5 0 1 0 N | |||||
S -50 105 10 95 0 1 0 N | |||||
S -50 205 10 195 0 1 0 N | |||||
S -50 250 50 -250 0 1 0 N | |||||
X P1 1 -200 200 150 R 50 50 1 1 P | |||||
X P2 2 -200 100 150 R 50 50 1 1 P | |||||
X P3 3 -200 0 150 R 50 50 1 1 P | |||||
X P4 4 -200 -100 150 R 50 50 1 1 P | |||||
X P5 5 -200 -200 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_01X07-conn | |||||
# | |||||
DEF CONN_01X07-conn P 0 40 Y N 1 F N | |||||
F0 "P" 0 400 50 H V C CNN | |||||
F1 "CONN_01X07-conn" 100 0 50 V V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_1X07 | |||||
Pin_Header_Angled_1X07 | |||||
Socket_Strip_Straight_1X07 | |||||
Socket_Strip_Angled_1X07 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -50 -350 50 350 0 1 0 N | |||||
S -50 -295 10 -305 0 1 0 N | |||||
S -50 -195 10 -205 0 1 0 N | |||||
S -50 -95 10 -105 0 1 0 N | |||||
S -50 5 10 -5 0 1 0 N | |||||
S -50 105 10 95 0 1 0 N | |||||
S -50 205 10 195 0 1 0 N | |||||
S -50 305 10 295 0 1 0 N | |||||
X P1 1 -200 300 150 R 50 50 1 1 P | |||||
X P2 2 -200 200 150 R 50 50 1 1 P | |||||
X P3 3 -200 100 150 R 50 50 1 1 P | |||||
X P4 4 -200 0 150 R 50 50 1 1 P | |||||
X P5 5 -200 -100 150 R 50 50 1 1 P | |||||
X P6 6 -200 -200 150 R 50 50 1 1 P | |||||
X P7 7 -200 -300 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_01X08-conn | |||||
# | |||||
DEF CONN_01X08-conn P 0 40 Y N 1 F N | |||||
F0 "P" 0 450 50 H V C CNN | |||||
F1 "CONN_01X08-conn" 100 0 50 V V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_1X08 | |||||
Pin_Header_Angled_1X08 | |||||
Socket_Strip_Straight_1X08 | |||||
Socket_Strip_Angled_1X08 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -50 -400 50 400 0 1 0 N | |||||
S -50 -345 10 -355 0 1 0 N | |||||
S -50 -245 10 -255 0 1 0 N | |||||
S -50 -145 10 -155 0 1 0 N | |||||
S -50 -45 10 -55 0 1 0 N | |||||
S -50 55 10 45 0 1 0 N | |||||
S -50 155 10 145 0 1 0 N | |||||
S -50 255 10 245 0 1 0 N | |||||
S -50 355 10 345 0 1 0 N | |||||
X P1 1 -200 350 150 R 50 50 1 1 P | |||||
X P2 2 -200 250 150 R 50 50 1 1 P | |||||
X P3 3 -200 150 150 R 50 50 1 1 P | |||||
X P4 4 -200 50 150 R 50 50 1 1 P | |||||
X P5 5 -200 -50 150 R 50 50 1 1 P | |||||
X P6 6 -200 -150 150 R 50 50 1 1 P | |||||
X P7 7 -200 -250 150 R 50 50 1 1 P | |||||
X P8 8 -200 -350 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_02X05-conn | |||||
# | |||||
DEF CONN_02X05-conn P 0 1 Y N 1 F N | |||||
F0 "P" 0 300 50 H V C CNN | |||||
F1 "CONN_02X05-conn" 0 -300 50 H V C CNN | |||||
F2 "" 0 -1200 50 H V C CNN | |||||
F3 "" 0 -1200 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_2X05 | |||||
Pin_Header_Angled_2X05 | |||||
Socket_Strip_Straight_2X05 | |||||
Socket_Strip_Angled_2X05 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -100 -195 -50 -205 0 1 0 N | |||||
S -100 -95 -50 -105 0 1 0 N | |||||
S -100 5 -50 -5 0 1 0 N | |||||
S -100 105 -50 95 0 1 0 N | |||||
S -100 205 -50 195 0 1 0 N | |||||
S -100 250 100 -250 0 1 0 N | |||||
S 50 -195 100 -205 0 1 0 N | |||||
S 50 -95 100 -105 0 1 0 N | |||||
S 50 5 100 -5 0 1 0 N | |||||
S 50 105 100 95 0 1 0 N | |||||
S 50 205 100 195 0 1 0 N | |||||
X P1 1 -250 200 150 R 50 50 1 1 P | |||||
X P10 10 250 -200 150 L 50 50 1 1 P | |||||
X P2 2 250 200 150 L 50 50 1 1 P | |||||
X P3 3 -250 100 150 R 50 50 1 1 P | |||||
X P4 4 250 100 150 L 50 50 1 1 P | |||||
X P5 5 -250 0 150 R 50 50 1 1 P | |||||
X P6 6 250 0 150 L 50 50 1 1 P | |||||
X P7 7 -250 -100 150 R 50 50 1 1 P | |||||
X P8 8 250 -100 150 L 50 50 1 1 P | |||||
X P9 9 -250 -200 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# CONN_02X06-conn | |||||
# | |||||
DEF CONN_02X06-conn P 0 1 Y N 1 F N | |||||
F0 "P" 0 350 50 H V C CNN | |||||
F1 "CONN_02X06-conn" 0 -350 50 H V C CNN | |||||
F2 "" 0 -1200 50 H V C CNN | |||||
F3 "" 0 -1200 50 H V C CNN | |||||
$FPLIST | |||||
Pin_Header_Straight_2X06 | |||||
Pin_Header_Angled_2X06 | |||||
Socket_Strip_Straight_2X06 | |||||
Socket_Strip_Angled_2X06 | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -100 -245 -50 -255 0 1 0 N | |||||
S -100 -145 -50 -155 0 1 0 N | |||||
S -100 -45 -50 -55 0 1 0 N | |||||
S -100 55 -50 45 0 1 0 N | |||||
S -100 155 -50 145 0 1 0 N | |||||
S -100 255 -50 245 0 1 0 N | |||||
S -100 300 100 -300 0 1 0 N | |||||
S 50 -245 100 -255 0 1 0 N | |||||
S 50 -145 100 -155 0 1 0 N | |||||
S 50 -45 100 -55 0 1 0 N | |||||
S 50 55 100 45 0 1 0 N | |||||
S 50 155 100 145 0 1 0 N | |||||
S 50 255 100 245 0 1 0 N | |||||
X P1 1 -250 250 150 R 50 50 1 1 P | |||||
X P10 10 250 -150 150 L 50 50 1 1 P | |||||
X P11 11 -250 -250 150 R 50 50 1 1 P | |||||
X P12 12 250 -250 150 L 50 50 1 1 P | |||||
X P2 2 250 250 150 L 50 50 1 1 P | |||||
X P3 3 -250 150 150 R 50 50 1 1 P | |||||
X P4 4 250 150 150 L 50 50 1 1 P | |||||
X P5 5 -250 50 150 R 50 50 1 1 P | |||||
X P6 6 250 50 150 L 50 50 1 1 P | |||||
X P7 7 -250 -50 150 R 50 50 1 1 P | |||||
X P8 8 250 -50 150 L 50 50 1 1 P | |||||
X P9 9 -250 -150 150 R 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# C_Small-device | |||||
# | |||||
DEF C_Small-device C 0 10 N N 1 F N | |||||
F0 "C" 10 70 50 H V L CNN | |||||
F1 "C_Small-device" 10 -80 50 H V L CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
C? | |||||
C_????_* | |||||
C_???? | |||||
SMD*_c | |||||
Capacitor* | |||||
$ENDFPLIST | |||||
DRAW | |||||
P 2 0 1 13 -60 -20 60 -20 N | |||||
P 2 0 1 12 -60 20 60 20 N | |||||
X ~ 1 0 100 80 D 50 50 1 1 P | |||||
X ~ 2 0 -100 80 U 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# D_Schottky-device | |||||
# | |||||
DEF D_Schottky-device D 0 40 N N 1 F N | |||||
F0 "D" 0 100 50 H V C CNN | |||||
F1 "D_Schottky-device" 0 -100 50 H V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
Diode_* | |||||
D-* | |||||
*SingleDiode | |||||
*_Diode_* | |||||
*SingleDiode* | |||||
D_* | |||||
$ENDFPLIST | |||||
DRAW | |||||
P 2 0 1 0 50 0 -50 0 N | |||||
P 4 0 1 8 50 50 50 -50 -50 0 50 50 N | |||||
P 6 0 1 8 -75 25 -75 50 -50 50 -50 -50 -25 -50 -25 -25 N | |||||
X K 1 -150 0 100 R 50 50 1 1 P | |||||
X A 2 150 0 100 L 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# Fuse-device | |||||
# | |||||
DEF Fuse-device F 0 0 N Y 1 F N | |||||
F0 "F" 80 0 50 V V C CNN | |||||
F1 "Fuse-device" -75 0 50 V V C CNN | |||||
F2 "" -70 0 50 V V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
*Fuse* | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -30 -100 30 100 0 1 10 N | |||||
P 2 0 1 0 0 100 0 -100 N | |||||
X ~ 1 0 150 50 D 50 50 1 1 P | |||||
X ~ 2 0 -150 50 U 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# LED-device | |||||
# | |||||
DEF LED-device D 0 40 Y N 1 F N | |||||
F0 "D" 0 100 50 H V C CNN | |||||
F1 "LED-device" 0 -100 50 H V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
LED* | |||||
$ENDFPLIST | |||||
DRAW | |||||
P 2 0 1 8 -50 -50 -50 50 N | |||||
P 2 0 1 0 -50 0 50 0 N | |||||
P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N | |||||
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N | |||||
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N | |||||
X K 1 -150 0 100 R 50 50 1 1 P | |||||
X A 2 150 0 100 L 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# LM317_SOT223-regul | |||||
# | |||||
DEF LM317_SOT223-regul U 0 40 Y Y 1 F N | |||||
F0 "U" 0 300 50 H V C CNN | |||||
F1 "LM317_SOT223-regul" 50 -250 50 H V L CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
DRAW | |||||
S -250 250 250 -200 0 1 0 N | |||||
X ADJ 1 0 -350 150 U 50 50 1 1 I | |||||
X OUT 2 400 150 150 L 50 50 1 1 w | |||||
X IN 3 -400 150 150 R 50 50 1 1 I | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# Mounting_Hole-mechanical | |||||
# | |||||
DEF Mounting_Hole-mechanical MK 0 40 Y Y 1 F N | |||||
F0 "MK" 0 200 50 H V C CNN | |||||
F1 "Mounting_Hole-mechanical" 0 125 50 H V C CNN | |||||
F2 "" 0 0 60 H I C CNN | |||||
F3 "" 0 0 60 H I C CNN | |||||
$FPLIST | |||||
Mounting?Hole* | |||||
Hole* | |||||
$ENDFPLIST | |||||
DRAW | |||||
C 0 0 50 0 1 50 N | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# R-device | |||||
# | |||||
DEF R-device R 0 0 N Y 1 F N | |||||
F0 "R" 80 0 50 V V C CNN | |||||
F1 "R-device" 0 0 50 V V C CNN | |||||
F2 "" -70 0 50 V V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
R_* | |||||
Resistor_* | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -40 -100 40 100 0 1 10 N | |||||
X ~ 1 0 150 50 D 50 50 1 1 P | |||||
X ~ 2 0 -150 50 U 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# R_Variable-device | |||||
# | |||||
DEF R_Variable-device R 0 0 N Y 1 F N | |||||
F0 "R" 100 -100 50 V V L CNN | |||||
F1 "R_Variable-device" -100 -50 50 V V L CNN | |||||
F2 "" -70 0 50 V V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
$FPLIST | |||||
R_* | |||||
Resistor_* | |||||
$ENDFPLIST | |||||
DRAW | |||||
S -40 -100 40 100 0 1 10 N | |||||
P 5 0 1 0 100 60 100 100 60 100 100 100 -80 -80 N | |||||
X ~ 1 0 150 50 D 50 50 1 1 P | |||||
X ~ 2 0 -150 50 U 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# SW_DPDT_x2-switches | |||||
# | |||||
DEF SW_DPDT_x2-switches SW 0 0 Y N 2 F N | |||||
F0 "SW" 0 170 50 H V C CNN | |||||
F1 "SW_DPDT_x2-switches" 0 -200 50 H V C CNN | |||||
F2 "" 0 0 50 H V C CNN | |||||
F3 "" 0 0 50 H V C CNN | |||||
DRAW | |||||
C -80 0 20 0 0 0 N | |||||
C 80 -100 20 0 0 0 N | |||||
C 80 100 20 0 1 0 N | |||||
P 2 0 1 0 -60 10 65 90 N | |||||
X A 1 200 100 100 L 50 50 1 1 P | |||||
X B 2 -200 0 100 R 50 50 1 1 P | |||||
X C 3 200 -100 100 L 50 50 1 1 P | |||||
X A 3 200 100 100 L 50 50 2 1 P | |||||
X B 4 -200 0 100 R 50 50 2 1 P | |||||
X C 5 200 -100 100 L 50 50 2 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# SW_SP3T-switches | |||||
# | |||||
DEF SW_SP3T-switches SW 0 0 Y N 1 F N | |||||
F0 "SW" 0 200 50 H V C CNN | |||||
F1 "SW_SP3T-switches" 0 -200 50 H V C CNN | |||||
F2 "" -625 175 50 H V C CNN | |||||
F3 "" -625 175 50 H V C CNN | |||||
$FPLIST | |||||
SW* | |||||
SP3T* | |||||
$ENDFPLIST | |||||
DRAW | |||||
C -80 0 18 0 1 0 N | |||||
C 80 -100 18 0 1 0 N | |||||
C 80 0 18 0 1 0 N | |||||
C 80 100 18 0 1 0 N | |||||
P 2 0 1 0 -65 10 65 90 N | |||||
X 1 1 200 100 100 L 50 50 1 1 P | |||||
X 2 2 200 0 100 L 50 50 1 1 P | |||||
X 3 3 -200 0 100 R 50 50 1 1 P | |||||
X 4 4 200 -100 100 L 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
# Thermocouple-device | |||||
# | |||||
DEF Thermocouple-device TC 0 0 N Y 1 F N | |||||
F0 "TC" -120 150 50 H V C CNN | |||||
F1 "Thermocouple-device" -200 -160 50 H V L CNN | |||||
F2 "" -575 50 50 H I C CNN | |||||
F3 "" -575 50 50 H I C CNN | |||||
$FPLIST | |||||
PIN?ARRAY* | |||||
bornier* | |||||
*Terminal?Block* | |||||
Thermo*Couple* | |||||
$ENDFPLIST | |||||
DRAW | |||||
C -120 0 10 0 1 0 F | |||||
P 2 0 1 0 -160 -40 -170 -50 N | |||||
P 2 0 1 0 -140 -20 -150 -30 N | |||||
P 2 0 1 0 -120 0 -130 -10 N | |||||
P 2 0 1 0 -100 20 -110 10 N | |||||
P 2 0 1 0 -80 40 -90 30 N | |||||
P 2 0 1 0 -60 60 -70 50 N | |||||
P 2 0 1 0 -40 80 -50 70 N | |||||
P 2 0 1 0 -20 100 -30 90 N | |||||
P 2 0 1 0 0 -100 -10 -100 N | |||||
P 2 0 1 0 0 100 -20 100 N | |||||
P 3 0 1 0 10 -100 -20 -100 -170 50 N | |||||
X + 1 100 100 100 L 50 50 1 1 P | |||||
X - 2 100 -100 100 L 50 50 1 1 P | |||||
ENDDRAW | |||||
ENDDEF | |||||
# | |||||
#End Library |
@ -1,3 +1,4 @@ | |||||
(sym_lib_table | (sym_lib_table | ||||
(lib (name w_connectors)(type Legacy)(uri /home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/batterycharge_stationdata/pcb/symbols/w_connectors.lib)(options "")(descr "")) | (lib (name w_connectors)(type Legacy)(uri /home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/batterycharge_stationdata/pcb/symbols/w_connectors.lib)(options "")(descr "")) | ||||
(lib (name batterystation-rescue)(type Legacy)(uri ${KIPRJMOD}/batterystation-rescue.lib)(options "")(descr "")) | |||||
) | ) |