diff --git a/Car_Stereo_Replacement/docs/4.aux b/Car_Stereo_Replacement/docs/4.aux index fde3d66..28a43b9 100644 --- a/Car_Stereo_Replacement/docs/4.aux +++ b/Car_Stereo_Replacement/docs/4.aux @@ -4,3 +4,8 @@ \@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{1}} \@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{1}} \@writefile{toc}{\contentsline {section}{\numberline {3}Wiring Pinout is wrong on Internet - Cable has labels}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {4}Arduino VReg Blowout}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {5}AC Audio Coupling to Remove DC Noise from Auto}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Ground Isolator}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Capacitor Audio Coupling}{2}} +\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.2.1}Impedance / ESR of capacitors failing to pass enough power of signal}{3}} diff --git a/Car_Stereo_Replacement/docs/4.log b/Car_Stereo_Replacement/docs/4.log index ee3e783..731505d 100644 --- a/Car_Stereo_Replacement/docs/4.log +++ b/Car_Stereo_Replacement/docs/4.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 7 JAN 2020 11:39 +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 14 FEB 2020 02:09 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -61,24 +61,30 @@ ature-measurement- [1 -{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] (./4.aux) ) +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] +Overfull \hbox (0.30136pt too wide) in paragraph at lines 49--49 +[]\OT1/cmr/bx/n/10.95 Impedance / ESR of ca-pac-i-tors fail-ing to pass enough +power + [] + +[3] (./4.aux) ) Here is how much of TeX's memory you used: - 233 strings out of 494945 - 2763 string characters out of 6181032 + 235 strings out of 494945 + 2787 string characters out of 6181032 50564 words of memory out of 5000000 - 3602 multiletter control sequences out of 15000+600000 - 8362 words of font info for 30 fonts, out of 8000000 for 9000 + 3603 multiletter control sequences out of 15000+600000 + 8670 words of font info for 31 fonts, out of 8000000 for 9000 14 hyphenation exceptions out of 8191 - 21i,6n,19p,439b,187s stack positions out of 5000i,500n,10000p,200000b,80000s - -Output written on 4.pdf (2 pages, 62382 bytes). + 21i,6n,19p,842b,187s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on 4.pdf (3 pages, 81896 bytes). PDF statistics: - 27 PDF objects out of 1000 (max. 8388607) - 18 compressed objects within 1 object stream + 34 PDF objects out of 1000 (max. 8388607) + 23 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/Car_Stereo_Replacement/docs/4.pdf b/Car_Stereo_Replacement/docs/4.pdf index 35de879..15dd726 100644 Binary files a/Car_Stereo_Replacement/docs/4.pdf and b/Car_Stereo_Replacement/docs/4.pdf differ diff --git a/Car_Stereo_Replacement/docs/4.tex b/Car_Stereo_Replacement/docs/4.tex index 53840ff..c259bf9 100644 --- a/Car_Stereo_Replacement/docs/4.tex +++ b/Car_Stereo_Replacement/docs/4.tex @@ -32,6 +32,24 @@ This would be something to do for more resolution. The built in sensor is not ve \section{Wiring Pinout is wrong on Internet - Cable has labels} I looked at the picture I have detailing the pinout (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options. 1) Use a transformer to block DC. 2) Use capacitors to couple AC. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. There were two issues. 1) I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf caps, and tried once more. Now I had sound. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR. It's not an issue in this case, if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. + + \end{document} diff --git a/Car_Stereo_Replacement/docs/5.aux b/Car_Stereo_Replacement/docs/5.aux new file mode 100644 index 0000000..28a43b9 --- /dev/null +++ b/Car_Stereo_Replacement/docs/5.aux @@ -0,0 +1,11 @@ +\relax +\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Work Log}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {3}Wiring Pinout is wrong on Internet - Cable has labels}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {4}Arduino VReg Blowout}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {5}AC Audio Coupling to Remove DC Noise from Auto}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Ground Isolator}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Capacitor Audio Coupling}{2}} +\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.2.1}Impedance / ESR of capacitors failing to pass enough power of signal}{3}} diff --git a/Car_Stereo_Replacement/docs/5.log b/Car_Stereo_Replacement/docs/5.log new file mode 100644 index 0000000..83c59f9 --- /dev/null +++ b/Car_Stereo_Replacement/docs/5.log @@ -0,0 +1,203 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 14 FEB 2020 02:09 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ +Car_Stereo_Replacement/docs/5.tex + +(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C +ar_Stereo_Replacement/docs/5.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 +) (./5.aux) +\openout1 = `5.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. + +(/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 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 9. + +Overfull \hbox (559.79004pt too wide) in paragraph at lines 23--23 +[]\OT1/cmtt/m/n/10.95 I'm on Linux here and found that the readily-available Im +ageMagick package will do the trick for you without any scripting. And runs on +the CLI! Simple as that:[] + [] + + +Overfull \hbox (45.51251pt too wide) in paragraph at lines 29--30 +[]\OT1/cmr/m/n/10.95 https://thecavepearlproject.org/2019/02/25/no-parts-temper +ature-measurement- + [] + +[1 + +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] +Overfull \hbox (0.30136pt too wide) in paragraph at lines 50--50 +[]\OT1/cmr/bx/n/10.95 Impedance / ESR of ca-pac-i-tors fail-ing to pass enough +power + [] + +[3] (./5.aux) ) +Here is how much of TeX's memory you used: + 2562 strings out of 494945 + 40919 string characters out of 6181032 + 95834 words of memory out of 5000000 + 5859 multiletter control sequences out of 15000+600000 + 8670 words of font info for 31 fonts, out of 8000000 for 9000 + 14 hyphenation exceptions out of 8191 + 39i,6n,38p,842b,189s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on 5.pdf (3 pages, 81896 bytes). +PDF statistics: + 34 PDF objects out of 1000 (max. 8388607) + 23 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/Car_Stereo_Replacement/docs/5.pdf b/Car_Stereo_Replacement/docs/5.pdf new file mode 100644 index 0000000..5d777db Binary files /dev/null and b/Car_Stereo_Replacement/docs/5.pdf differ diff --git a/Car_Stereo_Replacement/docs/5.tex b/Car_Stereo_Replacement/docs/5.tex new file mode 100644 index 0000000..1c5021a --- /dev/null +++ b/Car_Stereo_Replacement/docs/5.tex @@ -0,0 +1,56 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\usepackage{graphicx,caption} +\author{Steak Electronics} +\date{10/27/19} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. +\section{Work Log} +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and are going to use it to display something. Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available ImageMagick package will do the trick for you without any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. +\subsection{Internal AVR Temperature Sensor} + +For starters I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options. 1) Use a transformer to block DC. 2) Use capacitors to couple AC. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. There were two issues. 1) I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf caps, and tried once more. Now I had sound. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR. It's not an issue in this case, if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. + + + + +\end{document} diff --git a/Car_Stereo_Replacement/docs/5.tex~ b/Car_Stereo_Replacement/docs/5.tex~ new file mode 100644 index 0000000..c259bf9 --- /dev/null +++ b/Car_Stereo_Replacement/docs/5.tex~ @@ -0,0 +1,55 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\author{Steak Electronics} +\date{10/27/19} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. +\section{Work Log} +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and are going to use it to display something. Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available ImageMagick package will do the trick for you without any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. +\subsection{Internal AVR Temperature Sensor} + +For starters I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options. 1) Use a transformer to block DC. 2) Use capacitors to couple AC. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. There were two issues. 1) I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf caps, and tried once more. Now I had sound. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR. It's not an issue in this case, if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. + + + + +\end{document} diff --git a/Car_Stereo_Replacement/docs/6.aux b/Car_Stereo_Replacement/docs/6.aux new file mode 100644 index 0000000..a334bdd --- /dev/null +++ b/Car_Stereo_Replacement/docs/6.aux @@ -0,0 +1,12 @@ +\relax +\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Work Log}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {3}Wiring Pinout is wrong on Internet - Cable has labels}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {4}Arduino VReg Blowout}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {5}AC Audio Coupling to Remove DC Noise from Auto}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Ground Isolator}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Capacitor Audio Coupling}{3}} +\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.2.1}Impedance / ESR of capacitors failing to pass enough power of signal}{3}} +\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Different cap brands will have different impedances for a similar value.\relax }}{4}} diff --git a/Car_Stereo_Replacement/docs/6.log b/Car_Stereo_Replacement/docs/6.log new file mode 100644 index 0000000..bfc0376 --- /dev/null +++ b/Car_Stereo_Replacement/docs/6.log @@ -0,0 +1,231 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 14 FEB 2020 02:20 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ +Car_Stereo_Replacement/docs/6.tex + +(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C +ar_Stereo_Replacement/docs/6.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 +) (./6.aux) +\openout1 = `6.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. + +(/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 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.95> on input line 15. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <9> on input line 15. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 15. + +Overfull \hbox (559.79004pt too wide) in paragraph at lines 23--23 +[]\OT1/cmtt/m/n/10.95 I'm on Linux here and found that the readily-available Im +ageMagick package will do the trick for you without any scripting. And runs on +the CLI! Simple as that:[] + [] + + +Overfull \hbox (45.51251pt too wide) in paragraph at lines 29--30 +[]\OT1/cmr/m/n/10.95 https://thecavepearlproject.org/2019/02/25/no-parts-temper +ature-measurement- + [] + +[1 + +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] [2] +Overfull \hbox (0.30136pt too wide) in paragraph at lines 50--50 +[]\OT1/cmr/bx/n/10.95 Impedance / ESR of ca-pac-i-tors fail-ing to pass enough +power + [] + +<../pics/esr_impedance_capacitance.png, id=16, 697.10437pt x 421.69917pt> +File: ../pics/esr_impedance_capacitance.png Graphic file (type png) + + +Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li +ne 53. +(pdftex.def) Requested size: 348.55133pt x 210.84906pt. + + +Package caption Warning: \captionsetup{type*=...} or \captionof +(caption) outside box or environment on input line 54. +See the caption package documentation for explanation. + + +Overfull \hbox (5.55133pt too wide) in paragraph at lines 53--54 +[][] + [] + +[3] [4 <../pics/esr_impedance_capacitance.png (PNG copy)>] (./6.aux) ) +Here is how much of TeX's memory you used: + 2584 strings out of 494945 + 41326 string characters out of 6181032 + 95834 words of memory out of 5000000 + 5875 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,866b,189s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on 6.pdf (4 pages, 195297 bytes). +PDF statistics: + 50 PDF objects out of 1000 (max. 8388607) + 34 compressed objects within 1 object stream + 0 named destinations out of 1000 (max. 500000) + 6 words of extra memory for PDF output out of 10000 (max. 10000000) + diff --git a/Car_Stereo_Replacement/docs/6.pdf b/Car_Stereo_Replacement/docs/6.pdf new file mode 100644 index 0000000..e6f5fab Binary files /dev/null and b/Car_Stereo_Replacement/docs/6.pdf differ diff --git a/Car_Stereo_Replacement/docs/6.tex b/Car_Stereo_Replacement/docs/6.tex new file mode 100644 index 0000000..9a8a453 --- /dev/null +++ b/Car_Stereo_Replacement/docs/6.tex @@ -0,0 +1,59 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\usepackage{graphicx,caption} +\author{Steak Electronics} +\date{10/27/19} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. I could just go to ebay, and buy a used car stereo, but where's the fun in that? Let's DIY a car stereo from a PCB used as a frontplate, a connector for my vehicle, and an audio amplifier. I'll connect in signal from an audio player. +\section{Work Log} +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and am going to use it to display something.\footnote{It's an Arduino Uno, you can put almost anything on this.} Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available ImageMagick package will do the trick for you without any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. I instead, just deleted their logo. Good enough for now. +\subsection{Internal AVR Temperature Sensor} + +I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout of my car connector (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. I didn't have this problem with an Uno that I use as a ceiling dome light. Although that one is not left on as long, usually. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this in the video folder. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options to block DC and allow AC. 1) Use a transformer. 2) Use capacitors. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors on the amp (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. One problem was evident in the oscope. I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf (electrolytic polarized) caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf 'lytics, and tried once more. Now it worked. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR, it appears after a quick look. It's either in there as impedance or ESR. It's not initially an issue if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. + +\includegraphics[scale=0.5]{../pics/esr_impedance_capacitance.png} +\captionof{figure}{Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Different cap brands will have different impedances for a similar value.} + + + + +\end{document} diff --git a/Car_Stereo_Replacement/docs/6.tex~ b/Car_Stereo_Replacement/docs/6.tex~ new file mode 100644 index 0000000..2b3073a --- /dev/null +++ b/Car_Stereo_Replacement/docs/6.tex~ @@ -0,0 +1,58 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\usepackage{graphicx,caption} +\author{Steak Electronics} +\date{10/27/19} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. +\section{Work Log} +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and are going to use it to display something. Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available ImageMagick package will do the trick for you without any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. +\subsection{Internal AVR Temperature Sensor} + +For starters I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options. 1) Use a transformer to block DC. 2) Use capacitors to couple AC. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. There were two issues. 1) I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf caps, and tried once more. Now I had sound. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR. It's not an issue in this case, if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. + +\includegraphics[scale=0.5]{../pics/esr_impedance_capacitance.png} +\captionof{figure}{Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Different cap brands will have different impedances for a similar value.} + + + +\end{document} diff --git a/Car_Stereo_Replacement/docs/7.aux b/Car_Stereo_Replacement/docs/7.aux new file mode 100644 index 0000000..a3db257 --- /dev/null +++ b/Car_Stereo_Replacement/docs/7.aux @@ -0,0 +1,12 @@ +\relax +\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Work Log}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {3}Wiring Pinout is wrong on Internet - Cable has labels}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {4}Arduino VReg Blowout}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {5}AC Audio Coupling to Remove DC Noise from Auto}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Ground Isolator}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.2}Capacitor Audio Coupling}{3}} +\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.2.1}Impedance / ESR of capacitors failing to pass enough power of signal}{3}} +\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Additionally, different brands will have different impedances for a similar value cap.\relax }}{4}} diff --git a/Car_Stereo_Replacement/docs/7.log b/Car_Stereo_Replacement/docs/7.log new file mode 100644 index 0000000..560f8e9 --- /dev/null +++ b/Car_Stereo_Replacement/docs/7.log @@ -0,0 +1,225 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 14 FEB 2020 02:25 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ +Car_Stereo_Replacement/docs/7.tex + +(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C +ar_Stereo_Replacement/docs/7.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 +) (./7.aux) +\openout1 = `7.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. + +(/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 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.95> on input line 15. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <9> on input line 15. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 15. + +[1 + +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] +Overfull \hbox (45.51251pt too wide) in paragraph at lines 31--32 +[]\OT1/cmr/m/n/10.95 https://thecavepearlproject.org/2019/02/25/no-parts-temper +ature-measurement- + [] + +[2] +Overfull \hbox (0.30136pt too wide) in paragraph at lines 52--52 +[]\OT1/cmr/bx/n/10.95 Impedance / ESR of ca-pac-i-tors fail-ing to pass enough +power + [] + +<../pics/esr_impedance_capacitance.png, id=16, 697.10437pt x 421.69917pt> +File: ../pics/esr_impedance_capacitance.png Graphic file (type png) + + +Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li +ne 55. +(pdftex.def) Requested size: 348.55133pt x 210.84906pt. + + +Package caption Warning: \captionsetup{type*=...} or \captionof +(caption) outside box or environment on input line 56. +See the caption package documentation for explanation. + + +Overfull \hbox (5.55133pt too wide) in paragraph at lines 55--56 +[][] + [] + +[3] [4 <../pics/esr_impedance_capacitance.png (PNG copy)>] (./7.aux) ) +Here is how much of TeX's memory you used: + 2584 strings out of 494945 + 41326 string characters out of 6181032 + 95834 words of memory out of 5000000 + 5875 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,866b,189s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on 7.pdf (4 pages, 195272 bytes). +PDF statistics: + 50 PDF objects out of 1000 (max. 8388607) + 34 compressed objects within 1 object stream + 0 named destinations out of 1000 (max. 500000) + 6 words of extra memory for PDF output out of 10000 (max. 10000000) + diff --git a/Car_Stereo_Replacement/docs/7.pdf b/Car_Stereo_Replacement/docs/7.pdf new file mode 100644 index 0000000..9581d85 Binary files /dev/null and b/Car_Stereo_Replacement/docs/7.pdf differ diff --git a/Car_Stereo_Replacement/docs/7.tex b/Car_Stereo_Replacement/docs/7.tex new file mode 100644 index 0000000..3cad818 --- /dev/null +++ b/Car_Stereo_Replacement/docs/7.tex @@ -0,0 +1,64 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\usepackage{graphicx,caption} +\author{Steak Electronics} +\date{02/13/20} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. I could just go to ebay, and buy a used car stereo, but where's the fun in that? Let's DIY a car stereo from a PCB used as a frontplate, a connector for my vehicle, and an audio amplifier. I'll connect in signal from an audio player. +\section{Work Log} +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and am going to use it to display something.\footnote{It's an Arduino Uno, you can put almost anything on this.} Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available +ImageMagick package will do the trick for you without + any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. I instead, just deleted their logo. Good enough for now. +\subsection{Internal AVR Temperature Sensor} + +I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout of my car connector (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. I didn't have this problem with an Uno that I use as a ceiling dome light. Although that one is not left on as long, usually. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this in the video folder. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options to block DC and allow AC. 1) Use a transformer. 2) Use capacitors. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors on the amp (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. One problem was evident in the oscope. I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf (electrolytic polarized) caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf 'lytics, and tried once more. Now it worked. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR, it appears after a quick look. It's either in there as impedance or ESR. It's not initially an issue if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. Other brands put impedance in a graph, or just call it impedance. + +\includegraphics[scale=0.5]{../pics/esr_impedance_capacitance.png} +\captionof{figure}{Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Additionally, different brands will have different impedances for a similar value cap.} + + + + + + + +\end{document} diff --git a/Car_Stereo_Replacement/docs/7.tex~ b/Car_Stereo_Replacement/docs/7.tex~ new file mode 100644 index 0000000..9a8a453 --- /dev/null +++ b/Car_Stereo_Replacement/docs/7.tex~ @@ -0,0 +1,59 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\usepackage{graphicx,caption} +\author{Steak Electronics} +\date{10/27/19} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. I could just go to ebay, and buy a used car stereo, but where's the fun in that? Let's DIY a car stereo from a PCB used as a frontplate, a connector for my vehicle, and an audio amplifier. I'll connect in signal from an audio player. +\section{Work Log} +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and am going to use it to display something.\footnote{It's an Arduino Uno, you can put almost anything on this.} Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available ImageMagick package will do the trick for you without any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. I instead, just deleted their logo. Good enough for now. +\subsection{Internal AVR Temperature Sensor} + +I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout of my car connector (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. I didn't have this problem with an Uno that I use as a ceiling dome light. Although that one is not left on as long, usually. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this in the video folder. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options to block DC and allow AC. 1) Use a transformer. 2) Use capacitors. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors on the amp (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. One problem was evident in the oscope. I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf (electrolytic polarized) caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf 'lytics, and tried once more. Now it worked. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR, it appears after a quick look. It's either in there as impedance or ESR. It's not initially an issue if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. + +\includegraphics[scale=0.5]{../pics/esr_impedance_capacitance.png} +\captionof{figure}{Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Different cap brands will have different impedances for a similar value.} + + + + +\end{document} diff --git a/Car_Stereo_Replacement/docs/8.aux b/Car_Stereo_Replacement/docs/8.aux new file mode 100644 index 0000000..4ba0b51 --- /dev/null +++ b/Car_Stereo_Replacement/docs/8.aux @@ -0,0 +1,14 @@ +\relax +\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} +\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces PCB rev 1\relax }}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Items Included}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {3}Wiring Pinout is wrong on Internet - Cable has labels}{3}} +\@writefile{toc}{\contentsline {section}{\numberline {4}Arduino VReg Blowout}{3}} +\@writefile{toc}{\contentsline {section}{\numberline {5}Amplifier}{3}} +\@writefile{toc}{\contentsline {section}{\numberline {6}AC Audio Coupling to Remove DC Noise from Auto}{3}} +\@writefile{toc}{\contentsline {subsection}{\numberline {6.1}Ground Isolator}{4}} +\@writefile{toc}{\contentsline {subsection}{\numberline {6.2}Capacitor Audio Coupling}{4}} +\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.1}Impedance / ESR of capacitors failing to pass enough power of signal}{4}} +\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Additionally, different brands will have different impedances for a similar value cap.\relax }}{5}} diff --git a/Car_Stereo_Replacement/docs/8.log b/Car_Stereo_Replacement/docs/8.log new file mode 100644 index 0000000..f22ceed --- /dev/null +++ b/Car_Stereo_Replacement/docs/8.log @@ -0,0 +1,231 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 14 FEB 2020 02:34 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ +Car_Stereo_Replacement/docs/8.tex + +(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C +ar_Stereo_Replacement/docs/8.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 +) (./8.aux) +\openout1 = `8.aux'. + +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 7. +LaTeX Font Info: ... okay on input line 7. + +(/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 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <8> on input line 9. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <6> on input line 9. + + +LaTeX Warning: No \author given. + +<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt> +File: ../pics/DSCN2180.JPG Graphic file (type jpg) + +Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 14. +(pdftex.def) Requested size: 321.1943pt x 240.89572pt. + + +Package caption Warning: \captionsetup{type*=...} or \captionof +(caption) outside box or environment on input line 15. +See the caption package documentation for explanation. + +LaTeX Font Info: Try loading font information for OMS+cmr on input line 20. +(/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 20. + [1 + +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>] +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.95> on input line 28. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <9> on input line 28. +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <5> on input line 28. + +Underfull \hbox (badness 10000) in paragraph at lines 44--45 +[]\OT1/cmr/m/n/10.95 https://thecavepearlproject.org/2019/02/25/no-parts-temper +ature- + [] + +[2] [3] [4] +<../pics/esr_impedance_capacitance.png, id=25, 697.10437pt x 421.69917pt> +File: ../pics/esr_impedance_capacitance.png Graphic file (type png) + + +Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li +ne 73. +(pdftex.def) Requested size: 348.55133pt x 210.84906pt. + [5 <../pics/esr_impedance_capacitance.png (PNG copy)>] (./8.aux) ) +Here is how much of TeX's memory you used: + 2607 strings out of 494945 + 41736 string characters out of 6181032 + 96830 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,866b,195s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on 8.pdf (5 pages, 358941 bytes). +PDF statistics: + 58 PDF objects out of 1000 (max. 8388607) + 39 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) + diff --git a/Car_Stereo_Replacement/docs/8.pdf b/Car_Stereo_Replacement/docs/8.pdf new file mode 100644 index 0000000..11b53d9 Binary files /dev/null and b/Car_Stereo_Replacement/docs/8.pdf differ diff --git a/Car_Stereo_Replacement/docs/8.tex b/Car_Stereo_Replacement/docs/8.tex new file mode 100644 index 0000000..f693fd5 --- /dev/null +++ b/Car_Stereo_Replacement/docs/8.tex @@ -0,0 +1,82 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\usepackage{graphicx,caption} +%\author{Steak Electronics} +\date{02/13/20} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. I could just go to ebay, and buy a used car stereo, but where's the fun in that? Let's DIY a car stereo from a PCB used as a frontplate, a connector for my vehicle, and an audio amplifier. I'll connect in signal from an audio player. + +\includegraphics[scale=0.4]{../pics/DSCN2180.JPG} +\captionof{figure}{PCB rev 1} + +\section{Items Included} +I thought I would include the following: +\begin{itemize} +\item Arduino Nano +\item Voltage and Gnd Breakout +\item I2C Display +\item Voltage Readout (of BAT) +\item Current Readout (being drawn) +\end{itemize} +I also wanted to have the connectors that eurorack and synth designers use for mono audio cables, but the cables turned out too expensive. The current readout didn't work initially, and I haven't gotten to fixing it yet. +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and am going to use it to display something.\footnote{It's an Arduino Uno, you can put almost anything on this.} Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available +ImageMagick package will do the trick for you without + any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. I instead, just deleted their logo. Good enough for now. +\subsection{Internal AVR Temperature Sensor} + +I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout of my car connector (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. I didn't have this problem with an Uno that I use as a ceiling dome light. Although that one is not left on as long, usually. + +\section{Amplifier} +The amplifier I used is one of the cheapest avialable on ebay. I'm not proud. I'm poor. I had to take it apart, and reseat the amplifier ICs as the tab was not making contact with the chassis for one of them. I also added thermal paste. This amp is underpowered for my car, and may need replacing. It gets a bit hot. + +Some other issues with this amplifier are that the output connectors can get pushed back, there is only one output connector option, and it must run on battery power, as a 12V 1A or 2A will not power it. Finally, there is a 6V DC bias on output. No output audio isolation, which means you get car noise. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this in the video folder. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options to block DC and allow AC. 1) Use a transformer. 2) Use capacitors.\footnote{A third option would've been to use a second set of batteries, but that would be laborious.} + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors on the amp (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. One problem was evident in the oscope. I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf (electrolytic polarized) caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf 'lytics, and tried once more. Now it worked. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR, it appears after a quick look. It's either in there as impedance or ESR. It's not initially an issue if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. Other brands put impedance in a graph, or just call it impedance. + +\includegraphics[scale=0.5]{../pics/esr_impedance_capacitance.png} +\captionof{figure}{Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Additionally, different brands will have different impedances for a similar value cap.} + + + + + + + +\end{document} diff --git a/Car_Stereo_Replacement/docs/8.tex~ b/Car_Stereo_Replacement/docs/8.tex~ new file mode 100644 index 0000000..72ccad4 --- /dev/null +++ b/Car_Stereo_Replacement/docs/8.tex~ @@ -0,0 +1,68 @@ +\documentclass[11pt]{article} +%Gummi|065|=) +\title{\textbf{Car Stereo Replacement}} +\usepackage{graphicx,caption} +\author{Steak Electronics} +\date{02/13/20} +\begin{document} + +\maketitle + +\section{Overview} +Replacing a car stereo. I could just go to ebay, and buy a used car stereo, but where's the fun in that? Let's DIY a car stereo from a PCB used as a frontplate, a connector for my vehicle, and an audio amplifier. I'll connect in signal from an audio player. + +\includegraphics[scale=0.5]{../pics/DSCN2180.JPG} +\captionof{figure}{PCB rev 1} + +\section{Work Log} +\subsection{I2C OLED display} +Just for fun, I bought an I2C oled display and am going to use it to display something.\footnote{It's an Arduino Uno, you can put almost anything on this.} Notes on this: +Using the adafruit SSD1306 and GFX library (this procedure is well covered in other places), you can load an example sketch and get it running. First thing to change is to remove the Adafruit logo and replace it with my own. Let's do that. + +From https://design.goeszen.com/convert-image-for-oled-display.html +\begin{verbatim} +I'm on Linux here and found that the readily-available +ImageMagick package will do the trick for you without + any scripting. And runs on the CLI! Simple as that: + + convert some_image.png some.image.mono +\end{verbatim} +That's efficient. But it didn't really work out. Too much work, I don't need it that bad. Have to convert it to something the c compiler can read. I instead, just deleted their logo. Good enough for now. +\subsection{Internal AVR Temperature Sensor} + +I setup the code to read from the internal temp sensor on the duino. However there is also this: + +https://thecavepearlproject.org/2019/02/25/no-parts-temperature-measurement-with-arduino-pro-mini-to-0-005c-or-better/ + +This would be something to do for more resolution. The built in sensor is not very good, so this above link would be great. Hack a day also covers it. + +\section{Wiring Pinout is wrong on Internet - Cable has labels} +I looked at the picture I have detailing the pinout of my car connector (Delco Delphi radio wiring diagram.jpg in resources). It's close, but not 100\% correct. I found that the cable itself has small text labels on each wire which explain which everything does. I didn't notice earlier, as I didn't look close enough (and no one mentioned this). + +\section{Arduino VReg Blowout} +I had a knock off Arduino Nano, and the vreg blew out. I have some other vregs to replace it. I didn't have this problem with an Uno that I use as a ceiling dome light. Although that one is not left on as long, usually. + +\section{AC Audio Coupling to Remove DC Noise from Auto} +I had some fun with this one. Many videos on this in the video folder. I started with the speakers being directly fed by the amplifier. This worked, but there was some noise coming through. Cars are noisy, this is not surprising. I would've preferred the amplifier to isolate the outputs, but no luck... At this point, I considered two options to block DC and allow AC. 1) Use a transformer. 2) Use capacitors. + +\subsection{Ground Isolator} +I had been given a Ground isolator, which was two small transformers on a pcb intended to pass audio from a car powered signal source into the car speakers. I tried this isolator on the output of the speakers, and while it worked, the volume was lower, and it was impractical. I knew as soon as I heard the volume, that the issue was an impedance matching problem. The transformers were too small. They were intended for signal sources, not amplifier outputs. Onto option \#2. + +\subsection{Capacitor Audio Coupling} +My initial thoughts here were: ``Let's be careful and use non polarized caps''. I bought some 0.22uf and 0.022uf polyester film capacitors at Electronics Plus, the local radioshack replacement, and tried them. No sound. After adjusting the connectors on the amp (which were admittedly loose - it's easy to push them back on the amplifier if you are not careful) I found that the capacitors didn't work. One problem was evident in the oscope. I only used one capacitor on the + output of the speaker amp, but the Amp biases the signal 6 volts. So I needed two. After that was resolved, the signal came through on the output of the capacitor, as viewed on the scope, however there was no sound output. I tried the safe way. It's time to break some rules. + +I grabbed some 1uf (electrolytic polarized) caps I had, and tried these. Again, no sound. Not giving up, I grabbed some 1000uf 'lytics, and tried once more. Now it worked. + +\subsubsection{Impedance / ESR of capacitors failing to pass enough power of signal} +Capacitors are rated for impedance. Some data sheets also call this ESR, it appears after a quick look. It's either in there as impedance or ESR. It's not initially an issue if you are using the capacitor as a DC reservoir, but if you use it in an AC coupling situation then things get interesting. A high impedance, or ESR will block what a low one won't. In this example, it's as simple as the Amplfier either being able to power a speaker or not. Higher capacity caps will have lower impedance. See the picture. Other brands put impedance in a graph, or just call it impedance. + +\includegraphics[scale=0.5]{../pics/esr_impedance_capacitance.png} +\captionof{figure}{Notice how impedance jumps very fast with a 1uf cap, compared to the higher values. Additionally, different brands will have different impedances for a similar value cap.} + + + + + + + +\end{document} diff --git a/Car_Stereo_Replacement/pics/esr_impedance_capacitance.png b/Car_Stereo_Replacement/pics/esr_impedance_capacitance.png new file mode 100644 index 0000000..151e2d9 Binary files /dev/null and b/Car_Stereo_Replacement/pics/esr_impedance_capacitance.png differ diff --git a/HomeSolarDataLogger_Two/docs/2.log b/HomeSolarDataLogger_Two/docs/2.log index d85f511..be4b36d 100644 --- a/HomeSolarDataLogger_Two/docs/2.log +++ b/HomeSolarDataLogger_Two/docs/2.log @@ -1,4 +1,4 @@ -This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2015/dev/Debian) (preloaded format=pdflatex 2018.11.28) 30 APR 2019 00:48 +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 10 FEB 2020 00:35 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -7,8 +7,8 @@ HomeSolarDataLogger_Two/docs/2.tex (/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/H omeSolarDataLogger_Two/docs/2.tex -LaTeX2e <2014/05/01> -Babel <3.9l> and hyphenation patterns for 2 languages loaded. +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 @@ -27,31 +27,31 @@ File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option) \bibindent=\dimen102 ) (/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty -Package: graphicx 2014/04/25 v1.0g Enhanced LaTeX Graphics (DPC,SPQR) +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/05/08 v1.15 key=value parser (DPC) +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 2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR) +Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR) (/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty -Package: trig 1999/03/16 v1.09 sin cos tan (DPC) +Package: trig 2016/01/03 v1.10 sin cos tan (DPC) ) -(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/graphics.cfg -File: graphics.cfg 2010/04/23 v1.9 graphics configuration of TeX Live +(/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 91. +Package graphics Info: Driver file: pdftex.def on input line 99. -(/usr/share/texlive/texmf-dist/tex/latex/pdftex-def/pdftex.def -File: pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX +(/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 2010/04/08 v1.3 Providing info/warning/error messages (HO) +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 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) +Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO) ) \Gread@gobject=\count87 )) @@ -59,11 +59,11 @@ Package: ltxcmds 2011/11/09 v1.22 LaTeX kernel commands for general use (HO) \Gin@req@width=\dimen104 ) (/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty -Package: caption 2013/05/02 v3.3-89 Customizing captions (AR) +Package: caption 2016/02/21 v3.3-144 Customizing captions (AR) (/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty -Package: caption3 2013/05/02 v1.6-88 caption3 kernel (AR) -Package caption3 Info: TeX engine: e-TeX on input line 57. +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 @@ -89,7 +89,7 @@ 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/supp-pdf.mkii +(/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 @@ -103,16 +103,15 @@ LaTeX Font Info: ... okay on input line 9. \makeMPintoPDFobject=\count94 \everyMPtoPDFconversion=\toks16 ) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty -Package: pdftexcmds 2011/11/29 v0.20 Utility functions of pdfTeX for LuaTeX (HO +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 2010/03/01 v1.3 Provides the ifluatex switch (HO) +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 2011/01/30 v2.3 Provides the ifpdf switch (HO) -Package ifpdf Info: pdfTeX in PDF mode is detected. +Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch ) Package pdftexcmds Info: LuaTeX not detected. Package pdftexcmds Info: \pdf@primitive is available. @@ -120,31 +119,33 @@ 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 2010/02/09 v2.5 Base part for package epstopdf +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 2010/08/19 v1.1 Manage graphics extensions (HO) +Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty -Package: kvdefinekeys 2011/04/07 v1.3 Define keys (HO) +Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO) )) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty -Package: kvoptions 2011/06/30 v3.11 Key value format for package options (HO) +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 2012/04/25 v1.16 Key value parser (HO) +Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty -Package: etexcmds 2011/02/16 v1.5 Avoid name clashes with e-TeX commands (HO) +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 452. +(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 @@ -203,13 +204,13 @@ raight[] [3 <../pics/solarlogger_plan.jpg>] (./2.aux) ) Here is how much of TeX's memory you used: - 2569 strings out of 495020 - 40987 string characters out of 6181323 - 95797 words of memory out of 5000000 - 5778 multiletter control sequences out of 15000+600000 + 2597 strings out of 494945 + 41530 string characters out of 6181032 + 96825 words of memory out of 5000000 + 5885 multiletter control sequences out of 15000+600000 9286 words of font info for 33 fonts, out of 8000000 for 9000 14 hyphenation exceptions out of 8191 - 38i,6n,38p,824b,189s stack positions out of 5000i,500n,10000p,200000b,80000s + 39i,6n,39p,824b,189s stack positions out of 5000i,500n,10000p,200000b,80000s -Output written on 2.pdf (3 pages, 120394 bytes). +Output written on 2.pdf (3 pages, 120387 bytes). PDF statistics: 39 PDF objects out of 1000 (max. 8388607) 26 compressed objects within 1 object stream diff --git a/HomeSolarDataLogger_Two/docs/2.pdf b/HomeSolarDataLogger_Two/docs/2.pdf index 0bc061e..7c7e8e4 100644 Binary files a/HomeSolarDataLogger_Two/docs/2.pdf and b/HomeSolarDataLogger_Two/docs/2.pdf differ diff --git a/HomeSolarDataLogger_Two/docs/3.aux b/HomeSolarDataLogger_Two/docs/3.aux new file mode 100644 index 0000000..f831122 --- /dev/null +++ b/HomeSolarDataLogger_Two/docs/3.aux @@ -0,0 +1,5 @@ +\relax +\@writefile{toc}{\contentsline {section}{\numberline {1}Solar Charger Project}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{1}} +\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Board considerations}{2}} +\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Solar Logger outline. Self sufficient sensors\relax }}{3}} diff --git a/HomeSolarDataLogger_Two/docs/3.log b/HomeSolarDataLogger_Two/docs/3.log new file mode 100644 index 0000000..04f99d4 --- /dev/null +++ b/HomeSolarDataLogger_Two/docs/3.log @@ -0,0 +1,227 @@ +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 10 FEB 2020 00:35 +entering extended mode + restricted \write18 enabled. + %&-line parsing enabled. +**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/ +HomeSolarDataLogger_Two/docs/3.tex + +(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/H +omeSolarDataLogger_Two/docs/3.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 +) (./3.aux) +\openout1 = `3.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. + +(./3.toc +LaTeX Font Info: External font `cmex10' loaded for size +(Font) <10.95> on input line 3. +) +\tf@toc=\write3 +\openout3 = `3.toc'. + + +Overfull \hbox (2.44542pt too wide) in paragraph at lines 19--20 +\OT1/cmr/m/n/10.95 Sorting by cheap-est buck boost reg-u-la-tors, I've found a +mi-crel chip, MIC4680, + [] + +[1 + +{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] +LaTeX Font Info: Try loading font information for OMS+cmr on input line 38. + +(/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 38. + [2] +<../pics/solarlogger_plan.jpg, id=14, 642.4pt x 401.5pt> +File: ../pics/solarlogger_plan.jpg Graphic file (type jpg) + + +Package pdftex.def Info: ../pics/solarlogger_plan.jpg used on input line 54. +(pdftex.def) Requested size: 321.19922pt x 200.7495pt. + + +Package caption Warning: \captionsetup{type*=...} or \captionof +(caption) outside box or environment on input line 55. +See the caption package documentation for explanation. + + +Overfull \hbox (2.16733pt too wide) in paragraph at lines 62--62 +[]\OT1/cmtt/m/n/10.95 Connectors_Molex:Molex_MiniFit-JR-5556-02A_2x01x4.20mm_St +raight[] + [] + +[3 <../pics/solarlogger_plan.jpg>] (./3.aux) ) +Here is how much of TeX's memory you used: + 2597 strings out of 494945 + 41530 string characters out of 6181032 + 96825 words of memory out of 5000000 + 5885 multiletter control sequences out of 15000+600000 + 9286 words of font info for 33 fonts, out of 8000000 for 9000 + 14 hyphenation exceptions out of 8191 + 39i,6n,39p,824b,189s stack positions out of 5000i,500n,10000p,200000b,80000s + +Output written on 3.pdf (3 pages, 119762 bytes). +PDF statistics: + 39 PDF objects out of 1000 (max. 8388607) + 26 compressed objects within 1 object stream + 0 named destinations out of 1000 (max. 500000) + 6 words of extra memory for PDF output out of 10000 (max. 10000000) + diff --git a/HomeSolarDataLogger_Two/docs/3.pdf b/HomeSolarDataLogger_Two/docs/3.pdf new file mode 100644 index 0000000..9599603 Binary files /dev/null and b/HomeSolarDataLogger_Two/docs/3.pdf differ diff --git a/HomeSolarDataLogger_Two/docs/3.tex b/HomeSolarDataLogger_Two/docs/3.tex new file mode 100644 index 0000000..c228893 --- /dev/null +++ b/HomeSolarDataLogger_Two/docs/3.tex @@ -0,0 +1,65 @@ + +\documentclass[11pt]{article} +%Gummi|065|=) +\usepackage{graphicx} +\usepackage{caption} +\title{\textbf{Solar Charger Project}} +\author{Steak Electronics} +\date{} +\begin{document} + +\maketitle + +\tableofcontents + + +\section{Solar Charger Project} +Want to charge a lead battery from a solar panel, and run some load on the battery occasionally. Want to monitor the load, and the charge of the panel. +\section{Chip Hunting} +Sorting by cheapest buck boost regulators, I've found a micrel chip, MIC4680, which is a simple buck reg. It can be adjustable, so I will take advantage of that with another slide pot, and use it to charge different battery types. These regs are ~\$2. The next realistic option I see is around 5-6 which are the true buck/boost switching regs. + +Looking at the Mic4680, I want at least 10mA of current passing through to the device downstream, in order to be around 70\% efficient. Looking at the different graphs for output voltage: greatest efficiency is at 12V for low currents. As you lower output voltage, you need more current for equal efficiency. Good for my needs. + +Not sure how I will handle overcurrent. Probably a fuse, or ptc. Too much current will blow the fuse. Don't do that. + +Let's start building the board. + +\subsection{Board considerations} +Input will be any number of solar cells, in series and or parallel. They will go to the vreg. The vreg will go to the battery, which in turn will have a load, of a micro (probably a nano on sleep mode). But actually, I might want a micro that can operate at up to 14 volts... So a nano might not work. Looks like there is a high voltage PIC and Atmega, but the Atmega is obsolete :/ + +So cheapest is the Pic16. Might try that. It can handle up to 15 volts, which should be safe, with the regulator offering a float voltage (but only a float voltage. Unfortunately, the AVR was up to 18v...) + +Unfortunateyl the PIC is eprom (i.e. UV erasable) only or One time programmed OTP only. Ugh. There is another atmega, which is more expensive, but fully programmable. Let's run with that. + +The atmega406, programs through JTAG on PortB. Page 70 for jtag pinouts. It is a LQFP so a board will be needed, but I don't enjoy breadboarding anyways, (microcontrollers). + +So this chip has an internal regulator, and can run off a wide range of voltages. What is lowest current usage? The data sheet in page 225 mentions the following: +\begin{itemize} +\item Active 1.2mA +\item idle 270uA +\item ADC Noise Reduction 220 uA +\item Power-save 35uA +\item Power-down 20uA +\item Power-off 1.5uA +\end{itemize} + +Based on this, I'm thinking we can only run code when necessary and hopefully get somewhere between the 35uA and the 1.2mA with sleep states. + +\textbf{RECAP} + +Solar to vreg to battery, to low power micro with built in vreg with breakouts for pins so I can think of some sensor to attach. Since I do surveillance work, I think a motion sensor would be a good start. We will want to have something switch on and off a low power motion sensor. https://www.futurlec.com/PIR\_Sensors.shtml has a low power pir (relatively cheap) sensor. 50uA. That might be someplace to start. Though I know that these sensors need an external light sensor, or software magic to avoid false alarms. Breakouts for Vcc, Gnd. Breakouts for all pins. Slide pot for vreg (to use other batteries). Fuse to limit current. Switch on shutdown of vreg, for manual shutdown of power. + + + +\includegraphics[scale=0.5]{../pics/solarlogger_plan.jpg} +\captionof{figure}{Solar Logger outline. Self sufficient sensors} +\vspace{0.2in} +Note that I will also have the capability to log this with the battery station. Which I will do in house. I think that is enough. I don't want to worry too much about the PIR. Anything else I'm forgetting...? + +The connectors I used on the battery station that had a perfect fit for my standard two pin blue screw terminals was the following: +\begin{verbatim} +Connectors_Molex:Molex_MiniFit-JR-5556-02A_2x01x4.20mm_Straight +\end{verbatim} +I will want to use that again for a few places. Except, that footprint doesn't scale past the 2x01, because all other footprints are 2x2 or 2x4 etc... I want single in line terminals. I'm going to need to look online. +\end{document} + diff --git a/HomeSolarDataLogger_Two/docs/3.tex~ b/HomeSolarDataLogger_Two/docs/3.tex~ new file mode 100644 index 0000000..e6356e3 --- /dev/null +++ b/HomeSolarDataLogger_Two/docs/3.tex~ @@ -0,0 +1,65 @@ + +\documentclass[11pt]{article} +%Gummi|065|=) +\usepackage{graphicx} +\usepackage{caption} +\title{\textbf{Solar Charger Project}} +\author{Steak Electronics} +\date{} +\begin{document} + +\maketitle + +\tableofcontents + + +\section{Overview} +Want to charge a lead battery from a solar panel, and run some load on the battery occasionally. Want to monitor the load, and the charge of the panel. +\section{Chip Hunting} +Sorting by cheapest buck boost regulators, I've found a micrel chip, MIC4680, which is a simple buck reg. It can be adjustable, so I will take advantage of that with another slide pot, and use it to charge different battery types. These regs are ~\$2. The next realistic option I see is around 5-6 which are the true buck/boost switching regs. + +Looking at the Mic4680, I want at least 10mA of current passing through to the device downstream, in order to be around 70\% efficient. Looking at the different graphs for output voltage: greatest efficiency is at 12V for low currents. As you lower output voltage, you need more current for equal efficiency. Good for my needs. + +Not sure how I will handle overcurrent. Probably a fuse, or ptc. Too much current will blow the fuse. Don't do that. + +Let's start building the board. + +\subsection{Board considerations} +Input will be any number of solar cells, in series and or parallel. They will go to the vreg. The vreg will go to the battery, which in turn will have a load, of a micro (probably a nano on sleep mode). But actually, I might want a micro that can operate at up to 14 volts... So a nano might not work. Looks like there is a high voltage PIC and Atmega, but the Atmega is obsolete :/ + +So cheapest is the Pic16. Might try that. It can handle up to 15 volts, which should be safe, with the regulator offering a float voltage (but only a float voltage. Unfortunately, the AVR was up to 18v...) + +Unfortunateyl the PIC is eprom (i.e. UV erasable) only or One time programmed OTP only. Ugh. There is another atmega, which is more expensive, but fully programmable. Let's run with that. + +The atmega406, programs through JTAG on PortB. Page 70 for jtag pinouts. It is a LQFP so a board will be needed, but I don't enjoy breadboarding anyways, (microcontrollers). + +So this chip has an internal regulator, and can run off a wide range of voltages. What is lowest current usage? The data sheet in page 225 mentions the following: +\begin{itemize} +\item Active 1.2mA +\item idle 270uA +\item ADC Noise Reduction 220 uA +\item Power-save 35uA +\item Power-down 20uA +\item Power-off 1.5uA +\end{itemize} + +Based on this, I'm thinking we can only run code when necessary and hopefully get somewhere between the 35uA and the 1.2mA with sleep states. + +\textbf{RECAP} + +Solar to vreg to battery, to low power micro with built in vreg with breakouts for pins so I can think of some sensor to attach. Since I do surveillance work, I think a motion sensor would be a good start. We will want to have something switch on and off a low power motion sensor. https://www.futurlec.com/PIR\_Sensors.shtml has a low power pir (relatively cheap) sensor. 50uA. That might be someplace to start. Though I know that these sensors need an external light sensor, or software magic to avoid false alarms. Breakouts for Vcc, Gnd. Breakouts for all pins. Slide pot for vreg (to use other batteries). Fuse to limit current. Switch on shutdown of vreg, for manual shutdown of power. + + + +\includegraphics[scale=0.5]{../pics/solarlogger_plan.jpg} +\captionof{figure}{Solar Logger outline. Self sufficient sensors} +\vspace{0.2in} +Note that I will also have the capability to log this with the battery station. Which I will do in house. I think that is enough. I don't want to worry too much about the PIR. Anything else I'm forgetting...? + +The connectors I used on the battery station that had a perfect fit for my standard two pin blue screw terminals was the following: +\begin{verbatim} +Connectors_Molex:Molex_MiniFit-JR-5556-02A_2x01x4.20mm_Straight +\end{verbatim} +I will want to use that again for a few places. Except, that footprint doesn't scale past the 2x01, because all other footprints are 2x2 or 2x4 etc... I want single in line terminals. I'm going to need to look online. +\end{document} + diff --git a/HomeSolarDataLogger_Two/docs/3.toc b/HomeSolarDataLogger_Two/docs/3.toc new file mode 100644 index 0000000..6ab418d --- /dev/null +++ b/HomeSolarDataLogger_Two/docs/3.toc @@ -0,0 +1,3 @@ +\contentsline {section}{\numberline {1}Solar Charger Project}{1} +\contentsline {section}{\numberline {2}Chip Hunting}{1} +\contentsline {subsection}{\numberline {2.1}Board considerations}{2} diff --git a/batterycharge_stationdata/docs/12.aux b/batterycharge_stationdata/docs/12.aux index ad4437d..6449e41 100644 --- a/batterycharge_stationdata/docs/12.aux +++ b/batterycharge_stationdata/docs/12.aux @@ -1,8 +1,8 @@ \relax -\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}} -\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{1}} +\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{2}} +\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{2}} \@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.2}Current monitor}{6}} \@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}} @@ -22,3 +22,5 @@ \@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}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.4}Using DMM probes, vs. direct wires}{14}} +\@writefile{toc}{\contentsline {subsection}{\numberline {5.5}Float Voltage for 6V SLA}{14}} diff --git a/batterycharge_stationdata/docs/12.log b/batterycharge_stationdata/docs/12.log index c83beb6..67ee3a9 100644 --- a/batterycharge_stationdata/docs/12.log +++ b/batterycharge_stationdata/docs/12.log @@ -1,4 +1,4 @@ -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 +This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 24 JAN 2020 01:12 entering extended mode restricted \write18 enabled. %&-line parsing enabled. @@ -188,13 +188,13 @@ Overfull \hbox (107.1064pt too wide) in paragraph at lines 46--49 management/MAX1772.html [] - +[2] 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[] @@ -358,30 +358,30 @@ 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) ) - +[13 <../../../Teardowns_2019/AIPhone_JK-1MEDv2/pics/DSCN2572.JPG>] [14] +(./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 + 97823 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 - -Output written on 12.pdf (13 pages, 670143 bytes). + + +Output written on 12.pdf (14 pages, 670949 bytes). PDF statistics: - 91 PDF objects out of 1000 (max. 8388607) - 61 compressed objects within 1 object stream + 94 PDF objects out of 1000 (max. 8388607) + 63 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) diff --git a/batterycharge_stationdata/docs/12.pdf b/batterycharge_stationdata/docs/12.pdf index 78df7d5..7c0ddbf 100644 Binary files a/batterycharge_stationdata/docs/12.pdf and b/batterycharge_stationdata/docs/12.pdf differ diff --git a/batterycharge_stationdata/docs/12.tex b/batterycharge_stationdata/docs/12.tex index fd56c92..ea0048e 100644 --- a/batterycharge_stationdata/docs/12.tex +++ b/batterycharge_stationdata/docs/12.tex @@ -319,6 +319,13 @@ The ones I have are flimsy. Next time I will use Barrier Strip that are pcb moun \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.} +\subsection{Using DMM probes, vs. direct wires} +I had better results with direct wires into the current sense, as opposed to trying to use the DMM with its probes, and assumed high R cables. + +\subsection{Float Voltage for 6V SLA} + +https://www.powerstream.com/SLA.htm +Gives 13.5 - 13.8, so 13.65 / 2 == 6.825 diff --git a/batterycharge_stationdata/docs/12.toc b/batterycharge_stationdata/docs/12.toc index 319d8a7..a47f572 100644 --- a/batterycharge_stationdata/docs/12.toc +++ b/batterycharge_stationdata/docs/12.toc @@ -1,7 +1,7 @@ -\contentsline {section}{\numberline {1}Overview}{1} -\contentsline {section}{\numberline {2}Chip Hunting}{1} +\contentsline {section}{\numberline {1}Overview}{2} +\contentsline {section}{\numberline {2}Chip Hunting}{2} \contentsline {subsection}{\numberline {2.1}Part Selection Summary}{3} -\contentsline {subsection}{\numberline {2.2}Current monitor}{5} +\contentsline {subsection}{\numberline {2.2}Current monitor}{6} \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} @@ -17,3 +17,5 @@ \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} +\contentsline {subsection}{\numberline {5.4}Using DMM probes, vs. direct wires}{14} +\contentsline {subsection}{\numberline {5.5}Float Voltage for 6V SLA}{14}