# Keypad lock reference design
## Description
This project involves the design of a keypad lock system. It utilizes an ATMEGA328P microcontroller, buzzers, LEDs for indicator functions and a 4x3 matrix keypad. An in-circuit serial programming (ISP) header is also present for programming the microcontroller. #project #Template #projectTemplate #lock #keypad #arduino #atmega328 #TPS613222A #ISP #buzzer #referenceDesign #simple-embedded #microchip #template #reference-design
## Project Details
- **Owner:** christophx
- **Created:** 2/23/2024
- **Last Updated:** 2/23/2024
- **Visibility:** Public
- **License:** https://creativecommons.org/licenses/by/4.0/
- **Stars:** 1
- **Copies:** 6
## Key Components
### * — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Manufacturer Part Number: B3FS-4055P
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Part Type: Switch
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### # — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Part Type: Switch
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 0 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Part Type: Switch
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 1 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Part Type: Switch
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 2 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Manufacturer Part Number: B3FS-4055P
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Part Type: Switch
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 3 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Part Type: Switch
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 4 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Part Type: Switch
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 5 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
- Part Type: Switch
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 6 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Part Type: Switch
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 7 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
- Part Type: Switch
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 8 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Manufacturer Part Number: B3FS-4055P
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Part Type: Switch
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### 9 — [B3FS-4055P](https://www.flux.ai/vasy_skral/b3fs-4055p~rgg.md)
- Manufacturer Part Number: B3FS-4055P
- Manufacturer Name: Omron Electronics Inc-EMC Div
- Datasheet URL: https://omronfs.omron.com/en_US/ecb/products/pdf/en-b3fs_4.pdf
- Part Type: Switch
**Pins:**
- ~ [pin 3]
- ~ [pin 4]
- ~ [pin 2]
- ~ [pin 1]
### BAT1 — [BC2AAPC](https://www.flux.ai/vasy_skral/bc2aapc~866.md)
- Datasheet URL: https://mm.digikey.com/Volume0/opasdata/d220001/medias/docus/1086/BC2AAPC.pdf
- Part Type: Connector
- Manufacturer Name: MPD (Memory Protection Devices)
- Manufacturer Part Number: BC2AAPC
- License: https://creativecommons.org/licenses/by/4.0/
**Pins:**
- - [pin 2]
- + [pin 1]
### BZ1 — [GT-0905A](https://www.flux.ai/vasy_skral/gt-0905a~82.md)
- Part Type: Buzzers
- Manufacturer Part Number: GT-0905A
- Datasheet URL: https://www.soberton.com/wp-content/uploads/2019/02/GT-0905A-19-Feb-2019.pdf
- Manufacturer Name: Soberton Inc.
**Pins:**
- -
- +
### D1 — [BAT60JFILM](https://www.flux.ai/vasy_skral/bat60jfilm~rjz.md)
- Manufacturer Name: STMicroelectronics
- Datasheet URL: https://www.st.com/content/ccc/resource/technical/document/datasheet/3d/d2/27/1d/20/e3/4d/48/CD00001944.pdf/files/CD00001944.pdf/jcr:content/translations/en.CD00001944.pdf
- Part Type: Diode
- Manufacturer Part Number: BAT60JFILM
**Pins:**
- A [pin 2]
- K [pin 1]
### GREEN — [LED-THT-3MM](https://www.flux.ai/vasy_skral/led-tht-3mm~34u.md)
- Part Type: LED
**Pins:**
- A [pin 2]
- K [pin 1]
### IC1 — [TPS613222ADBVR](https://www.flux.ai/vasy_skral/tps613222adbvr~ek.md)
- Manufacturer Part Number: TPS613222ADBVR
- Part Type: Integrated Circuit
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Name: Texas Instruments
- Datasheet URL: https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=http%253A%252F%252Fwww.ti.com%252Flit%252Fgpn%252Ftps61322
**Pins:**
- GND [pin 2]
- NC [pin 5]
- NC [pin 3]
- SW [pin 1]
- VOUT [pin 4]
### Q1 — [S8050](https://www.flux.ai/adrian95/s8050~wjp.md)
- License: https://creativecommons.org/licenses/by/4.0/
- Manufacturer Part Number: S8050
- Manufacturer Name: MDD
- Datasheet URL: https://pdf1.alldatasheet.com/datasheet-pdf/view/33773/WINGS/S8050.html
- Part Type: Transistor
**Pins:**
- B [pin 1]
- C [pin 3]
- E [pin 2]
### RED — [LED-THT-3MM](https://www.flux.ai/vasy_skral/led-tht-3mm~34u.md)
- Part Type: LED
**Pins:**
- A [pin 2]
- K [pin 1]
### RST — [PTS815](https://www.flux.ai/vasy_skral/pts815~6b.md)
- Part Type: Switch
- Datasheet URL: https://www.ckswitches.com/media/2728/pts815.pdf
- Manufacturer Name: C&K
- Manufacturer Part Number: PTS815 SJM 250 SMTR LFS
**Pins:**
- ~1 [pin 1]
- ~2 [pin 2]
- ~3 [pin 3]
- ~4 [pin 4]
### U1 — [ATMEGA328P-MU](https://www.flux.ai/vasy_skral/atmega328p-mu~wrm.md)
- Manufacturer Name: Microchip
- Datasheet URL: https://ww1.microchip.com/downloads/en/DeviceDoc/ATmega48A-PA-88A-PA-168A-PA-328-P-DS-DS40002061B.pdf
- Part Type: Microcontroller
- Manufacturer Part Number: ATMEGA328P-MU
**Pins:**
- ~RESET~/PC6 [pin 29]
- ADC6 [pin 19]
- ADC7 [pin 22]
- AREF [pin 20]
- AVCC [pin 18]
- GND [pin 33]
- GND [pin 21]
- GND [pin 3]
- GND [pin 5]
- PB0 [pin 12]
- PB1 [pin 13]
- PB2 [pin 14]
- PB3 [pin 15]
- PB4 [pin 16]
- PB5 [pin 17]
- PC0 [pin 23]
- PC1 [pin 24]
- PC2 [pin 25]
- PC3 [pin 26]
- PC4 [pin 27]
- PC5 [pin 28]
- PD0 [pin 30]
- PD1 [pin 31]
- PD2 [pin 32]
- PD3 [pin 1]
- PD4 [pin 2]
- PD5 [pin 9]
- PD6 [pin 10]
- PD7 [pin 11]
- VCC [pin 4]
- VCC [pin 6]
- XTAL1/PB6 [pin 7]
- XTAL2/PB7 [pin 8]
*The full schematic, PCB layout, bill of materials, and interactive design are available at [https://www.flux.ai/christophx/keypad-lock-reference-design~xi](https://www.flux.ai/christophx/keypad-lock-reference-design~xi).*
---
*Generated from [https://www.flux.ai/christophx/keypad-lock-reference-design~xi](https://www.flux.ai/christophx/keypad-lock-reference-design~xi)*