蓝猫淘气

Color card password lock

 
Overview

Password locks are relatively common in life. There are various types of locks. The most common ones are in the form of numbers. Generally, you need to enter a few numbers to complete the password. This project uses color to complete the password lock. There are many types of colors, which are more complicated than numbers. Using color cards to set the password and unlock the lock is more difficult to crack, and it is relatively safer.

The project directly uses the development board flying lines to complete functional testing.
After the system is powered on, set the password first, and press the button to start setting the password. When the GY-31 light is on, it means that the color data is being read. If it goes off, it means that the data reading is completed. You can replace the next color card. The interval is 1 second, which is enough to change the color card. After the 4 reads are completed, the 4 color value data read are saved.
If the password already exists, press and hold the button for 3 seconds to enter the password setting state.

When unlocking, first press the button to start reading the color card, and read it 4 times in sequence. When the light of GY-31 is on, it means that the color data is being read. When it is off, it means that the data reading is completed and the next color card can be replaced. , the reading interval is 1 second. After the reading is completed, compare it with the stored color card color value. If the data is the same, the unlock indicator LED1 will light up and the OLED screen will prompt success. If the data comparison is wrong, the LED will not light up and the OLED screen will prompt an error.

参考设计图片
×

Blockdiagram

Design Files
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-07-03 23:41:22
  • EK-LM4F120XL ADC reference voltage problem
  • Talk about the key points of antenna soldering
  • Questions about sine and cosine functions
  • AC amplifier circuit
  • Looking for a low power consumption example of pic16f682
  • Discussion on CCS software delay

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号