Dump the Keys and Build a Smart Lock Control Unit Fast

Dump the Keys and Build a Smart Lock Control Unit Fast

Home security is an increasing concern as crime rates continue to rise around the world. The smart lock market is projected to grow to over 2.7 billion by 2023 across various applications including residential, commercial, and industrial. To keep up with this growth, startups and established companies need a way to streamline their design process and find an inexpensive, versatile, and easy to use development solution to take a proof of concept into production as quickly as possible. By saving time developing a prototype, developers can spend more time incorporating key differentiating factors into designs that maximize revenue.

Solution
To accelerate the design of IoT devices, NXP has introduced the Rapid IoT prototyping kit. It integrates eleven NXP devices (microcontroller, low-power connectivity, sensors, NFC, secure element, power management, interface) in a small form-factor hardware design, and combines it with proven software enablement (drivers, RTOS, middleware, cloud connect) and a web IDE with GUI based programming. Refer to Figure 1 for the complete block diagram. You can get one by clicking here.

Rapid IoT provides the easiest path for anyone to take their connected device to a proof-of-concept by simplifying the design process. It eliminates the need to write code and integrates all the necessary functions required by an IoT device including the ability to sense, think, and act.

Rapid IoT Prototyping Kit Block Diagram

Figure 1. Rapid IoT Prototyping Kit Block Diagram

 

Smart Lock Design with Rapid IoT

Figure 2. Smart Lock Design with Rapid IoT

Design Considerations and Implementation
Figure 2 shows the smart lock control unit conceptual design. With a smart phone app, the user can lock and unlock a door via BLE communication. If movement is detected by the smart lock control unit, a warning message is sent to the smart phone device and an alarm is activated. For data storage and enhanced communication capability, the smart phone device and/or smart lock control unit should be able to transmit/receive data from the cloud via Wi-Fi or 4G connectivity.

To design this smart lock control unit using the Rapid IoT kit, the following criteria was considered:

  1. The control unit or locker should have a UI to locally manage and control the lock.
  2. The smart device should have a UI to wirelessly manage and control the lock via BLE or Wi-Fi.
  3. Data processed and acquired can be uploaded securely to the cloud for future analysis.

Results
To achieve this, the Rapid IoT design uses one GPIO pin to control the locker and uses the accelerometer to detect door movement. Wireless connectivity is possible via BLE or Wi-Fi while the hardware and smartphone UI was easily designed using the Rapid IoT Studio IDE tool without writing a single line of code. To secure data uploads to the cloud, a secure tamper resistant authentication device is used.

Figures 3 through 5 show the Rapid IoT studio environment and the smart lock function design and hardware. Figures 6 shows the Rapid IoT smart phone UI design, which is used to wirelessly monitor and control the locker.

All the necessary files to build and test this design can be found here.

Rapid IoT Studio – Function Design

Figure 3. Rapid IoT Studio – Function Design

 

Rapid IoT Kit Hardware – Locker UI

Figure 4. Rapid IoT Kit Hardware – Locker UI

 

Rapid IoT Kit Hardware – Complete setup

Figure 5. Rapid IoT Kit Hardware – Complete setup

Rapid IoT Studio –Smart Phone UI Design

Figure 6. Rapid IoT Studio –Smart Phone UI Design

Need Help?
If you have a question or concern, you can post it in our Rapid IoT community page by clicking here.

Additional Resources

Sources:

Market data

https://semiconductors.einnews.com/pr_news/464688292/global-smart-locks-market-research-and-forecast-2018-2023

 

Javier Solorzano and Peter Wang
Javier Solorzano and Peter Wang
In close collaboration, Peter Wang, MCU SW engineer for MICR MCU SW team, and Javier Solorzano, Segment Marketing Manager for Industrial and IoT, are exemplifying NXPs mission to develop solutions that make lives safer, better, and easier by using NXPs Rapid IoT prototyping kit to quickly take an idea to proof of concept.

Comments are closed.

Buy now