You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
4.4 KiB

4 years ago
4 years ago
4 years ago
  1. \documentclass[11pt]{article}
  2. %Gummi|065|=)
  3. \usepackage{graphicx}
  4. \usepackage{caption}
  5. \usepackage{xcolor}
  6. \usepackage[vcentering,dvips]{geometry}
  7. \geometry{papersize={6in,9in},total={4.5in,6.8in}}
  8. \title{\textbf{Door Alarm}}
  9. \author{Steak Electronics}
  10. \date{}
  11. \begin{document}
  12. \maketitle
  13. \tableofcontents
  14. \textcolor{green!60!blue!70}{
  15. \section{Overview}}
  16. 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.
  17. Functionality req'd:
  18. \\
  19. \\
  20. Makes noise when door opened.
  21. \\
  22. \\
  23. Able to be shut off with light switch.
  24. \textcolor{green!60!blue!70}{
  25. \section{BOM}}
  26. Any audio amplifier loud enough will work. I'm going to use this one:
  27. \\
  28. \\
  29. IS31AP4088A-QFLS2-EB
  30. \\
  31. \\
  32. 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.
  33. \\
  34. \\
  35. MS-324-3-3-0500
  36. \\
  37. \\
  38. 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...
  39. \\
  40. \\
  41. and the magnet,
  42. 57140-000
  43. A speaker, although I have plenty in my junk bin.
  44. AS07708PS-2-WR-R
  45. \\
  46. \\
  47. That's a start.
  48. \textcolor{green!60!blue!70}{
  49. \section{Work Log: LM324, LM555, TIP120,125}}
  50. 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)
  51. 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.
  52. 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.
  53. 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.
  54. I might end up just using tone, if the 555 doesn't sound good.
  55. \section{Door Magnet Reed Sensor}
  56. 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.
  57. 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).
  58. \subsection{Buzzer or Bell}
  59. 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.
  60. Still, I like the idea of a bell, and an actuator to ring it...
  61. I tried one on ebay. If that doesn't work there is this one:
  62. https://www.allelectronics.com/item/sol-154/12vdc-push-type-solenoid/1.html
  63. per this discussion: https://forum.sparkfun.com/viewtopic.php?t=10308
  64. As for the bell, I will hold off until I know how the solenoid works.
  65. \footnote{I decided that the sound of the bell is worth the risk of using moving parts.}
  66. \end{document}