For all parts to this project, click here! Smart Doorbell System
Introduction
The Smart Doorbell System is an idea for a home bell-push/chime system with better range and features than expected from existing systems!
It relies on Bluetooth LE for communication; the system is wireless. In order to get there, the design will make use of the Texas Instruments CC2640R2F wireless chip, in both the bell push and the chime modules. This chip contains processing and wireless capabilities all-in-one. To get started with this chip, a CC2640R2 development boardCC2640R2 development board is available.
Since this design challenge is a complete project, the steps to get there will require involve producing a design from the requirements, and implementing it in software and hardware. There will be software development and debugging to do, and schematic entry, PCB layout and CAD design. The first part Smart Doorbell System - Part 1 - Getting to know the CC2640R2 examined the development board from TI, called the CC2640R2 LaunchPad (most of TI's microcontroller development boards are called LaunchPads - they all have a similar layout with dual 20-way headers for attaching daughter boards called BoosterPacks).
The LaunchPad contains the CC2640R2F integrated circuit (in a 40-pin VQFN package) along with a programmer/debugger that connects to the PC using USB. It was also explored how Autodesk Fusion could be used to directly create an enclosure based on the PCB information.
PCBs can take a while to manufacture and get delivered, so I wanted to get a move on and at least prepare for it now, so that it can be worked on as the design progresses. This blog post discusses the CC2640R2F part creation in Autodesk EAGLE which is useful for laying out circuits and PCBs.
Some Initial PCB and Component Considerations
Life has been made quite easy with the CC2640R2 LaunchPad, because it comes with a full itemised list of parts on the board (CC2640R2 Launchpad documentation link scroll down to Design Files). Therefore for reduced risk I can chose similar or identical crystals for example. The LaunchPad board has an integrated PCB antenna, but I may choose to use a different antenna (and perhaps different for the bell push module and for the chime module). Since element14 kindly provided a budget, I used some of it to purchase some antennas so I can try them out. Many antennas intended for consumer applications tended to have reverse-polarity SMA connectors to prevent users from attaching high-gain directional antennas, and there are legal requirements in some countries regarding connectors and removable or fixed antenna selection. For the purposes of this prototype, a standard connector will be used, but a commercial design will need to swap it out to suit any current legislation in its intended market.
As part of the antenna matching procedure, space will be left on the PCB for soldering inductors or capacitors to provide for the ideal match between the source and load, so that communication range can be good.
PCB Land Pattern Creation with EAGLE
I’m using a slightly older version of Autodesk EAGLEAutodesk EAGLE, so the procedure may have changed in recent times. Rachael’s ( rachaelp ) excellent EAGLE tutorial can be used as a guide. I used the CC2640R2F datasheet to obtain all the measurements.
The final part is shown here:
Shaped pads are needed, so they were created by setting the Roundness attribute to 100% on each rectangular pad. I didn’t want solder to travel up the entire pad much beyond the outline of the component, so shapes were drawn on the tStop layer to define the area where the green stuff would be absent on the PCB, and for each pad the automated Stop creation attribute was disabled.
The patchwork of squares in the center pad area in the screenshot above are for the stencil creation, to prevent too much solder paste being applied. For radio chips the vias are mandatory for the ground plane. I will need to consider how to prevent solder wicking into the holes too much. Low-cost PCBs do not have filled via holes. I have a few ideas, but experimentation is needed.
After the part was created, it was verified with a third party viewer, PentaLogix Viewmate. It works really well with EAGLE - just point it at the folder where the Gerber files (generated using EAGLE's computer aided machining [CAM] processor) are stored, and it does its magic.
The software can automatically run Design for Manufacture (DFM) rules and inform of errors and warnings that could prevent a successful PCB being manufactured. For instance in my case, it warned that the holes were of a non-standard drill size, which I can easily correct.
Component Schematic Entry
As part of the part creation process in EAGLE, the schematic symbol was created too. I used the TI schematic symbol as used in the LaunchPad, as a reference, but with some small adjustments to suit this project.
Since there are many pins (48 plus the center pad), the schematic symbol is split up into two parts; one for input/output connections, and the other for all the remainder connections (such as power, crystal and debugger).
Next Steps
The PCB parts entry process will continue as the design evolves. I will also fire up the software development environment, and start getting familiar with working with TI’s operating system (OS) and libraries of useful functions!
Top Comments