Browse Source

okok

master
Your Name 4 years ago
parent
commit
42cce47ee0
8 changed files with 565 additions and 1 deletions
  1. +1
    -1
      Door_Chime/docs/5.log
  2. BIN
      Door_Chime/docs/5.pdf
  3. +7
    -0
      Door_Chime/docs/6.aux
  4. +343
    -0
      Door_Chime/docs/6.log
  5. BIN
      Door_Chime/docs/6.pdf
  6. +105
    -0
      Door_Chime/docs/6.tex
  7. +103
    -0
      Door_Chime/docs/6.tex~
  8. +6
    -0
      Door_Chime/docs/6.toc

+ 1
- 1
Door_Chime/docs/5.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) 18 FEB 2020 02:38
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 18 FEB 2020 02:46
entering extended mode entering extended mode
restricted \write18 enabled. restricted \write18 enabled.
%&-line parsing enabled. %&-line parsing enabled.

BIN
Door_Chime/docs/5.pdf View File


+ 7
- 0
Door_Chime/docs/6.aux View File

@ -0,0 +1,7 @@
\relax
\@writefile{toc}{\contentsline {section}{\numberline {1}Overview}{1}}
\@writefile{toc}{\contentsline {section}{\numberline {2}BOM}{1}}
\@writefile{toc}{\contentsline {section}{\numberline {3}Work Log: LM324, LM555, TIP120,125}{2}}
\@writefile{toc}{\contentsline {section}{\numberline {4}Door Magnet Reed Sensor}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.1}Buzzer or Bell}{3}}
\@writefile{toc}{\contentsline {subsection}{\numberline {4.2}Signal Mosfets for Actuator}{4}}

+ 343
- 0
Door_Chime/docs/6.log View File

@ -0,0 +1,343 @@
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Debian) (preloaded format=pdflatex 2019.8.17) 18 FEB 2020 03:01
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2020/
Door_Chime/docs/6.tex
(/home/layoutdev/Desktop/code/documentation_general/Electronics_Projects_2020/D
oor_Chime/docs/6.tex
LaTeX2e <2017/01/01> patch level 3
Babel <3.9r> and hyphenation patterns for 3 language(s) loaded.
(/usr/share/texlive/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/share/texlive/texmf-dist/tex/latex/base/size11.clo
File: size11.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2014/10/28 v1.0g Enhanced LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks14
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2016/10/09 v1.0u Standard LaTeX Graphics (DPC,SPQR)
(/usr/share/texlive/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/share/texlive/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 99.
(/usr/share/texlive/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2017/01/12 v0.06k Graphics/color for pdfTeX
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/infwarerr.sty
Package: infwarerr 2016/05/16 v1.4 Providing info/warning/error messages (HO)
)
(/usr/share/texlive/texmf-dist/tex/generic/oberdiek/ltxcmds.sty
Package: ltxcmds 2016/05/16 v1.23 LaTeX kernel commands for general use (HO)
)
\Gread@gobject=\count87
))
\Gin@req@height=\dimen103
\Gin@req@width=\dimen104
)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption.sty
Package: caption 2016/02/21 v3.3-144 Customizing captions (AR)
(/usr/share/texlive/texmf-dist/tex/latex/caption/caption3.sty
Package: caption3 2016/05/22 v1.7-166 caption3 kernel (AR)
Package caption3 Info: TeX engine: e-TeX on input line 67.
\captionmargin=\dimen105
\captionmargin@=\dimen106
\captionwidth=\dimen107
\caption@tempdima=\dimen108
\caption@indent=\dimen109
\caption@parindent=\dimen110
\caption@hangindent=\dimen111
)
\c@ContinuedFloat=\count88
)
(/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
) (./6.aux)
\openout1 = `6.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.
(./6.toc
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <10.95> on input line 5.
)
\tf@toc=\write3
\openout3 = `6.toc'.
Underfull \hbox (badness 10000) in paragraph at lines 21--28
[]
Underfull \hbox (badness 10000) in paragraph at lines 21--28
[]
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <9> on input line 43.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 43.
Underfull \hbox (badness 10000) in paragraph at lines 31--47
[]
Underfull \hbox (badness 10000) in paragraph at lines 31--47
[]
Underfull \hbox (badness 10000) in paragraph at lines 31--47
[]
Underfull \hbox (badness 10000) in paragraph at lines 31--47
[]
Underfull \hbox (badness 10000) in paragraph at lines 31--47
[]
[1
Non-PDF special ignored!
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
Underfull \hbox (badness 10000) in paragraph at lines 50--55
[]
Overfull \hbox (40.48505pt too wide) in paragraph at lines 58--59
\OT1/cmr/m/n/10.95 cir-cuit works on-line (ref: https://www.eevblog.com/forum/b
eginners/simple-
[]
Overfull \hbox (7.57411pt too wide) in paragraph at lines 62--63
\OT1/cmr/m/n/10.95 https://electronics.stackexchange.com/questions/311648/obtai
ning-a-
[]
Overfull \hbox (1.12566pt too wide) in paragraph at lines 62--63
\OT1/cmr/m/n/10.95 triangle-wave-from-a-square-wave-using-a-lm324n-op-amp) and
these
[]
[2]
Overfull \hbox (51.67836pt too wide) in paragraph at lines 78--81
\OT1/cmr/m/n/10.95 https://www.allelectronics.com/item/sol-154/12vdc-push-type-
solenoid/1.html
[]
Overfull \hbox (19.25427pt too wide) in paragraph at lines 78--81
\OT1/cmr/m/n/10.95 per this dis-cus-sion: https://forum.sparkfun.com/viewtopic.
php?t=10308
[]
[3] [4] [5] (./6.aux) )
Here is how much of TeX's memory you used:
3517 strings out of 494945
53314 string characters out of 6181032
118045 words of memory out of 5000000
6793 multiletter control sequences out of 15000+600000
10030 words of font info for 35 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
39i,8n,38p,727b,189s stack positions out of 5000i,500n,10000p,200000b,80000s
</usr/share/texlive/texmf-dist/fonts/type1/public/amsfon
ts/cm/cmbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/
cmbx12.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.
pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb></u
sr/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>
Output written on 6.pdf (5 pages, 100018 bytes).
PDF statistics:
48 PDF objects out of 1000 (max. 8388607)
33 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)

BIN
Door_Chime/docs/6.pdf View File


+ 105
- 0
Door_Chime/docs/6.tex View File

@ -0,0 +1,105 @@
\documentclass[11pt]{article}
%Gummi|065|=)
\usepackage{graphicx}
\usepackage{caption}
\usepackage{xcolor}
\usepackage[vcentering,dvips]{geometry}
\geometry{papersize={6in,9in},total={4.5in,6.8in}}
\title{\textbf{Door Alarm}}
\author{Steak Electronics}
\date{}
\begin{document}
\maketitle
\tableofcontents
\textcolor{green!60!blue!70}{
\section{Overview}}
Client wants a door alarm. Let's do a few transistors, an audio amplifier board, a magnet and magnetic reed switch, along with a light switch.
Functionality req'd:
\\
\\
Makes noise when door opened.
\\
\\
Able to be shut off with light switch.
\textcolor{green!60!blue!70}{
\section{BOM}}
Any audio amplifier loud enough will work. I'm going to use this one:
\\
\\
IS31AP4088A-QFLS2-EB
\\
\\
I think I have speakers and transistors. I'll need a magnetic reed switch and magnet. They should be black, as the door is black.
\\
\\
MS-324-3-3-0500
\\
\\
let's also try 59140-1-S-03-A,\footnote{A and F ending letters on this, A is tinned, F untinned leads} as first co. doesn't make the matched magnets...
\\
\\
and the magnet,
57140-000
A speaker, although I have plenty in my junk bin.
AS07708PS-2-WR-R
\\
\\
That's a start.
\textcolor{green!60!blue!70}{
\section{Work Log: LM324, LM555, TIP120,125}}
I spent a bit on this during the evening. I tried first with a LM324, in falstad (sim software) to see if I could make a function gen, out of 3 op amps. I was unable to get the sim to work, although reportedly the circuit works online (ref: https://www.eevblog.com/forum/beginners/simple-analog-function-generator-design/msg1174548/\#msg1174548)
I decided instead, to simulate a triple 5 with a LM324, to finally a transistor output, and this worked in sim. I breadboarded the circuit however, the output was not switching correctly. It turned out later, that I had not read my TIP125 close enough - it is a PNP. Oops.
Before realizing this error, I breadboarded two op amps, (ref: https://electronics.stackexchange.com/questions/311648/obtaining-a-triangle-wave-from-a-square-wave-using-a-lm324n-op-amp) and these were able to make the square / triangle wave without issue. Not practical in this situation however, as the freq. is low. I tried adjusting via the R between output 1 and inverting input for op amp 2, but this did not work as expected. I had long leads with a variable resistance box. Most likely, the issue.
Next, I will breadboard the triple 5 with the LM324 (which may be optional) and use that. I will throw in an Arduino to switch the triple 5 on/off via the RST pin. This will allow for some adjustment of tone.\footnote{I could just use the tone() function on the Uno, and have a transistor handle the output, but the goal of this project was to lean more towards the analog.} Future improvements would be to get some way of removing the Arduino from the project. I would need a solution that will adjust how often the RST pin is switched, for some short period of time while the door magnet switch is active.
I might end up just using tone, if the 555 doesn't sound good.
\section{Door Magnet Reed Sensor}
I tried buying one from mouser,digikey but they are all small. Seems the standard is 28mm by 10mm or so. I didn't realize it until I purchased it, but it looks quite a bit smaller than I am used to. Not acceptable.
I spent some time looking at all the options. I was unable to find the bigger size. Even the imports from Sparkfun and Adafruit were small. There was a nice screw terminal omrom option but it was \$30. I opted for ebay where there were some used, brand name, sensors in the US. I found some for about \$5 each, including magnet AND the sensor (on mouser/digikey, you often have to get them separately).
\subsection{Buzzer or Bell}
I thought about a buzzer. Like, a ringer from a telephone. I didn't find them on mouser/digikey, but I did see a lot of piezo buzzers. Need to look again. Even better would be a bell, but that requires an actuator or a motor. I don't want to deal with moving parts, it will be more likely to break. Let's put that idea aside for another day.
Still, I like the idea of a bell, and an actuator to ring it...
I tried one on ebay. If that doesn't work there is this one:
https://www.allelectronics.com/item/sol-154/12vdc-push-type-solenoid/1.html
per this discussion: https://forum.sparkfun.com/viewtopic.php?t=10308
As for the bell, I will hold off until I know how the solenoid works.
\footnote{I decided that the sound of the bell is worth the risk of using moving parts.}
\subsection{Signal Mosfets for Actuator}
I have a solenoid, from ebay (actuator) and I've got a bell\footnote{I ring it in the morning... I ring it in the evening...}.
I tried some 2n7000 signal mosfets (to-92), and I am unable to get it to work. I think it's due to current limits (200mA). These, the 2n7000 have protection diodes built in, according to data sheet image.
In any case, I set up the small npn transistor with 1k to base (grounded) and a 12V battery, with the motor on the collector/drain side. What happens is that it doesn't switch (as it shouldn't) when base is grounded, but float the base, and it switches on, sometimes. Eventually, it will just turn on no matter what, whether base is grounded or not. As I mentioned, these to-92's can't handle the actuator.
I could always use a relay, but that wasn't the point. I'm trying to get the transistors to work. I also tried a TIP120, NPN, darlington mosfet, but this didn't work on the perf board, and I moved to the 2n7000.
EDIT: I was able to get expected results from the 2N7000, by not forgetting the diode across the motor. Put gate low, it is off. Put gate high, it is on. However, it latches. I have to put the gate low again in order to get it to turn off...
A solution to rememdy this is to hold the base/gate at ground with a 2.2K R, then short the base HI (12V here) to turn it on (quickly, and shortly) before letting it go back to ground. Seems to work with no ringing at GND after coil is off. Or, just use an arduino and wire to IO.
Also, I definitely did blow some of the Mosfets, without the diode on the motor. They have their own protection, but that isn't enough by itself.
In other news, the bell is looking like a better solution than the speaker I considered before. More moving parts, but worth it.
\end{document}

+ 103
- 0
Door_Chime/docs/6.tex~ View File

@ -0,0 +1,103 @@
\documentclass[11pt]{article}
%Gummi|065|=)
\usepackage{graphicx}
\usepackage{caption}
\usepackage{xcolor}
\usepackage[vcentering,dvips]{geometry}
\geometry{papersize={6in,9in},total={4.5in,6.8in}}
\title{\textbf{Door Alarm}}
\author{Steak Electronics}
\date{}
\begin{document}
\maketitle
\tableofcontents
\textcolor{green!60!blue!70}{
\section{Overview}}
Client wants a door alarm. Let's do a few transistors, an audio amplifier board, a magnet and magnetic reed switch, along with a light switch.
Functionality req'd:
\\
\\
Makes noise when door opened.
\\
\\
Able to be shut off with light switch.
\textcolor{green!60!blue!70}{
\section{BOM}}
Any audio amplifier loud enough will work. I'm going to use this one:
\\
\\
IS31AP4088A-QFLS2-EB
\\
\\
I think I have speakers and transistors. I'll need a magnetic reed switch and magnet. They should be black, as the door is black.
\\
\\
MS-324-3-3-0500
\\
\\
let's also try 59140-1-S-03-A,\footnote{A and F ending letters on this, A is tinned, F untinned leads} as first co. doesn't make the matched magnets...
\\
\\
and the magnet,
57140-000
A speaker, although I have plenty in my junk bin.
AS07708PS-2-WR-R
\\
\\
That's a start.
\textcolor{green!60!blue!70}{
\section{Work Log: LM324, LM555, TIP120,125}}
I spent a bit on this during the evening. I tried first with a LM324, in falstad (sim software) to see if I could make a function gen, out of 3 op amps. I was unable to get the sim to work, although reportedly the circuit works online (ref: https://www.eevblog.com/forum/beginners/simple-analog-function-generator-design/msg1174548/\#msg1174548)
I decided instead, to simulate a triple 5 with a LM324, to finally a transistor output, and this worked in sim. I breadboarded the circuit however, the output was not switching correctly. It turned out later, that I had not read my TIP125 close enough - it is a PNP. Oops.
Before realizing this error, I breadboarded two op amps, (ref: https://electronics.stackexchange.com/questions/311648/obtaining-a-triangle-wave-from-a-square-wave-using-a-lm324n-op-amp) and these were able to make the square / triangle wave without issue. Not practical in this situation however, as the freq. is low. I tried adjusting via the R between output 1 and inverting input for op amp 2, but this did not work as expected. I had long leads with a variable resistance box. Most likely, the issue.
Next, I will breadboard the triple 5 with the LM324 (which may be optional) and use that. I will throw in an Arduino to switch the triple 5 on/off via the RST pin. This will allow for some adjustment of tone.\footnote{I could just use the tone() function on the Uno, and have a transistor handle the output, but the goal of this project was to lean more towards the analog.} Future improvements would be to get some way of removing the Arduino from the project. I would need a solution that will adjust how often the RST pin is switched, for some short period of time while the door magnet switch is active.
I might end up just using tone, if the 555 doesn't sound good.
\section{Door Magnet Reed Sensor}
I tried buying one from mouser,digikey but they are all small. Seems the standard is 28mm by 10mm or so. I didn't realize it until I purchased it, but it looks quite a bit smaller than I am used to. Not acceptable.
I spent some time looking at all the options. I was unable to find the bigger size. Even the imports from Sparkfun and Adafruit were small. There was a nice screw terminal omrom option but it was \$30. I opted for ebay where there were some used, brand name, sensors in the US. I found some for about \$5 each, including magnet AND the sensor (on mouser/digikey, you often have to get them separately).
\subsection{Buzzer or Bell}
I thought about a buzzer. Like, a ringer from a telephone. I didn't find them on mouser/digikey, but I did see a lot of piezo buzzers. Need to look again. Even better would be a bell, but that requires an actuator or a motor. I don't want to deal with moving parts, it will be more likely to break. Let's put that idea aside for another day.
Still, I like the idea of a bell, and an actuator to ring it...
I tried one on ebay. If that doesn't work there is this one:
https://www.allelectronics.com/item/sol-154/12vdc-push-type-solenoid/1.html
per this discussion: https://forum.sparkfun.com/viewtopic.php?t=10308
As for the bell, I will hold off until I know how the solenoid works.
\footnote{I decided that the sound of the bell is worth the risk of using moving parts.}
\subsection{Signal Mosfets for Actuator}
I have a solenoid, from ebay (actuator) and I've got a bell\footnote{I ring it in the morning... I ring it in the evening...}.
I tried some 2n7000 signal mosfets (to-92), and I am unable to get it to work. I think it's due to current limits (200mA). These, the 2n7000 have protection diodes built in, according to data sheet image.
In any case, I set up the small npn transistor with 1k to base (grounded) and a 12V battery, with the motor on the collector/drain side. What happens is that it doesn't switch (as it shouldn't) when base is grounded, but float the base, and it switches on, sometimes. Eventually, it will just turn on no matter what, whether base is grounded or not. As I mentioned, these to-92's can't handle the actuator.
I could always use a relay, but that wasn't the point. I'm trying to get the transistors to work. I also tried a TIP120, NPN, darlington mosfet, but this didn't work on the perf board, and I moved to the 2n7000.
EDIT: I was able to get expected results from the 2N7000, by not forgetting the diode across the motor. Put gate low, it is off. Put gate high, it is on. However, it latches. I have to put the gate low again in order to get it to turn off...
A solution to rememdy this is to hold the base/gate at ground with a 2.2K R, then short the base HI (12V here) to turn it on (quickly, and shortly) before letting it go back to ground. Seems to work with no ringing at GND after coil is off. Or, just use an arduino and wire to IO.
In other news, the bell is looking like a better solution than the speaker I considered before. More moving parts, but worth it.
\end{document}

+ 6
- 0
Door_Chime/docs/6.toc View File

@ -0,0 +1,6 @@
\contentsline {section}{\numberline {1}Overview}{1}
\contentsline {section}{\numberline {2}BOM}{1}
\contentsline {section}{\numberline {3}Work Log: LM324, LM555, TIP120,125}{2}
\contentsline {section}{\numberline {4}Door Magnet Reed Sensor}{3}
\contentsline {subsection}{\numberline {4.1}Buzzer or Bell}{3}
\contentsline {subsection}{\numberline {4.2}Signal Mosfets for Actuator}{4}

Loading…
Cancel
Save