diff --git a/Door_Alarm/docs/1.aux b/Door_Alarm/docs/1.aux new file mode 100644 index 0000000..88c918c --- /dev/null +++ b/Door_Alarm/docs/1.aux @@ -0,0 +1,3 @@ +\relax +\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}BOM}{1}} diff --git a/Door_Alarm/docs/1.log b/Door_Alarm/docs/1.log new file mode 100644 index 0000000..d7ff26d --- /dev/null +++ b/Door_Alarm/docs/1.log @@ -0,0 +1,312 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 1 JAN 2020 18:25 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2020/ +Door_Alarm/docs/1.tex + +(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2020/D +oor_Alarm/docs/1.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 +) +(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty +Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK) + +(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg +File: color.cfg 2016/01/02 v1.6 sample color configuration +) +Package xcolor Info: Driver file: pdftex.def on input line 225. +Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348. +Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352. +Package xcolor Info: Model `RGB' extended on input line 1364. +Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366. +Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367. +Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368. +Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369. +Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370. +Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371. +) +(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty +Package: geometry 2010/09/12 v5.6 Page Geometry + +(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty +Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch +) +(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty +Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO) +Package ifvtex Info: VTeX not detected. +) +(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty +Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional +) +\Gm@cnth=\count89 +\Gm@cntv=\count90 +\c@Gm@tempcnt=\count91 +\Gm@bindingoffset=\dimen112 +\Gm@wd@mp=\dimen113 +\Gm@odd@mp=\dimen114 +\Gm@even@mp=\dimen115 +\Gm@layoutwidth=\dimen116 +\Gm@layoutheight=\dimen117 +\Gm@layouthoffset=\dimen118 +\Gm@layoutvoffset=\dimen119 +\Gm@dimlist=\toks15 +) (./1.aux) +\openout1 = `1.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 12. +LaTeX Font Info: ... okay on input line 12. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 12. +LaTeX Font Info: ... okay on input line 12. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 12. +LaTeX Font Info: ... okay on input line 12. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 12. +LaTeX Font Info: ... okay on input line 12. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 12. +LaTeX Font Info: ... okay on input line 12. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 12. +LaTeX Font Info: ... okay on input line 12. + +(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii +[Loading MPS to PDF converter (version 2006.09.02).] +\scratchcounter=\count92 +\scratchdimen=\dimen120 +\scratchbox=\box26 +\nofMPsegments=\count93 +\nofMParguments=\count94 +\everyMPshowfont=\toks16 +\MPscratchCnt=\count95 +\MPscratchDim=\dimen121 +\MPnumerator=\count96 +\makeMPintoPDFobject=\count97 +\everyMPtoPDFconversion=\toks17 +) (/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. +) +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. + +*geometry* detected driver: dvips +*geometry* verbose mode - [ preamble ] result: +* driver: dvips +* paper: custom +* layout: +* layoutoffset:(h,v)=(0.0pt,0.0pt) +* vratio: 1:1 +* modes: +* h-part:(L,W,R)=(54.2025pt, 325.215pt, 54.2025pt) +* v-part:(T,H,B)=(79.49689pt, 491.43622pt, 79.49689pt) +* \paperwidth=433.62pt +* \paperheight=650.43pt +* \textwidth=325.215pt +* \textheight=491.43622pt +* \oddsidemargin=-18.06749pt +* \evensidemargin=-18.06749pt +* \topmargin=-29.7731pt +* \headheight=12.0pt +* \headsep=25.0pt +* \topskip=11.0pt +* \footskip=30.0pt +* \marginparwidth=59.0pt +* \marginparsep=10.0pt +* \columnsep=10.0pt +* \skip\footins=10.0pt plus 4.0pt minus 2.0pt +* \hoffset=0.0pt +* \voffset=0.0pt +* \mag=1000 +* \@twocolumnfalse +* \@twosidefalse +* \@mparswitchfalse +* \@reversemarginfalse +* (1in=72.27pt=25.4mm, 1cm=28.453pt) + +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <12> on input line 14. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 14. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 14. +(./1.toc) +\tf@toc=\write3 +\openout3 = `1.toc'. + + +Underfull \hbox (badness 10000) in paragraph at lines 21--28 + + [] + + +Underfull \hbox (badness 10000) in paragraph at lines 21--28 + + [] + +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.95> on input line 43. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <9> on input line 43. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 43. + +Underfull \hbox (badness 10000) in paragraph at lines 31--47 + + [] + + +Underfull \hbox (badness 10000) in paragraph at lines 31--47 + + [] + + +Underfull \hbox (badness 10000) in paragraph at lines 31--47 + + [] + + +Underfull \hbox (badness 10000) in paragraph at lines 31--47 + + [] + + +Underfull \hbox (badness 10000) in paragraph at lines 31--47 + + [] + +[1 +Non-PDF special ignored! + +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] +Underfull \hbox (badness 10000) in paragraph at lines 50--55 + + [] + +[2] (./1.aux) ) +Here is how much of TeX's memory you used: + 3516 strings out of 494945 + 53299 string characters out of 6181032 + 117045 words of memory out of 5000000 + 6792 multiletter control sequences out of 15000+600000 + 9723 words of font info for 34 fonts, out of 8000000 for 9000 + 14 hyphenation exceptions out of 8191 + 39i,8n,38p,326b,189s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on 1.pdf (2 pages, 77924 bytes). +PDF statistics: + 39 PDF objects out of 1000 (max. 8388607) + 27 compressed objects within 1 object stream + 0 named destinations out of 1000 (max. 500000) + 1 words of extra memory for PDF output out of 10000 (max. 10000000) + diff --git a/Door_Alarm/docs/1.pdf b/Door_Alarm/docs/1.pdf new file mode 100644 index 0000000..b123647 Binary files /dev/null and b/Door_Alarm/docs/1.pdf differ diff --git a/Door_Alarm/docs/1.tex b/Door_Alarm/docs/1.tex new file mode 100644 index 0000000..b10de52 --- /dev/null +++ b/Door_Alarm/docs/1.tex @@ -0,0 +1,59 @@ + +\documentclass[11pt]{article} +%Gummi|065|=) +\usepackage{graphicx} +\usepackage{caption} +\usepackage{xcolor} +\usepackage[vcentering,dvips]{geometry} +\geometry{papersize={6in,9in},total={4.5in,6.8in}} +\title{\textbf{Door Alarm}} +\author{Steak Electronics} +\date{} +\begin{document} + +\maketitle + +\tableofcontents +\textcolor{green!60!blue!70}{ +\section{Overview}} +Client wants a door alarm. Let's do a few transistors, an audio amplifier board, a magnet and magnetic reed switch, along with a light switch. + +Functionality req'd: +\\ +\\ +Makes noise when door opened. +\\ +\\ +Able to be shut off with light switch. + +\textcolor{green!60!blue!70}{ +\section{BOM}} +Any audio amplifier loud enough will work. I'm going to use this one: +\\ +\\ +IS31AP4088A-QFLS2-EB +\\ +\\ +I think I have speakers and transistors. I'll need a magnetic reed switch and magnet. They should be black, as the door is black. +\\ +\\ +MS-324-3-3-0500 +\\ +\\ +let's also try 59140-1-S-03-A,\footnote{A and F ending letters on this, A is tinned, F untinned leads} as first co. doesn't make the matched magnets... +\\ +\\ +and the magnet, + +57140-000 + +A speaker, although I have plenty in my junk bin. +AS07708PS-2-WR-R +\\ +\\ +That's a start. + + + +\end{document} + diff --git a/Door_Alarm/docs/1.tex~ b/Door_Alarm/docs/1.tex~ new file mode 100644 index 0000000..54dd89c --- /dev/null +++ b/Door_Alarm/docs/1.tex~ @@ -0,0 +1,133 @@ + +\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! + + + + + + + + +\end{document} + diff --git a/Door_Alarm/docs/1.toc b/Door_Alarm/docs/1.toc new file mode 100644 index 0000000..b20eab6 --- /dev/null +++ b/Door_Alarm/docs/1.toc @@ -0,0 +1,2 @@ +\contentsline {section}{\numberline {1}Overview}{1} +\contentsline {section}{\numberline {2}BOM}{1} diff --git a/README.md b/README.md index 9c5909d..96ed010 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # Electronic_Projects_2020 +Projects from 2020. \ No newline at end of file