Electric Touch Door Lock Circuit Using TTP223 and Relay – Full Explanation

Modern home security systems are becoming smarter, simpler, and more user-friendly. One such innovative solution is the Electric Touch Door Lock Circuit, which unlocks your door with a simple touch using a TTP223 touch sensor, a relay module, and a 12V electric lock. This circuit is ideal for DIY home automation projects, cabinets, lockers, and low-cost smart door systems.

This article explains the complete working, wiring diagram, components used, advantages, and applications of this project in detail.


Introduction

The Electric Touch Door Lock System is a touch-based locking mechanism that activates an electric lock whenever you touch the TTP223 capacitive touch sensor. Unlike traditional password locks or key-based systems, this setup is simple, reliable, and easy to build.

The core idea is straightforward:

  • The TTP223 touch sensor detects a touch.
  • It triggers the relay module.
  • The relay switches the 12V power to activate the electric lock.
  • The lock pulls back its latch and the door opens.

This project uses two different batteries:

  • A 12V battery pack (made with 18650 cells) to power the electric lock.
  • A 3.7V Li-Ion battery to power the touch sensor and relay module.

The circuit is safe, energy-efficient, and ideal for beginners learning about touch-based automation.

Components Used in the Circuit

ComponentDescription
TTP223 Touch Sensor ModuleCapacitive sensor that outputs HIGH when touched
Relay Module (5V)Controls switching of 12V electric lock
12V Electric LockDoor/cabinet latch that activates when powered
12V Battery Pack (3 × 18650 cells)Powers the electric lock
3.7V Li-Ion Battery (Single 18650)Powers the sensor and relay
Connecting WiresFor wiring the circuit
Mounting AccessoriesOptional, for installation

Circuit Diagram

Simple Touch Sensor-Based Door Lock Using TTP223 and 12V Lock

Working of the Electric Touch Door Lock Circuit

1. Touch Activation (TTP223 Sensor)

The TTP223 capacitive touch module senses a finger touch and outputs a HIGH signal.
This HIGH output goes to the IN pin of the relay module, triggering it instantly.

2. Relay Switching

When the relay receives the HIGH signal:

  • The relay coil energizes.
  • The COM and NO terminals of the relay connect.
  • This provides 12V power to the electric lock.

3. Electric Lock Activation

The 12V electric lock requires a high-current pulse to retract the metal latch.
When the relay switches:

  • The lock receives power.
  • Its latch pulls back.
  • The door opens automatically.

Once the touch is released:

  • The sensor output returns LOW.
  • The relay turns OFF.
  • The lock returns to its locked position.

4. Why Two Batteries?

LoadRequired VoltageSupplied By
Sensor + Relay3.3V – 5V3.7V Li-ion battery
Electric Lock12V12V (3 × 18650) battery pack

This separation ensures:

  • Long battery life
  • No voltage spikes on the sensor
  • Stable operation of relay and lock

Circuit Explanation (Step-by-Step)

  1. 3.7V battery powers the TTP223 touch sensor and the relay module.
  2. The TTP223 output pin is connected to the IN terminal of the relay.
  3. When touched, the sensor sends a HIGH signal to activate the relay.
  4. The 12V battery pack is connected to the lock through the relay’s COM and NO terminals.
  5. When relay switches ON, it completes the 12V circuit and powers the electric lock.
  6. The lock opens; releasing touch closes the lock again.

Circuit Advantages

  • No keys required – open the door with a simple touch
  • Low cost & easy DIY project
  • Low power consumption
  • Works with any metallic or non-metallic touch surface
  • Compact and reliable
  • Ideal for cabinets, lockers, drawers, and secret compartments

Applications

  • Home and room doors
  • Office drawer locking system
  • Smart locker systems
  • Wardrobe and cabinet access
  • Hidden/secret door locking
  • Safety boxes and tool cabinets

Leave a Comment

Related Post