For all the parts to this project, click here! Smart Doorbell System
Introduction
The Smart Doorbell System is an idea for a wireless and portable bell-push/chime system with hopefully better range and features than expected from existing systems! It was a project developed in ten week(ends) and evenings.
For those that may wish to replicate the project (or parts of the project) then this blog post is a kind of 'supplement' with miscellaneous information such as the bill of materials (BoM) and links to any additional files or documents that could be useful.
Even if you're not interested in building it, hopefully some information here is useful - for example if you spot a part that you like in any of the blog posts, the order codes will be listed here.
Source Code
Bell Push Module and Chime Module
The source code is attached to this blog post in a file called cc2640r2-project-source.zip. To use it with TI Code Composer Studio, the BLE 5.0 stack version 1_50_00_71 needs to be installed (otherwise the code may need modification). The bell push module project is in the simple_central folder, and the chime module project is in the simple_peripheral folder. The code is very proof-of-concept, be prepared to modify it as needed. It is just a snapshot of code, and it will continue to be enhanced (it will probably be re-written).
Raspberry Pi Central and Peripheral Mode
The Pi can connect to the Bell Push and Chime Modules, in order to either tunnel events over the Internet, or to add new features like taking a photo from a Pi Camera whenever someone presses the Bell Push module, and so on. The source code for connecting to both modules is here: Smart Doorbell System - Part 9 - Working with BLE - What it is, and How to Use It! . In that blog post, scroll to the section Creating a BLE Peripheral Device with a Raspberry Pi for the code that will receive Bell Push Module events. The section Creating a BLE Central Device with a Raspberry Pi contains the code that can connect to the Chime Module.
FM Music Synthesizer
The code that can be compiled and run on any Linux system (e.g. Pi) is available in this blog post: Smart Doorbell System – Part 8 – FM Sound Synthesizer and XDS110 Debugger and Tag-Connect Adaptor . For the code that runs on the CC2640R2, refer to the file mentioned earlier, called cc2640r2-project-source.zip, in the simple_peripheral folder. The code is currently set to just produce a chime sound, but the FM synthesizer code is there too.
PCB Files
The PCB files for the Bell Push Module, the Chime Module, and the XDS110 to Tag-Connect Adaptor Board are all attached to this blog post.
Bill of Materials - Bell Push Module
Most of the components here like resistors and capacitors are interchangeable with other parts of the same value, in case some are out of stock. Any extra specific attributes that are important when selecting an alternative are listed in the Description field.
Qty | Value | Mnfr Code | Identifier | Farnell Code | Description |
---|---|---|---|---|---|
1 | - | D2LS-21D2LS-21 | SW1 | 25232162523216 | D2LS series microswitch, Omron, surface mount |
1 | - | TACT-SW-9471898 | SW2 | 94718989471898 | TACT switch 9471898 |
1 | - | TESTPOINT-1MM | TP1 | 17020061702006 | Test Point terminal up to 1mm dia |
1 | 0R | 0 ohm 0603 | R5 | 14697391469739 | Resistor 0603 |
2 | 100R | 100 ohm 0402 | R2, R4 | 11741461174146 | Resistor 0402 |
1 | 100k | 100kohm 0402 | R1 | 23028392302839 | Resistor 0402 |
1 | 22R | 22 ohm 0402 | R6 | 92390309239030 | Resistor 0402 |
1 | 270R | 270 ohm 0402 | R3 | 23314972331497 | Resistor 0402 |
1 | 33R | 33 ohm 0402 | R7 | 92390579239057 | Resistor 0402 |
7 | 100n | C0402C104M3RACTUC0402C104M3RACTU | C14, C15, C16, C17, C18, C19, C20 | 25283422528342 | 100nF 25V 0402 X7R Capacitor |
2 | 10u | ZRB18AR61E106ME01L | C13, C21 | 24693982469398 | 10uF 25V 0603 X5R Capacitor |
3 | 12p | C0402C120G5GACTU | C6, C10, C11 | 28210652821065 | 12pF 0402 C0G Capacitor |
3 | 1p | GRM1555C1H1R0BA01D | C1, C3, C5 | 26118932611893 | 1pF 0402 C0G Capacitor |
1 | 6.8p | GJM1555C1H6R8BB01D | C2 | 27814402781440 | 6.8pF 0402 C0G Capacitor |
1 | 1.8p | CBR04C189B5GACCBR04C189B5GAC | C8 | 26126072612607 | 1.8pF 0402 C0G Capacitor |
1 | 1u | C-EUC0603 | C12 | CAPACITOR, European symbol | |
3 | DNF | C-EUC0402 | C4, C7, C9 | N/A | CAPACITOR, European symbol |
1 | 10uH | LB2012T100KR | L5 | 14635011463501 | 10uH 120mA 0805 Inductor |
2 | 2.4nH | LQW15AN2N4B00DLQW15AN2N4B00D | L1, L2 | 24703282470328 | 2.4nH RF Inductor 0402 Murata |
2 | 2nH | L-07W2N0CV4TL-07W2N0CV4T | L3, L4 | 18658221865822 | 2nH RF Inductor 0402 Johanson |
1 | 24MHz | X1E0000210122 TSX-3225 24 MHZ 9.0PF | X1 | 17128421712842 | 24MHz crystal, TSX-3225 3.2x2.5mm |
1 | 32.768kHz | ABS07-32.768KHZ-7-T | X2 | 18389351838935 | 3.2x1.5mm Xtal, example is Abracon ABS07 or ABS071 packages, e.g. Farnell 1838935 Abracon ABS07-32.768KHZ-7-T - Crystal, 32.768 kHz, SMD, 3.2mm x 1.5mm, 7 pF, 20 ppm, ABS07 Series |
1 | AA+ | 596 | B1+ | 16507071650707 | Positive battery contact, Keystone |
1 | AA- | 590 | B1- | 13398441339844 | Negative battery contact, Keystone |
1 | CC2640R2FRGZ | CC2640R2FRGZ | U1 | 26902252690225 | CC2640R2FRGZ 48-pin QFN with pad package Texas Instruments |
1 | ORANGE | VLMO30L1M2-GS08VLMO30L1M2-GS08 | D1 | 13283321328332 | LED Vishay VLM_30 series Orange, 2 mA, 1.8 V |
1 | U.FL | U.FL-R-SMT-1(10) | J2 | 16880771688077 | U.FL RF Connector |
Bill of Materials: Chime Module
Chime module BoM:
Qty | Value | Mnfr Code | Identifier | Farnell Code | Description |
---|---|---|---|---|---|
2 | - | M20-7831046M20-7831046 | A1, A2 | 79920257992025 | 20-way DIL header socket |
1 | 0R | 0 ohm 0603 | R17 | 14697391469739 | Resistor 0603 |
2 | 100R | 100 ohm 0603 | R23, R24 | 14697521469752 | Resistor 0603 |
5 | 10k | 10k 0603 | R3, R6, R13, R15, R25 | 17389181738918 | Resistor 0603 |
2 | 1k | 1k 0603 | R7, R9 | 14697401469740 | Resistor 0603 |
4 | 2.2k | 2.2k 0603 | R4, R5, R20, R26 | 14697651469765 | Resistor 0603 |
1 | 220R | 220R 0603 | R21 | Resistor 0603 | |
1 | 22k | 22k 0603 | R19 | Resistor 0603 | |
1 | 270R | 270R 0603 | R22 | Resistor 0603 | |
3 | 33R | 33R 0603 | R8, R12, R14 | Resistor 0603 | |
2 | 39k | 39k 0603 | R10, R11 | Resistor 0603 | |
1 | 4.7k | 4.7k 0603 | R16 | Resistor 0603 | |
2 | 470R | 470R 0603 | R1, R2 | 26144452614445 | Resistor 0603 |
1 | 47k | 47k 0603 | R18 | Resistor 0603 | |
9 | 100n | 100n 0603 | C2, C7, C11, C12, C14, C15, C19, C20, C24 | 13017131301713 | Capacitor X7R 0603 |
1 | 10n | 10n 0603 | C22 | 22806462280646 | Capacitor X7R 0603 |
1 | 10u | 10u 0805 | C3 | 25251452525145 | Capacitor X7R 0805 |
2 | 10u | EEEHD1E100AREEEHD1E100AR | C16, C18 | 17147351714735 | Capacitor 10uF 25V Aluminium Panasonic 'C' size |
1 | 1u | C2012X7R1H105K125AB | C17, C21 | 23469442346944 | Capacitor X7R 0805 |
6 | 2.2u | GRM21BR71A225KA01L | C1, C5, C6, C9, C10, C13 | 18289231828923 | 2.2uF 10V X7R 0805 Capacitor |
2 | 2n2 | 2.2n C0G 0603 | C4, C8 | 88199478819947 | 2.2nF 0603 C0G Capacitor |
1 | 4.7uF 10V | C2012X7R1A475K125AC | C23 | 23469362346936 | 4.7uF 10V X7R 0805 Capacitor |
2 | FBEAD | IND-0805 | L1, L2 | ||
1 | TLV431 | TLV431AIDBZR | D1 | 21443152144315 | TLV431 Adjustable Shunt Reg. Texas Instruments |
1 | BAS16 | BAS16 | D2 | ||
1 | MBRA210LT3G | MBRA210LT3G | D3 | 14590601459060 | MBRA210LT3G |
1 | ORANGE | VLMO30L1M2-GS08VLMO30L1M2-GS08 | D4 | 13283321328332 | LED Vishay VLM_30 series Orange, 2 mA, 1.8 V |
2 | BC847 | BC847 | Q1, Q2 | ||
1 | PCM5101A | PCM5101A | U1 | 24022502402250 | PCM5101APWR DAC TI TSSOP20 |
1 | TPA6211A1 | TPA6211A1 | U2 | 27828602782860 | TPA6211A1 TI Audio Power Amplifier3.1 W MSOP |
1 | LM1117-5.0 | LM1117IMP-5.0 | U3 | 23235812323581 | 5V LM1117IMP-5.0 800mA Linear Regulator |
1 | LTC4411 | LTC4411ES5#TRMPBF | U4 | LTC4411 2.6A Low Loss Ideal Diode | |
2 | REG101NA-3.3 | REG101 | U5, U6 | 17033971703397 | 3.3V REG101 fixed voltage regulator, SOT23-5 package |
2 | - | DTSM-32S-BDTSM-32S-B | SW1, SW2 | 94718989471898 | TACT switch Multicomp DTSM-32S-BDTSM-32S-B |
1 | - | 695402400222 | J3 | 26644332664433 | WR-LECO connector Wurth |
1 | - | DCJACK | J1 | DC Jack 2.1mm inner pin | |
1 | - | JST-PH-2 | J2 | 2-pin connector (JST PH series) | |
1 | - | TESTPOINT-1MM | TP1 | 17020061702006 | Test Point terminal up to 1mm dia |
Soldering: Useful Tools
Item | Description | |
---|---|---|
1 | Mini Fridge | The cheap 12V travel mini-fridges (e.g. from Argos or CPC in the UK) last for years – although the mains brick barely lasts more than a year! – so I purchased a separate high quality mains brick from Farnell |
2 | Solder | I used Qualitek 818 which is no-clean solder paste Sn62/Pb36/Ag2. Wash your hands afterwards! |
3 | Cleaning stuff | I used Qualitek stencil wipes and Isopropyl alcohol from MG Chemicals, and Dettol : ) for general cleaning |
4 | Flat work surface | Aluminium or plastic slab |
5 | Sticky tape | Any tape, for working with the stencil |
6 | Kapton tape | Ideal for attaching thermocouple probes |
7 | Spatula | For handling the solder paste |
8 | Low cost stainless steel tweezers | For general work near the heated board |
9 | Good quality tweezers | For handling the surface mount components |
10 | Thermometer | For using in the 'fridge, or for monitoring room temperature |
11 | Squeegee | Transition Automation handheld squeegee, available from Somerset Solders in the UK |
12 | Hot Air Pen | I used a Metcal HCT2-120HCT2-120 but the HCT2-200 is newerHCT2-200 is newer |
13 | Pre-Heater | Thermaltronics TMT-PH200 from AMS Electronics in the UK |
14 | Camera, Microscope or Lens | I use various ones as required |
15 | Light/Lamp | A good light source helps : ) |
Top Comments