Browse Source

working

master
Your Name 4 years ago
parent
commit
9e6b99021f
112 changed files with 31455 additions and 56 deletions
  1. +3
    -0
      Car_Stereo_Replacement/bom/amp/bom1
  2. BIN
      Car_Stereo_Replacement/datasheets/NATLS986-1.pdf
  3. BIN
      Car_Stereo_Replacement/datasheets/lm1875.pdf
  4. +1
    -1
      Car_Stereo_Replacement/docs/10.log
  5. BIN
      Car_Stereo_Replacement/docs/10.pdf
  6. +19
    -0
      Car_Stereo_Replacement/docs/11.aux
  7. +244
    -0
      Car_Stereo_Replacement/docs/11.log
  8. BIN
      Car_Stereo_Replacement/docs/11.pdf
  9. +96
    -0
      Car_Stereo_Replacement/docs/11.tex
  10. +93
    -0
      Car_Stereo_Replacement/docs/11.tex~
  11. +20
    -0
      Car_Stereo_Replacement/docs/12.aux
  12. +244
    -0
      Car_Stereo_Replacement/docs/12.log
  13. BIN
      Car_Stereo_Replacement/docs/12.pdf
  14. +104
    -0
      Car_Stereo_Replacement/docs/12.tex
  15. +98
    -0
      Car_Stereo_Replacement/docs/12.tex~
  16. +98
    -0
      Car_Stereo_Replacement/docs/12tex
  17. +19
    -0
      Car_Stereo_Replacement/docs/12tex.aux
  18. +244
    -0
      Car_Stereo_Replacement/docs/12tex.log
  19. BIN
      Car_Stereo_Replacement/docs/12tex.pdf
  20. +98
    -0
      Car_Stereo_Replacement/docs/12tex~
  21. +20
    -0
      Car_Stereo_Replacement/docs/13.aux
  22. +244
    -0
      Car_Stereo_Replacement/docs/13.log
  23. BIN
      Car_Stereo_Replacement/docs/13.pdf
  24. +104
    -0
      Car_Stereo_Replacement/docs/13.tex
  25. +20
    -0
      Car_Stereo_Replacement/docs/14.aux
  26. +244
    -0
      Car_Stereo_Replacement/docs/14.log
  27. BIN
      Car_Stereo_Replacement/docs/14.pdf
  28. +108
    -0
      Car_Stereo_Replacement/docs/14.tex
  29. +107
    -0
      Car_Stereo_Replacement/docs/14.tex~
  30. +20
    -0
      Car_Stereo_Replacement/docs/15.aux
  31. +244
    -0
      Car_Stereo_Replacement/docs/15.log
  32. BIN
      Car_Stereo_Replacement/docs/15.pdf
  33. +110
    -0
      Car_Stereo_Replacement/docs/15.tex
  34. +108
    -0
      Car_Stereo_Replacement/docs/15.tex~
  35. +20
    -0
      Car_Stereo_Replacement/docs/16.aux
  36. +244
    -0
      Car_Stereo_Replacement/docs/16.log
  37. BIN
      Car_Stereo_Replacement/docs/16.pdf
  38. +110
    -0
      Car_Stereo_Replacement/docs/16.tex
  39. +24
    -0
      Car_Stereo_Replacement/docs/17.aux
  40. +267
    -0
      Car_Stereo_Replacement/docs/17.log
  41. BIN
      Car_Stereo_Replacement/docs/17.pdf
  42. +119
    -0
      Car_Stereo_Replacement/docs/17.tex
  43. +117
    -0
      Car_Stereo_Replacement/docs/17.tex~
  44. +25
    -0
      Car_Stereo_Replacement/docs/18.aux
  45. +278
    -0
      Car_Stereo_Replacement/docs/18.log
  46. BIN
      Car_Stereo_Replacement/docs/18.pdf
  47. +124
    -0
      Car_Stereo_Replacement/docs/18.tex
  48. +123
    -0
      Car_Stereo_Replacement/docs/18.tex~
  49. BIN
      Car_Stereo_Replacement/movies/DSCN2626.webm
  50. BIN
      Car_Stereo_Replacement/movies/DSCN2627.webm
  51. BIN
      Car_Stereo_Replacement/movies/DSCN2628.webm
  52. BIN
      Car_Stereo_Replacement/movies/DSCN2629.webm
  53. BIN
      Car_Stereo_Replacement/movies/DSCN2630.webm
  54. BIN
      Car_Stereo_Replacement/movies/DSCN2631.webm
  55. BIN
      Car_Stereo_Replacement/movies/DSCN2632.webm
  56. BIN
      Car_Stereo_Replacement/movies/DSCN2633.webm
  57. BIN
      Car_Stereo_Replacement/movies/DSCN2634.webm
  58. +2729
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Cu.gbl
  59. +14
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Fab.gbr
  60. +1351
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Mask.gbs
  61. +15
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Paste.gbp
  62. +15
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.SilkS.gbo
  63. +26
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-Edge.Cuts.gm1
  64. +4058
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Cu.gtl
  65. +1327
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Fab.gbr
  66. +1831
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Mask.gts
  67. +929
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Paste.gtp
  68. +4228
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.SilkS.gto
  69. +78
    -0
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp.drl
  70. BIN
      Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp.zip
  71. +157
    -0
      Car_Stereo_Replacement/pcb_amp/pcb_amp-cache.lib
  72. +545
    -0
      Car_Stereo_Replacement/pcb_amp/pcb_amp.bak
  73. +2802
    -0
      Car_Stereo_Replacement/pcb_amp/pcb_amp.kicad_pcb
  74. +2802
    -0
      Car_Stereo_Replacement/pcb_amp/pcb_amp.kicad_pcb-bak
  75. +319
    -0
      Car_Stereo_Replacement/pcb_amp/pcb_amp.net
  76. +41
    -0
      Car_Stereo_Replacement/pcb_amp/pcb_amp.pro
  77. +545
    -0
      Car_Stereo_Replacement/pcb_amp/pcb_amp.sch
  78. BIN
      Car_Stereo_Replacement/pics/DSCN2610.JPG
  79. BIN
      Car_Stereo_Replacement/pics/DSCN2611.JPG
  80. BIN
      Car_Stereo_Replacement/pics/DSCN2612.JPG
  81. +1
    -1
      FlammableGasSensor/docs/14.log
  82. BIN
      FlammableGasSensor/docs/14.pdf
  83. +33
    -0
      FlammableGasSensor/docs/15.aux
  84. +410
    -0
      FlammableGasSensor/docs/15.log
  85. BIN
      FlammableGasSensor/docs/15.pdf
  86. +164
    -0
      FlammableGasSensor/docs/15.tex
  87. +164
    -0
      FlammableGasSensor/docs/15.tex~
  88. +19
    -0
      FlammableGasSensor/docs/15.toc
  89. +32
    -0
      FlammableGasSensor/docs/16.aux
  90. +410
    -0
      FlammableGasSensor/docs/16.log
  91. BIN
      FlammableGasSensor/docs/16.pdf
  92. +161
    -0
      FlammableGasSensor/docs/16.tex
  93. +19
    -0
      FlammableGasSensor/docs/16.toc
  94. BIN
      FlammableGasSensor/docs/fin.pdf
  95. +48
    -53
      ZMHW_Modector/docs/20.log
  96. BIN
      ZMHW_Modector/docs/20.pdf
  97. +4
    -1
      ZMHW_Modector/docs/20.tex
  98. +30
    -0
      ZMHW_Modector/docs/21.aux
  99. +491
    -0
      ZMHW_Modector/docs/21.log
  100. BIN
      ZMHW_Modector/docs/21.pdf

+ 3
- 0
Car_Stereo_Replacement/bom/amp/bom1 View File

@ -0,0 +1,3 @@
PTV09A-2020F-A104-ND - logarithmic horizontal pot 100k
LA6500-EOS-ND - generic power op amp

BIN
Car_Stereo_Replacement/datasheets/NATLS986-1.pdf View File


BIN
Car_Stereo_Replacement/datasheets/lm1875.pdf View File


+ 1
- 1
Car_Stereo_Replacement/docs/10.log View File

@ -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) 14 FEB 2020 02:53
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 18 FEB 2020 23:04
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.

BIN
Car_Stereo_Replacement/docs/10.pdf View File


+ 19
- 0
Car_Stereo_Replacement/docs/11.aux View File

@ -0,0 +1,19 @@
\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}{2}}
\@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}}
\citation{Scherz}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}References}{6}}

+ 244
- 0
Car_Stereo_Replacement/docs/11.log View File

@ -0,0 +1,244 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 18 FEB 2020 23:09
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/11.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/11.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 67.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@ContinuedFloat=\count88
) (./11.aux)
\openout1 = `11.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 29.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 29.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 29.
Underfull \hbox (badness 10000) in paragraph at lines 45--46
[]\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)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 74.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 82--82
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6] (./11.aux) )
Here is how much of TeX's memory you used:
2610 strings out of 494945
41777 string characters out of 6181032
96833 words of memory out of 5000000
5895 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,195s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/sh
are/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/te
xlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texlive/
texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/type1
/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/
amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts
/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cm
ti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.p
fb>
Output written on 11.pdf (6 pages, 379400 bytes).
PDF statistics:
65 PDF objects out of 1000 (max. 8388607)
44 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)

BIN
Car_Stereo_Replacement/docs/11.pdf View File


+ 96
- 0
Car_Stereo_Replacement/docs/11.tex View File

@ -0,0 +1,96 @@
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 93
- 0
Car_Stereo_Replacement/docs/11.tex~ View File

@ -0,0 +1,93 @@
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{References}}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 20
- 0
Car_Stereo_Replacement/docs/12.aux View File

@ -0,0 +1,20 @@
\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}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{3}}
\@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}{4}}
\@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}{5}}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\citation{Scherz}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}LM383 is Obsolete}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}References}{6}}

+ 244
- 0
Car_Stereo_Replacement/docs/12.log View File

@ -0,0 +1,244 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 18 FEB 2020 23:59
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/12.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/12.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 67.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@ContinuedFloat=\count88
) (./12.aux)
\openout1 = `12.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 30.
Underfull \hbox (badness 10000) in paragraph at lines 46--47
[]\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=24, 697.10437pt x 421.69917pt>
File: ../pics/esr_impedance_capacitance.png Graphic file (type png)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 75.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 83--83
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6] (./12.aux) )
Here is how much of TeX's memory you used:
2610 strings out of 494945
41777 string characters out of 6181032
96833 words of memory out of 5000000
5895 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,229s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/sh
are/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/te
xlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texlive/
texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/type1
/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/
amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts
/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cm
ti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.p
fb>
Output written on 12.pdf (6 pages, 385023 bytes).
PDF statistics:
65 PDF objects out of 1000 (max. 8388607)
44 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)

BIN
Car_Stereo_Replacement/docs/12.pdf View File


+ 104
- 0
Car_Stereo_Replacement/docs/12.tex View File

@ -0,0 +1,104 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm...
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 98
- 0
Car_Stereo_Replacement/docs/12.tex~ View File

@ -0,0 +1,98 @@
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 20W per channel. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 98
- 0
Car_Stereo_Replacement/docs/12tex View File

@ -0,0 +1,98 @@
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 20W per channel. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 19
- 0
Car_Stereo_Replacement/docs/12tex.aux View File

@ -0,0 +1,19 @@
\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}{2}}
\@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}}
\citation{Scherz}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}References}{6}}

+ 244
- 0
Car_Stereo_Replacement/docs/12tex.log View File

@ -0,0 +1,244 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 18 FEB 2020 23:12
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/12tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/12tex
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
) (./12tex.aux)
\openout1 = `12tex.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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 29.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 29.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 29.
Underfull \hbox (badness 10000) in paragraph at lines 45--46
[]\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)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 74.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 82--82
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6] (./12tex.aux) )
Here is how much of TeX's memory you used:
2610 strings out of 494945
41796 string characters out of 6181032
96833 words of memory out of 5000000
5895 multiletter control sequences out of 15000+600000
10544 words of font info for 37 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
</usr
/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share
/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texli
ve/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texm
f-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/
fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/ty
pe1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/publ
ic/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfo
nts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm
/cmti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt1
0.pfb>
Output written on 12tex.pdf (6 pages, 384078 bytes).
PDF statistics:
65 PDF objects out of 1000 (max. 8388607)
44 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)

BIN
Car_Stereo_Replacement/docs/12tex.pdf View File


+ 98
- 0
Car_Stereo_Replacement/docs/12tex~ View File

@ -0,0 +1,98 @@
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the Lvpin LP-838 amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 20W per channel. It works at 20W for both, just that it heats up too much.}
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 20
- 0
Car_Stereo_Replacement/docs/13.aux View File

@ -0,0 +1,20 @@
\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}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{3}}
\@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}{4}}
\@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}{5}}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\citation{Scherz}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}LM383 is Obsolete}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}References}{6}}

+ 244
- 0
Car_Stereo_Replacement/docs/13.log View File

@ -0,0 +1,244 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 19 FEB 2020 00:00
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/13.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/13.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
) (./13.aux)
\openout1 = `13.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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 30.
Underfull \hbox (badness 10000) in paragraph at lines 46--47
[]\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=24, 697.10437pt x 421.69917pt>
File: ../pics/esr_impedance_capacitance.png Graphic file (type png)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 75.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 83--83
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6] (./13.aux) )
Here is how much of TeX's memory you used:
2610 strings out of 494945
41777 string characters out of 6181032
96833 words of memory out of 5000000
5895 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,229s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/sh
are/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/te
xlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texlive/
texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-d
ist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/type1
/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/
amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts
/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cm
ti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt10.p
fb>
Output written on 13.pdf (6 pages, 385023 bytes).
PDF statistics:
65 PDF objects out of 1000 (max. 8388607)
44 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)

BIN
Car_Stereo_Replacement/docs/13.pdf View File


+ 104
- 0
Car_Stereo_Replacement/docs/13.tex View File

@ -0,0 +1,104 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm...
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 20
- 0
Car_Stereo_Replacement/docs/14.aux View File

@ -0,0 +1,20 @@
\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}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{3}}
\@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}{4}}
\@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}{5}}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\citation{Scherz}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}LM383 is Obsolete}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}References}{7}}

+ 244
- 0
Car_Stereo_Replacement/docs/14.log View File

@ -0,0 +1,244 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 19 FEB 2020 00:12
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/14.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/14.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
) (./14.aux)
\openout1 = `14.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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 30.
Underfull \hbox (badness 10000) in paragraph at lines 46--47
[]\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=24, 697.10437pt x 421.69917pt>
File: ../pics/esr_impedance_capacitance.png Graphic file (type png)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 75.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 83--83
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6] [7] (./14.aux) )
Here is how much of TeX's memory you used:
2610 strings out of 494945
41777 string characters out of 6181032
96833 words of memory out of 5000000
5895 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,229s stack positions out of 5000i,500n,10000p,200000b,80000s
</us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texl
ive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist
/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/t
ype1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/pub
lic/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsf
onts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/c
m/cmti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt
10.pfb>
Output written on 14.pdf (7 pages, 388737 bytes).
PDF statistics:
70 PDF objects out of 1000 (max. 8388607)
48 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)

BIN
Car_Stereo_Replacement/docs/14.pdf View File


+ 108
- 0
Car_Stereo_Replacement/docs/14.tex View File

@ -0,0 +1,108 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. Amplfiers are expensive bom item here.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 107
- 0
Car_Stereo_Replacement/docs/14.tex~ View File

@ -0,0 +1,107 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 20
- 0
Car_Stereo_Replacement/docs/15.aux View File

@ -0,0 +1,20 @@
\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}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{3}}
\@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}{4}}
\@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}{5}}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\citation{Scherz}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}LM383 is Obsolete}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}References}{7}}

+ 244
- 0
Car_Stereo_Replacement/docs/15.log View File

@ -0,0 +1,244 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 21 FEB 2020 01:01
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/15.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/15.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
) (./15.aux)
\openout1 = `15.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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 30.
Underfull \hbox (badness 10000) in paragraph at lines 46--47
[]\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=24, 697.10437pt x 421.69917pt>
File: ../pics/esr_impedance_capacitance.png Graphic file (type png)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 75.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 83--83
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6] [7] (./15.aux) )
Here is how much of TeX's memory you used:
2610 strings out of 494945
41777 string characters out of 6181032
96833 words of memory out of 5000000
5895 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,229s stack positions out of 5000i,500n,10000p,200000b,80000s
</us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texl
ive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist
/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/t
ype1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/pub
lic/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsf
onts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/c
m/cmti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt
10.pfb>
Output written on 15.pdf (7 pages, 388776 bytes).
PDF statistics:
70 PDF objects out of 1000 (max. 8388607)
48 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)

BIN
Car_Stereo_Replacement/docs/15.pdf View File


+ 110
- 0
Car_Stereo_Replacement/docs/15.tex View File

@ -0,0 +1,110 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. I might also try a generic power op amp.
Amplfiers are the expensive bom item here.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 108
- 0
Car_Stereo_Replacement/docs/15.tex~ View File

@ -0,0 +1,108 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. Amplfiers are expensive bom item here.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 20
- 0
Car_Stereo_Replacement/docs/16.aux View File

@ -0,0 +1,20 @@
\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}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{3}}
\@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}{4}}
\@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}{5}}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\citation{Scherz}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}LM383 is Obsolete}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}References}{7}}

+ 244
- 0
Car_Stereo_Replacement/docs/16.log View File

@ -0,0 +1,244 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 21 FEB 2020 01:01
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/16.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/16.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
) (./16.aux)
\openout1 = `16.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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 30.
Underfull \hbox (badness 10000) in paragraph at lines 46--47
[]\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=24, 697.10437pt x 421.69917pt>
File: ../pics/esr_impedance_capacitance.png Graphic file (type png)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 75.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 83--83
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6] [7] (./16.aux) )
Here is how much of TeX's memory you used:
2610 strings out of 494945
41777 string characters out of 6181032
96833 words of memory out of 5000000
5895 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,229s stack positions out of 5000i,500n,10000p,200000b,80000s
</us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb></usr/share/texl
ive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/tex
mf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/share/texlive/texmf-dist
/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texlive/texmf-dist/fonts/t
ype1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-dist/fonts/type1/pub
lic/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsf
onts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/c
m/cmti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmtt
10.pfb>
Output written on 16.pdf (7 pages, 388776 bytes).
PDF statistics:
70 PDF objects out of 1000 (max. 8388607)
48 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)

BIN
Car_Stereo_Replacement/docs/16.pdf View File


+ 110
- 0
Car_Stereo_Replacement/docs/16.tex View File

@ -0,0 +1,110 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. I might also try a generic power op amp.
Amplfiers are the expensive bom item here.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\end{thebibliography}
\end{document}

+ 24
- 0
Car_Stereo_Replacement/docs/17.aux View File

@ -0,0 +1,24 @@
\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}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{3}}
\@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}{4}}
\@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}{5}}
\@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}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{5}}
\citation{Scherz}
\citation{eevblog}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}LM383 is Obsolete}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {8}Noise remains with Speaker Isolation}{6}}
\bibcite{Scherz}{1}
\bibcite{eevblog}{2}
\bibcite{partofthe}{3}
\@writefile{toc}{\contentsline {section}{\numberline {9}References}{7}}

+ 267
- 0
Car_Stereo_Replacement/docs/17.log View File

@ -0,0 +1,267 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 26 FEB 2020 03:19
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/17.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/17.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
) (./17.aux)
\openout1 = `17.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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 30.
Underfull \hbox (badness 10000) in paragraph at lines 46--47
[]\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=24, 697.10437pt x 421.69917pt>
File: ../pics/esr_impedance_capacitance.png Graphic file (type png)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 75.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
Overfull \hbox (13.6647pt too wide) in paragraph at lines 83--83
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[5 <../pics/esr_impedance_capacitance.png (PNG copy)>] [6]
Underfull \hbox (badness 10000) in paragraph at lines 113--114
[]\OT1/cmr/m/n/10.95 Various, \OT1/cmr/m/it/10.95 https://www.eevblog.com/forum
/projects/dreaded-
[]
Underfull \hbox (badness 10000) in paragraph at lines 113--114
\OT1/cmr/m/it/10.95 alternator-whine-in-car-stereo/25/ \OT1/cmr/m/n/10.95 Re-tr
ieved 2020-02-21. see
[]
Underfull \hbox (badness 10000) in paragraph at lines 113--114
\OT1/cmr/m/n/10.95 also https://www.eevblog.com/forum/beginners/car-engine-sign
al-
[]
Underfull \hbox (badness 10000) in paragraph at lines 116--117
[]\OT1/cmr/m/it/10.95 https://partofthething.com/thoughts/building-a-low-pass-f
ilter-to-
[]
[7] (./17.aux) )
Here is how much of TeX's memory you used:
2611 strings out of 494945
41795 string characters out of 6181032
96839 words of memory out of 5000000
5897 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,229s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/c
mbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></u
sr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texliv
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-
dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/typ
e1/public/amsfonts/cm/cmti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/pub
lic/amsfonts/cm/cmtt10.pfb>
Output written on 17.pdf (7 pages, 391358 bytes).
PDF statistics:
70 PDF objects out of 1000 (max. 8388607)
48 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)

BIN
Car_Stereo_Replacement/docs/17.pdf View File


+ 119
- 0
Car_Stereo_Replacement/docs/17.tex View File

@ -0,0 +1,119 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. I might also try a generic power op amp.
Amplfiers are the expensive bom item here.
\section{Noise remains with Speaker Isolation}
I've isolated the speakers from DC with the caps, but noise remains. My next idea was a DC-DC isolated supply. But, I found two threads on eevblog forums\cite{eevblog}, and they recommend a power line filter (they also mention the isolated supply). A filter with a coil and cap (2200uf even low enough) I can quickly build up.
I also want to fix up my portable CRO, I obtained the other day. That needs batteries.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\bibitem{eevblog}
Various, \emph{https://www.eevblog.com/forum/projects/dreaded-alternator-whine-in-car-stereo/25/} Retrieved 2020-02-21. see also https://www.eevblog.com/forum/beginners/car-engine-signal-interference-with-cell-phone/
\bibitem{partofthe}
\emph{https://partofthething.com/thoughts/building-a-low-pass-filter-to-remove-alternator-whine-in-my-car/}. Picture guide and showing basic build in project box. Eevblog users mention you may be able to use the secondary of a transformer, to avoid building the coil.
\end{thebibliography}
\end{document}

+ 117
- 0
Car_Stereo_Replacement/docs/17.tex~ View File

@ -0,0 +1,117 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. I might also try a generic power op amp.
Amplfiers are the expensive bom item here.
\section{Noise remains with Speaker Isolation}
I've isolated the speakers from DC with the caps, but noise remains. My next idea was a DC-DC isolated supply. But, I found two threads on eevblog forums\cite{eevblogforums}, and they recommend a power line filter (they also mention the isolated supply). A filter with a coil and cap (2200uf even low enough) I can quickly build up.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\bibitem{eevblogforums}
Various, \emph{https://www.eevblog.com/forum/projects/dreaded-alternator-whine-in-car-stereo/25/} Retrieved 2020-02-21.
see also https://www.eevblog.com/forum/beginners/car-engine-signal-interference-with-cell-phone/
\end{thebibliography}
\end{document}

+ 25
- 0
Car_Stereo_Replacement/docs/18.aux View File

@ -0,0 +1,25 @@
\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}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}I2C OLED display}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Internal AVR Temperature Sensor}{3}}
\@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}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.1}Ground Isolator}{4}}
\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces Ground Loop Isolator.\relax }}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.2}Capacitor Audio Coupling}{5}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.1}Impedance / ESR of capacitors failing to pass enough power of signal}{5}}
\citation{Scherz}
\@writefile{lof}{\contentsline {figure}{\numberline {3}{\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 }}{6}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {6.2.2}Wikipedia on Impedance}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {7}DIY Amp}{6}}
\citation{eevblog}
\bibcite{Scherz}{1}
\@writefile{toc}{\contentsline {subsection}{\numberline {7.1}LM383 is Obsolete}{7}}
\@writefile{toc}{\contentsline {section}{\numberline {8}Noise remains with Speaker Isolation}{7}}
\bibcite{eevblog}{2}
\bibcite{partofthe}{3}
\@writefile{toc}{\contentsline {section}{\numberline {9}References}{8}}

+ 278
- 0
Car_Stereo_Replacement/docs/18.log View File

@ -0,0 +1,278 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 26 FEB 2020 03:21
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
Car_Stereo_Replacement/docs/18.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/C
ar_Stereo_Replacement/docs/18.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
) (./18.aux)
\openout1 = `18.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.
Underfull \hbox (badness 10000) in paragraph at lines 12--14
[]
<../pics/DSCN2180.JPG, id=1, 803.0pt x 602.25pt>
File: ../pics/DSCN2180.JPG Graphic file (type jpg)
<use ../pics/DSCN2180.JPG>
Package pdftex.def Info: ../pics/DSCN2180.JPG used on input line 15.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 16.
See the caption package documentation for explanation.
[1
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map} <../pics/DSCN2180.JPG>]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 21.
(/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 21.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 30.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 30.
Underfull \hbox (badness 10000) in paragraph at lines 46--47
[]\OT1/cmr/m/n/10.95 https://thecavepearlproject.org/2019/02/25/no-parts-temper
ature-
[]
[2] [3]
Underfull \hbox (badness 10000) in paragraph at lines 65--67
[]
<../pics/DSCN2610.JPG, id=21, 803.0pt x 602.25pt>
File: ../pics/DSCN2610.JPG Graphic file (type jpg)
<use ../pics/DSCN2610.JPG>
Package pdftex.def Info: ../pics/DSCN2610.JPG used on input line 69.
(pdftex.def) Requested size: 281.05421pt x 210.79065pt.
[4 <../pics/DSCN2610.JPG>]
<../pics/esr_impedance_capacitance.png, id=25, 697.10437pt x 421.69917pt>
File: ../pics/esr_impedance_capacitance.png Graphic file (type png)
<use ../pics/esr_impedance_capacitance.png>
Package pdftex.def Info: ../pics/esr_impedance_capacitance.png used on input li
ne 80.
(pdftex.def) Requested size: 348.55133pt x 210.84906pt.
[5]
Overfull \hbox (13.6647pt too wide) in paragraph at lines 88--88
[] \OT1/cmtt/m/n/10.95 https://en.wikipedia.org/w/index.php\title=Aluminum_elec
trolytic
[]
[6 <../pics/esr_impedance_capacitance.png (PNG copy)>] [7]
Underfull \hbox (badness 10000) in paragraph at lines 118--119
[]\OT1/cmr/m/n/10.95 Various, \OT1/cmr/m/it/10.95 https://www.eevblog.com/forum
/projects/dreaded-
[]
Underfull \hbox (badness 10000) in paragraph at lines 118--119
\OT1/cmr/m/it/10.95 alternator-whine-in-car-stereo/25/ \OT1/cmr/m/n/10.95 Re-tr
ieved 2020-02-21. see
[]
Underfull \hbox (badness 10000) in paragraph at lines 118--119
\OT1/cmr/m/n/10.95 also https://www.eevblog.com/forum/beginners/car-engine-sign
al-
[]
Underfull \hbox (badness 10000) in paragraph at lines 121--122
[]\OT1/cmr/m/it/10.95 https://partofthething.com/thoughts/building-a-low-pass-f
ilter-to-
[]
[8] (./18.aux) )
Here is how much of TeX's memory you used:
2617 strings out of 494945
41908 string characters out of 6181032
96839 words of memory out of 5000000
5901 multiletter control sequences out of 15000+600000
10544 words of font info for 37 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,867b,211s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/c
mbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></u
sr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texliv
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-
dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/typ
e1/public/amsfonts/cm/cmti10.pfb></usr/share/texlive/texmf-dist/fonts/type1/pub
lic/amsfonts/cm/cmtt10.pfb>
Output written on 18.pdf (8 pages, 542902 bytes).
PDF statistics:
74 PDF objects out of 1000 (max. 8388607)
50 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
16 words of extra memory for PDF output out of 10000 (max. 10000000)

BIN
Car_Stereo_Replacement/docs/18.pdf View File


+ 124
- 0
Car_Stereo_Replacement/docs/18.tex View File

@ -0,0 +1,124 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.
\\
\begin{center}
\includegraphics[scale=0.35]{../pics/DSCN2610.JPG}
\captionof{figure}{Ground Loop Isolator.}
\end{center}
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. I might also try a generic power op amp.
Amplfiers are the expensive bom item here.
\section{Noise remains with Speaker Isolation}
I've isolated the speakers from DC with the caps, but noise remains. My next idea was a DC-DC isolated supply. But, I found two threads on eevblog forums\cite{eevblog}, and they recommend a power line filter (they also mention the isolated supply). A filter with a coil and cap (2200uf even low enough) I can quickly build up.
I also want to fix up my portable CRO, I obtained the other day. That needs batteries.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\bibitem{eevblog}
Various, \emph{https://www.eevblog.com/forum/projects/dreaded-alternator-whine-in-car-stereo/25/} Retrieved 2020-02-21. see also https://www.eevblog.com/forum/beginners/car-engine-signal-interference-with-cell-phone/
\bibitem{partofthe}
\emph{https://partofthething.com/thoughts/building-a-low-pass-filter-to-remove-alternator-whine-in-my-car/}. Picture guide and showing basic build in project box. Eevblog users mention you may be able to use the secondary of a transformer, to avoid building the coil.
\end{thebibliography}
\end{document}

+ 123
- 0
Car_Stereo_Replacement/docs/18.tex~ View File

@ -0,0 +1,123 @@
\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)
\item Amplifier ``Lvpin LP-838''
\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.
\includegraphics[scale=0.5]{../pics/DSCN2610.JPG}
\captionof{figure}{Ground Loop Isolator.}
\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.}
\subsubsection{Wikipedia on Impedance}
\emph{In general, a capacitor is seen as a storage component for electric energy. But this is only one capacitor function. A capacitor can also act as an AC resistor. Especially aluminum electrolytic capacitors are used in many applications as a decoupling capacitors to filter or bypass undesired biased AC frequencies to the ground or for capacitive coupling of audio AC signals. Then the dielectric is used only for blocking DC. For such applications the AC resistance, the impedance is as important as the capacitance value. }
\begin{verbatim} https://en.wikipedia.org/w/index.php\title=Aluminum_electrolytic
_capacitor&oldid=940281525
\end{verbatim}
Essentially, what I learned today.
\section{DIY Amp}
I was flipping through Practical Electronics for Inventors\cite{Scherz}(page 959), when I came across an audio amplifier. He also gives one at the chapter on Semiconductors (pg. 467), although the former is more detailed. With a reasonably simple schematic available, and a high likelihood of it working, I say why not: let's build it up.
I've noticed that the ``Lvpin LP-838'' amplifier I'm using is underpowered for my two front speakers \footnote{Although it seems it would work for one channel, so two of them might be enough. It's rated for 20W, so that is about 15-20W per channel req'd. It works at 20W for both, just that it heats up too much. Multiple ebay sellers have it misquoted at 200W. Just an extra 0, no biggie. Based on all this, it appears each channel of my car speaker needs about 15 watts to be on the safe side. The example schematic is 16 watts. Two should suffice.}, so I will make two of the provided 16 watt amps.
\subsection{LM383 is Obsolete}
That explains why I haven't heard of it. The chip is obsolete. Some sell it on ebay for about \$5 each.
As a different route, could I use some other power amplifier op amp, with the same pinout? Hm... Aha, the LM1875 has the same pinout. Let's use that.\footnote{How did I find this? I searched Digikey for the LM383 sold by rochester, noted it was it the category of Linear - Amplifiers - Audio, chose that, then searched for everything in the same package (TO220-5). Came right up. If this hadn't worked, I would've wanted to try other sites: Farnells, Mouser, etc...}
Will it work with the same schematic? Questionable. May still need to buy a LM383, along with the LM1875, as backup. I might also try a generic power op amp.
Amplfiers are the expensive bom item here.
\section{Noise remains with Speaker Isolation}
I've isolated the speakers from DC with the caps, but noise remains. My next idea was a DC-DC isolated supply. But, I found two threads on eevblog forums\cite{eevblog}, and they recommend a power line filter (they also mention the isolated supply). A filter with a coil and cap (2200uf even low enough) I can quickly build up.
I also want to fix up my portable CRO, I obtained the other day. That needs batteries.
\section{References}
\begin{thebibliography}{99}
\bibitem{Scherz}
Paul Scherz, and Simon Monk,
\emph{Practical Electronics for Inventors}, fourth edition - 2016, McGraw Hill.
\bibitem{eevblog}
Various, \emph{https://www.eevblog.com/forum/projects/dreaded-alternator-whine-in-car-stereo/25/} Retrieved 2020-02-21. see also https://www.eevblog.com/forum/beginners/car-engine-signal-interference-with-cell-phone/
\bibitem{partofthe}
\emph{https://partofthething.com/thoughts/building-a-low-pass-filter-to-remove-alternator-whine-in-my-car/}. Picture guide and showing basic build in project box. Eevblog users mention you may be able to use the secondary of a transformer, to avoid building the coil.
\end{thebibliography}
\end{document}

BIN
Car_Stereo_Replacement/movies/DSCN2626.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2627.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2628.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2629.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2630.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2631.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2632.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2633.webm View File


BIN
Car_Stereo_Replacement/movies/DSCN2634.webm View File


+ 2729
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Cu.gbl
File diff suppressed because it is too large
View File


+ 14
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Fab.gbr View File

@ -0,0 +1,14 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.2+dfsg1-1~bpo9+1*
G04 #@! TF.CreationDate,2020-02-19T00:58:45-05:00*
G04 #@! TF.ProjectId,pcb_amp,7063625f-616d-4702-9e6b-696361645f70,rev?*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Other,Fab,Bot*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW 5.0.2+dfsg1-1~bpo9+1) date Wed 19 Feb 2020 12:58:45 AM EST*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*

+ 1351
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Mask.gbs
File diff suppressed because it is too large
View File


+ 15
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.Paste.gbp View File

@ -0,0 +1,15 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.2+dfsg1-1~bpo9+1*
G04 #@! TF.CreationDate,2020-02-19T00:58:44-05:00*
G04 #@! TF.ProjectId,pcb_amp,7063625f-616d-4702-9e6b-696361645f70,rev?*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Paste,Bot*
G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW 5.0.2+dfsg1-1~bpo9+1) date Wed 19 Feb 2020 12:58:44 AM EST*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*

+ 15
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-B.SilkS.gbo View File

@ -0,0 +1,15 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.2+dfsg1-1~bpo9+1*
G04 #@! TF.CreationDate,2020-02-19T00:58:44-05:00*
G04 #@! TF.ProjectId,pcb_amp,7063625f-616d-4702-9e6b-696361645f70,rev?*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Legend,Bot*
G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW 5.0.2+dfsg1-1~bpo9+1) date Wed 19 Feb 2020 12:58:44 AM EST*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
G04 APERTURE END LIST*
M02*

+ 26
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-Edge.Cuts.gm1 View File

@ -0,0 +1,26 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.2+dfsg1-1~bpo9+1*
G04 #@! TF.CreationDate,2020-02-19T00:58:45-05:00*
G04 #@! TF.ProjectId,pcb_amp,7063625f-616d-4702-9e6b-696361645f70,rev?*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Profile,NP*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW 5.0.2+dfsg1-1~bpo9+1) date Wed 19 Feb 2020 12:58:45 AM EST*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10C,0.152400*%
G04 APERTURE END LIST*
D10*
X104140000Y-66040000D02*
X104140000Y-76200000D01*
X162560000Y-66040000D02*
X104140000Y-66040000D01*
X162560000Y-116840000D02*
X162560000Y-66040000D01*
X104140000Y-116840000D02*
X162560000Y-116840000D01*
X104140000Y-76200000D02*
X104140000Y-116840000D01*
M02*

+ 4058
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Cu.gtl
File diff suppressed because it is too large
View File


+ 1327
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Fab.gbr
File diff suppressed because it is too large
View File


+ 1831
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Mask.gts
File diff suppressed because it is too large
View File


+ 929
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.Paste.gtp View File

@ -0,0 +1,929 @@
G04 #@! TF.GenerationSoftware,KiCad,Pcbnew,5.0.2+dfsg1-1~bpo9+1*
G04 #@! TF.CreationDate,2020-02-19T00:58:44-05:00*
G04 #@! TF.ProjectId,pcb_amp,7063625f-616d-4702-9e6b-696361645f70,rev?*
G04 #@! TF.SameCoordinates,Original*
G04 #@! TF.FileFunction,Paste,Top*
G04 #@! TF.FilePolarity,Positive*
%FSLAX46Y46*%
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
G04 Created by KiCad (PCBNEW 5.0.2+dfsg1-1~bpo9+1) date Wed 19 Feb 2020 12:58:44 AM EST*
%MOMM*%
%LPD*%
G01*
G04 APERTURE LIST*
%ADD10C,0.100000*%
%ADD11C,0.997600*%
G04 APERTURE END LIST*
D10*
G04 #@! TO.C,R1*
G36*
X124763188Y-94627244D02*
X124784240Y-94630367D01*
X124804885Y-94635538D01*
X124824923Y-94642708D01*
X124844162Y-94651808D01*
X124862417Y-94662749D01*
X124879511Y-94675427D01*
X124895281Y-94689719D01*
X124909573Y-94705489D01*
X124922251Y-94722583D01*
X124933192Y-94740838D01*
X124942292Y-94760077D01*
X124949462Y-94780115D01*
X124954633Y-94800760D01*
X124957756Y-94821812D01*
X124958800Y-94843069D01*
X124958800Y-95656931D01*
X124957756Y-95678188D01*
X124954633Y-95699240D01*
X124949462Y-95719885D01*
X124942292Y-95739923D01*
X124933192Y-95759162D01*
X124922251Y-95777417D01*
X124909573Y-95794511D01*
X124895281Y-95810281D01*
X124879511Y-95824573D01*
X124862417Y-95837251D01*
X124844162Y-95848192D01*
X124824923Y-95857292D01*
X124804885Y-95864462D01*
X124784240Y-95869633D01*
X124763188Y-95872756D01*
X124741931Y-95873800D01*
X124178069Y-95873800D01*
X124156812Y-95872756D01*
X124135760Y-95869633D01*
X124115115Y-95864462D01*
X124095077Y-95857292D01*
X124075838Y-95848192D01*
X124057583Y-95837251D01*
X124040489Y-95824573D01*
X124024719Y-95810281D01*
X124010427Y-95794511D01*
X123997749Y-95777417D01*
X123986808Y-95759162D01*
X123977708Y-95739923D01*
X123970538Y-95719885D01*
X123965367Y-95699240D01*
X123962244Y-95678188D01*
X123961200Y-95656931D01*
X123961200Y-94843069D01*
X123962244Y-94821812D01*
X123965367Y-94800760D01*
X123970538Y-94780115D01*
X123977708Y-94760077D01*
X123986808Y-94740838D01*
X123997749Y-94722583D01*
X124010427Y-94705489D01*
X124024719Y-94689719D01*
X124040489Y-94675427D01*
X124057583Y-94662749D01*
X124075838Y-94651808D01*
X124095077Y-94642708D01*
X124115115Y-94635538D01*
X124135760Y-94630367D01*
X124156812Y-94627244D01*
X124178069Y-94626200D01*
X124741931Y-94626200D01*
X124763188Y-94627244D01*
X124763188Y-94627244D01*
G37*
D11*
X124460000Y-95250000D03*
D10*
G36*
X122713188Y-94627244D02*
X122734240Y-94630367D01*
X122754885Y-94635538D01*
X122774923Y-94642708D01*
X122794162Y-94651808D01*
X122812417Y-94662749D01*
X122829511Y-94675427D01*
X122845281Y-94689719D01*
X122859573Y-94705489D01*
X122872251Y-94722583D01*
X122883192Y-94740838D01*
X122892292Y-94760077D01*
X122899462Y-94780115D01*
X122904633Y-94800760D01*
X122907756Y-94821812D01*
X122908800Y-94843069D01*
X122908800Y-95656931D01*
X122907756Y-95678188D01*
X122904633Y-95699240D01*
X122899462Y-95719885D01*
X122892292Y-95739923D01*
X122883192Y-95759162D01*
X122872251Y-95777417D01*
X122859573Y-95794511D01*
X122845281Y-95810281D01*
X122829511Y-95824573D01*
X122812417Y-95837251D01*
X122794162Y-95848192D01*
X122774923Y-95857292D01*
X122754885Y-95864462D01*
X122734240Y-95869633D01*
X122713188Y-95872756D01*
X122691931Y-95873800D01*
X122128069Y-95873800D01*
X122106812Y-95872756D01*
X122085760Y-95869633D01*
X122065115Y-95864462D01*
X122045077Y-95857292D01*
X122025838Y-95848192D01*
X122007583Y-95837251D01*
X121990489Y-95824573D01*
X121974719Y-95810281D01*
X121960427Y-95794511D01*
X121947749Y-95777417D01*
X121936808Y-95759162D01*
X121927708Y-95739923D01*
X121920538Y-95719885D01*
X121915367Y-95699240D01*
X121912244Y-95678188D01*
X121911200Y-95656931D01*
X121911200Y-94843069D01*
X121912244Y-94821812D01*
X121915367Y-94800760D01*
X121920538Y-94780115D01*
X121927708Y-94760077D01*
X121936808Y-94740838D01*
X121947749Y-94722583D01*
X121960427Y-94705489D01*
X121974719Y-94689719D01*
X121990489Y-94675427D01*
X122007583Y-94662749D01*
X122025838Y-94651808D01*
X122045077Y-94642708D01*
X122065115Y-94635538D01*
X122085760Y-94630367D01*
X122106812Y-94627244D01*
X122128069Y-94626200D01*
X122691931Y-94626200D01*
X122713188Y-94627244D01*
X122713188Y-94627244D01*
G37*
D11*
X122410000Y-95250000D03*
G04 #@! TD*
D10*
G04 #@! TO.C,R2*
G36*
X124763188Y-99707244D02*
X124784240Y-99710367D01*
X124804885Y-99715538D01*
X124824923Y-99722708D01*
X124844162Y-99731808D01*
X124862417Y-99742749D01*
X124879511Y-99755427D01*
X124895281Y-99769719D01*
X124909573Y-99785489D01*
X124922251Y-99802583D01*
X124933192Y-99820838D01*
X124942292Y-99840077D01*
X124949462Y-99860115D01*
X124954633Y-99880760D01*
X124957756Y-99901812D01*
X124958800Y-99923069D01*
X124958800Y-100736931D01*
X124957756Y-100758188D01*
X124954633Y-100779240D01*
X124949462Y-100799885D01*
X124942292Y-100819923D01*
X124933192Y-100839162D01*
X124922251Y-100857417D01*
X124909573Y-100874511D01*
X124895281Y-100890281D01*
X124879511Y-100904573D01*
X124862417Y-100917251D01*
X124844162Y-100928192D01*
X124824923Y-100937292D01*
X124804885Y-100944462D01*
X124784240Y-100949633D01*
X124763188Y-100952756D01*
X124741931Y-100953800D01*
X124178069Y-100953800D01*
X124156812Y-100952756D01*
X124135760Y-100949633D01*
X124115115Y-100944462D01*
X124095077Y-100937292D01*
X124075838Y-100928192D01*
X124057583Y-100917251D01*
X124040489Y-100904573D01*
X124024719Y-100890281D01*
X124010427Y-100874511D01*
X123997749Y-100857417D01*
X123986808Y-100839162D01*
X123977708Y-100819923D01*
X123970538Y-100799885D01*
X123965367Y-100779240D01*
X123962244Y-100758188D01*
X123961200Y-100736931D01*
X123961200Y-99923069D01*
X123962244Y-99901812D01*
X123965367Y-99880760D01*
X123970538Y-99860115D01*
X123977708Y-99840077D01*
X123986808Y-99820838D01*
X123997749Y-99802583D01*
X124010427Y-99785489D01*
X124024719Y-99769719D01*
X124040489Y-99755427D01*
X124057583Y-99742749D01*
X124075838Y-99731808D01*
X124095077Y-99722708D01*
X124115115Y-99715538D01*
X124135760Y-99710367D01*
X124156812Y-99707244D01*
X124178069Y-99706200D01*
X124741931Y-99706200D01*
X124763188Y-99707244D01*
X124763188Y-99707244D01*
G37*
D11*
X124460000Y-100330000D03*
D10*
G36*
X122713188Y-99707244D02*
X122734240Y-99710367D01*
X122754885Y-99715538D01*
X122774923Y-99722708D01*
X122794162Y-99731808D01*
X122812417Y-99742749D01*
X122829511Y-99755427D01*
X122845281Y-99769719D01*
X122859573Y-99785489D01*
X122872251Y-99802583D01*
X122883192Y-99820838D01*
X122892292Y-99840077D01*
X122899462Y-99860115D01*
X122904633Y-99880760D01*
X122907756Y-99901812D01*
X122908800Y-99923069D01*
X122908800Y-100736931D01*
X122907756Y-100758188D01*
X122904633Y-100779240D01*
X122899462Y-100799885D01*
X122892292Y-100819923D01*
X122883192Y-100839162D01*
X122872251Y-100857417D01*
X122859573Y-100874511D01*
X122845281Y-100890281D01*
X122829511Y-100904573D01*
X122812417Y-100917251D01*
X122794162Y-100928192D01*
X122774923Y-100937292D01*
X122754885Y-100944462D01*
X122734240Y-100949633D01*
X122713188Y-100952756D01*
X122691931Y-100953800D01*
X122128069Y-100953800D01*
X122106812Y-100952756D01*
X122085760Y-100949633D01*
X122065115Y-100944462D01*
X122045077Y-100937292D01*
X122025838Y-100928192D01*
X122007583Y-100917251D01*
X121990489Y-100904573D01*
X121974719Y-100890281D01*
X121960427Y-100874511D01*
X121947749Y-100857417D01*
X121936808Y-100839162D01*
X121927708Y-100819923D01*
X121920538Y-100799885D01*
X121915367Y-100779240D01*
X121912244Y-100758188D01*
X121911200Y-100736931D01*
X121911200Y-99923069D01*
X121912244Y-99901812D01*
X121915367Y-99880760D01*
X121920538Y-99860115D01*
X121927708Y-99840077D01*
X121936808Y-99820838D01*
X121947749Y-99802583D01*
X121960427Y-99785489D01*
X121974719Y-99769719D01*
X121990489Y-99755427D01*
X122007583Y-99742749D01*
X122025838Y-99731808D01*
X122045077Y-99722708D01*
X122065115Y-99715538D01*
X122085760Y-99710367D01*
X122106812Y-99707244D01*
X122128069Y-99706200D01*
X122691931Y-99706200D01*
X122713188Y-99707244D01*
X122713188Y-99707244D01*
G37*
D11*
X122410000Y-100330000D03*
G04 #@! TD*
D10*
G04 #@! TO.C,R3*
G36*
X131358188Y-98437244D02*
X131379240Y-98440367D01*
X131399885Y-98445538D01*
X131419923Y-98452708D01*
X131439162Y-98461808D01*
X131457417Y-98472749D01*
X131474511Y-98485427D01*
X131490281Y-98499719D01*
X131504573Y-98515489D01*
X131517251Y-98532583D01*
X131528192Y-98550838D01*
X131537292Y-98570077D01*
X131544462Y-98590115D01*
X131549633Y-98610760D01*
X131552756Y-98631812D01*
X131553800Y-98653069D01*
X131553800Y-99466931D01*
X131552756Y-99488188D01*
X131549633Y-99509240D01*
X131544462Y-99529885D01*
X131537292Y-99549923D01*
X131528192Y-99569162D01*
X131517251Y-99587417D01*
X131504573Y-99604511D01*
X131490281Y-99620281D01*
X131474511Y-99634573D01*
X131457417Y-99647251D01*
X131439162Y-99658192D01*
X131419923Y-99667292D01*
X131399885Y-99674462D01*
X131379240Y-99679633D01*
X131358188Y-99682756D01*
X131336931Y-99683800D01*
X130773069Y-99683800D01*
X130751812Y-99682756D01*
X130730760Y-99679633D01*
X130710115Y-99674462D01*
X130690077Y-99667292D01*
X130670838Y-99658192D01*
X130652583Y-99647251D01*
X130635489Y-99634573D01*
X130619719Y-99620281D01*
X130605427Y-99604511D01*
X130592749Y-99587417D01*
X130581808Y-99569162D01*
X130572708Y-99549923D01*
X130565538Y-99529885D01*
X130560367Y-99509240D01*
X130557244Y-99488188D01*
X130556200Y-99466931D01*
X130556200Y-98653069D01*
X130557244Y-98631812D01*
X130560367Y-98610760D01*
X130565538Y-98590115D01*
X130572708Y-98570077D01*
X130581808Y-98550838D01*
X130592749Y-98532583D01*
X130605427Y-98515489D01*
X130619719Y-98499719D01*
X130635489Y-98485427D01*
X130652583Y-98472749D01*
X130670838Y-98461808D01*
X130690077Y-98452708D01*
X130710115Y-98445538D01*
X130730760Y-98440367D01*
X130751812Y-98437244D01*
X130773069Y-98436200D01*
X131336931Y-98436200D01*
X131358188Y-98437244D01*
X131358188Y-98437244D01*
G37*
D11*
X131055000Y-99060000D03*
D10*
G36*
X133408188Y-98437244D02*
X133429240Y-98440367D01*
X133449885Y-98445538D01*
X133469923Y-98452708D01*
X133489162Y-98461808D01*
X133507417Y-98472749D01*
X133524511Y-98485427D01*
X133540281Y-98499719D01*
X133554573Y-98515489D01*
X133567251Y-98532583D01*
X133578192Y-98550838D01*
X133587292Y-98570077D01*
X133594462Y-98590115D01*
X133599633Y-98610760D01*
X133602756Y-98631812D01*
X133603800Y-98653069D01*
X133603800Y-99466931D01*
X133602756Y-99488188D01*
X133599633Y-99509240D01*
X133594462Y-99529885D01*
X133587292Y-99549923D01*
X133578192Y-99569162D01*
X133567251Y-99587417D01*
X133554573Y-99604511D01*
X133540281Y-99620281D01*
X133524511Y-99634573D01*
X133507417Y-99647251D01*
X133489162Y-99658192D01*
X133469923Y-99667292D01*
X133449885Y-99674462D01*
X133429240Y-99679633D01*
X133408188Y-99682756D01*
X133386931Y-99683800D01*
X132823069Y-99683800D01*
X132801812Y-99682756D01*
X132780760Y-99679633D01*
X132760115Y-99674462D01*
X132740077Y-99667292D01*
X132720838Y-99658192D01*
X132702583Y-99647251D01*
X132685489Y-99634573D01*
X132669719Y-99620281D01*
X132655427Y-99604511D01*
X132642749Y-99587417D01*
X132631808Y-99569162D01*
X132622708Y-99549923D01*
X132615538Y-99529885D01*
X132610367Y-99509240D01*
X132607244Y-99488188D01*
X132606200Y-99466931D01*
X132606200Y-98653069D01*
X132607244Y-98631812D01*
X132610367Y-98610760D01*
X132615538Y-98590115D01*
X132622708Y-98570077D01*
X132631808Y-98550838D01*
X132642749Y-98532583D01*
X132655427Y-98515489D01*
X132669719Y-98499719D01*
X132685489Y-98485427D01*
X132702583Y-98472749D01*
X132720838Y-98461808D01*
X132740077Y-98452708D01*
X132760115Y-98445538D01*
X132780760Y-98440367D01*
X132801812Y-98437244D01*
X132823069Y-98436200D01*
X133386931Y-98436200D01*
X133408188Y-98437244D01*
X133408188Y-98437244D01*
G37*
D11*
X133105000Y-99060000D03*
G04 #@! TD*
D10*
G04 #@! TO.C,R4*
G36*
X158273188Y-94627244D02*
X158294240Y-94630367D01*
X158314885Y-94635538D01*
X158334923Y-94642708D01*
X158354162Y-94651808D01*
X158372417Y-94662749D01*
X158389511Y-94675427D01*
X158405281Y-94689719D01*
X158419573Y-94705489D01*
X158432251Y-94722583D01*
X158443192Y-94740838D01*
X158452292Y-94760077D01*
X158459462Y-94780115D01*
X158464633Y-94800760D01*
X158467756Y-94821812D01*
X158468800Y-94843069D01*
X158468800Y-95656931D01*
X158467756Y-95678188D01*
X158464633Y-95699240D01*
X158459462Y-95719885D01*
X158452292Y-95739923D01*
X158443192Y-95759162D01*
X158432251Y-95777417D01*
X158419573Y-95794511D01*
X158405281Y-95810281D01*
X158389511Y-95824573D01*
X158372417Y-95837251D01*
X158354162Y-95848192D01*
X158334923Y-95857292D01*
X158314885Y-95864462D01*
X158294240Y-95869633D01*
X158273188Y-95872756D01*
X158251931Y-95873800D01*
X157688069Y-95873800D01*
X157666812Y-95872756D01*
X157645760Y-95869633D01*
X157625115Y-95864462D01*
X157605077Y-95857292D01*
X157585838Y-95848192D01*
X157567583Y-95837251D01*
X157550489Y-95824573D01*
X157534719Y-95810281D01*
X157520427Y-95794511D01*
X157507749Y-95777417D01*
X157496808Y-95759162D01*
X157487708Y-95739923D01*
X157480538Y-95719885D01*
X157475367Y-95699240D01*
X157472244Y-95678188D01*
X157471200Y-95656931D01*
X157471200Y-94843069D01*
X157472244Y-94821812D01*
X157475367Y-94800760D01*
X157480538Y-94780115D01*
X157487708Y-94760077D01*
X157496808Y-94740838D01*
X157507749Y-94722583D01*
X157520427Y-94705489D01*
X157534719Y-94689719D01*
X157550489Y-94675427D01*
X157567583Y-94662749D01*
X157585838Y-94651808D01*
X157605077Y-94642708D01*
X157625115Y-94635538D01*
X157645760Y-94630367D01*
X157666812Y-94627244D01*
X157688069Y-94626200D01*
X158251931Y-94626200D01*
X158273188Y-94627244D01*
X158273188Y-94627244D01*
G37*
D11*
X157970000Y-95250000D03*
D10*
G36*
X160323188Y-94627244D02*
X160344240Y-94630367D01*
X160364885Y-94635538D01*
X160384923Y-94642708D01*
X160404162Y-94651808D01*
X160422417Y-94662749D01*
X160439511Y-94675427D01*
X160455281Y-94689719D01*
X160469573Y-94705489D01*
X160482251Y-94722583D01*
X160493192Y-94740838D01*
X160502292Y-94760077D01*
X160509462Y-94780115D01*
X160514633Y-94800760D01*
X160517756Y-94821812D01*
X160518800Y-94843069D01*
X160518800Y-95656931D01*
X160517756Y-95678188D01*
X160514633Y-95699240D01*
X160509462Y-95719885D01*
X160502292Y-95739923D01*
X160493192Y-95759162D01*
X160482251Y-95777417D01*
X160469573Y-95794511D01*
X160455281Y-95810281D01*
X160439511Y-95824573D01*
X160422417Y-95837251D01*
X160404162Y-95848192D01*
X160384923Y-95857292D01*
X160364885Y-95864462D01*
X160344240Y-95869633D01*
X160323188Y-95872756D01*
X160301931Y-95873800D01*
X159738069Y-95873800D01*
X159716812Y-95872756D01*
X159695760Y-95869633D01*
X159675115Y-95864462D01*
X159655077Y-95857292D01*
X159635838Y-95848192D01*
X159617583Y-95837251D01*
X159600489Y-95824573D01*
X159584719Y-95810281D01*
X159570427Y-95794511D01*
X159557749Y-95777417D01*
X159546808Y-95759162D01*
X159537708Y-95739923D01*
X159530538Y-95719885D01*
X159525367Y-95699240D01*
X159522244Y-95678188D01*
X159521200Y-95656931D01*
X159521200Y-94843069D01*
X159522244Y-94821812D01*
X159525367Y-94800760D01*
X159530538Y-94780115D01*
X159537708Y-94760077D01*
X159546808Y-94740838D01*
X159557749Y-94722583D01*
X159570427Y-94705489D01*
X159584719Y-94689719D01*
X159600489Y-94675427D01*
X159617583Y-94662749D01*
X159635838Y-94651808D01*
X159655077Y-94642708D01*
X159675115Y-94635538D01*
X159695760Y-94630367D01*
X159716812Y-94627244D01*
X159738069Y-94626200D01*
X160301931Y-94626200D01*
X160323188Y-94627244D01*
X160323188Y-94627244D01*
G37*
D11*
X160020000Y-95250000D03*
G04 #@! TD*
D10*
G04 #@! TO.C,R5*
G36*
X158273188Y-99707244D02*
X158294240Y-99710367D01*
X158314885Y-99715538D01*
X158334923Y-99722708D01*
X158354162Y-99731808D01*
X158372417Y-99742749D01*
X158389511Y-99755427D01*
X158405281Y-99769719D01*
X158419573Y-99785489D01*
X158432251Y-99802583D01*
X158443192Y-99820838D01*
X158452292Y-99840077D01*
X158459462Y-99860115D01*
X158464633Y-99880760D01*
X158467756Y-99901812D01*
X158468800Y-99923069D01*
X158468800Y-100736931D01*
X158467756Y-100758188D01*
X158464633Y-100779240D01*
X158459462Y-100799885D01*
X158452292Y-100819923D01*
X158443192Y-100839162D01*
X158432251Y-100857417D01*
X158419573Y-100874511D01*
X158405281Y-100890281D01*
X158389511Y-100904573D01*
X158372417Y-100917251D01*
X158354162Y-100928192D01*
X158334923Y-100937292D01*
X158314885Y-100944462D01*
X158294240Y-100949633D01*
X158273188Y-100952756D01*
X158251931Y-100953800D01*
X157688069Y-100953800D01*
X157666812Y-100952756D01*
X157645760Y-100949633D01*
X157625115Y-100944462D01*
X157605077Y-100937292D01*
X157585838Y-100928192D01*
X157567583Y-100917251D01*
X157550489Y-100904573D01*
X157534719Y-100890281D01*
X157520427Y-100874511D01*
X157507749Y-100857417D01*
X157496808Y-100839162D01*
X157487708Y-100819923D01*
X157480538Y-100799885D01*
X157475367Y-100779240D01*
X157472244Y-100758188D01*
X157471200Y-100736931D01*
X157471200Y-99923069D01*
X157472244Y-99901812D01*
X157475367Y-99880760D01*
X157480538Y-99860115D01*
X157487708Y-99840077D01*
X157496808Y-99820838D01*
X157507749Y-99802583D01*
X157520427Y-99785489D01*
X157534719Y-99769719D01*
X157550489Y-99755427D01*
X157567583Y-99742749D01*
X157585838Y-99731808D01*
X157605077Y-99722708D01*
X157625115Y-99715538D01*
X157645760Y-99710367D01*
X157666812Y-99707244D01*
X157688069Y-99706200D01*
X158251931Y-99706200D01*
X158273188Y-99707244D01*
X158273188Y-99707244D01*
G37*
D11*
X157970000Y-100330000D03*
D10*
G36*
X160323188Y-99707244D02*
X160344240Y-99710367D01*
X160364885Y-99715538D01*
X160384923Y-99722708D01*
X160404162Y-99731808D01*
X160422417Y-99742749D01*
X160439511Y-99755427D01*
X160455281Y-99769719D01*
X160469573Y-99785489D01*
X160482251Y-99802583D01*
X160493192Y-99820838D01*
X160502292Y-99840077D01*
X160509462Y-99860115D01*
X160514633Y-99880760D01*
X160517756Y-99901812D01*
X160518800Y-99923069D01*
X160518800Y-100736931D01*
X160517756Y-100758188D01*
X160514633Y-100779240D01*
X160509462Y-100799885D01*
X160502292Y-100819923D01*
X160493192Y-100839162D01*
X160482251Y-100857417D01*
X160469573Y-100874511D01*
X160455281Y-100890281D01*
X160439511Y-100904573D01*
X160422417Y-100917251D01*
X160404162Y-100928192D01*
X160384923Y-100937292D01*
X160364885Y-100944462D01*
X160344240Y-100949633D01*
X160323188Y-100952756D01*
X160301931Y-100953800D01*
X159738069Y-100953800D01*
X159716812Y-100952756D01*
X159695760Y-100949633D01*
X159675115Y-100944462D01*
X159655077Y-100937292D01*
X159635838Y-100928192D01*
X159617583Y-100917251D01*
X159600489Y-100904573D01*
X159584719Y-100890281D01*
X159570427Y-100874511D01*
X159557749Y-100857417D01*
X159546808Y-100839162D01*
X159537708Y-100819923D01*
X159530538Y-100799885D01*
X159525367Y-100779240D01*
X159522244Y-100758188D01*
X159521200Y-100736931D01*
X159521200Y-99923069D01*
X159522244Y-99901812D01*
X159525367Y-99880760D01*
X159530538Y-99860115D01*
X159537708Y-99840077D01*
X159546808Y-99820838D01*
X159557749Y-99802583D01*
X159570427Y-99785489D01*
X159584719Y-99769719D01*
X159600489Y-99755427D01*
X159617583Y-99742749D01*
X159635838Y-99731808D01*
X159655077Y-99722708D01*
X159675115Y-99715538D01*
X159695760Y-99710367D01*
X159716812Y-99707244D01*
X159738069Y-99706200D01*
X160301931Y-99706200D01*
X160323188Y-99707244D01*
X160323188Y-99707244D01*
G37*
D11*
X160020000Y-100330000D03*
G04 #@! TD*
D10*
G04 #@! TO.C,R6*
G36*
X142543188Y-98437244D02*
X142564240Y-98440367D01*
X142584885Y-98445538D01*
X142604923Y-98452708D01*
X142624162Y-98461808D01*
X142642417Y-98472749D01*
X142659511Y-98485427D01*
X142675281Y-98499719D01*
X142689573Y-98515489D01*
X142702251Y-98532583D01*
X142713192Y-98550838D01*
X142722292Y-98570077D01*
X142729462Y-98590115D01*
X142734633Y-98610760D01*
X142737756Y-98631812D01*
X142738800Y-98653069D01*
X142738800Y-99466931D01*
X142737756Y-99488188D01*
X142734633Y-99509240D01*
X142729462Y-99529885D01*
X142722292Y-99549923D01*
X142713192Y-99569162D01*
X142702251Y-99587417D01*
X142689573Y-99604511D01*
X142675281Y-99620281D01*
X142659511Y-99634573D01*
X142642417Y-99647251D01*
X142624162Y-99658192D01*
X142604923Y-99667292D01*
X142584885Y-99674462D01*
X142564240Y-99679633D01*
X142543188Y-99682756D01*
X142521931Y-99683800D01*
X141958069Y-99683800D01*
X141936812Y-99682756D01*
X141915760Y-99679633D01*
X141895115Y-99674462D01*
X141875077Y-99667292D01*
X141855838Y-99658192D01*
X141837583Y-99647251D01*
X141820489Y-99634573D01*
X141804719Y-99620281D01*
X141790427Y-99604511D01*
X141777749Y-99587417D01*
X141766808Y-99569162D01*
X141757708Y-99549923D01*
X141750538Y-99529885D01*
X141745367Y-99509240D01*
X141742244Y-99488188D01*
X141741200Y-99466931D01*
X141741200Y-98653069D01*
X141742244Y-98631812D01*
X141745367Y-98610760D01*
X141750538Y-98590115D01*
X141757708Y-98570077D01*
X141766808Y-98550838D01*
X141777749Y-98532583D01*
X141790427Y-98515489D01*
X141804719Y-98499719D01*
X141820489Y-98485427D01*
X141837583Y-98472749D01*
X141855838Y-98461808D01*
X141875077Y-98452708D01*
X141895115Y-98445538D01*
X141915760Y-98440367D01*
X141936812Y-98437244D01*
X141958069Y-98436200D01*
X142521931Y-98436200D01*
X142543188Y-98437244D01*
X142543188Y-98437244D01*
G37*
D11*
X142240000Y-99060000D03*
D10*
G36*
X140493188Y-98437244D02*
X140514240Y-98440367D01*
X140534885Y-98445538D01*
X140554923Y-98452708D01*
X140574162Y-98461808D01*
X140592417Y-98472749D01*
X140609511Y-98485427D01*
X140625281Y-98499719D01*
X140639573Y-98515489D01*
X140652251Y-98532583D01*
X140663192Y-98550838D01*
X140672292Y-98570077D01*
X140679462Y-98590115D01*
X140684633Y-98610760D01*
X140687756Y-98631812D01*
X140688800Y-98653069D01*
X140688800Y-99466931D01*
X140687756Y-99488188D01*
X140684633Y-99509240D01*
X140679462Y-99529885D01*
X140672292Y-99549923D01*
X140663192Y-99569162D01*
X140652251Y-99587417D01*
X140639573Y-99604511D01*
X140625281Y-99620281D01*
X140609511Y-99634573D01*
X140592417Y-99647251D01*
X140574162Y-99658192D01*
X140554923Y-99667292D01*
X140534885Y-99674462D01*
X140514240Y-99679633D01*
X140493188Y-99682756D01*
X140471931Y-99683800D01*
X139908069Y-99683800D01*
X139886812Y-99682756D01*
X139865760Y-99679633D01*
X139845115Y-99674462D01*
X139825077Y-99667292D01*
X139805838Y-99658192D01*
X139787583Y-99647251D01*
X139770489Y-99634573D01*
X139754719Y-99620281D01*
X139740427Y-99604511D01*
X139727749Y-99587417D01*
X139716808Y-99569162D01*
X139707708Y-99549923D01*
X139700538Y-99529885D01*
X139695367Y-99509240D01*
X139692244Y-99488188D01*
X139691200Y-99466931D01*
X139691200Y-98653069D01*
X139692244Y-98631812D01*
X139695367Y-98610760D01*
X139700538Y-98590115D01*
X139707708Y-98570077D01*
X139716808Y-98550838D01*
X139727749Y-98532583D01*
X139740427Y-98515489D01*
X139754719Y-98499719D01*
X139770489Y-98485427D01*
X139787583Y-98472749D01*
X139805838Y-98461808D01*
X139825077Y-98452708D01*
X139845115Y-98445538D01*
X139865760Y-98440367D01*
X139886812Y-98437244D01*
X139908069Y-98436200D01*
X140471931Y-98436200D01*
X140493188Y-98437244D01*
X140493188Y-98437244D01*
G37*
D11*
X140190000Y-99060000D03*
G04 #@! TD*
M02*

+ 4228
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp-F.SilkS.gto
File diff suppressed because it is too large
View File


+ 78
- 0
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp.drl View File

@ -0,0 +1,78 @@
M48
;DRILL file {KiCad 5.0.2+dfsg1-1~bpo9+1} date Wed 19 Feb 2020 12:58:46 AM EST
;FORMAT={-:-/ absolute / inch / decimal}
FMAT,2
INCH,TZ
T1C0.0130
T2C0.0315
T3C0.0394
T4C0.0433
T5C0.0906
%
G90
G05
T1
X5.Y-3.75
X5.Y-3.875
X5.2404Y-3.8096
X5.4Y-3.8096
X5.45Y-3.8
X5.55Y-3.8
X5.575Y-3.7781
X5.6Y-3.7563
T2
X4.6Y-3.75
X4.6984Y-3.75
X6.0016Y-3.8
X5.15Y-3.35
X6.1Y-3.8
X5.4016Y-3.65
X5.5Y-3.65
X5.4016Y-3.35
X5.5Y-3.35
X4.9Y-3.5
X4.9984Y-3.5
X5.15Y-3.65
X5.2484Y-3.65
X5.7516Y-3.85
X5.85Y-3.85
X5.7016Y-3.5
X5.8Y-3.5
X4.35Y-3.75
X4.4484Y-3.75
X5.2484Y-3.35
T3
X4.25Y-3.4
X4.25Y-3.5
X6.0469Y-4.25
X5.85Y-4.25
X5.9484Y-4.25
T4
X4.4Y-3.4
X4.4669Y-3.2543
X4.5339Y-3.4
X4.6008Y-3.2543
X4.6677Y-3.4
X6.Y-3.45
X6.0669Y-3.3043
X6.1339Y-3.45
X6.2008Y-3.3043
X6.2677Y-3.45
T5
X5.7516Y-4.1201
X6.1453Y-4.1201
T3
X4.6138Y-4.1606G85X4.6138Y-4.2394
G05
X4.6925Y-4.385G85X4.7713Y-4.385
G05
X5.2606Y-4.05G85X5.3394Y-4.05
G05
X5.2606Y-4.2862G85X5.3394Y-4.2862
G05
X4.85Y-4.1606G85X4.85Y-4.2394
G05
X5.485Y-4.2075G85X5.485Y-4.1287
G05
T0
M30

BIN
Car_Stereo_Replacement/pcb_amp/gerbers/pcb_amp.zip View File


+ 157
- 0
Car_Stereo_Replacement/pcb_amp/pcb_amp-cache.lib View File

@ -0,0 +1,157 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# Connector_Barrel_Jack
#
DEF Connector_Barrel_Jack J 0 40 Y Y 1 F N
F0 "J" 0 210 50 H V C CNN
F1 "Connector_Barrel_Jack" 0 -200 50 H V C CNN
F2 "" 50 -40 50 H I C CNN
F3 "" 50 -40 50 H I C CNN
ALIAS Jack-DC
$FPLIST
BarrelJack*
$ENDFPLIST
DRAW
A -130 100 25 901 -901 0 1 10 F -130 125 -130 75
A -130 100 25 901 -901 0 1 10 N -130 125 -130 75
S -200 150 200 -150 0 1 10 f
S 145 125 -130 75 0 1 10 F
P 2 0 1 10 200 100 150 100 N
P 6 0 1 10 -150 -100 -100 -100 -50 -50 0 -100 100 -100 200 -100 N
X ~ 1 300 100 100 L 50 50 1 1 P
X ~ 2 300 -100 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Connector_Conn_Coaxial
#
DEF Connector_Conn_Coaxial J 0 40 Y N 1 F N
F0 "J" 10 120 50 H V C CNN
F1 "Connector_Conn_Coaxial" 115 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
*BNC*
*SMA*
*SMB*
*SMC*
*Cinch*
$ENDFPLIST
DRAW
A -2 0 71 1636 0 0 1 10 N -70 20 70 0
A -1 0 71 0 -1638 0 1 10 N 70 0 -70 -20
C 0 0 20 0 1 8 N
P 2 0 1 0 -100 0 -20 0 N
P 2 0 1 0 0 -100 0 -70 N
X In 1 -200 0 100 R 50 50 1 1 P
X Ext 2 0 -200 100 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_CP
#
DEF Device_CP C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "Device_CP" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
CP_*
$ENDFPLIST
DRAW
S -90 20 -90 40 0 1 0 N
S -90 20 90 20 0 1 0 N
S 90 -20 -90 -40 0 1 0 F
S 90 40 -90 40 0 1 0 N
S 90 40 90 20 0 1 0 N
P 2 0 1 0 -70 90 -30 90 N
P 2 0 1 0 -50 110 -50 70 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_R
#
DEF Device_R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "Device_R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Device_R_POT
#
DEF Device_R_POT RV 0 40 Y N 1 F N
F0 "RV" -175 0 50 V V C CNN
F1 "Device_R_POT" -100 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Potentiometer*
$ENDFPLIST
DRAW
S 40 100 -40 -100 0 1 10 N
P 2 0 1 0 100 0 60 0 N
P 4 0 1 0 45 0 90 20 90 -20 45 0 F
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 150 0 50 L 50 50 1 1 P
X 3 3 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# power_+12V
#
DEF power_+12V #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "power_+12V" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +12V 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# power_GND
#
DEF power_GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "power_GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# pspice_OPAMP
#
DEF pspice_OPAMP U 0 10 Y Y 1 F N
F0 "U" 150 125 50 H V L CNN
F1 "pspice_OPAMP" 150 -125 50 H V L CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 4 0 1 10 200 0 -200 200 -200 -200 200 0 f
X + 1 -300 100 100 R 50 50 1 1 I
X - 2 -300 -100 100 R 50 50 1 1 I
X ~ 3 300 0 100 L 50 50 1 1 O
X V+ 4 -100 300 150 D 50 50 1 1 W
X V- 5 -100 -300 150 U 50 50 1 1 W
ENDDRAW
ENDDEF
#
#End Library

+ 545
- 0
Car_Stereo_Replacement/pcb_amp/pcb_amp.bak View File

@ -0,0 +1,545 @@
EESchema Schematic File Version 4
EELAYER 26 0
EELAYER END
$Descr USLetter 11000 8500
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L Connector:Conn_Coaxial J1
U 1 1 5E4CB6F5
P 2350 3350
F 0 "J1" V 2587 3280 50 0000 C CNN
F 1 "Conn_Coaxial" V 2496 3280 50 0000 C CNN
F 2 "Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical" H 2350 3350 50 0001 C CNN
F 3 " ~" H 2350 3350 50 0001 C CNN
1 2350 3350
0 -1 -1 0
$EndComp
$Comp
L power:GND #PWR0101
U 1 1 5E4CB7A8
P 2350 3550
F 0 "#PWR0101" H 2350 3300 50 0001 C CNN
F 1 "GND" H 2355 3377 50 0000 C CNN
F 2 "" H 2350 3550 50 0001 C CNN
F 3 "" H 2350 3550 50 0001 C CNN
1 2350 3550
1 0 0 -1
$EndComp
$Comp
L Device:CP C2
U 1 1 5E4CB80B
P 2900 3350
F 0 "C2" V 3155 3350 50 0000 C CNN
F 1 "10uf" V 3064 3350 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 2900 3350 50 0001 C CNN
F 3 "~" H 2900 3350 50 0001 C CNN
1 2900 3350
0 -1 -1 0
$EndComp
Wire Wire Line
2550 3350 2750 3350
Text Notes 1800 1725 0 50 ~ 0
Schematic from Page 959 of\nPractical Electronics for\nInventors (Scherz, and Monk)\n4th Edition\n
Text Notes 850 4550 0 50 ~ 0
They recommend a 10uf Polarized\ncap. The cap MUST be high enough\nso that its impedance does not cut\ndown the audio signal. See my docs.\nA 10uf (or higher) is OK. a 1uf will NOT\nwork. Impedance increases exponentially or\nlogarithmicly\nas values go down in capacitance.\nValues even as high as 1000uf will be ok.\n(possibly higher). Being too low, will\nresult in impedance / esr (or aging of \ncap).\n\n
$Comp
L pspice:OPAMP U1
U 1 1 5E4CBEC8
P 3350 3450
F 0 "U1" H 3650 3625 50 0000 L CNN
F 1 "LM383" H 3675 3300 50 0000 L CNN
F 2 "Package_TO_SOT_THT:TO-220-5_P3.4x3.7mm_StaggerOdd_Lead3.8mm_Vertical" H 3350 3450 50 0001 C CNN
F 3 "~" H 3350 3450 50 0001 C CNN
1 3350 3450
1 0 0 -1
$EndComp
$Comp
L Device:CP C1
U 1 1 5E4CC090
P 2875 3925
F 0 "C1" H 2993 3971 50 0000 L CNN
F 1 "470uf" H 2993 3880 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 2913 3775 50 0001 C CNN
F 3 "~" H 2875 3925 50 0001 C CNN
1 2875 3925
1 0 0 -1
$EndComp
Wire Wire Line
3050 3550 2875 3550
Wire Wire Line
2875 3550 2875 3775
Wire Wire Line
2875 4075 3650 4075
$Comp
L Device:R R1
U 1 1 5E4CC157
P 3650 3725
F 0 "R1" H 3720 3771 50 0000 L CNN
F 1 "R220" H 3720 3680 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 3580 3725 50 0001 C CNN
F 3 "~" H 3650 3725 50 0001 C CNN
1 3650 3725
1 0 0 -1
$EndComp
$Comp
L Device:R R2
U 1 1 5E4CC1AE
P 3650 4350
F 0 "R2" H 3720 4396 50 0000 L CNN
F 1 "R2.2" H 3720 4305 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 3580 4350 50 0001 C CNN
F 3 "~" H 3650 4350 50 0001 C CNN
1 3650 4350
1 0 0 -1
$EndComp
Wire Wire Line
3650 4200 3650 4075
Connection ~ 3650 4075
Wire Wire Line
3650 4075 3650 3875
Wire Wire Line
3650 3575 3650 3450
$Comp
L power:GND #PWR0102
U 1 1 5E4CC495
P 3250 3750
F 0 "#PWR0102" H 3250 3500 50 0001 C CNN
F 1 "GND" H 3255 3577 50 0000 C CNN
F 2 "" H 3250 3750 50 0001 C CNN
F 3 "" H 3250 3750 50 0001 C CNN
1 3250 3750
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0103
U 1 1 5E4CC570
P 3650 4500
F 0 "#PWR0103" H 3650 4250 50 0001 C CNN
F 1 "GND" H 3655 4327 50 0000 C CNN
F 2 "" H 3650 4500 50 0001 C CNN
F 3 "" H 3650 4500 50 0001 C CNN
1 3650 4500
1 0 0 -1
$EndComp
$Comp
L Device:CP C3
U 1 1 5E4CC659
P 3400 2950
F 0 "C3" V 3655 2950 50 0000 C CNN
F 1 "0.2uf" V 3564 2950 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 3438 2800 50 0001 C CNN
F 3 "~" H 3400 2950 50 0001 C CNN
1 3400 2950
0 -1 -1 0
$EndComp
$Comp
L power:+12V #PWR0104
U 1 1 5E4CC70B
P 3250 2550
F 0 "#PWR0104" H 3250 2400 50 0001 C CNN
F 1 "+12V" H 3265 2723 50 0000 C CNN
F 2 "" H 3250 2550 50 0001 C CNN
F 3 "" H 3250 2550 50 0001 C CNN
1 3250 2550
1 0 0 -1
$EndComp
Wire Wire Line
3250 2550 3250 2950
Connection ~ 3250 2950
Wire Wire Line
3250 2950 3250 3150
$Comp
L power:GND #PWR0105
U 1 1 5E4CC7DD
P 3550 2950
F 0 "#PWR0105" H 3550 2700 50 0001 C CNN
F 1 "GND" H 3555 2777 50 0000 C CNN
F 2 "" H 3550 2950 50 0001 C CNN
F 3 "" H 3550 2950 50 0001 C CNN
1 3550 2950
1 0 0 -1
$EndComp
Text Notes 3550 2100 0 50 ~ 0
V+ can be\n+5 to 20V
$Comp
L power:GND #PWR0106
U 1 1 5E4CCBDF
P 7475 4200
F 0 "#PWR0106" H 7475 3950 50 0001 C CNN
F 1 "GND" H 7480 4027 50 0000 C CNN
F 2 "" H 7475 4200 50 0001 C CNN
F 3 "" H 7475 4200 50 0001 C CNN
1 7475 4200
-1 0 0 -1
$EndComp
$Comp
L Device:CP C10
U 1 1 5E4CCBE5
P 7475 3750
F 0 "C10" H 7357 3796 50 0000 R CNN
F 1 "100uf" H 7357 3705 50 0000 R CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 7475 3750 50 0001 C CNN
F 3 "~" H 7475 3750 50 0001 C CNN
1 7475 3750
-1 0 0 -1
$EndComp
$Comp
L pspice:OPAMP U2
U 1 1 5E4CCBED
P 6450 3400
F 0 "U2" H 6775 3575 50 0000 L CNN
F 1 "LM383" H 6775 3250 50 0000 L CNN
F 2 "Package_TO_SOT_THT:TO-220-5_P3.4x3.7mm_StaggerOdd_Lead3.8mm_Vertical" H 6450 3400 50 0001 C CNN
F 3 "~" H 6450 3400 50 0001 C CNN
1 6450 3400
-1 0 0 -1
$EndComp
$Comp
L Device:CP C9
U 1 1 5E4CCBF3
P 6925 3875
F 0 "C9" H 7043 3921 50 0000 L CNN
F 1 "470uf" H 7043 3830 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 6963 3725 50 0001 C CNN
F 3 "~" H 6925 3875 50 0001 C CNN
1 6925 3875
-1 0 0 -1
$EndComp
Wire Wire Line
6750 3500 6925 3500
Wire Wire Line
6925 3500 6925 3725
Wire Wire Line
6925 4025 6150 4025
$Comp
L Device:R R4
U 1 1 5E4CCBFC
P 6150 3675
F 0 "R4" H 6220 3721 50 0000 L CNN
F 1 "R220" H 6220 3630 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 6080 3675 50 0001 C CNN
F 3 "~" H 6150 3675 50 0001 C CNN
1 6150 3675
-1 0 0 -1
$EndComp
$Comp
L Device:R R5
U 1 1 5E4CCC02
P 6150 4300
F 0 "R5" H 6220 4346 50 0000 L CNN
F 1 "R2.2" H 6220 4255 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 6080 4300 50 0001 C CNN
F 3 "~" H 6150 4300 50 0001 C CNN
1 6150 4300
-1 0 0 -1
$EndComp
Wire Wire Line
6150 4150 6150 4050
Connection ~ 6150 4025
Wire Wire Line
6150 4025 6150 3825
Wire Wire Line
6150 3525 6150 3450
$Comp
L power:GND #PWR0107
U 1 1 5E4CCC0C
P 6550 3700
F 0 "#PWR0107" H 6550 3450 50 0001 C CNN
F 1 "GND" H 6555 3527 50 0000 C CNN
F 2 "" H 6550 3700 50 0001 C CNN
F 3 "" H 6550 3700 50 0001 C CNN
1 6550 3700
-1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0108
U 1 1 5E4CCC12
P 6150 4450
F 0 "#PWR0108" H 6150 4200 50 0001 C CNN
F 1 "GND" H 6155 4277 50 0000 C CNN
F 2 "" H 6150 4450 50 0001 C CNN
F 3 "" H 6150 4450 50 0001 C CNN
1 6150 4450
-1 0 0 -1
$EndComp
$Comp
L Device:CP C8
U 1 1 5E4CCC18
P 6400 2900
F 0 "C8" V 6655 2900 50 0000 C CNN
F 1 "0.2uf" V 6564 2900 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 6438 2750 50 0001 C CNN
F 3 "~" H 6400 2900 50 0001 C CNN
1 6400 2900
0 1 -1 0
$EndComp
$Comp
L power:+12V #PWR0109
U 1 1 5E4CCC1E
P 6550 2500
F 0 "#PWR0109" H 6550 2350 50 0001 C CNN
F 1 "+12V" H 6565 2673 50 0000 C CNN
F 2 "" H 6550 2500 50 0001 C CNN
F 3 "" H 6550 2500 50 0001 C CNN
1 6550 2500
-1 0 0 -1
$EndComp
Wire Wire Line
6550 2500 6550 2775
Connection ~ 6550 2900
Wire Wire Line
6550 2900 6550 3100
$Comp
L power:GND #PWR0110
U 1 1 5E4CCC27
P 6250 2900
F 0 "#PWR0110" H 6250 2650 50 0001 C CNN
F 1 "GND" H 6255 2727 50 0000 C CNN
F 2 "" H 6250 2900 50 0001 C CNN
F 3 "" H 6250 2900 50 0001 C CNN
1 6250 2900
-1 0 0 -1
$EndComp
Text Notes 4950 2500 0 50 ~ 0
Additional\nOutput Caps\nare used to\nblock auto DC\nnoise.
Wire Wire Line
7475 3300 7475 3600
Wire Wire Line
7475 3900 7475 4200
Wire Wire Line
6750 3300 7475 3300
$Comp
L Device:R R6
U 1 1 5E4CE830
P 7100 2775
F 0 "R6" V 6893 2775 50 0000 C CNN
F 1 "R1M" V 6984 2775 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 7030 2775 50 0001 C CNN
F 3 "~" H 7100 2775 50 0001 C CNN
1 7100 2775
0 1 1 0
$EndComp
$Comp
L Device:R_POT RV1
U 1 1 5E4CEB50
P 7825 2975
F 0 "RV1" H 7755 3021 50 0000 R CNN
F 1 "R_POT" H 7755 2930 50 0000 R CNN
F 2 "Potentiometer_THT:Potentiometer_Bourns_PTV09A-2_Single_Horizontal" H 7825 2975 50 0001 C CNN
F 3 "~" H 7825 2975 50 0001 C CNN
1 7825 2975
-1 0 0 -1
$EndComp
Wire Wire Line
7250 2775 7825 2775
Wire Wire Line
7825 2775 7825 2825
$Comp
L power:GND #PWR0111
U 1 1 5E4CF924
P 7825 3125
F 0 "#PWR0111" H 7825 2875 50 0001 C CNN
F 1 "GND" H 7830 2952 50 0000 C CNN
F 2 "" H 7825 3125 50 0001 C CNN
F 3 "" H 7825 3125 50 0001 C CNN
1 7825 3125
1 0 0 -1
$EndComp
Wire Wire Line
7675 2975 7475 2975
Wire Wire Line
7475 2975 7475 3300
Connection ~ 7475 3300
Wire Wire Line
6950 2775 6550 2775
Connection ~ 6550 2775
Wire Wire Line
6550 2775 6550 2900
Text Notes 7975 2600 0 50 ~ 0
Volume\nCTRL\n(logarithmic type\npot)
$Comp
L Connector:Barrel_Jack J2
U 1 1 5E4D048A
P 4950 3150
F 0 "J2" V 4959 2970 50 0000 R CNN
F 1 "Barrel_Jack" V 4600 3025 50 0000 R CNN
F 2 "Connector_BarrelJack:BarrelJack_Horizontal" H 5000 3110 50 0001 C CNN
F 3 "~" H 5000 3110 50 0001 C CNN
1 4950 3150
0 -1 1 0
$EndComp
Text Notes 4275 2700 0 50 ~ 0
Barrel Plug\nIs Speaker\n(or just solder\nwire direct)
$Comp
L Device:CP C5
U 1 1 5E4D0BE3
P 4600 3450
F 0 "C5" V 4855 3450 50 0000 C CNN
F 1 "100uf" V 4764 3450 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 4638 3300 50 0001 C CNN
F 3 "~" H 4600 3450 50 0001 C CNN
1 4600 3450
0 -1 -1 0
$EndComp
$Comp
L Device:CP C6
U 1 1 5E4D0C8A
P 5300 3450
F 0 "C6" V 5045 3450 50 0000 C CNN
F 1 "100uf" V 5136 3450 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 5338 3300 50 0001 C CNN
F 3 "~" H 5300 3450 50 0001 C CNN
1 5300 3450
0 1 1 0
$EndComp
Wire Wire Line
5150 3450 5050 3450
Wire Wire Line
4850 3450 4750 3450
$Comp
L Device:CP C4
U 1 1 5E4D137E
P 4325 3600
F 0 "C4" H 4443 3646 50 0000 L CNN
F 1 "0.2uf" H 4443 3555 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 4363 3450 50 0001 C CNN
F 3 "~" H 4325 3600 50 0001 C CNN
1 4325 3600
1 0 0 -1
$EndComp
$Comp
L Device:CP C7
U 1 1 5E4D1407
P 5575 3600
F 0 "C7" H 5693 3646 50 0000 L CNN
F 1 "0.2uf" H 5693 3555 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 5613 3450 50 0001 C CNN
F 3 "~" H 5575 3600 50 0001 C CNN
1 5575 3600
1 0 0 -1
$EndComp
Wire Wire Line
4450 3450 4325 3450
Wire Wire Line
5450 3450 5575 3450
$Comp
L power:GND #PWR0112
U 1 1 5E4D2210
P 4325 3750
F 0 "#PWR0112" H 4325 3500 50 0001 C CNN
F 1 "GND" H 4330 3577 50 0000 C CNN
F 2 "" H 4325 3750 50 0001 C CNN
F 3 "" H 4325 3750 50 0001 C CNN
1 4325 3750
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0113
U 1 1 5E4D226E
P 5575 3750
F 0 "#PWR0113" H 5575 3500 50 0001 C CNN
F 1 "GND" H 5580 3577 50 0000 C CNN
F 2 "" H 5575 3750 50 0001 C CNN
F 3 "" H 5575 3750 50 0001 C CNN
1 5575 3750
1 0 0 -1
$EndComp
Wire Wire Line
4325 3450 4000 3450
Connection ~ 4325 3450
Connection ~ 3650 3450
$Comp
L Device:R R3
U 1 1 5E4D2CE3
P 4775 4050
F 0 "R3" V 4568 4050 50 0000 C CNN
F 1 "R220" V 4659 4050 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 4705 4050 50 0001 C CNN
F 3 "~" H 4775 4050 50 0001 C CNN
1 4775 4050
0 1 1 0
$EndComp
Wire Wire Line
4625 4050 4000 4050
Wire Wire Line
4000 4050 4000 3450
Connection ~ 4000 3450
Wire Wire Line
4000 3450 3650 3450
Text Notes 3800 1250 0 150 ~ 0
16 Watt Amplifier
Wire Wire Line
5575 3450 6150 3450
Connection ~ 5575 3450
Connection ~ 6150 3450
Wire Wire Line
6150 3450 6150 3400
Text Label 3775 3450 0 50 ~ 0
OP1OUT
Text Label 5800 3450 0 50 ~ 0
OP2OUT
Text Label 7225 3300 0 50 ~ 0
OP2NONINV
Text Label 6850 3500 0 50 ~ 0
OP2INV
Text Label 3050 3350 1 50 ~ 0
OP1NONINV
Text Label 2875 3750 2 50 ~ 0
OP1INV
Text Label 2650 3350 0 50 ~ 0
INPUT
Text Label 4750 3450 0 50 ~ 0
SPKOUT1
Text Label 5125 3450 0 50 ~ 0
SPKOUT2
Wire Wire Line
4925 4050 6150 4050
Connection ~ 6150 4050
Wire Wire Line
6150 4050 6150 4025
Text Label 7400 2775 0 50 ~ 0
VOLPOT
$Comp
L Connector:Barrel_Jack J?
U 1 1 5E4D7487
P 6150 1650
F 0 "J?" H 6205 1975 50 0000 C CNN
F 1 "Barrel_Jack" H 6205 1884 50 0000 C CNN
F 2 "" H 6200 1610 50 0001 C CNN
F 3 "~" H 6200 1610 50 0001 C CNN
1 6150 1650
1 0 0 -1
$EndComp
$Comp
L power:+12V #PWR?
U 1 1 5E4D762B
P 6450 1550
F 0 "#PWR?" H 6450 1400 50 0001 C CNN
F 1 "+12V" H 6465 1723 50 0000 C CNN
F 2 "" H 6450 1550 50 0001 C CNN
F 3 "" H 6450 1550 50 0001 C CNN
1 6450 1550
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR?
U 1 1 5E4D7696
P 6450 1750
F 0 "#PWR?" H 6450 1500 50 0001 C CNN
F 1 "GND" H 6455 1577 50 0000 C CNN
F 2 "" H 6450 1750 50 0001 C CNN
F 3 "" H 6450 1750 50 0001 C CNN
1 6450 1750
1 0 0 -1
$EndComp
$EndSCHEMATC

+ 2802
- 0
Car_Stereo_Replacement/pcb_amp/pcb_amp.kicad_pcb
File diff suppressed because it is too large
View File


+ 2802
- 0
Car_Stereo_Replacement/pcb_amp/pcb_amp.kicad_pcb-bak
File diff suppressed because it is too large
View File


+ 319
- 0
Car_Stereo_Replacement/pcb_amp/pcb_amp.net View File

@ -0,0 +1,319 @@
(export (version D)
(design
(source /home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/Car_Stereo_Replacement/pcb_amp/pcb_amp.sch)
(date "Wed 19 Feb 2020 12:32:48 AM EST")
(tool "Eeschema 5.0.2+dfsg1-1~bpo9+1")
(sheet (number 1) (name /) (tstamps /)
(title_block
(title)
(company)
(rev)
(date)
(source pcb_amp.sch)
(comment (number 1) (value ""))
(comment (number 2) (value ""))
(comment (number 3) (value ""))
(comment (number 4) (value "")))))
(components
(comp (ref J1)
(value Conn_Coaxial)
(footprint Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical)
(datasheet " ~")
(libsource (lib Connector) (part Conn_Coaxial) (description "coaxial connector (BNC, SMA, SMB, SMC, Cinch/RCA, ...)"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CB6F5))
(comp (ref C2)
(value 10uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CB80B))
(comp (ref U1)
(value LM383)
(footprint Package_TO_SOT_THT:TO-220-5_P3.4x3.7mm_StaggerOdd_Lead3.8mm_Vertical)
(datasheet ~)
(libsource (lib pspice) (part OPAMP) (description "OPAmp symbol for simulation only"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CBEC8))
(comp (ref C1)
(value 470uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CC090))
(comp (ref R1)
(value R220)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CC157))
(comp (ref R2)
(value R2.2)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CC1AE))
(comp (ref C3)
(value 0.2uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CC659))
(comp (ref C10)
(value 100uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CCBE5))
(comp (ref U2)
(value LM383)
(footprint Package_TO_SOT_THT:TO-220-5_P3.4x3.7mm_StaggerOdd_Lead3.8mm_Vertical)
(datasheet ~)
(libsource (lib pspice) (part OPAMP) (description "OPAmp symbol for simulation only"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CCBED))
(comp (ref C9)
(value 470uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CCBF3))
(comp (ref R4)
(value R220)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CCBFC))
(comp (ref R5)
(value R2.2)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CCC02))
(comp (ref C8)
(value 0.2uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CCC18))
(comp (ref R6)
(value R1M)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CE830))
(comp (ref RV1)
(value R_POT)
(footprint Potentiometer_THT:Potentiometer_Bourns_PTV09A-2_Single_Horizontal)
(datasheet ~)
(libsource (lib Device) (part R_POT) (description Potentiometer))
(sheetpath (names /) (tstamps /))
(tstamp 5E4CEB50))
(comp (ref J2)
(value Barrel_Jack)
(footprint Connector_BarrelJack:BarrelJack_Horizontal)
(datasheet ~)
(libsource (lib Connector) (part Barrel_Jack) (description "DC Barrel Jack"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4D048A))
(comp (ref C5)
(value 100uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4D0BE3))
(comp (ref C6)
(value 100uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4D0C8A))
(comp (ref C4)
(value 0.2uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4D137E))
(comp (ref C7)
(value 0.2uf)
(footprint Capacitor_THT:CP_Radial_D5.0mm_P2.50mm)
(datasheet ~)
(libsource (lib Device) (part CP) (description "Polarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4D1407))
(comp (ref R3)
(value R220)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part R) (description Resistor))
(sheetpath (names /) (tstamps /))
(tstamp 5E4D2CE3))
(comp (ref J3)
(value Barrel_Jack)
(footprint Connector_BarrelJack:BarrelJack_Horizontal)
(datasheet ~)
(libsource (lib Connector) (part Barrel_Jack) (description "DC Barrel Jack"))
(sheetpath (names /) (tstamps /))
(tstamp 5E4D7487)))
(libparts
(libpart (lib Connector) (part Barrel_Jack)
(aliases
(alias Jack-DC))
(description "DC Barrel Jack")
(docs ~)
(footprints
(fp BarrelJack*))
(fields
(field (name Reference) J)
(field (name Value) Barrel_Jack))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib Connector) (part Conn_Coaxial)
(description "coaxial connector (BNC, SMA, SMB, SMC, Cinch/RCA, ...)")
(docs " ~")
(footprints
(fp *BNC*)
(fp *SMA*)
(fp *SMB*)
(fp *SMC*)
(fp *Cinch*))
(fields
(field (name Reference) J)
(field (name Value) Conn_Coaxial))
(pins
(pin (num 1) (name In) (type passive))
(pin (num 2) (name Ext) (type passive))))
(libpart (lib Device) (part CP)
(description "Polarized capacitor")
(docs ~)
(footprints
(fp CP_*))
(fields
(field (name Reference) C)
(field (name Value) CP))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib Device) (part R)
(description Resistor)
(docs ~)
(footprints
(fp R_*))
(fields
(field (name Reference) R)
(field (name Value) R))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib Device) (part R_POT)
(description Potentiometer)
(docs ~)
(footprints
(fp Potentiometer*))
(fields
(field (name Reference) RV)
(field (name Value) R_POT))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))
(pin (num 3) (name 3) (type passive))))
(libpart (lib pspice) (part OPAMP)
(description "OPAmp symbol for simulation only")
(docs ~)
(fields
(field (name Reference) U)
(field (name Value) OPAMP))
(pins
(pin (num 1) (name +) (type input))
(pin (num 2) (name -) (type input))
(pin (num 3) (name ~) (type output))
(pin (num 4) (name V+) (type power_in))
(pin (num 5) (name V-) (type power_in)))))
(libraries
(library (logical Connector)
(uri /usr/share/kicad/library/Connector.lib))
(library (logical Device)
(uri /usr/share/kicad/library/Device.lib))
(library (logical pspice)
(uri /usr/share/kicad/library/pspice.lib)))
(nets
(net (code 1) (name /SPKOUT1)
(node (ref J2) (pin 1))
(node (ref C5) (pin 2)))
(net (code 2) (name GND)
(node (ref C8) (pin 2))
(node (ref J3) (pin 2))
(node (ref C10) (pin 2))
(node (ref R2) (pin 2))
(node (ref R5) (pin 2))
(node (ref U1) (pin 5))
(node (ref C3) (pin 2))
(node (ref U2) (pin 5))
(node (ref C7) (pin 2))
(node (ref C4) (pin 2))
(node (ref J1) (pin 1))
(node (ref RV1) (pin 3)))
(net (code 3) (name /OP2NONINV)
(node (ref C10) (pin 1))
(node (ref U2) (pin 1))
(node (ref RV1) (pin 2)))
(net (code 4) (name /SPKOUT2)
(node (ref J2) (pin 2))
(node (ref C6) (pin 2)))
(net (code 5) (name /OP2OUT)
(node (ref U2) (pin 3))
(node (ref R4) (pin 1))
(node (ref C7) (pin 1))
(node (ref C6) (pin 1)))
(net (code 6) (name /VOLPOT)
(node (ref RV1) (pin 1))
(node (ref R6) (pin 1)))
(net (code 7) (name +12V)
(node (ref C3) (pin 1))
(node (ref R6) (pin 2))
(node (ref U1) (pin 4))
(node (ref U2) (pin 4))
(node (ref J3) (pin 1))
(node (ref C8) (pin 1)))
(net (code 8) (name /OP1OUT)
(node (ref C5) (pin 1))
(node (ref C4) (pin 1))
(node (ref U1) (pin 3))
(node (ref R1) (pin 1))
(node (ref R3) (pin 2)))
(net (code 9) (name /INPUT)
(node (ref C2) (pin 1))
(node (ref J1) (pin 2)))
(net (code 10) (name /OP1NONINV)
(node (ref C2) (pin 2))
(node (ref U1) (pin 1)))
(net (code 11) (name /OP1INV)
(node (ref U1) (pin 2))
(node (ref C1) (pin 1)))
(net (code 12) (name "Net-(C1-Pad2)")
(node (ref C1) (pin 2))
(node (ref R1) (pin 2))
(node (ref R2) (pin 1)))
(net (code 13) (name /OP2INV)
(node (ref C9) (pin 1))
(node (ref U2) (pin 2)))
(net (code 14) (name "Net-(C9-Pad2)")
(node (ref R3) (pin 1))
(node (ref R5) (pin 1))
(node (ref C9) (pin 2))
(node (ref R4) (pin 2)))))

+ 41
- 0
Car_Stereo_Replacement/pcb_amp/pcb_amp.pro View File

@ -0,0 +1,41 @@
update=Tue 11 Oct 2016 05:25:07 PM PDT
version=1
last_client=kicad
[cvpcb]
version=1
NetIExt=net
[pcbnew]
version=1
PageLayoutDescrFile=
LastNetListRead=
PadDrill=0.600000000000
PadDrillOvalY=0.600000000000
PadSizeH=1.500000000000
PadSizeV=1.500000000000
PcbTextSizeV=1.016000000000
PcbTextSizeH=1.016000000000
PcbTextThickness=0.152400000000
ModuleTextSizeV=1.016000000000
ModuleTextSizeH=1.016000000000
ModuleTextSizeThickness=0.152400000000
SolderMaskClearance=0.003000000000
SolderMaskMinWidth=0.004000000000
DrawSegmentWidth=0.152400000000
BoardOutlineThickness=0.152400000000
ModuleOutlineThickness=0.152400000000
[eeschema]
version=1
LibDir=
[eeschema/libraries]
[schematic_editor]
version=1
PageLayoutDescrFile=
PlotDirectoryName=
SubpartIdSeparator=0
SubpartFirstId=65
NetFmtName=
SpiceForceRefPrefix=0
SpiceUseNetNumbers=0
LabSize=50
[general]
version=1

+ 545
- 0
Car_Stereo_Replacement/pcb_amp/pcb_amp.sch View File

@ -0,0 +1,545 @@
EESchema Schematic File Version 4
EELAYER 26 0
EELAYER END
$Descr USLetter 11000 8500
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L Connector:Conn_Coaxial J1
U 1 1 5E4CB6F5
P 2350 3350
F 0 "J1" V 2587 3280 50 0000 C CNN
F 1 "Conn_Coaxial" V 2496 3280 50 0000 C CNN
F 2 "Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical" H 2350 3350 50 0001 C CNN
F 3 " ~" H 2350 3350 50 0001 C CNN
1 2350 3350
0 -1 -1 0
$EndComp
$Comp
L power:GND #PWR0101
U 1 1 5E4CB7A8
P 2350 3550
F 0 "#PWR0101" H 2350 3300 50 0001 C CNN
F 1 "GND" H 2355 3377 50 0000 C CNN
F 2 "" H 2350 3550 50 0001 C CNN
F 3 "" H 2350 3550 50 0001 C CNN
1 2350 3550
1 0 0 -1
$EndComp
$Comp
L Device:CP C2
U 1 1 5E4CB80B
P 2900 3350
F 0 "C2" V 3155 3350 50 0000 C CNN
F 1 "10uf" V 3064 3350 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 2900 3350 50 0001 C CNN
F 3 "~" H 2900 3350 50 0001 C CNN
1 2900 3350
0 -1 -1 0
$EndComp
Wire Wire Line
2550 3350 2750 3350
Text Notes 1800 1725 0 50 ~ 0
Schematic from Page 959 of\nPractical Electronics for\nInventors (Scherz, and Monk)\n4th Edition\n
Text Notes 850 4550 0 50 ~ 0
They recommend a 10uf Polarized\ncap. The cap MUST be high enough\nso that its impedance does not cut\ndown the audio signal. See my docs.\nA 10uf (or higher) is OK. a 1uf will NOT\nwork. Impedance increases exponentially or\nlogarithmicly\nas values go down in capacitance.\nValues even as high as 1000uf will be ok.\n(possibly higher). Being too low, will\nresult in impedance / esr (or aging of \ncap).\n\n
$Comp
L pspice:OPAMP U1
U 1 1 5E4CBEC8
P 3350 3450
F 0 "U1" H 3650 3625 50 0000 L CNN
F 1 "LM383" H 3675 3300 50 0000 L CNN
F 2 "Package_TO_SOT_THT:TO-220-5_P3.4x3.7mm_StaggerOdd_Lead3.8mm_Vertical" H 3350 3450 50 0001 C CNN
F 3 "~" H 3350 3450 50 0001 C CNN
1 3350 3450
1 0 0 -1
$EndComp
$Comp
L Device:CP C1
U 1 1 5E4CC090
P 2875 3925
F 0 "C1" H 2993 3971 50 0000 L CNN
F 1 "470uf" H 2993 3880 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 2913 3775 50 0001 C CNN
F 3 "~" H 2875 3925 50 0001 C CNN
1 2875 3925
1 0 0 -1
$EndComp
Wire Wire Line
3050 3550 2875 3550
Wire Wire Line
2875 3550 2875 3775
Wire Wire Line
2875 4075 3650 4075
$Comp
L Device:R R1
U 1 1 5E4CC157
P 3650 3725
F 0 "R1" H 3720 3771 50 0000 L CNN
F 1 "R220" H 3720 3680 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 3580 3725 50 0001 C CNN
F 3 "~" H 3650 3725 50 0001 C CNN
1 3650 3725
1 0 0 -1
$EndComp
$Comp
L Device:R R2
U 1 1 5E4CC1AE
P 3650 4350
F 0 "R2" H 3720 4396 50 0000 L CNN
F 1 "R2.2" H 3720 4305 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 3580 4350 50 0001 C CNN
F 3 "~" H 3650 4350 50 0001 C CNN
1 3650 4350
1 0 0 -1
$EndComp
Wire Wire Line
3650 4200 3650 4075
Connection ~ 3650 4075
Wire Wire Line
3650 4075 3650 3875
Wire Wire Line
3650 3575 3650 3450
$Comp
L power:GND #PWR0102
U 1 1 5E4CC495
P 3250 3750
F 0 "#PWR0102" H 3250 3500 50 0001 C CNN
F 1 "GND" H 3255 3577 50 0000 C CNN
F 2 "" H 3250 3750 50 0001 C CNN
F 3 "" H 3250 3750 50 0001 C CNN
1 3250 3750
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0103
U 1 1 5E4CC570
P 3650 4500
F 0 "#PWR0103" H 3650 4250 50 0001 C CNN
F 1 "GND" H 3655 4327 50 0000 C CNN
F 2 "" H 3650 4500 50 0001 C CNN
F 3 "" H 3650 4500 50 0001 C CNN
1 3650 4500
1 0 0 -1
$EndComp
$Comp
L Device:CP C3
U 1 1 5E4CC659
P 3400 2950
F 0 "C3" V 3655 2950 50 0000 C CNN
F 1 "0.2uf" V 3564 2950 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 3438 2800 50 0001 C CNN
F 3 "~" H 3400 2950 50 0001 C CNN
1 3400 2950
0 -1 -1 0
$EndComp
$Comp
L power:+12V #PWR0104
U 1 1 5E4CC70B
P 3250 2550
F 0 "#PWR0104" H 3250 2400 50 0001 C CNN
F 1 "+12V" H 3265 2723 50 0000 C CNN
F 2 "" H 3250 2550 50 0001 C CNN
F 3 "" H 3250 2550 50 0001 C CNN
1 3250 2550
1 0 0 -1
$EndComp
Wire Wire Line
3250 2550 3250 2950
Connection ~ 3250 2950
Wire Wire Line
3250 2950 3250 3150
$Comp
L power:GND #PWR0105
U 1 1 5E4CC7DD
P 3550 2950
F 0 "#PWR0105" H 3550 2700 50 0001 C CNN
F 1 "GND" H 3555 2777 50 0000 C CNN
F 2 "" H 3550 2950 50 0001 C CNN
F 3 "" H 3550 2950 50 0001 C CNN
1 3550 2950
1 0 0 -1
$EndComp
Text Notes 3550 2100 0 50 ~ 0
V+ can be\n+5 to 20V
$Comp
L power:GND #PWR0106
U 1 1 5E4CCBDF
P 7475 4200
F 0 "#PWR0106" H 7475 3950 50 0001 C CNN
F 1 "GND" H 7480 4027 50 0000 C CNN
F 2 "" H 7475 4200 50 0001 C CNN
F 3 "" H 7475 4200 50 0001 C CNN
1 7475 4200
-1 0 0 -1
$EndComp
$Comp
L Device:CP C10
U 1 1 5E4CCBE5
P 7475 3750
F 0 "C10" H 7357 3796 50 0000 R CNN
F 1 "100uf" H 7357 3705 50 0000 R CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 7475 3750 50 0001 C CNN
F 3 "~" H 7475 3750 50 0001 C CNN
1 7475 3750
-1 0 0 -1
$EndComp
$Comp
L pspice:OPAMP U2
U 1 1 5E4CCBED
P 6450 3400
F 0 "U2" H 6775 3575 50 0000 L CNN
F 1 "LM383" H 6775 3250 50 0000 L CNN
F 2 "Package_TO_SOT_THT:TO-220-5_P3.4x3.7mm_StaggerOdd_Lead3.8mm_Vertical" H 6450 3400 50 0001 C CNN
F 3 "~" H 6450 3400 50 0001 C CNN
1 6450 3400
-1 0 0 -1
$EndComp
$Comp
L Device:CP C9
U 1 1 5E4CCBF3
P 6925 3875
F 0 "C9" H 7043 3921 50 0000 L CNN
F 1 "470uf" H 7043 3830 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 6963 3725 50 0001 C CNN
F 3 "~" H 6925 3875 50 0001 C CNN
1 6925 3875
-1 0 0 -1
$EndComp
Wire Wire Line
6750 3500 6925 3500
Wire Wire Line
6925 3500 6925 3725
Wire Wire Line
6925 4025 6150 4025
$Comp
L Device:R R4
U 1 1 5E4CCBFC
P 6150 3675
F 0 "R4" H 6220 3721 50 0000 L CNN
F 1 "R220" H 6220 3630 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 6080 3675 50 0001 C CNN
F 3 "~" H 6150 3675 50 0001 C CNN
1 6150 3675
-1 0 0 -1
$EndComp
$Comp
L Device:R R5
U 1 1 5E4CCC02
P 6150 4300
F 0 "R5" H 6220 4346 50 0000 L CNN
F 1 "R2.2" H 6220 4255 50 0000 L CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 6080 4300 50 0001 C CNN
F 3 "~" H 6150 4300 50 0001 C CNN
1 6150 4300
-1 0 0 -1
$EndComp
Wire Wire Line
6150 4150 6150 4050
Connection ~ 6150 4025
Wire Wire Line
6150 4025 6150 3825
Wire Wire Line
6150 3525 6150 3450
$Comp
L power:GND #PWR0107
U 1 1 5E4CCC0C
P 6550 3700
F 0 "#PWR0107" H 6550 3450 50 0001 C CNN
F 1 "GND" H 6555 3527 50 0000 C CNN
F 2 "" H 6550 3700 50 0001 C CNN
F 3 "" H 6550 3700 50 0001 C CNN
1 6550 3700
-1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0108
U 1 1 5E4CCC12
P 6150 4450
F 0 "#PWR0108" H 6150 4200 50 0001 C CNN
F 1 "GND" H 6155 4277 50 0000 C CNN
F 2 "" H 6150 4450 50 0001 C CNN
F 3 "" H 6150 4450 50 0001 C CNN
1 6150 4450
-1 0 0 -1
$EndComp
$Comp
L Device:CP C8
U 1 1 5E4CCC18
P 6400 2900
F 0 "C8" V 6655 2900 50 0000 C CNN
F 1 "0.2uf" V 6564 2900 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 6438 2750 50 0001 C CNN
F 3 "~" H 6400 2900 50 0001 C CNN
1 6400 2900
0 1 -1 0
$EndComp
$Comp
L power:+12V #PWR0109
U 1 1 5E4CCC1E
P 6550 2500
F 0 "#PWR0109" H 6550 2350 50 0001 C CNN
F 1 "+12V" H 6565 2673 50 0000 C CNN
F 2 "" H 6550 2500 50 0001 C CNN
F 3 "" H 6550 2500 50 0001 C CNN
1 6550 2500
-1 0 0 -1
$EndComp
Wire Wire Line
6550 2500 6550 2775
Connection ~ 6550 2900
Wire Wire Line
6550 2900 6550 3100
$Comp
L power:GND #PWR0110
U 1 1 5E4CCC27
P 6250 2900
F 0 "#PWR0110" H 6250 2650 50 0001 C CNN
F 1 "GND" H 6255 2727 50 0000 C CNN
F 2 "" H 6250 2900 50 0001 C CNN
F 3 "" H 6250 2900 50 0001 C CNN
1 6250 2900
-1 0 0 -1
$EndComp
Text Notes 4950 2500 0 50 ~ 0
Additional\nOutput Caps\nare used to\nblock auto DC\nnoise.
Wire Wire Line
7475 3300 7475 3600
Wire Wire Line
7475 3900 7475 4200
Wire Wire Line
6750 3300 7475 3300
$Comp
L Device:R R6
U 1 1 5E4CE830
P 7100 2775
F 0 "R6" V 6893 2775 50 0000 C CNN
F 1 "R1M" V 6984 2775 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 7030 2775 50 0001 C CNN
F 3 "~" H 7100 2775 50 0001 C CNN
1 7100 2775
0 1 1 0
$EndComp
$Comp
L Device:R_POT RV1
U 1 1 5E4CEB50
P 7825 2975
F 0 "RV1" H 7755 3021 50 0000 R CNN
F 1 "R_POT" H 7755 2930 50 0000 R CNN
F 2 "Potentiometer_THT:Potentiometer_Bourns_PTV09A-2_Single_Horizontal" H 7825 2975 50 0001 C CNN
F 3 "~" H 7825 2975 50 0001 C CNN
1 7825 2975
-1 0 0 -1
$EndComp
Wire Wire Line
7250 2775 7825 2775
Wire Wire Line
7825 2775 7825 2825
$Comp
L power:GND #PWR0111
U 1 1 5E4CF924
P 7825 3125
F 0 "#PWR0111" H 7825 2875 50 0001 C CNN
F 1 "GND" H 7830 2952 50 0000 C CNN
F 2 "" H 7825 3125 50 0001 C CNN
F 3 "" H 7825 3125 50 0001 C CNN
1 7825 3125
1 0 0 -1
$EndComp
Wire Wire Line
7675 2975 7475 2975
Wire Wire Line
7475 2975 7475 3300
Connection ~ 7475 3300
Wire Wire Line
6950 2775 6550 2775
Connection ~ 6550 2775
Wire Wire Line
6550 2775 6550 2900
Text Notes 7975 2600 0 50 ~ 0
Volume\nCTRL\n(logarithmic type\npot)
$Comp
L Connector:Barrel_Jack J2
U 1 1 5E4D048A
P 4950 3150
F 0 "J2" V 4959 2970 50 0000 R CNN
F 1 "Barrel_Jack" V 4600 3025 50 0000 R CNN
F 2 "Connector_BarrelJack:BarrelJack_Horizontal" H 5000 3110 50 0001 C CNN
F 3 "~" H 5000 3110 50 0001 C CNN
1 4950 3150
0 -1 1 0
$EndComp
Text Notes 4275 2700 0 50 ~ 0
Barrel Plug\nIs Speaker\n(or just solder\nwire direct)
$Comp
L Device:CP C5
U 1 1 5E4D0BE3
P 4600 3450
F 0 "C5" V 4855 3450 50 0000 C CNN
F 1 "100uf" V 4764 3450 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 4638 3300 50 0001 C CNN
F 3 "~" H 4600 3450 50 0001 C CNN
1 4600 3450
0 -1 -1 0
$EndComp
$Comp
L Device:CP C6
U 1 1 5E4D0C8A
P 5300 3450
F 0 "C6" V 5045 3450 50 0000 C CNN
F 1 "100uf" V 5136 3450 50 0000 C CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 5338 3300 50 0001 C CNN
F 3 "~" H 5300 3450 50 0001 C CNN
1 5300 3450
0 1 1 0
$EndComp
Wire Wire Line
5150 3450 5050 3450
Wire Wire Line
4850 3450 4750 3450
$Comp
L Device:CP C4
U 1 1 5E4D137E
P 4325 3600
F 0 "C4" H 4443 3646 50 0000 L CNN
F 1 "0.2uf" H 4443 3555 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 4363 3450 50 0001 C CNN
F 3 "~" H 4325 3600 50 0001 C CNN
1 4325 3600
1 0 0 -1
$EndComp
$Comp
L Device:CP C7
U 1 1 5E4D1407
P 5575 3600
F 0 "C7" H 5693 3646 50 0000 L CNN
F 1 "0.2uf" H 5693 3555 50 0000 L CNN
F 2 "Capacitor_THT:CP_Radial_D5.0mm_P2.50mm" H 5613 3450 50 0001 C CNN
F 3 "~" H 5575 3600 50 0001 C CNN
1 5575 3600
1 0 0 -1
$EndComp
Wire Wire Line
4450 3450 4325 3450
Wire Wire Line
5450 3450 5575 3450
$Comp
L power:GND #PWR0112
U 1 1 5E4D2210
P 4325 3750
F 0 "#PWR0112" H 4325 3500 50 0001 C CNN
F 1 "GND" H 4330 3577 50 0000 C CNN
F 2 "" H 4325 3750 50 0001 C CNN
F 3 "" H 4325 3750 50 0001 C CNN
1 4325 3750
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0113
U 1 1 5E4D226E
P 5575 3750
F 0 "#PWR0113" H 5575 3500 50 0001 C CNN
F 1 "GND" H 5580 3577 50 0000 C CNN
F 2 "" H 5575 3750 50 0001 C CNN
F 3 "" H 5575 3750 50 0001 C CNN
1 5575 3750
1 0 0 -1
$EndComp
Wire Wire Line
4325 3450 4000 3450
Connection ~ 4325 3450
Connection ~ 3650 3450
$Comp
L Device:R R3
U 1 1 5E4D2CE3
P 4775 4050
F 0 "R3" V 4568 4050 50 0000 C CNN
F 1 "R220" V 4659 4050 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 4705 4050 50 0001 C CNN
F 3 "~" H 4775 4050 50 0001 C CNN
1 4775 4050
0 1 1 0
$EndComp
Wire Wire Line
4625 4050 4000 4050
Wire Wire Line
4000 4050 4000 3450
Connection ~ 4000 3450
Wire Wire Line
4000 3450 3650 3450
Text Notes 3800 1250 0 150 ~ 0
16 Watt Amplifier
Wire Wire Line
5575 3450 6150 3450
Connection ~ 5575 3450
Connection ~ 6150 3450
Wire Wire Line
6150 3450 6150 3400
Text Label 3775 3450 0 50 ~ 0
OP1OUT
Text Label 5800 3450 0 50 ~ 0
OP2OUT
Text Label 7225 3300 0 50 ~ 0
OP2NONINV
Text Label 6850 3500 0 50 ~ 0
OP2INV
Text Label 3050 3350 1 50 ~ 0
OP1NONINV
Text Label 2875 3750 2 50 ~ 0
OP1INV
Text Label 2650 3350 0 50 ~ 0
INPUT
Text Label 4750 3450 0 50 ~ 0
SPKOUT1
Text Label 5125 3450 0 50 ~ 0
SPKOUT2
Wire Wire Line
4925 4050 6150 4050
Connection ~ 6150 4050
Wire Wire Line
6150 4050 6150 4025
Text Label 7400 2775 0 50 ~ 0
VOLPOT
$Comp
L Connector:Barrel_Jack J3
U 1 1 5E4D7487
P 6150 1650
F 0 "J3" H 6205 1975 50 0000 C CNN
F 1 "Barrel_Jack" H 6205 1884 50 0000 C CNN
F 2 "Connector_BarrelJack:BarrelJack_Horizontal" H 6200 1610 50 0001 C CNN
F 3 "~" H 6200 1610 50 0001 C CNN
1 6150 1650
1 0 0 -1
$EndComp
$Comp
L power:+12V #PWR0114
U 1 1 5E4D762B
P 6450 1550
F 0 "#PWR0114" H 6450 1400 50 0001 C CNN
F 1 "+12V" H 6465 1723 50 0000 C CNN
F 2 "" H 6450 1550 50 0001 C CNN
F 3 "" H 6450 1550 50 0001 C CNN
1 6450 1550
1 0 0 -1
$EndComp
$Comp
L power:GND #PWR0115
U 1 1 5E4D7696
P 6450 1750
F 0 "#PWR0115" H 6450 1500 50 0001 C CNN
F 1 "GND" H 6455 1577 50 0000 C CNN
F 2 "" H 6450 1750 50 0001 C CNN
F 3 "" H 6450 1750 50 0001 C CNN
1 6450 1750
1 0 0 -1
$EndComp
$EndSCHEMATC

BIN
Car_Stereo_Replacement/pics/DSCN2610.JPG View File

Before After
Width: 800  |  Height: 600  |  Size: 148 KiB

BIN
Car_Stereo_Replacement/pics/DSCN2611.JPG View File

Before After
Width: 800  |  Height: 600  |  Size: 143 KiB

BIN
Car_Stereo_Replacement/pics/DSCN2612.JPG View File

Before After
Width: 800  |  Height: 600  |  Size: 122 KiB

+ 1
- 1
FlammableGasSensor/docs/14.log View File

@ -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) 17 JAN 2020 20:54
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 16 FEB 2020 23:20
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.

BIN
FlammableGasSensor/docs/14.pdf View File


+ 33
- 0
FlammableGasSensor/docs/15.aux View File

@ -0,0 +1,33 @@
\relax
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{2}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Gas Sensor Tuning}{2}}
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Application Note resistance table\relax }}{3}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.1.1}Fixed resistors}{3}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.1.2}Gas Sensor Power Usage}{3}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.1.3}PCB Layout}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Switcher}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}Enclosure}{3}}
\@writefile{toc}{\contentsline {section}{\numberline {3}CAD Layout}{4}}
\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces Freecad has the ability to pull in boards from Kicad. Even without step file dependencies you can see how the PCB will fit a case\relax }}{4}}
\@writefile{toc}{\contentsline {section}{\numberline {4}PCB Assembly}{4}}
\citation{Schram}
\citation{Pickard}
\citation{EEVBlog}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Place Sensors on the Floor}{5}}
\@writefile{toc}{\contentsline {section}{\numberline {5}In Consideration of ``Hazardous Locations''}{5}}
\citation{Fuchs}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}What Class is my Company?}{6}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.1.1}Encapsulated Fuses}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Existing Gas Detectors}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {7}Switching Power Supply}{6}}
\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces Prototype\relax }}{7}}
\@writefile{toc}{\contentsline {section}{\numberline {8}Connecting the Sensor by a Wire}{7}}
\bibcite{Schram}{1}
\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces A simple solution.\relax }}{8}}
\@writefile{toc}{\contentsline {section}{\numberline {9}Calibration}{8}}
\@writefile{toc}{\contentsline {section}{\numberline {10}References}{8}}
\bibcite{Pickard}{2}
\bibcite{EEVBlog}{3}
\bibcite{Fuchs}{4}
\bibcite{}{5}

+ 410
- 0
FlammableGasSensor/docs/15.log View File

@ -0,0 +1,410 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 16 FEB 2020 23:21
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
FlammableGasSensor/docs/15.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/F
lammableGasSensor/docs/15.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 67.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@ContinuedFloat=\count88
)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2010/09/12 v5.6 Page Geometry
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
\Gm@cnth=\count89
\Gm@cntv=\count90
\c@Gm@tempcnt=\count91
\Gm@bindingoffset=\dimen112
\Gm@wd@mp=\dimen113
\Gm@odd@mp=\dimen114
\Gm@even@mp=\dimen115
\Gm@layoutwidth=\dimen116
\Gm@layoutheight=\dimen117
\Gm@layouthoffset=\dimen118
\Gm@layoutvoffset=\dimen119
\Gm@dimlist=\toks15
) (./15.aux)
\openout1 = `15.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count92
\scratchdimen=\dimen120
\scratchbox=\box26
\nofMPsegments=\count93
\nofMParguments=\count94
\everyMPshowfont=\toks16
\MPscratchCnt=\count95
\MPscratchDim=\dimen121
\MPnumerator=\count96
\makeMPintoPDFobject=\count97
\everyMPtoPDFconversion=\toks17
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)))
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
38.
Package grfext Info: Graphics extension search list:
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 456.
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
Package caption Info: Begin \AtBeginDocument code.
Package caption Info: End \AtBeginDocument code.
*geometry* detected driver: dvips
*geometry* verbose mode - [ preamble ] result:
* driver: dvips
* paper: custom
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* vratio: 1:1
* modes:
* h-part:(L,W,R)=(54.2025pt, 325.215pt, 54.2025pt)
* v-part:(T,H,B)=(79.49689pt, 491.43622pt, 79.49689pt)
* \paperwidth=433.62pt
* \paperheight=650.43pt
* \textwidth=325.215pt
* \textheight=491.43622pt
* \oddsidemargin=-18.06749pt
* \evensidemargin=-18.06749pt
* \topmargin=-29.7731pt
* \headheight=12.0pt
* \headsep=25.0pt
* \topskip=11.0pt
* \footskip=30.0pt
* \marginparwidth=59.0pt
* \marginparsep=10.0pt
* \columnsep=10.0pt
* \skip\footins=10.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidefalse
* \@mparswitchfalse
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 15.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 15.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 15.
(./15.toc
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 3.
)
\tf@toc=\write3
\openout3 = `15.toc'.
[1
Non-PDF special ignored!
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 28.
(/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 28.
[2]
<../pics/resistances.png, id=14, 548.80031pt x 152.82094pt>
File: ../pics/resistances.png Graphic file (type png)
<use ../pics/resistances.png>
Package pdftex.def Info: ../pics/resistances.png used on input line 44.
(pdftex.def) Requested size: 301.8411pt x 84.05176pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 45.
See the caption package documentation for explanation.
[3 <../pics/resistances.png (PNG copy)>]
<../pics/kicadstepup1.jpg, id=18, 561.59813pt x 422.32782pt>
File: ../pics/kicadstepup1.jpg Graphic file (type jpg)
<use ../pics/kicadstepup1.jpg>
Package pdftex.def Info: ../pics/kicadstepup1.jpg used on input line 71.
(pdftex.def) Requested size: 280.79837pt x 211.16339pt.
[4 <../pics/kicadstepup1.jpg>]
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 90.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 90.
[5] [6]
<../pics/DSCN2209.JPG, id=32, 803.0pt x 602.25pt>
File: ../pics/DSCN2209.JPG Graphic file (type jpg)
<use ../pics/DSCN2209.JPG>
Package pdftex.def Info: ../pics/DSCN2209.JPG used on input line 113.
(pdftex.def) Requested size: 240.90186pt x 180.67639pt.
Underfull \hbox (badness 10000) in paragraph at lines 119--121
[]
[7 <../pics/DSCN2209.JPG>] <../pics/DSCN2193.JPG, id=37, 803.0pt x 602.25pt>
File: ../pics/DSCN2193.JPG Graphic file (type jpg)
<use ../pics/DSCN2193.JPG>
Package pdftex.def Info: ../pics/DSCN2193.JPG used on input line 123.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Underfull \hbox (badness 1337) in paragraph at lines 141--143
\OT1/cmr/m/n/10.95 first edi-tion - 1991, Na-tional Fire Pro-tec-tion As-so-ci-
a-tion
[]
[8 <../pics/DSCN2193.JPG>]
Underfull \hbox (badness 2707) in paragraph at lines 145--147
[]\OT1/cmr/m/n/10.95 Murphy Pickard, \OT1/cmr/m/it/10.95 Surge Stop-per IC Sim-
pli-fies De-sign of
[]
Underfull \hbox (badness 1248) in paragraph at lines 145--147
\OT1/cmr/m/it/10.95 In-trin-sic Safety Bar-rier for Elec-tron-ics Des-tined for
Haz-
[]
Underfull \hbox (badness 10000) in paragraph at lines 145--147
\OT1/cmr/m/n/10.95 2009, https://www.analog.com/en/technical-articles/surge-
[]
Underfull \hbox (badness 10000) in paragraph at lines 145--147
\OT1/cmr/m/n/10.95 stopper-ic-simplifies-design-of-intrinsic-safety-barrier-for
-
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
[]\OT1/cmr/m/n/10.95 Various, \OT1/cmr/m/it/10.95 Elec-tron-ics De-sign for Ex-
plo-
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
\OT1/cmr/m/it/10.95 sive En-viri-on-ment\OT1/cmr/m/n/10.95 , EEVBlog Fo-rums,
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
\OT1/cmr/m/n/10.95 https://www.eevblog.com/forum/chat/electronics-
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
\OT1/cmr/m/n/10.95 design-for-explosive-environment/?all,
[]
Overfull \hbox (154.94302pt too wide) in paragraph at lines 149--151
\OT1/cmr/m/n/10.95 http://web.archive.org/web/20190410172437/http://www.eevblog
.com/forum/chat/electronics-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
[]\OT1/cmr/m/n/10.95 Various, \OT1/cmr/m/it/10.95 Ex-plo-sion Pro-tec-tion and
In-trin-sic
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/it/10.95 Safety 101\OT1/cmr/m/n/10.95 , Pep-perl Fuchs, https://www.
pepperl-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 fuchs.com/usa/downloads[]USA/explosion-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 protection-and-intrinsic-safety-101.pdf,
[]
Overfull \hbox (21.99161pt too wide) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 http://web.archive.org/web/20190721221654/https://www.pepper
l-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 fuchs.com/usa/downloads[]USA/explosion-protection-and-
[]
[9] (./15.aux) )
Here is how much of TeX's memory you used:
3570 strings out of 494945
54282 string characters out of 6181032
119070 words of memory out of 5000000
6834 multiletter control sequences out of 15000+600000
10376 words of font info for 36 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,1259b,212s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/c
mbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></u
sr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texliv
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-
dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/typ
e1/public/amsfonts/cm/cmti10.pfb>
Output written on 15.pdf (9 pages, 515174 bytes).
PDF statistics:
74 PDF objects out of 1000 (max. 8388607)
49 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)

BIN
FlammableGasSensor/docs/15.pdf View File


+ 164
- 0
FlammableGasSensor/docs/15.tex View File

@ -0,0 +1,164 @@
\documentclass[11pt]{article}
%Gummi|065|=)
\usepackage{graphicx}
\usepackage{caption}
\usepackage{xcolor}
\usepackage[vcentering,dvips]{geometry}
\geometry{papersize={6in,9in},total={4.5in,6.8in}}
\title{\textbf{Flammable Gas Sensor}}
\author{Steak Electronics}
\date{}
\begin{document}
\maketitle
\tableofcontents
\textcolor{green!60!blue!70}{
\section{Overview}}
Shop needs a flammable gas sensor, for safety.
\textcolor{green!60!blue!70}{
\section{Chip Hunting}}
I'm looking at the following:
\begin{itemize}
\item SGAS711
\item 200K fixed resistor
\item 1M potentiometer
\item Arduino Nano (for speed)
\item Ample Power Supply They are recommending 7 Volts for the heater. So, one rated for 1A.
\item led notifiers
\item Long cables to separate sensor from device. (optional)
\end{itemize}
\textcolor{green!60!blue!70}{
\subsection{Gas Sensor Tuning}}
The flammable gas sensor has different sensitivities for different gases (see data sheet, Figure 8). I'm going to need to test for something specific, i.e. if the shop needs to watch out for acetone, I should test acetone. Of course, if enough of a flammable gas is in the air, it will set it off no matter what, but I should focus on what the danger is for calibrating.
Based on the resistance chart, I'm going to use a fixed 200K and a 1M pot. Pots are to be avoided, but here we need to calibrate over time. For the response of the v divider, the sensor is not linear, but closer (though not quite) logarithmic. So what I will do, is have to use some math on the micro, and use the formula they give in the Datasheet, to get a logarithmic output that appears linear (figure 5). For my needs, it is good enough.
\includegraphics[scale=0.55]{../pics/resistances.png}
\captionof{figure}{Application Note resistance table}
\textcolor{green!60!blue!70}{
\subsubsection{Fixed resistors}}
If these sensors are consistent enough, possibly I could use fixed resistors later.
\textcolor{green!60!blue!70}{
\subsubsection{Gas Sensor Power Usage}}
Rated at 900mW for 7V, so about 150mA (128mA). I know from prior experience these things heat up, so we need plenty of power.
\textcolor{green!60!blue!70}{
\subsubsection{PCB Layout}}
The gas sensor must be sideways, as there is excessive dust in the shop so, the holes will be on the side. I will do a 90 degree edge mount pcb.
\textcolor{green!60!blue!70}{
\subsection{Switcher}}
STS1024S6V5 Seems like a fair option for now. Output is 6.5 volts which is enough. Will use a module. Need to make a footprint.
\textcolor{green!60!blue!70}{
\subsection{Enclosure}}
We need a box that is tall enough to be a cube. Also want square, not rectangular. I plan to have the leds light from the back of the pcb. The pcb will be the top cover / front. The top cover / front will be the box, put on its side, so dust doesn't collect on the leds. Need a cube.
\textcolor{green!60!blue!70}{
\section{CAD Layout}}
I found that Kicad step up in Freecad is helpful for making sure your board will fit the enclosure. A very helpful addition to an arsenal. Although I didn't test it until after rev 1.
\begin{center}
\includegraphics[scale=0.5]{../pics/kicadstepup1.jpg}
\captionof{figure}{Freecad has the ability to pull in boards from Kicad. Even without step file dependencies you can see how the PCB will fit a case}
\end{center}
\textcolor{green!60!blue!70}{
\section{PCB Assembly}}
Most of the board came out ok. Power section is routed right. I need to move the barrel plug further out of the board, so it fits with the case better. The one issue I overlooked
was the A6, and A7 pins, which have no digital circuitry behind them. So I have some pins that can't light up. I'll have to bodge wires in, or respin the board. Simple fix. Oversight on my part, that's all. I assumed GPIO on all pins, but here are two analog pins that can't function as GPIO.
\vspace{0.2in}
I'll use D7, and D8. Looks like I also missed the wire from VSenseOut of the Gas sensor to the board. So that will go to A6. Technically, I missed a net on the schematic.
\vspace{0.2in}
One other fail of the enclosure, is that the Arduino nano won't fit with female pin headers holding it in. This means, instead of easily being socketable, I'll have to solder the board in. Not a deal-breaker, but I would prefer the nano to be easily removable. I don't like soldering it on the board. In the future, I need to find a taller enclosure.
\textcolor{green!60!blue!70}{
\subsection{Place Sensors on the Floor}}
Being that at least some flammable gases are heavier than air\footnote{Reference: Plumbing, Rex Cauldwell, 2006, page 137 - Gas Heater Awareness - Great book.}(in our case, they are, your situation may vary) it is logical for us to put them on the floor. There are no rules, though so why not both? It would be interesting to see the LEDs responding differently at say waist height, and at your feet. That would indicate different gas in the air.
\textcolor{green!60!blue!70}{
\section{In Consideration of ``Hazardous Locations''}}
Up to this point, I have not paid any attention to official rules or standards regarding safety\footnote{Our environment is only dangerous when there is a gas leak (extremely rarely), so we are the least strict of the hazardous location types. In the US, this is Class 1, Division 2. Gas (class 1) can be present, but is not normally (division 2). We regularly have dust in our air, however it is silica and therefore inert / not explosive.}. The search term for a device like this that may be in an environment that can dangerous is \textbf{hazardous locations}. There are a few books on the subject I found (specifically for electronics in hazardous locations). I downloaded the PDF of a few online, but was not impressed with the writing quality enough to buy them with the exception of \emph{Electrical Installations in Hazardous Locations} by Peter Schram \cite{Schram}. There is also a succint Application note which covers a general overview in Linear Technology Magazine September 2009, also accessible online \cite{Pickard}. As a launchoff point, some discussion can also be found online in various forums \cite{EEVBlog}.
\textcolor{green!60!blue!70}{
\subsection{What Class is my Company?}}
Based on \cite{Fuchs}, we are a Class 1, Division 2. With the Class 1, being Group D, as we would have leaks of those gases. It's possible that certain areas (inside the reactors for example) may be a higher class.
\textcolor{green!60!blue!70}{
\subsubsection{Encapsulated Fuses}}
Encapsulated fuses are also referred to as UL913 online (e.g. in stores). UL913 is UL's \emph{Standard for Intrinsically Safe Apparatus and Associated Apparatus for Use in Class I, II, III, Division 1, Hazardous (Classified) Locations}. Another term to search for is \emph{intrinsically safe} on the parametric search for fuses. The cheapest intrinsically safe fuse in 1 quantity on Digikey is currently \$4.50. Ouch. Safety requirements sure help some people, just not the buyers. I see a market, for a blobbed fuse at \$1.
\textcolor{green!60!blue!70}{
\section{Existing Gas Detectors}}
We have already purchased a commercial gas detector. This particular model is designed so that the control box is kept separated from the sensor. The sensor has a 30 foot cable. The control box is installed in the ceiling. \footnote{See in the git: teardowns 2019, the RKI instruments combustible gas sensor.}
\textcolor{green!60!blue!70}{
\section{Switching Power Supply}}
In search of a low part count, simple to deploy switcher I came across this in my rss (https://hackaday.com/2019/08/11/switching-over-to-smps-for-efficiency/). The LM2576 is easy enough to use instead of a lm317, and requires only a diode and inductor more. Here I need more power efficiency from the 12V input so that should work. A simple go-to switcher.
\begin{center}
\includegraphics[scale=0.3]{../pics/DSCN2209.JPG}
\captionof{figure}{Prototype}
\end{center}
\textcolor{green!60!blue!70}{
\section{Connecting the Sensor by a Wire}}
Upon showing this to my family co. who wanted it, they mentioned they wanted a cable going to the sensor. I looked at the RKI Instruments flammable gas sensor, which we have a few of, and these used a 22 Gauge 4 conductor cable. That is \$50 for 100' of cable. A more DIY solution is to grab some 4 pair CAT5E or CAT6 and connect two wires to each screw terminal on the board. That is what I will do. Saves money, and should work no issue, up to the 30 feet max that I need. Any small box can be used for the sensors. I might build a pcb mount for those, or perhaps just some hot glue. Depends on what works the best, while being efficient.
\\
\begin{center}
\includegraphics[scale=0.4]{../pics/DSCN2193.JPG}
\captionof{figure}{A simple solution.}
\end{center}
\textcolor{green!60!blue!70}{
\section{Calibration}}
This is the real task of this project. Making a gas sensor is easy, calibrating it, is another step. Thankfully, some companies sell calibration tanks. For calibration you might calibrate on the LEL or the lowest acceptable level before an alarm should be fired off for a given chemical.
\textcolor{green!60!blue!70}{
\section{References}}
\begin{thebibliography}{99}
\bibitem{Schram}
Peter Schram,
\emph{Electrical Installations in Hazardous Locations}, first edition - 1991, National Fire Protection Association (NFPA), ISBN-13: 9780877653561.
\bibitem{Pickard}
Murphy Pickard,
\emph{Surge Stopper IC Simplifies Design of Intrinsic Safety Barrier for Electronics Destined for Hazardous Environments}, Linear Technology Magazine September 2009, https://www.analog.com/en/technical-articles/surge-stopper-ic-simplifies-design-of-intrinsic-safety-barrier-for-electronics.html .
\bibitem{EEVBlog}
Various,
\emph{Electronics Design for Explosive Envirionment}, EEVBlog Forums, https://www.eevblog.com/forum/chat/electronics-design-for-explosive-environment/?all, http://web.archive.org/web/20190410172437/http://www.eevblog.com/forum/chat/electronics-design-for-explosive-environment/?all.
\bibitem{Fuchs}
Various,
\emph{Explosion Protection and Intrinsic Safety 101}, Pepperl Fuchs, https://www.pepperl-fuchs.com/usa/downloads\_USA/explosion-protection-and-intrinsic-safety-101.pdf, http://web.archive.org/web/20190721221654/https://www.pepperl-fuchs.com/usa/downloads\_USA/explosion-protection-and-intrinsic-safety-101.pdf.
\bibitem{}
\end{thebibliography}
\end{document}

+ 164
- 0
FlammableGasSensor/docs/15.tex~ View File

@ -0,0 +1,164 @@
\documentclass[11pt]{article}
%Gummi|065|=)
\usepackage{graphicx}
\usepackage{caption}
\usepackage{xcolor}
\usepackage[vcentering,dvips]{geometry}
\geometry{papersize={6in,9in},total={4.5in,6.8in}}
\title{\textbf{Flammable Gas Sensor}}
\author{Steak Electronics}
\date{}
\begin{document}
\maketitle
\tableofcontents
\textcolor{green!60!blue!70}{
\section{Overview}}
Shop needs a flammable gas sensor, for safety.
\textcolor{green!60!blue!70}{
\section{Chip Hunting}}
I'm looking at the following:
\begin{itemize}
\item SGAS711
\item 200K fixed resistor
\item 1M potentiometer
\item Arduino Nano (for speed)
\item Ample Power Supply They are recommending 7 Volts for the heater. So, one rated for 1A.
\item led notifiers
\item Long cables to separate sensor from device. (optional)
\end{itemize}
\textcolor{green!60!blue!70}{
\subsection{Gas Sensor Tuning}}
The flammable gas sensor has different sensitivities for different gases (see data sheet, Figure 8). I'm going to need to test for something specific, i.e. if the shop needs to watch out for acetone, I should test acetone. Of course, if enough of a flammable gas is in the air, it will set it off no matter what, but I should focus on what the danger is for calibrating.
Based on the resistance chart, I'm going to use a fixed 200K and a 1M pot. Pots are to be avoided, but here we need to calibrate over time. For the response of the v divider, the sensor is not linear, but closer (though not quite) logarithmic. So what I will do, is have to use some math on the micro, and use the formula they give in the Datasheet, to get a logarithmic output that appears linear (figure 5). For my needs, it is good enough.
\includegraphics[scale=0.65]{../pics/resistances.png}
\captionof{figure}{Application Note resistance table}
\textcolor{green!60!blue!70}{
\subsubsection{Fixed resistors}}
If these sensors are consistent enough, possibly I could use fixed resistors later.
\textcolor{green!60!blue!70}{
\subsubsection{Gas Sensor Power Usage}}
Rated at 900mW for 7V, so about 150mA (128mA). I know from prior experience these things heat up, so we need plenty of power.
\textcolor{green!60!blue!70}{
\subsubsection{PCB Layout}}
The gas sensor must be sideways, as there is excessive dust in the shop so, the holes will be on the side. I will do a 90 degree edge mount pcb.
\textcolor{green!60!blue!70}{
\subsection{Switcher}}
STS1024S6V5 Seems like a fair option for now. Output is 6.5 volts which is enough. Will use a module. Need to make a footprint.
\textcolor{green!60!blue!70}{
\subsection{Enclosure}}
We need a box that is tall enough to be a cube. Also want square, not rectangular. I plan to have the leds light from the back of the pcb. The pcb will be the top cover / front. The top cover / front will be the box, put on its side, so dust doesn't collect on the leds. Need a cube.
\textcolor{green!60!blue!70}{
\section{CAD Layout}}
I found that Kicad step up in Freecad is helpful for making sure your board will fit the enclosure. A very helpful addition to an arsenal. Although I didn't test it until after rev 1.
\begin{center}
\includegraphics[scale=0.5]{../pics/kicadstepup1.jpg}
\captionof{figure}{Freecad has the ability to pull in boards from Kicad. Even without step file dependencies you can see how the PCB will fit a case}
\end{center}
\textcolor{green!60!blue!70}{
\section{PCB Assembly}}
Most of the board came out ok. Power section is routed right. I need to move the barrel plug further out of the board, so it fits with the case better. The one issue I overlooked
was the A6, and A7 pins, which have no digital circuitry behind them. So I have some pins that can't light up. I'll have to bodge wires in, or respin the board. Simple fix. Oversight on my part, that's all. I assumed GPIO on all pins, but here are two analog pins that can't function as GPIO.
\vspace{0.2in}
I'll use D7, and D8. Looks like I also missed the wire from VSenseOut of the Gas sensor to the board. So that will go to A6. Technically, I missed a net on the schematic.
\vspace{0.2in}
One other fail of the enclosure, is that the Arduino nano won't fit with female pin headers holding it in. This means, instead of easily being socketable, I'll have to solder the board in. Not a deal-breaker, but I would prefer the nano to be easily removable. I don't like soldering it on the board. In the future, I need to find a taller enclosure.
\textcolor{green!60!blue!70}{
\subsection{Place Sensors on the Floor}}
Being that at least some flammable gases are heavier than air\footnote{Reference: Plumbing, Rex Cauldwell, 2006, page 137 - Gas Heater Awareness - Great book.}(in our case, they are, your situation may vary) it is logical for us to put them on the floor. There are no rules, though so why not both? It would be interesting to see the LEDs responding differently at say waist height, and at your feet. That would indicate different gas in the air.
\textcolor{green!60!blue!70}{
\section{In Consideration of ``Hazardous Locations''}}
Up to this point, I have not paid any attention to official rules or standards regarding safety\footnote{Our environment is only dangerous when there is a gas leak (extremely rarely), so we are the least strict of the hazardous location types. In the US, this is Class 1, Division 2. Gas (class 1) can be present, but is not normally (division 2). We regularly have dust in our air, however it is silica and therefore inert / not explosive.}. The search term for a device like this that may be in an environment that can dangerous is \textbf{hazardous locations}. There are a few books on the subject I found (specifically for electronics in hazardous locations). I downloaded the PDF of a few online, but was not impressed with the writing quality enough to buy them with the exception of \emph{Electrical Installations in Hazardous Locations} by Peter Schram \cite{Schram}. There is also a succint Application note which covers a general overview in Linear Technology Magazine September 2009, also accessible online \cite{Pickard}. As a launchoff point, some discussion can also be found online in various forums \cite{EEVBlog}.
\textcolor{green!60!blue!70}{
\subsection{What Class is my Company?}}
Based on \cite{Fuchs}, we are a Class 1, Division 2. With the Class 1, being Group D, as we would have leaks of those gases. It's possible that certain areas (inside the reactors for example) may be a higher class.
\textcolor{green!60!blue!70}{
\subsubsection{Encapsulated Fuses}}
Encapsulated fuses are also referred to as UL913 online (e.g. in stores). UL913 is UL's \emph{Standard for Intrinsically Safe Apparatus and Associated Apparatus for Use in Class I, II, III, Division 1, Hazardous (Classified) Locations}. Another term to search for is \emph{intrinsically safe} on the parametric search for fuses. The cheapest intrinsically safe fuse in 1 quantity on Digikey is currently \$4.50. Ouch. Safety requirements sure help some people, just not the buyers. I see a market, for a blobbed fuse at \$1.
\textcolor{green!60!blue!70}{
\section{Existing Gas Detectors}}
We have already purchased a commercial gas detector. This particular model is designed so that the control box is kept separated from the sensor. The sensor has a 30 foot cable. The control box is installed in the ceiling. \footnote{See in the git: teardowns 2019, the RKI instruments combustible gas sensor.}
\textcolor{green!60!blue!70}{
\section{Switching Power Supply}}
In search of a low part count, simple to deploy switcher I came across this in my rss (https://hackaday.com/2019/08/11/switching-over-to-smps-for-efficiency/). The LM2576 is easy enough to use instead of a lm317, and requires only a diode and inductor more. Here I need more power efficiency from the 12V input so that should work. A simple go-to switcher.
\begin{center}
\includegraphics[scale=0.3]{../pics/DSCN2209.JPG}
\captionof{figure}{Prototype}
\end{center}
\textcolor{green!60!blue!70}{
\section{Connecting the Sensor by a Wire}}
Upon showing this to my family co. who wanted it, they mentioned they wanted a cable going to the sensor. I looked at the RKI Instruments flammable gas sensor, which we have a few of, and these used a 22 Gauge 4 conductor cable. That is \$50 for 100' of cable. A more DIY solution is to grab some 4 pair CAT5E or CAT6 and connect two wires to each screw terminal on the board. That is what I will do. Saves money, and should work no issue, up to the 30 feet max that I need. Any small box can be used for the sensors. I might build a pcb mount for those, or perhaps just some hot glue. Depends on what works the best, while being efficient.
\\
\begin{center}
\includegraphics[scale=0.4]{../pics/DSCN2193.JPG}
\captionof{figure}{A simple solution.}
\end{center}
\textcolor{green!60!blue!70}{
\section{Calibration}}
This is the real task of this project. Making a gas sensor is easy, calibrating it, is another step. Thankfully, some companies sell calibration tanks. For calibration you might calibrate on the LEL or the lowest acceptable level before an alarm should be fired off for a given chemical.
\textcolor{green!60!blue!70}{
\section{References}}
\begin{thebibliography}{99}
\bibitem{Schram}
Peter Schram,
\emph{Electrical Installations in Hazardous Locations}, first edition - 1991, National Fire Protection Association (NFPA), ISBN-13: 9780877653561.
\bibitem{Pickard}
Murphy Pickard,
\emph{Surge Stopper IC Simplifies Design of Intrinsic Safety Barrier for Electronics Destined for Hazardous Environments}, Linear Technology Magazine September 2009, https://www.analog.com/en/technical-articles/surge-stopper-ic-simplifies-design-of-intrinsic-safety-barrier-for-electronics.html .
\bibitem{EEVBlog}
Various,
\emph{Electronics Design for Explosive Envirionment}, EEVBlog Forums, https://www.eevblog.com/forum/chat/electronics-design-for-explosive-environment/?all, http://web.archive.org/web/20190410172437/http://www.eevblog.com/forum/chat/electronics-design-for-explosive-environment/?all.
\bibitem{Fuchs}
Various,
\emph{Explosion Protection and Intrinsic Safety 101}, Pepperl Fuchs, https://www.pepperl-fuchs.com/usa/downloads\_USA/explosion-protection-and-intrinsic-safety-101.pdf, http://web.archive.org/web/20190721221654/https://www.pepperl-fuchs.com/usa/downloads\_USA/explosion-protection-and-intrinsic-safety-101.pdf.
\bibitem{}
\end{thebibliography}
\end{document}

+ 19
- 0
FlammableGasSensor/docs/15.toc View File

@ -0,0 +1,19 @@
\contentsline {section}{\numberline {1}Overview}{2}
\contentsline {section}{\numberline {2}Chip Hunting}{2}
\contentsline {subsection}{\numberline {2.1}Gas Sensor Tuning}{2}
\contentsline {subsubsection}{\numberline {2.1.1}Fixed resistors}{3}
\contentsline {subsubsection}{\numberline {2.1.2}Gas Sensor Power Usage}{3}
\contentsline {subsubsection}{\numberline {2.1.3}PCB Layout}{3}
\contentsline {subsection}{\numberline {2.2}Switcher}{3}
\contentsline {subsection}{\numberline {2.3}Enclosure}{3}
\contentsline {section}{\numberline {3}CAD Layout}{4}
\contentsline {section}{\numberline {4}PCB Assembly}{4}
\contentsline {subsection}{\numberline {4.1}Place Sensors on the Floor}{5}
\contentsline {section}{\numberline {5}In Consideration of ``Hazardous Locations''}{5}
\contentsline {subsection}{\numberline {5.1}What Class is my Company?}{6}
\contentsline {subsubsection}{\numberline {5.1.1}Encapsulated Fuses}{6}
\contentsline {section}{\numberline {6}Existing Gas Detectors}{6}
\contentsline {section}{\numberline {7}Switching Power Supply}{6}
\contentsline {section}{\numberline {8}Connecting the Sensor by a Wire}{7}
\contentsline {section}{\numberline {9}Calibration}{8}
\contentsline {section}{\numberline {10}References}{8}

+ 32
- 0
FlammableGasSensor/docs/16.aux View File

@ -0,0 +1,32 @@
\relax
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{2}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Chip Hunting}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Gas Sensor Tuning}{2}}
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Application Note resistance table\relax }}{3}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.1.1}Fixed resistors}{3}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.1.2}Gas Sensor Power Usage}{3}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {2.1.3}PCB Layout}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2}Switcher}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3}Enclosure}{3}}
\@writefile{toc}{\contentsline {section}{\numberline {3}CAD Layout}{4}}
\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces Freecad has the ability to pull in boards from Kicad. Even without step file dependencies you can see how the PCB will fit a case\relax }}{4}}
\@writefile{toc}{\contentsline {section}{\numberline {4}PCB Assembly}{4}}
\citation{Schram}
\citation{Pickard}
\citation{EEVBlog}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Place Sensors on the Floor}{5}}
\@writefile{toc}{\contentsline {section}{\numberline {5}In Consideration of ``Hazardous Locations''}{5}}
\citation{Fuchs}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}What Class is my Company?}{6}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.1.1}Encapsulated Fuses}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Existing Gas Detectors}{6}}
\@writefile{toc}{\contentsline {section}{\numberline {7}Switching Power Supply}{6}}
\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces Prototype\relax }}{7}}
\@writefile{toc}{\contentsline {section}{\numberline {8}Connecting the Sensor by a Wire}{7}}
\bibcite{Schram}{1}
\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces A simple solution.\relax }}{8}}
\@writefile{toc}{\contentsline {section}{\numberline {9}Calibration}{8}}
\@writefile{toc}{\contentsline {section}{\numberline {10}References}{8}}
\bibcite{Pickard}{2}
\bibcite{EEVBlog}{3}
\bibcite{Fuchs}{4}

+ 410
- 0
FlammableGasSensor/docs/16.log View File

@ -0,0 +1,410 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 18 FEB 2020 23:04
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
FlammableGasSensor/docs/16.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/F
lammableGasSensor/docs/16.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 67.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@ContinuedFloat=\count88
)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2010/09/12 v5.6 Page Geometry
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
\Gm@cnth=\count89
\Gm@cntv=\count90
\c@Gm@tempcnt=\count91
\Gm@bindingoffset=\dimen112
\Gm@wd@mp=\dimen113
\Gm@odd@mp=\dimen114
\Gm@even@mp=\dimen115
\Gm@layoutwidth=\dimen116
\Gm@layoutheight=\dimen117
\Gm@layouthoffset=\dimen118
\Gm@layoutvoffset=\dimen119
\Gm@dimlist=\toks15
) (./16.aux)
\openout1 = `16.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 13.
LaTeX Font Info: ... okay on input line 13.
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count92
\scratchdimen=\dimen120
\scratchbox=\box26
\nofMPsegments=\count93
\nofMParguments=\count94
\everyMPshowfont=\toks16
\MPscratchCnt=\count95
\MPscratchDim=\dimen121
\MPnumerator=\count96
\makeMPintoPDFobject=\count97
\everyMPtoPDFconversion=\toks17
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)))
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
38.
Package grfext Info: Graphics extension search list:
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 456.
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
Package caption Info: Begin \AtBeginDocument code.
Package caption Info: End \AtBeginDocument code.
*geometry* detected driver: dvips
*geometry* verbose mode - [ preamble ] result:
* driver: dvips
* paper: custom
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* vratio: 1:1
* modes:
* h-part:(L,W,R)=(54.2025pt, 325.215pt, 54.2025pt)
* v-part:(T,H,B)=(79.49689pt, 491.43622pt, 79.49689pt)
* \paperwidth=433.62pt
* \paperheight=650.43pt
* \textwidth=325.215pt
* \textheight=491.43622pt
* \oddsidemargin=-18.06749pt
* \evensidemargin=-18.06749pt
* \topmargin=-29.7731pt
* \headheight=12.0pt
* \headsep=25.0pt
* \topskip=11.0pt
* \footskip=30.0pt
* \marginparwidth=59.0pt
* \marginparsep=10.0pt
* \columnsep=10.0pt
* \skip\footins=10.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidefalse
* \@mparswitchfalse
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 15.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 15.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 15.
(./16.toc
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 3.
)
\tf@toc=\write3
\openout3 = `16.toc'.
[1
Non-PDF special ignored!
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 28.
(/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 28.
[2]
<../pics/resistances.png, id=14, 548.80031pt x 152.82094pt>
File: ../pics/resistances.png Graphic file (type png)
<use ../pics/resistances.png>
Package pdftex.def Info: ../pics/resistances.png used on input line 44.
(pdftex.def) Requested size: 301.8411pt x 84.05176pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 45.
See the caption package documentation for explanation.
[3 <../pics/resistances.png (PNG copy)>]
<../pics/kicadstepup1.jpg, id=18, 561.59813pt x 422.32782pt>
File: ../pics/kicadstepup1.jpg Graphic file (type jpg)
<use ../pics/kicadstepup1.jpg>
Package pdftex.def Info: ../pics/kicadstepup1.jpg used on input line 71.
(pdftex.def) Requested size: 280.79837pt x 211.16339pt.
[4 <../pics/kicadstepup1.jpg>]
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 90.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 90.
[5] [6]
<../pics/DSCN2209.JPG, id=32, 803.0pt x 602.25pt>
File: ../pics/DSCN2209.JPG Graphic file (type jpg)
<use ../pics/DSCN2209.JPG>
Package pdftex.def Info: ../pics/DSCN2209.JPG used on input line 113.
(pdftex.def) Requested size: 240.90186pt x 180.67639pt.
Underfull \hbox (badness 10000) in paragraph at lines 119--121
[]
[7 <../pics/DSCN2209.JPG>] <../pics/DSCN2193.JPG, id=37, 803.0pt x 602.25pt>
File: ../pics/DSCN2193.JPG Graphic file (type jpg)
<use ../pics/DSCN2193.JPG>
Package pdftex.def Info: ../pics/DSCN2193.JPG used on input line 123.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Underfull \hbox (badness 1337) in paragraph at lines 141--143
\OT1/cmr/m/n/10.95 first edi-tion - 1991, Na-tional Fire Pro-tec-tion As-so-ci-
a-tion
[]
[8 <../pics/DSCN2193.JPG>]
Underfull \hbox (badness 2707) in paragraph at lines 145--147
[]\OT1/cmr/m/n/10.95 Murphy Pickard, \OT1/cmr/m/it/10.95 Surge Stop-per IC Sim-
pli-fies De-sign of
[]
Underfull \hbox (badness 1248) in paragraph at lines 145--147
\OT1/cmr/m/it/10.95 In-trin-sic Safety Bar-rier for Elec-tron-ics Des-tined for
Haz-
[]
Underfull \hbox (badness 10000) in paragraph at lines 145--147
\OT1/cmr/m/n/10.95 2009, https://www.analog.com/en/technical-articles/surge-
[]
Underfull \hbox (badness 10000) in paragraph at lines 145--147
\OT1/cmr/m/n/10.95 stopper-ic-simplifies-design-of-intrinsic-safety-barrier-for
-
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
[]\OT1/cmr/m/n/10.95 Various, \OT1/cmr/m/it/10.95 Elec-tron-ics De-sign for Ex-
plo-
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
\OT1/cmr/m/it/10.95 sive En-viri-on-ment\OT1/cmr/m/n/10.95 , EEVBlog Fo-rums,
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
\OT1/cmr/m/n/10.95 https://www.eevblog.com/forum/chat/electronics-
[]
Underfull \hbox (badness 10000) in paragraph at lines 149--151
\OT1/cmr/m/n/10.95 design-for-explosive-environment/?all,
[]
Overfull \hbox (154.94302pt too wide) in paragraph at lines 149--151
\OT1/cmr/m/n/10.95 http://web.archive.org/web/20190410172437/http://www.eevblog
.com/forum/chat/electronics-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
[]\OT1/cmr/m/n/10.95 Various, \OT1/cmr/m/it/10.95 Ex-plo-sion Pro-tec-tion and
In-trin-sic
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/it/10.95 Safety 101\OT1/cmr/m/n/10.95 , Pep-perl Fuchs, https://www.
pepperl-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 fuchs.com/usa/downloads[]USA/explosion-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 protection-and-intrinsic-safety-101.pdf,
[]
Overfull \hbox (21.99161pt too wide) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 http://web.archive.org/web/20190721221654/https://www.pepper
l-
[]
Underfull \hbox (badness 10000) in paragraph at lines 153--155
\OT1/cmr/m/n/10.95 fuchs.com/usa/downloads[]USA/explosion-protection-and-
[]
[9] (./16.aux) )
Here is how much of TeX's memory you used:
3569 strings out of 494945
54280 string characters out of 6181032
119067 words of memory out of 5000000
6833 multiletter control sequences out of 15000+600000
10376 words of font info for 36 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,39p,1259b,212s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/c
mbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></u
sr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></usr/shar
e/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/texliv
e/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/texmf-
dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/typ
e1/public/amsfonts/cm/cmti10.pfb>
Output written on 16.pdf (9 pages, 515166 bytes).
PDF statistics:
74 PDF objects out of 1000 (max. 8388607)
49 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)

BIN
FlammableGasSensor/docs/16.pdf View File


+ 161
- 0
FlammableGasSensor/docs/16.tex View File

@ -0,0 +1,161 @@
\documentclass[11pt]{article}
%Gummi|065|=)
\usepackage{graphicx}
\usepackage{caption}
\usepackage{xcolor}
\usepackage[vcentering,dvips]{geometry}
\geometry{papersize={6in,9in},total={4.5in,6.8in}}
\title{\textbf{Flammable Gas Sensor}}
\author{Steak Electronics}
\date{}
\begin{document}
\maketitle
\tableofcontents
\textcolor{green!60!blue!70}{
\section{Overview}}
Shop needs a flammable gas sensor, for safety.
\textcolor{green!60!blue!70}{
\section{Chip Hunting}}
I'm looking at the following:
\begin{itemize}
\item SGAS711
\item 200K fixed resistor
\item 1M potentiometer
\item Arduino Nano (for speed)
\item Ample Power Supply They are recommending 7 Volts for the heater. So, one rated for 1A.
\item led notifiers
\item Long cables to separate sensor from device. (optional)
\end{itemize}
\textcolor{green!60!blue!70}{
\subsection{Gas Sensor Tuning}}
The flammable gas sensor has different sensitivities for different gases (see data sheet, Figure 8). I'm going to need to test for something specific, i.e. if the shop needs to watch out for acetone, I should test acetone. Of course, if enough of a flammable gas is in the air, it will set it off no matter what, but I should focus on what the danger is for calibrating.
Based on the resistance chart, I'm going to use a fixed 200K and a 1M pot. Pots are to be avoided, but here we need to calibrate over time. For the response of the v divider, the sensor is not linear, but closer (though not quite) logarithmic. So what I will do, is have to use some math on the micro, and use the formula they give in the Datasheet, to get a logarithmic output that appears linear (figure 5). For my needs, it is good enough.
\includegraphics[scale=0.55]{../pics/resistances.png}
\captionof{figure}{Application Note resistance table}
\textcolor{green!60!blue!70}{
\subsubsection{Fixed resistors}}
If these sensors are consistent enough, possibly I could use fixed resistors later.
\textcolor{green!60!blue!70}{
\subsubsection{Gas Sensor Power Usage}}
Rated at 900mW for 7V, so about 150mA (128mA). I know from prior experience these things heat up, so we need plenty of power.
\textcolor{green!60!blue!70}{
\subsubsection{PCB Layout}}
The gas sensor must be sideways, as there is excessive dust in the shop so, the holes will be on the side. I will do a 90 degree edge mount pcb.
\textcolor{green!60!blue!70}{
\subsection{Switcher}}
STS1024S6V5 Seems like a fair option for now. Output is 6.5 volts which is enough. Will use a module. Need to make a footprint.
\textcolor{green!60!blue!70}{
\subsection{Enclosure}}
We need a box that is tall enough to be a cube. Also want square, not rectangular. I plan to have the leds light from the back of the pcb. The pcb will be the top cover / front. The top cover / front will be the box, put on its side, so dust doesn't collect on the leds. Need a cube.
\textcolor{green!60!blue!70}{
\section{CAD Layout}}
I found that Kicad step up in Freecad is helpful for making sure your board will fit the enclosure. A very helpful addition to an arsenal. Although I didn't test it until after rev 1.
\begin{center}
\includegraphics[scale=0.5]{../pics/kicadstepup1.jpg}
\captionof{figure}{Freecad has the ability to pull in boards from Kicad. Even without step file dependencies you can see how the PCB will fit a case}
\end{center}
\textcolor{green!60!blue!70}{
\section{PCB Assembly}}
Most of the board came out ok. Power section is routed right. I need to move the barrel plug further out of the board, so it fits with the case better. The one issue I overlooked
was the A6, and A7 pins, which have no digital circuitry behind them. So I have some pins that can't light up. I'll have to bodge wires in, or respin the board. Simple fix. Oversight on my part, that's all. I assumed GPIO on all pins, but here are two analog pins that can't function as GPIO.
\vspace{0.2in}
I'll use D7, and D8. Looks like I also missed the wire from VSenseOut of the Gas sensor to the board. So that will go to A6. Technically, I missed a net on the schematic.
\vspace{0.2in}
One other fail of the enclosure, is that the Arduino nano won't fit with female pin headers holding it in. This means, instead of easily being socketable, I'll have to solder the board in. Not a deal-breaker, but I would prefer the nano to be easily removable. I don't like soldering it on the board. In the future, I need to find a taller enclosure.
\textcolor{green!60!blue!70}{
\subsection{Place Sensors on the Floor}}
Being that at least some flammable gases are heavier than air\footnote{Reference: Plumbing, Rex Cauldwell, 2006, page 137 - Gas Heater Awareness - Great book.}(in our case, they are, your situation may vary) it is logical for us to put them on the floor. There are no rules, though so why not both? It would be interesting to see the LEDs responding differently at say waist height, and at your feet. That would indicate different gas in the air.
\textcolor{green!60!blue!70}{
\section{In Consideration of ``Hazardous Locations''}}
Up to this point, I have not paid any attention to official rules or standards regarding safety\footnote{Our environment is only dangerous when there is a gas leak (extremely rarely), so we are the least strict of the hazardous location types. In the US, this is Class 1, Division 2. Gas (class 1) can be present, but is not normally (division 2). We regularly have dust in our air, however it is silica and therefore inert / not explosive.}. The search term for a device like this that may be in an environment that can dangerous is \textbf{hazardous locations}. There are a few books on the subject I found (specifically for electronics in hazardous locations). I downloaded the PDF of a few online, but was not impressed with the writing quality enough to buy them with the exception of \emph{Electrical Installations in Hazardous Locations} by Peter Schram \cite{Schram}. There is also a succint Application note which covers a general overview in Linear Technology Magazine September 2009, also accessible online \cite{Pickard}. As a launchoff point, some discussion can also be found online in various forums \cite{EEVBlog}.
\textcolor{green!60!blue!70}{
\subsection{What Class is my Company?}}
Based on \cite{Fuchs}, we are a Class 1, Division 2. With the Class 1, being Group D, as we would have leaks of those gases. It's possible that certain areas (inside the reactors for example) may be a higher class.
\textcolor{green!60!blue!70}{
\subsubsection{Encapsulated Fuses}}
Encapsulated fuses are also referred to as UL913 online (e.g. in stores). UL913 is UL's \emph{Standard for Intrinsically Safe Apparatus and Associated Apparatus for Use in Class I, II, III, Division 1, Hazardous (Classified) Locations}. Another term to search for is \emph{intrinsically safe} on the parametric search for fuses. The cheapest intrinsically safe fuse in 1 quantity on Digikey is currently \$4.50. Ouch. Safety requirements sure help some people, just not the buyers. I see a market, for a blobbed fuse at \$1.
\textcolor{green!60!blue!70}{
\section{Existing Gas Detectors}}
We have already purchased a commercial gas detector. This particular model is designed so that the control box is kept separated from the sensor. The sensor has a 30 foot cable. The control box is installed in the ceiling. \footnote{See in the git: teardowns 2019, the RKI instruments combustible gas sensor.}
\textcolor{green!60!blue!70}{
\section{Switching Power Supply}}
In search of a low part count, simple to deploy switcher I came across this in my rss (https://hackaday.com/2019/08/11/switching-over-to-smps-for-efficiency/). The LM2576 is easy enough to use instead of a lm317, and requires only a diode and inductor more. Here I need more power efficiency from the 12V input so that should work. A simple go-to switcher.
\begin{center}
\includegraphics[scale=0.3]{../pics/DSCN2209.JPG}
\captionof{figure}{Prototype}
\end{center}
\textcolor{green!60!blue!70}{
\section{Connecting the Sensor by a Wire}}
Upon showing this to my family co. who wanted it, they mentioned they wanted a cable going to the sensor. I looked at the RKI Instruments flammable gas sensor, which we have a few of, and these used a 22 Gauge 4 conductor cable. That is \$50 for 100' of cable. A more DIY solution is to grab some 4 pair CAT5E or CAT6 and connect two wires to each screw terminal on the board. That is what I will do. Saves money, and should work no issue, up to the 30 feet max that I need. Any small box can be used for the sensors. I might build a pcb mount for those, or perhaps just some hot glue. Depends on what works the best, while being efficient.
\\
\begin{center}
\includegraphics[scale=0.4]{../pics/DSCN2193.JPG}
\captionof{figure}{A simple solution.}
\end{center}
\textcolor{green!60!blue!70}{
\section{Calibration}}
This is the real task of this project. Making a gas sensor is easy, calibrating it, is another step. Thankfully, some companies sell calibration tanks. For calibration you might calibrate on the LEL or the lowest acceptable level before an alarm should be fired off for a given chemical.
\textcolor{green!60!blue!70}{
\section{References}}
\begin{thebibliography}{99}
\bibitem{Schram}
Peter Schram,
\emph{Electrical Installations in Hazardous Locations}, first edition - 1991, National Fire Protection Association (NFPA), ISBN-13: 9780877653561.
\bibitem{Pickard}
Murphy Pickard,
\emph{Surge Stopper IC Simplifies Design of Intrinsic Safety Barrier for Electronics Destined for Hazardous Environments}, Linear Technology Magazine September 2009, https://www.analog.com/en/technical-articles/surge-stopper-ic-simplifies-design-of-intrinsic-safety-barrier-for-electronics.html .
\bibitem{EEVBlog}
Various,
\emph{Electronics Design for Explosive Envirionment}, EEVBlog Forums, https://www.eevblog.com/forum/chat/electronics-design-for-explosive-environment/?all, http://web.archive.org/web/20190410172437/http://www.eevblog.com/forum/chat/electronics-design-for-explosive-environment/?all.
\bibitem{Fuchs}
Various,
\emph{Explosion Protection and Intrinsic Safety 101}, Pepperl Fuchs, https://www.pepperl-fuchs.com/usa/downloads\_USA/explosion-protection-and-intrinsic-safety-101.pdf, http://web.archive.org/web/20190721221654/https://www.pepperl-fuchs.com/usa/downloads\_USA/explosion-protection-and-intrinsic-safety-101.pdf.
\end{thebibliography}
\end{document}

+ 19
- 0
FlammableGasSensor/docs/16.toc View File

@ -0,0 +1,19 @@
\contentsline {section}{\numberline {1}Overview}{2}
\contentsline {section}{\numberline {2}Chip Hunting}{2}
\contentsline {subsection}{\numberline {2.1}Gas Sensor Tuning}{2}
\contentsline {subsubsection}{\numberline {2.1.1}Fixed resistors}{3}
\contentsline {subsubsection}{\numberline {2.1.2}Gas Sensor Power Usage}{3}
\contentsline {subsubsection}{\numberline {2.1.3}PCB Layout}{3}
\contentsline {subsection}{\numberline {2.2}Switcher}{3}
\contentsline {subsection}{\numberline {2.3}Enclosure}{3}
\contentsline {section}{\numberline {3}CAD Layout}{4}
\contentsline {section}{\numberline {4}PCB Assembly}{4}
\contentsline {subsection}{\numberline {4.1}Place Sensors on the Floor}{5}
\contentsline {section}{\numberline {5}In Consideration of ``Hazardous Locations''}{5}
\contentsline {subsection}{\numberline {5.1}What Class is my Company?}{6}
\contentsline {subsubsection}{\numberline {5.1.1}Encapsulated Fuses}{6}
\contentsline {section}{\numberline {6}Existing Gas Detectors}{6}
\contentsline {section}{\numberline {7}Switching Power Supply}{6}
\contentsline {section}{\numberline {8}Connecting the Sensor by a Wire}{7}
\contentsline {section}{\numberline {9}Calibration}{8}
\contentsline {section}{\numberline {10}References}{8}

BIN
FlammableGasSensor/docs/fin.pdf View File


+ 48
- 53
ZMHW_Modector/docs/20.log View File

@ -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) 1 JAN 2020 18:36
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 16 FEB 2020 23:17
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
@ -245,108 +245,103 @@ LaTeX Font Info: External font `cmex10' loaded for size
Non-PDF special ignored!
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
Overfull \hbox (97.26285pt too wide) in paragraph at lines 20--21
\OT1/cmr/m/n/10.95 soft-ware in-stal-la-tions. These sen-sors use ZMTrig-ger.pl
(wiki.zoneminder.com/ZMTrigger)
[]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 29.
LaTeX Font Info: Try loading font information for OMS+cmr on input line 26.
(/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 26.
[2]
<../pics/DSCN0207.JPG, id=14, 803.0pt x 602.25pt>
(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 29.
[2] [3]
<../pics/DSCN0207.JPG, id=17, 803.0pt x 602.25pt>
File: ../pics/DSCN0207.JPG Graphic file (type jpg)
<use ../pics/DSCN0207.JPG>
Package pdftex.def Info: ../pics/DSCN0207.JPG used on input line 62.
Package pdftex.def Info: ../pics/DSCN0207.JPG used on input line 65.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 63.
(caption) outside box or environment on input line 66.
See the caption package documentation for explanation.
Overfull \hbox (12.97931pt too wide) in paragraph at lines 62--63
Overfull \hbox (12.97931pt too wide) in paragraph at lines 65--66
[][]
[]
[3]
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 65.
(Font) <9> on input line 68.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 65.
[4 <../pics/DSCN0207.JPG>]
<../pics/DSCN0217.JPG, id=24, 803.0pt x 602.25pt>
(Font) <5> on input line 68.
[4 <../pics/DSCN0207.JPG>] <../pics/DSCN0217.JPG, id=24, 803.0pt x 602.25pt>
File: ../pics/DSCN0217.JPG Graphic file (type jpg)
<use ../pics/DSCN0217.JPG>
Package pdftex.def Info: ../pics/DSCN0217.JPG used on input line 85.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[5] <../pics/DSCN0220.JPG, id=28, 803.0pt x 602.25pt>
<use ../pics/DSCN0217.JPG>
Package pdftex.def Info: ../pics/DSCN0217.JPG used on input line 88.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[5]
<../pics/DSCN0220.JPG, id=28, 803.0pt x 602.25pt>
File: ../pics/DSCN0220.JPG Graphic file (type jpg)
<use ../pics/DSCN0220.JPG>
Package pdftex.def Info: ../pics/DSCN0220.JPG used on input line 88.
<use ../pics/DSCN0220.JPG>
Package pdftex.def Info: ../pics/DSCN0220.JPG used on input line 91.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
<../pics/DSCN0225.JPG, id=29, 803.0pt x 602.25pt>
File: ../pics/DSCN0225.JPG Graphic file (type jpg)
<use ../pics/DSCN0225.JPG>
Package pdftex.def Info: ../pics/DSCN0225.JPG used on input line 91.
<../pics/DSCN0225.JPG, id=29, 803.0pt x 602.25pt>
File: ../pics/DSCN0225.JPG Graphic file (type jpg)
<use ../pics/DSCN0225.JPG>
Package pdftex.def Info: ../pics/DSCN0225.JPG used on input line 94.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[6 <../pics/DSCN0217.JPG> <../pics/DSCN0220.JPG>]
[6 <../pics/DSCN0217.JPG> <../pics/DSCN0220.JPG>]
<../pics/DSCN0227.JPG, id=33, 803.0pt x 602.25pt>
File: ../pics/DSCN0227.JPG Graphic file (type jpg)
<use ../pics/DSCN0227.JPG>
Package pdftex.def Info: ../pics/DSCN0227.JPG used on input line 94.
Package pdftex.def Info: ../pics/DSCN0227.JPG used on input line 97.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
<../pics/walloutlet2.jpg, id=34, 481.8pt x 642.4pt>
File: ../pics/walloutlet2.jpg Graphic file (type jpg)
<use ../pics/walloutlet2.jpg>
Package pdftex.def Info: ../pics/walloutlet2.jpg used on input line 97.
Package pdftex.def Info: ../pics/walloutlet2.jpg used on input line 100.
(pdftex.def) Requested size: 120.44969pt x 160.59961pt.
[7 <../pics/DSCN0225.JPG> <../pics/DSCN0227.JPG>]
Underfull \hbox (badness 10000) in paragraph at lines 101--101
Underfull \hbox (badness 10000) in paragraph at lines 104--104
[]\OT1/cmr/bx/n/14.4 Omrom Pho-to-elec-tric IR Emit-
[]
<../pics/DSCN0265.JPG, id=39, 803.0pt x 602.25pt>
File: ../pics/DSCN0265.JPG Graphic file (type jpg)
<use ../pics/DSCN0265.JPG>
Package pdftex.def Info: ../pics/DSCN0265.JPG used on input line 107.
Package pdftex.def Info: ../pics/DSCN0265.JPG used on input line 110.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[8 <../pics/walloutlet2.jpg>]
Overfull \hbox (42.70102pt too wide) in paragraph at lines 125--125
Overfull \hbox (42.70102pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 is. To use with 5v ttl (using a second 5v source) wire a
s such:[]
[]
Overfull \hbox (19.70627pt too wide) in paragraph at lines 125--125
Overfull \hbox (19.70627pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 Brown to +12V; Blue to ground; Pink to either +12 or gro
und[]
[]
Overfull \hbox (25.45496pt too wide) in paragraph at lines 125--125
Overfull \hbox (25.45496pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 Black to a 4.7K resistor with the other side of the resi
stor[]
[]
Overfull \hbox (25.45496pt too wide) in paragraph at lines 125--125
Overfull \hbox (25.45496pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 connected to a separate +5V source (the arduino). The 5v
ttl[]
[]
Overfull \hbox (19.70627pt too wide) in paragraph at lines 125--125
Overfull \hbox (19.70627pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 signal is at the point where the black wire connects to
the[]
[]
@ -354,7 +349,7 @@ the[]
<../pics/DSCN0273.JPG, id=43, 803.0pt x 602.25pt>
File: ../pics/DSCN0273.JPG Graphic file (type jpg)
<use ../pics/DSCN0273.JPG>
Package pdftex.def Info: ../pics/DSCN0273.JPG used on input line 128.
Package pdftex.def Info: ../pics/DSCN0273.JPG used on input line 131.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[9 <../pics/DSCN0265.JPG>]
@ -376,13 +371,13 @@ Missing character: There is no
Missing character: There is no  in font cmtt10!
Missing character: There is no   in font cmtt10!
Overfull \hbox (128.93134pt too wide) in paragraph at lines 161--161
Overfull \hbox (128.93134pt too wide) in paragraph at lines 164--164
[]\OT1/cmtt/m/n/10.95 Heres a small utility function which determines how much
RAM iscurrentlyunused:[]
[]
Overfull \hbox (105.93658pt too wide) in paragraph at lines 161--161
Overfull \hbox (105.93658pt too wide) in paragraph at lines 164--164
[] \OT1/cmtt/m/n/10.95 return (int) &v - (__brkval == 0 ? (int) &__heap_start
: (int) __brkval);[]
[]
@ -394,13 +389,13 @@ Missing character: There is no
Missing character: There is no € in font cmtt10!
Missing character: There is no œ in font cmtt10!
Overfull \hbox (102.77846pt too wide) in paragraph at lines 164--168
Overfull \hbox (102.77846pt too wide) in paragraph at lines 167--171
\OT1/cmr/m/n/10.95 (https://www.arduino.cc/reference/en/language/functions/comm
unication/serial/write/)
[]
Overfull \hbox (101.86595pt too wide) in paragraph at lines 164--168
Overfull \hbox (101.86595pt too wide) in paragraph at lines 167--171
\OT1/cmr/m/n/10.95 (https://www.arduino.cc/reference/en/language/functions/comm
unication/serial/print/)
[]
@ -409,10 +404,10 @@ unication/serial/print/)
File: ../pics/wshark1.jpg Graphic file (type jpg)
<use ../pics/wshark1.jpg>
Package pdftex.def Info: ../pics/wshark1.jpg used on input line 173.
Package pdftex.def Info: ../pics/wshark1.jpg used on input line 176.
(pdftex.def) Requested size: 509.27641pt x 441.89986pt.
Overfull \hbox (184.06142pt too wide) in paragraph at lines 173--174
Overfull \hbox (184.06142pt too wide) in paragraph at lines 176--177
[][]
[]
@ -431,41 +426,41 @@ Missing character: There is no
Missing character: There is no € in font cmr10!
Missing character: There is no � in font cmr10!
[15]
Underfull \hbox (badness 10000) in paragraph at lines 213--213
Underfull \hbox (badness 10000) in paragraph at lines 216--216
[][]\OT1/cmr/m/n/9 https://www.eevblog.com/forum/beginners/jelly-bean-switching
-regulator-
[]
Underfull \hbox (badness 10000) in paragraph at lines 221--222
Underfull \hbox (badness 10000) in paragraph at lines 224--225
[]\OT1/cmr/m/n/10.95 http://blog.derouineau.fr/2011/07/putting-enc28j60-etherne
t-
[]
Overfull \hbox (215.16165pt too wide) in paragraph at lines 252--252
Overfull \hbox (215.16165pt too wide) in paragraph at lines 255--255
[] \OT1/cmtt/m/n/10.95 LogObject.uart_send_strln(F("Enc28J60Network::powerOf
f(void) DEBUG_V3:Function started"));[]
[]
[16]
Overfull \hbox (209.41296pt too wide) in paragraph at lines 252--252
Overfull \hbox (209.41296pt too wide) in paragraph at lines 255--255
[] \OT1/cmtt/m/n/10.95 LogObject.uart_send_strln(F("Enc28J60Network::powerOn
(void) DEBUG_V3:Function started"));[]
[]
[17]
Underfull \hbox (badness 10000) in paragraph at lines 282--284
Underfull \hbox (badness 10000) in paragraph at lines 285--287
[]
Underfull \hbox (badness 10000) in paragraph at lines 285--287
Underfull \hbox (badness 10000) in paragraph at lines 288--290
[]
Underfull \hbox (badness 10000) in paragraph at lines 297--299
Underfull \hbox (badness 10000) in paragraph at lines 300--302
[]
@ -487,7 +482,7 @@ texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb>
texmf-dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-di
st/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmtt10.pfb>
Output written on 20.pdf (19 pages, 1529308 bytes).
Output written on 20.pdf (19 pages, 1529340 bytes).
PDF statistics:
111 PDF objects out of 1000 (max. 8388607)
71 compressed objects within 1 object stream

BIN
ZMHW_Modector/docs/20.pdf View File


+ 4
- 1
ZMHW_Modector/docs/20.tex View File

@ -17,7 +17,10 @@
\textcolor{green!60!blue!70}{
\section{Overview}}
Making and deploying a Motion Sensor for Zoneminder CCTV software installations. These sensors use ZMTrigger.pl (wiki.zoneminder.com/ZMTrigger) to activate an alarm on a camera for a period of time. The advantage of hardware motion sensors over the software detection of Zoneminder, is that the hardware motion sensors avoid some of the problems inherent in software detection, such as false positives from day-to-night, bugs, missed detections, and others.
Making and deploying a Motion Sensor for Zoneminder CCTV software installations. These sensors use ZMTrigger.pl (
\\
wiki.zoneminder.com/ZMTrigger
) to activate an alarm on a camera for a period of time. The advantage of hardware motion sensors over the software detection of Zoneminder, is that the hardware motion sensors avoid some of the problems inherent in software detection, such as false positives from day-to-night, bugs, missed detections, and others.
I've tried different motion sensors. Let's start with the Infrared Laser Diode.
\textcolor{green!60!blue!70}{

+ 30
- 0
ZMHW_Modector/docs/21.aux View File

@ -0,0 +1,30 @@
\relax
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{2}}
\@writefile{toc}{\contentsline {section}{\numberline {2}Parts List}{2}}
\@writefile{toc}{\contentsline {subsection}{\numberline {2.1}Other Sensors}{3}}
\@writefile{toc}{\contentsline {section}{\numberline {3}Work Log}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.1}Sick Motion Sensor}{3}}
\@writefile{lof}{\contentsline {figure}{\numberline {1}{\ignorespaces Testing the Sick IR Diode Tripwire \relax }}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.2}Diode on Output of Sick Sensor instead of Transistor (Hack)}{4}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.3}Broken ENC28J60 Module}{5}}
\@writefile{toc}{\contentsline {subsection}{\numberline {3.4}Installation Log in Pictures}{5}}
\@writefile{lof}{\contentsline {figure}{\numberline {2}{\ignorespaces \relax }}{6}}
\@writefile{lof}{\contentsline {figure}{\numberline {3}{\ignorespaces \relax }}{6}}
\@writefile{lof}{\contentsline {figure}{\numberline {4}{\ignorespaces \relax }}{7}}
\@writefile{lof}{\contentsline {figure}{\numberline {5}{\ignorespaces Part 1 of sensor. By mounting it on the right side of a project box, we can get a 90 degree angle.\relax }}{7}}
\@writefile{lof}{\contentsline {figure}{\numberline {6}{\ignorespaces Arduino and Part 2 of sensor. Lined up with the other part.\relax }}{8}}
\@writefile{toc}{\contentsline {section}{\numberline {4}Omrom Photoelectric IR Emitter/Receiver}{8}}
\@writefile{lof}{\contentsline {figure}{\numberline {7}{\ignorespaces Omrom 'Photoelectric' IR Emitter and Receiver Pair. Notice the two diodes behind the black cover on the right side.\relax }}{9}}
\@writefile{lof}{\contentsline {figure}{\numberline {8}{\ignorespaces IR in action. (without a reflective sticker, it doesn't go very far!)\relax }}{10}}
\@writefile{toc}{\contentsline {section}{\numberline {5}Using the HFS-DC06H Microwave Sensor}{10}}
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1}Uno Memory Limitations}{10}}
\@writefile{lof}{\contentsline {figure}{\numberline {9}{\ignorespaces First capture is correct. Second one, the lack of RAM causes the ENC to fail to send data to ZMTrigger.\relax }}{13}}
\@writefile{toc}{\contentsline {section}{\numberline {6}Deployment}{14}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.1}Work Log 1/31/19}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.2}The need for POE}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.3}HB100 are Sensitive to Fluorescent Lighting and Mains}{15}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.4}Switcher Shield}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.5}ENC28J60 Power Consumption}{16}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.6}Staggered switcher and modect board 0.1'' headers}{17}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.7}Other Changes}{18}}
\@writefile{toc}{\contentsline {subsection}{\numberline {6.8}Blowing Fuses}{18}}

+ 491
- 0
ZMHW_Modector/docs/21.log View File

@ -0,0 +1,491 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 16 FEB 2020 23:17
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/
ZMHW_Modector/docs/21.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2019/Z
MHW_Modector/docs/21.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 67.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@ContinuedFloat=\count88
)
(/usr/share/texlive/texmf-dist/tex/latex/xcolor/xcolor.sty
Package: xcolor 2016/05/11 v2.12 LaTeX color extensions (UK)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/color.cfg
File: color.cfg 2016/01/02 v1.6 sample color configuration
)
Package xcolor Info: Driver file: pdftex.def on input line 225.
Package xcolor Info: Model `cmy' substituted by `cmy0' on input line 1348.
Package xcolor Info: Model `hsb' substituted by `rgb' on input line 1352.
Package xcolor Info: Model `RGB' extended on input line 1364.
Package xcolor Info: Model `HTML' substituted by `rgb' on input line 1366.
Package xcolor Info: Model `Hsb' substituted by `hsb' on input line 1367.
Package xcolor Info: Model `tHsb' substituted by `hsb' on input line 1368.
Package xcolor Info: Model `HSB' substituted by `hsb' on input line 1369.
Package xcolor Info: Model `Gray' substituted by `gray' on input line 1370.
Package xcolor Info: Model `wave' substituted by `hsb' on input line 1371.
)
(/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2010/09/12 v5.6 Page Geometry
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2016/05/14 v3.1 Provides the ifpdf switch
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifvtex.sty
Package: ifvtex 2016/05/16 v1.6 Detect VTeX and its facilities (HO)
Package ifvtex Info: VTeX not detected.
)
(/usr/share/texlive/texmf-dist/tex/generic/ifxetex/ifxetex.sty
Package: ifxetex 2010/09/12 v0.6 Provides ifxetex conditional
)
\Gm@cnth=\count89
\Gm@cntv=\count90
\c@Gm@tempcnt=\count91
\Gm@bindingoffset=\dimen112
\Gm@wd@mp=\dimen113
\Gm@odd@mp=\dimen114
\Gm@even@mp=\dimen115
\Gm@layoutwidth=\dimen116
\Gm@layoutheight=\dimen117
\Gm@layouthoffset=\dimen118
\Gm@layoutvoffset=\dimen119
\Gm@dimlist=\toks15
) (./21.aux)
\openout1 = `21.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 12.
LaTeX Font Info: ... okay on input line 12.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 12.
LaTeX Font Info: ... okay on input line 12.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 12.
LaTeX Font Info: ... okay on input line 12.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 12.
LaTeX Font Info: ... okay on input line 12.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 12.
LaTeX Font Info: ... okay on input line 12.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 12.
LaTeX Font Info: ... okay on input line 12.
(/usr/share/texlive/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count92
\scratchdimen=\dimen120
\scratchbox=\box26
\nofMPsegments=\count93
\nofMParguments=\count94
\everyMPshowfont=\toks16
\MPscratchCnt=\count95
\MPscratchDim=\dimen121
\MPnumerator=\count96
\makeMPintoPDFobject=\count97
\everyMPtoPDFconversion=\toks17
) (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
Package: pdftexcmds 2016/05/21 v0.22 Utility functions of pdfTeX for LuaTeX (HO
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ifluatex.sty
Package: ifluatex 2016/05/16 v1.4 Provides the ifluatex switch (HO)
Package ifluatex Info: LuaTeX not detected.
)
Package pdftexcmds Info: LuaTeX not detected.
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode found.
)
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
Package: epstopdf-base 2016/05/15 v2.6 Base part for package epstopdf
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty
Package: grfext 2016/05/16 v1.2 Manage graphics extensions (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty
Package: kvdefinekeys 2016/05/16 v1.4 Define keys (HO)
))
(/usr/share/texlive/texmf-dist/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2016/05/16 v3.12 Key value format for package options (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
Package: kvsetkeys 2016/05/16 v1.17 Key value parser (HO)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/etexcmds.sty
Package: etexcmds 2016/05/16 v1.6 Avoid name clashes with e-TeX commands (HO)
Package etexcmds Info: Could not find \expanded.
(etexcmds) That can mean that you are not using pdfTeX 1.50 or
(etexcmds) that some package has redefined \expanded.
(etexcmds) In the latter case, load this package earlier.
)))
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
38.
Package grfext Info: Graphics extension search list:
(grfext) [.png,.pdf,.jpg,.mps,.jpeg,.jbig2,.jb2,.PNG,.PDF,.JPG,.JPE
G,.JBIG2,.JB2,.eps]
(grfext) \AppendGraphicsExtensions on input line 456.
(/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
Package caption Info: Begin \AtBeginDocument code.
Package caption Info: End \AtBeginDocument code.
*geometry* detected driver: dvips
*geometry* verbose mode - [ preamble ] result:
* driver: dvips
* paper: custom
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* vratio: 1:1
* modes:
* h-part:(L,W,R)=(54.2025pt, 325.215pt, 54.2025pt)
* v-part:(T,H,B)=(79.49689pt, 491.43622pt, 79.49689pt)
* \paperwidth=433.62pt
* \paperheight=650.43pt
* \textwidth=325.215pt
* \textheight=491.43622pt
* \oddsidemargin=-18.06749pt
* \evensidemargin=-18.06749pt
* \topmargin=-29.7731pt
* \headheight=12.0pt
* \headsep=25.0pt
* \topskip=11.0pt
* \footskip=30.0pt
* \marginparwidth=59.0pt
* \marginparsep=10.0pt
* \columnsep=10.0pt
* \skip\footins=10.0pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidefalse
* \@mparswitchfalse
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <12> on input line 14.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <8> on input line 14.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <6> on input line 14.
(./21.toc
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 3.
)
\tf@toc=\write3
\openout3 = `21.toc'.
[1
Non-PDF special ignored!
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
LaTeX Font Info: Try loading font information for OMS+cmr on input line 29.
(/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 29.
[2] [3]
<../pics/DSCN0207.JPG, id=17, 803.0pt x 602.25pt>
File: ../pics/DSCN0207.JPG Graphic file (type jpg)
<use ../pics/DSCN0207.JPG>
Package pdftex.def Info: ../pics/DSCN0207.JPG used on input line 65.
(pdftex.def) Requested size: 321.1943pt x 240.89572pt.
Package caption Warning: \captionsetup{type*=...} or \captionof
(caption) outside box or environment on input line 66.
See the caption package documentation for explanation.
Overfull \hbox (12.97931pt too wide) in paragraph at lines 65--66
[][]
[]
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 68.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 68.
[4 <../pics/DSCN0207.JPG>] <../pics/DSCN0217.JPG, id=24, 803.0pt x 602.25pt>
File: ../pics/DSCN0217.JPG Graphic file (type jpg)
<use ../pics/DSCN0217.JPG>
Package pdftex.def Info: ../pics/DSCN0217.JPG used on input line 88.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[5]
<../pics/DSCN0220.JPG, id=28, 803.0pt x 602.25pt>
File: ../pics/DSCN0220.JPG Graphic file (type jpg)
<use ../pics/DSCN0220.JPG>
Package pdftex.def Info: ../pics/DSCN0220.JPG used on input line 91.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
<../pics/DSCN0225.JPG, id=29, 803.0pt x 602.25pt>
File: ../pics/DSCN0225.JPG Graphic file (type jpg)
<use ../pics/DSCN0225.JPG>
Package pdftex.def Info: ../pics/DSCN0225.JPG used on input line 94.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[6 <../pics/DSCN0217.JPG> <../pics/DSCN0220.JPG>]
<../pics/DSCN0227.JPG, id=33, 803.0pt x 602.25pt>
File: ../pics/DSCN0227.JPG Graphic file (type jpg)
<use ../pics/DSCN0227.JPG>
Package pdftex.def Info: ../pics/DSCN0227.JPG used on input line 97.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
<../pics/walloutlet2.jpg, id=34, 481.8pt x 642.4pt>
File: ../pics/walloutlet2.jpg Graphic file (type jpg)
<use ../pics/walloutlet2.jpg>
Package pdftex.def Info: ../pics/walloutlet2.jpg used on input line 100.
(pdftex.def) Requested size: 120.44969pt x 160.59961pt.
[7 <../pics/DSCN0225.JPG> <../pics/DSCN0227.JPG>]
Underfull \hbox (badness 10000) in paragraph at lines 104--104
[]\OT1/cmr/bx/n/14.4 Omrom Pho-to-elec-tric IR Emit-
[]
<../pics/DSCN0265.JPG, id=39, 803.0pt x 602.25pt>
File: ../pics/DSCN0265.JPG Graphic file (type jpg)
<use ../pics/DSCN0265.JPG>
Package pdftex.def Info: ../pics/DSCN0265.JPG used on input line 110.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[8 <../pics/walloutlet2.jpg>]
Overfull \hbox (42.70102pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 is. To use with 5v ttl (using a second 5v source) wire a
s such:[]
[]
Overfull \hbox (19.70627pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 Brown to +12V; Blue to ground; Pink to either +12 or gro
und[]
[]
Overfull \hbox (25.45496pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 Black to a 4.7K resistor with the other side of the resi
stor[]
[]
Overfull \hbox (25.45496pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 connected to a separate +5V source (the arduino). The 5v
ttl[]
[]
Overfull \hbox (19.70627pt too wide) in paragraph at lines 128--128
[] \OT1/cmtt/m/n/10.95 signal is at the point where the black wire connects to
the[]
[]
<../pics/DSCN0273.JPG, id=43, 803.0pt x 602.25pt>
File: ../pics/DSCN0273.JPG Graphic file (type jpg)
<use ../pics/DSCN0273.JPG>
Package pdftex.def Info: ../pics/DSCN0273.JPG used on input line 131.
(pdftex.def) Requested size: 200.74951pt x 150.56212pt.
[9 <../pics/DSCN0265.JPG>]
Missing character: There is no â in font cmr10!
Missing character: There is no € in font cmr10!
Missing character: There is no “ in font cmr10!
Missing character: There is no â in font cmr10!
Missing character: There is no € in font cmr10!
Missing character: There is no “ in font cmr10!
[10 <../pics/DSCN0273.JPG>]
Missing character: There is no â in font cmtt10!
Missing character: There is no € in font cmtt10!
Missing character: There is no œ in font cmtt10!
Missing character: There is no â in font cmtt10!
Missing character: There is no € in font cmtt10!
Missing character: There is no ™ in font cmtt10!
Missing character: There is no  in font cmtt10!
Missing character: There is no   in font cmtt10!
Missing character: There is no  in font cmtt10!
Missing character: There is no   in font cmtt10!
Overfull \hbox (128.93134pt too wide) in paragraph at lines 164--164
[]\OT1/cmtt/m/n/10.95 Heres a small utility function which determines how much
RAM iscurrentlyunused:[]
[]
Overfull \hbox (105.93658pt too wide) in paragraph at lines 164--164
[] \OT1/cmtt/m/n/10.95 return (int) &v - (__brkval == 0 ? (int) &__heap_start
: (int) __brkval);[]
[]
Missing character: There is no â in font cmtt10!
Missing character: There is no € in font cmtt10!
Missing character: There is no ™ in font cmtt10!
Missing character: There is no â in font cmtt10!
Missing character: There is no € in font cmtt10!
Missing character: There is no œ in font cmtt10!
Overfull \hbox (102.77846pt too wide) in paragraph at lines 167--171
\OT1/cmr/m/n/10.95 (https://www.arduino.cc/reference/en/language/functions/comm
unication/serial/write/)
[]
Overfull \hbox (101.86595pt too wide) in paragraph at lines 167--171
\OT1/cmr/m/n/10.95 (https://www.arduino.cc/reference/en/language/functions/comm
unication/serial/print/)
[]
[11] <../pics/wshark1.jpg, id=54, 1018.55531pt x 883.80188pt>
File: ../pics/wshark1.jpg Graphic file (type jpg)
<use ../pics/wshark1.jpg>
Package pdftex.def Info: ../pics/wshark1.jpg used on input line 176.
(pdftex.def) Requested size: 509.27641pt x 441.89986pt.
Overfull \hbox (184.06142pt too wide) in paragraph at lines 176--177
[][]
[]
[12] [13 <../pics/wshark1.jpg>]
Missing character: There is no â in font cmr10!
Missing character: There is no € in font cmr10!
Missing character: There is no “ in font cmr10!
Missing character: There is no â in font cmr10!
Missing character: There is no € in font cmr10!
Missing character: There is no “ in font cmr10!
[14]
Missing character: There is no â in font cmr10!
Missing character: There is no € in font cmr10!
Missing character: There is no � in font cmr10!
Missing character: There is no â in font cmr10!
Missing character: There is no € in font cmr10!
Missing character: There is no � in font cmr10!
[15]
Underfull \hbox (badness 10000) in paragraph at lines 216--216
[][]\OT1/cmr/m/n/9 https://www.eevblog.com/forum/beginners/jelly-bean-switching
-regulator-
[]
Underfull \hbox (badness 10000) in paragraph at lines 224--225
[]\OT1/cmr/m/n/10.95 http://blog.derouineau.fr/2011/07/putting-enc28j60-etherne
t-
[]
Overfull \hbox (215.16165pt too wide) in paragraph at lines 255--255
[] \OT1/cmtt/m/n/10.95 LogObject.uart_send_strln(F("Enc28J60Network::powerOf
f(void) DEBUG_V3:Function started"));[]
[]
[16]
Overfull \hbox (209.41296pt too wide) in paragraph at lines 255--255
[] \OT1/cmtt/m/n/10.95 LogObject.uart_send_strln(F("Enc28J60Network::powerOn
(void) DEBUG_V3:Function started"));[]
[]
[17]
Underfull \hbox (badness 10000) in paragraph at lines 285--287
[]
Underfull \hbox (badness 10000) in paragraph at lines 288--290
[]
Underfull \hbox (badness 10000) in paragraph at lines 300--302
[]
[18] [19] (./21.aux) )
Here is how much of TeX's memory you used:
3588 strings out of 494945
54740 string characters out of 6181032
119048 words of memory out of 5000000
6848 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,658b,237s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfont
s/cm/cmbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/c
mbx12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.p
fb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></us
r/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr6.pfb></usr/share/
texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr8.pfb></usr/share/texlive/
texmf-dist/fonts/type1/public/amsfonts/cm/cmr9.pfb></usr/share/texlive/texmf-di
st/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fon
ts/type1/public/amsfonts/cm/cmtt10.pfb>
Output written on 21.pdf (19 pages, 1529501 bytes).
PDF statistics:
111 PDF objects out of 1000 (max. 8388607)
71 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
46 words of extra memory for PDF output out of 10000 (max. 10000000)

BIN
ZMHW_Modector/docs/21.pdf View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save