Software apps and online services
Hand tools and fabrication machines
A Smart Home Door Locker Sensor
The demo video above demonstrates how A Smart Home Door Locker Sensorworks
Figure 1 shows a functioning Smart Home Door Locker Sensor mounted on the door.
Figure 1 above shows an unmounted Smart Home Door Locker Sensor with the Solenoid Lock in an unlocked position
Figure 1 above shows an unmounted Smart Home Door Locker Sensor with the Solenoid Lock in a locked position.
In the above figure is a Fritzing breadboard that shows how A Smart Door Locker Sensor controller circuit was designed
Figure 5 shows a component side of the Experimental Prototyping Board with four holes at the corners for 5mm spacers.
Figure 6 shows a 150mm x 100mm Experimental Prototyping Board without components having been mounted and soldered.
Figure 7 shows the component side of the Experimental Prototyping Board with the PSoC 4100S Pioneer Kit and the spacers mounted.
Figure 8 shows the solder side of the Experimental Prototyping Board. After having soldered the pin headers onto the board, some of the pins are connected together. I had to use a utility retractable knife to disconnect them.
On the left side of Figure 9, is a power terminal dc jack to which the 12V 1A (24W) power adapter connects.
The PSoC 4100S Pioneer Kit is a 5-volt-powered development kit and the output of the power adapter is 12 volts. In order for me to get a 5V output, I had to use an LM7805C fixed voltage regulator with a heatsink (Figure 10).
On the left side of the stripped Experimental Prototyping Board is a Type A Female USB port that supplies a smooth 5V dc voltage to the PSoC 4100S Pioneer Kit.
Figure 12 shows the component side of the Experimental Prototyping Board with the 5V fixed voltage regulator being connected to the power dc jack connector via 1N4007 standard diode
Figure 13 above shows a red LED that indicates the ON/OFF states of the Smart Home Door Locker Sensor.
The above figure shows the Experimental Prototyping Board without the buzzer.
Figure 15 shows the solder side of the Experimental Prototyping Board with unwanted connections being cut out.
Figure 16 shows the component side of the Experimental Prototyping Board all components connected to the PSoC 4100S Pioneer Kit.
Figure 17 shows a Smart Home Door Locker Sensor when the relay is energized. The blue LED indicates that the selenoid lock is in an unlocked position.
Figure 18 shows the right side of the component side of the Experimental Prototyping Board with three Light Emitting Diodes (LEDs). These three LEDs indicate the status of the Smart Home Door Locker Sensor. When the Green LED is ON, the door is unlocked.
Figure 21 shows Smart Home Door Locker Sensor when powered ON by 12V 2A power adapter.
Figure 22 shows the 12V selenoid lock in a locked position.
In order for me to demonstrate how the locking mechanism works, I used the above bracket
Figure 24 shows the Type A USB Female Connector soldered onto the board. I used this USB to supply a smooth dc 5 voltage to the PSoC 4100S Pioneer Kit
Figure 25 shows an opened 12V selenoid lock.
Figure 26 shows a 12V 1A (24W) dc power adapter that I used to supply a smooth direct current voltage to the Smart Home Door Locker Sensor.
Figure 27 shows a Type A male USB to mini-USB cable that is used for both programming and supplying a 5V dc voltage to the PSoC 4100S Pioneer Kit.
Figure 28 is a utility retractable knife that I used to cut out unwanted connections on the Experimental Prototyping Board
The above picture shows 0.5mm 8-core cable that I used to make connections between components.
Since I did not have a side cutter, I had to use a plier for cutting and bending wires. It is shown in the figure above (Figure 30).
Figure 31 is a Fritzing software home page.
Figure 32 shows the breadboard layout in the Fritzing software
A schematic diagram of the Smart Home Door Locker Sensor is shown in the above picture (Figure 33).
Figure 34 shows the Fritzing PCB layout of the Smart Home Door Locker Sensor.
Figure 35 shows the PSoC Creator 4.0 software without an open project.
Figure 36 above shows the pin connection to the main arm-cortex m0 plus processor.
Figure 37 shows the pin assignment in the PSoC Creator 4.0 Software.
The picture in Figure 38 depicts the file listing of the project.
Figure 39 depicts the datasheets of the peripherals of the main cortex-m microcontroller plus processor.
Figure 40 shows the resource components.
Figure 41 shows the top design of the project.
The picture in the above figure (Figure 42) depicts the design interface of the project.
Figure 43 shows the buzzer function that switches ON/OFF a 5V buzzer.
Figure 44 shows the code snippet for ProcessSmartLockData function
Figure 45 shows the code snippet that switches ON/OFF the 12VDC relay that controls the 12V selenoid lock.
The code snippet in the above figure tests all the external components connected to the PSoC 4100S Pioneer Kit.
Figure 47 shows a code snippet that extracts a five-digit PIN.
Figure 48 shows the code snippet that controls the buzzer.
Figure 49 is a code snippet that chooses an LED base on the state of 12V selenoid lock.
Figure 50 shows the code snippet for state machine of the main code.
Figure 51 above shows the main.c source code.
Figure 52 shows the initialization code snippet of the PSoC 4100S Pioneer Kit hardware.