当前位置:网站首页>SMS based on stm32f103+as608 fingerprint module +4x4 matrix key +sim900a - intelligent access control card system

SMS based on stm32f103+as608 fingerprint module +4x4 matrix key +sim900a - intelligent access control card system

2022-06-13 11:52:00 Pica Churchill

1. Basic introduction

1. Use hardware

Serial number name remarks
1STM32F103 Single chip microcomputer I use it STM32F103C8T6
2AS608 Fingerprint module Fingerprint lock
3SIM900A modular Send verification code to use
44X4 Matrix key Password input using
5OLED display The interface display uses ( My is OLED IIC Interface )
6EEPROM Save password to use ( My is AT24C02)
7 Relay Simulate unlocking
8 Buzzer Press the key to sound

2. Function is introduced

----------------------------------------------------------------------------------------------------------
1: You can unlock with a password
2: You can change the password
3: You can unlock with your fingerprint
4: You can add fingerprints
5: You can delete fingerprints
6: The password will not be lost after power failure
7. Support to view the input content

explain :
Input password 3 Time error Lock up , Need to unlock by verification code
To change the password, you need to enter the original password , If the original password is entered incorrectly , The verification code needs to be modified .
Add and remove fingerprints You also need to enter the original password to enter the interface to add or delete .
----------------------------------------------------------------------------------------------------------

2. Code

Because there's too much code , Not all of them are posted here . Need to be able to read the code under .

void init()
{
    
	printf("+Q:844797079");	
}

But I also have some notes

Fingerprint module

I also take notes , You can go to the link below to read
Fingerprint related introduction and code

SIM900A modular

I also take notes , You can go to the link below to read
SIM900A Related introduction and code

Matrix key

I also take notes , You can go to the link below to read
Matrix key related introduction and code

The main program

#include "stm32f10x.h"
#include "OLED_I2C.h"
#include "delay.h"
#include "timer.h"
#include "key.h"
#include "stdio.h"
#include "string.h"
#include "led.h"
#include "relay.h"
#include "beep.h"
#include "sim900a.h"
#include "usart.h"
#include "as608.h"
#include "at24cxx.h"
#include "myiic.h"


int  main()
{
    
	uint8_t result;
	OLED_Init();			//OLED Screen initialization 
	usart1_init(57600);		// A serial port 1 initialization   Used to communicate with fingerprint module 
	usart3_init(115200);	// A serial port 3 initialization   Used for and SIM900A Module communication 
	matrix_keys_init();		// Key initialization 
	timer3_init();			// Timer 3 initialization 
	timer4_init();			// Timer 4 initialization 
	led_init();				//LED initialization 
	relay_init();			// Relay initialization 
	beep_init();			// Buzzer initialization 
	while(sim900a_init());	//SIM900A initialization 
	oled_show_title();		//OLED Show title  " Intelligent access control "
	as60x_wak_init();		// Fingerprint module initialization 
	IIC_Init();				//IIC  initialization 
	at24c02_read_data(0,password_source,6);	// Read AT24C02 Stored password 

	while(1)
	{
    	
		// Verify fingerprint operation   Here is the setting that must be in   Only the main interface can be used 
		if(finger_status == FINGER_EXIST && curr_inteface == 0)
		{
    
			as608_process();	// Verify fingerprints and related operations 
		}	
		if(cls_inteface)		cls_process();		// Display and parameter reset  
		if(key_flag >= 10)		key_process();		// Press the key to handle related operations 
		if(oled_flag >= 85)		oled_process();		// Display processing related operations 
	}  
}


Project presentation

Here I will simply select a few functions for dynamic diagram demonstration

Verify password unlock Demo

 Insert picture description here

Fingerprint verification unlock demonstration

 Insert picture description here

Add fingerprint demo

 Insert picture description here

Delete fingerprint Demo

 Insert picture description here

design sketch

 Insert picture description here

summary

design sketch .... It's too messy , DuPont line ..... unreliable . If you have time to learn to draw a board ....

If you think this article is useful to you . Welcome to like 、 Comment ha ha
If people think something is bad , Or if you have any questions, please correct them .
Continue refueling !

原网站

版权声明
本文为[Pica Churchill]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/164/202206131142502636.html