chinese直男口爆体育生外卖, 99久久er热在这里只有精品99, 又色又爽又黄18禁美女裸身无遮挡, gogogo高清免费观看日本电视,私密按摩师高清版在线,人妻视频毛茸茸,91论坛 兴趣闲谈,欧美 亚洲 精品 8区,国产精品久久久久精品免费

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

RFID和藍牙門鎖的制作

454398 ? 來源:wv ? 2019-09-26 11:18 ? 次閱讀
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

步驟1:所需的零件

必需的零件。

1-帶拇指的門鎖打開門的內(nèi)部

1-Arduino Uno r3(或兼容)

1-360度伺服系統(tǒng)

1-HC-06藍牙模塊

1-RC522 RFID閱讀器(可能是Sintron,不記得了)

1-16 x 2-4線LDC屏幕

1-RGB LED

2-220Ω電阻器

1-瞬時按動開關(guān)(從內(nèi)部操作以鎖定/

1-1-1kΩ電阻

2-雙后箱(1個約45mm深度,另一個約33mm深度)

跳線

電源(我打算使用2 x 9v電池,但已決定使用市電供電的9v電源,因為更可靠)

螺絲或堅固的雙面膠帶

1-伺服支架(我自己設(shè)計和印刷)

** ----------------等待發(fā)貨-------- ------------------- ------------ **

2-雙盲板

1-12芯報警電纜的長度(長度取決于放置位置)

2-5amp模塊連接器(每個12線)

** --------------------------- -------------------------------------------------- ---- **

Andriod藍牙鎖應(yīng)用程序。 BTControl.apk

步驟2:接線

RFID和藍牙門鎖的制作

電源:

9v穩(wěn)壓電源(或電池)

RFID讀取器:

VCC-引腳3.3v

GND-GND

重置(RST)-引腳D9

SDA(SS)-引腳D10

MOSI-引腳D11

MISO-引腳D12

SCK-引腳D13

LCD屏幕

VCC-5v

GND-GND

SDA-引腳A4

SCL-引腳A5

瞬時開關(guān):

VCC-5v(如上所示)

GND到1kΩ電阻(如上所示)

Pin 8 arduino(如上所示)

RGB LED:

將D7的220Ω電阻接至LED引腳(紅色)

將D6的220Ω電阻接至LED引腳(綠色)

公共(長線)- GND

伺服:

VCC-5v

GND-GND

信號-引腳D5

藍牙模塊:

VCC-5v

GND -GND

TX-D0(RX)

RX-D1(TX)

Fritzing圖:

步驟3:Pu一起努力

Arduino,藍牙模塊和瞬間開關(guān)+ RGB LED電路安裝在45mm的底盒中。我剛剛使用Blu-Tac將它們固定在原位,因為一旦固定在墻上就不會移動。我已經(jīng)將開關(guān),LED和電阻器焊接到了電路板上,并在電路板的任何一側(cè)創(chuàng)建了GND和VCC連接,還將放置一個用于12芯報警電纜的塊連接器,以連接RFID和LCD屏幕到arduino。蓋子上會鉆2個孔,以容納開關(guān)和引線。

RFID和LCD屏幕安裝在33mm的后蓋內(nèi),并開有一個插槽,用于LCD屏幕穿過。這些將通過12芯報警電纜和模塊連接器連接到arduino。

為使伺服器連接到門鎖,我3D打印了一個支架,該支架將擰緊到門上并連接到門上。

步驟4:代碼-(于2018年6月23日更新)

/*

* ----------------------------------------------------------------------------

* This sketch uses the MFRC522 library ; see https://github.com/miguelbalboa/rfid

* for further details and other examples.

*

* NOTE: The library file MFRC522.h has a lot of useful info. Please read it.

*

* This sketch show a simple locking mechanism using the RC522 RFID module.

* ----------------------------------------------------------------------------

* Typical pin layout used:

* -----------------------------------------------------------------------------------------

* MFRC522 Arduino Arduino Arduino Arduino Arduino

* Reader/PCD Uno Mega Nano v3 Leonardo/Micro Pro Micro

* Signal Pin Pin Pin Pin Pin Pin

* -----------------------------------------------------------------------------------------

* RST/Reset RST 9 5 D9 RESET/ICSP-5 RST

* SPI SS SDA(SS) 10 53 D10 10 10

* SPI MOSI MOSI 11 / ICSP-4 51 D11 ICSP-4 16

* SPI MISO MISO 12 / ICSP-1 50 D12 ICSP-1 14

* SPI SCK SCK 13 / ICSP-3 52 D13 ICSP-3 15

*

*/

#include

#include

#include

#include

#include

#include

#define RST_PIN 9 // Configurable, see typical pin layout above

#define SS_PIN 10

#define Green_LED 6 //pin for green “door unlocked” indicator LED

#define Red_LED 7 //pin for red “door locked” indicator LED

char array1[]=“ Swipe Your Tag”; //the string to print on the LCD

char array2[]=“ On The Reader.”;

char array3[]=“ Tag Accepted. ”;

char array4[]=“ Locking. ”;

char array5[]=“ Unlocking. ”;

int tim = 1; //the value of delay time

// initialize the library with the numbers of the interface pins

LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line

MFRC522 mfrc522(SS_PIN, RST_PIN); // Create MFRC522 instance.

Servo myservo;

String read_rfid;

String ok_rfid_1=“94e68de2”;

String ok_rfid_2=“f5642a50”;

String ok_rfid_3=“4249622993c81”;

int addr = 1;

int eVal = 0;

int lockPosition;

int servo_position;

int BUTTON1 = 8;

void setup() {

Serial.begin(9600); // Initialize serial communications with the PC

while (!Serial); // Do nothing if no serial port is opened (added for Arduinos based on ATMEGA32U4)

SPI.begin(); // Init SPI bus

mfrc522.PCD_Init(); // Init MFRC522 card

{

lcd.init(); //initialize the lcd

lcd.backlight(); //open the backlight

lcd.begin(16,2);

}

pinMode(Green_LED, OUTPUT); //set all input/output pins, including whether they should be high (5v) or low (ground)

pinMode(Red_LED, OUTPUT);

digitalWrite(Green_LED, LOW);

digitalWrite(Red_LED, HIGH);

pinMode(BUTTON1,INPUT);

myservo.attach(5);

lockPosition = EEPROM.read(1);

// Serial.print(EEPROM.read(1));

if(lockPosition == 1){

digitalWrite(Red_LED, LOW);

digitalWrite(Green_LED, HIGH);

}

else {

digitalWrite(Red_LED, HIGH);

digitalWrite(Green_LED, LOW);

lockUnlock();

}

swipeText();

/*

* Dump a byte array as hex values to Serial.

*/

void dump_byte_array(byte *buffer, byte bufferSize) {

read_rfid=“”;

for (byte i = 0; i 《 bufferSize; i++) {

read_rfid=read_rfid + String(buffer[i], HEX);

}

}

void lockUnlock() { // locks or unlocks door

myservo.attach(5);

if(lockPosition == 1) {

lock2();

servo_position = 0;

myservo.write(servo_position);

digitalWrite(Red_LED, HIGH);

digitalWrite(Green_LED, LOW);

delay(3000);

lockPosition = 2;

eVal = lockPosition;

EEPROM.write(1,eVal);

// Serial.print(eVal);

}

else if(lockPosition == 2) {

lock1();

servo_position = 350;

myservo.write(servo_position);

digitalWrite(Red_LED, LOW);

digitalWrite(Green_LED, HIGH);

delay(3000);

lockPosition = 1;

eVal = lockPosition;

EEPROM.write(1,eVal);

// Serial.print(eVal);

}

myservo.detach();

}

void swipeText()

{

lcd.clear(); //Clears the LCD screen and positions the cursor in the upper-left corner.

lcd.setCursor(0,0); // set the cursor to column 15, line 0

for (int positionCounter1 = 0; positionCounter1 《 15; positionCounter1++)

{

lcd.print(array1[positionCounter1]); // Print a message to the LCD.

delay(tim); //wait for 250 microseconds

}

lcd.setCursor(0,1); // set the cursor to column 15, line 1

for (int positionCounter = 0; positionCounter 《 15; positionCounter++)

{

lcd.print(array2[positionCounter]); // Print a message to the LCD.

delay(tim); //wait for 250 microseconds

}

}

void lock1()

{

lcd.clear();

lcd.setCursor(0,0);

for (int positionCounter1 = 0; positionCounter1 《 15; positionCounter1++)

{

lcd.print(array3[positionCounter1]);

delay(tim);

}

lcd.setCursor(0,1);

for (int positionCounter1 = 0; positionCounter1 《 10; positionCounter1++)

{

lcd.print(array4[positionCounter1]);

delay(tim);

}

}

void lock2()

{

lcd.clear();

lcd.setCursor(0,0);

for (int positionCounter1 = 0; positionCounter1 《 15; positionCounter1++)

{

lcd.print(array3[positionCounter1]);

delay(tim);

}

lcd.setCursor(0,1);

for (int positionCounter1 = 0; positionCounter1 《 12; positionCounter1++)

{

lcd.print(array5[positionCounter1]);

delay(tim);

}

}

void loop() {

if(digitalRead(BUTTON1) == HIGH){

lockUnlock();

swipeText();

}

// Look for new cards

if ( ! mfrc522.PICC_IsNewCardPresent())

return;

// Select one of the cards

if ( ! mfrc522.PICC_ReadCardSerial())

return;

dump_byte_array(mfrc522.uid.uidByte, mfrc522.uid.size);

Serial.println(read_rfid);

if (read_rfid==ok_rfid_1) {

//ok, open the door.

lockUnlock();

swipeText();

}

//Add below as many “keys” as you want

if (read_rfid==ok_rfid_2) {

//also ok, open the door

lockUnlock();

swipeText();

}

//Add below as many “keys” as you want

if (read_rfid==ok_rfid_3) {

//also ok, open the door

lockUnlock();

swipeText();

}

}

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • RFID
    +關(guān)注

    關(guān)注

    392

    文章

    6663

    瀏覽量

    245995
  • 藍牙
    +關(guān)注

    關(guān)注

    117

    文章

    6175

    瀏覽量

    176876
  • 門鎖
    +關(guān)注

    關(guān)注

    0

    文章

    48

    瀏覽量

    12197
收藏 人收藏
加入交流群
微信小助手二維碼

掃碼添加小助手

加入工程師交流群

    評論

    相關(guān)推薦
    熱點推薦

    凱柏膠寶通過透光TPE材料助力智能門鎖性能升級

    智能門鎖作為傳統(tǒng)機械鎖的替代方案,幫助人們實現(xiàn)了無鑰匙操作。智能門鎖 結(jié)合密碼、指紋識別、射頻卡(RFID)、藍牙、Wi-Fi 和語音控制等技術(shù),為 家庭、辦公室、公寓及車輛等多場景提
    的頭像 發(fā)表于 09-09 11:49 ?251次閱讀
    凱柏膠寶通過透光TPE材料助力智能<b class='flag-5'>門鎖</b>性能升級

    珈港科技JC511安全藍牙芯片簡介

    JC511是一款高性能低功耗的BLE5.1安全藍牙芯片,已通過BQB認(rèn)證,符合GoogleNearby和AppleMFI標(biāo)準(zhǔn)。支持主流的國際和國密算法,廣泛適用于多種應(yīng)用場景,包括藍牙防丟器、藍牙車鑰匙、
    發(fā)表于 07-23 11:58 ?0次下載

    鎖聯(lián)世界,智啟萬家,華普微藍牙智能鎖解決方案

    隨著智能家居的快速發(fā)展,智能門鎖正成為家庭安防的關(guān)鍵入口設(shè)備。華普微依托自主研發(fā)的低功耗藍牙BLE芯片和模組,為智能門鎖廠商提供一整套高集成度、低功耗、高安全性的藍牙通信解決方案。該方
    的頭像 發(fā)表于 06-26 15:46 ?385次閱讀
    鎖聯(lián)世界,智啟萬家,華普微<b class='flag-5'>藍牙</b>智能鎖解決方案

    低功耗藍牙智能門鎖應(yīng)用

    智能門鎖,作為智能家居不可或缺的一部分,因其更好的便捷性與安全性,被越來越多的商家及個人用戶所采用,我們的低功耗藍牙智能門鎖方案,助?傳統(tǒng)門鎖企業(yè),為傳統(tǒng)
    發(fā)表于 06-25 09:47

    RFID紙質(zhì)智能卡在酒店行業(yè)的應(yīng)用

    :內(nèi)置加密芯片,防止信息被非法讀取或篡改。具體應(yīng)用場景1.客房門禁身份驗證:客人可以通過RFID紙質(zhì)智能卡打開客房門鎖,確保安全性和便利性。權(quán)限管理:根據(jù)客人的入住時
    的頭像 發(fā)表于 06-17 14:23 ?385次閱讀
    <b class='flag-5'>RFID</b>紙質(zhì)智能卡在酒店行業(yè)的應(yīng)用

    智慧出入時代,BLE如何令門鎖化身“智能安防管家”?

    隨著物聯(lián)網(wǎng)、人工智能等技術(shù)的發(fā)展,智能門鎖市場潛力巨大。藍牙智能門鎖融合了BLE通信技術(shù)、生物識別及物聯(lián)網(wǎng)功能,實現(xiàn)離線可用、超低功耗和便捷快速的設(shè)備配對。
    的頭像 發(fā)表于 06-12 10:56 ?663次閱讀
    智慧出入時代,BLE如何令<b class='flag-5'>門鎖</b>化身“智能安防管家”?

    RFID電子標(biāo)簽種類介紹大全 #RFID電子標(biāo)簽 #rfid標(biāo)簽

    RFID
    yueranxinxi
    發(fā)布于 :2025年05月16日 17:34:22

    芯科科技助力Kwikset開發(fā)新一代Halo Select智能門鎖產(chǎn)品

    Silicon Labs (芯科科技)的Wi-Fi SoC在提供Wi-Fi和雙模藍牙5等多協(xié)議支持的同時,更實現(xiàn)了超低功耗的運行。近期,我們?yōu)镵wikset公司提供了超低功耗Wi-Fi與雙模藍牙5
    的頭像 發(fā)表于 04-11 10:52 ?923次閱讀

    智能門鎖與物聯(lián)網(wǎng)的結(jié)合

    ? ? ? 智能門鎖與物聯(lián)網(wǎng)結(jié)合的主要技術(shù)點??赡艿姆矫姘ㄍㄐ艆f(xié)議(如Wi-Fi、藍牙、Zigbee)、數(shù)據(jù)安全、遠程管理、系統(tǒng)集成、低功耗設(shè)計等。 此外,數(shù)據(jù)安全是物聯(lián)網(wǎng)中的重要問題,比如
    的頭像 發(fā)表于 03-14 15:05 ?1020次閱讀
    智能<b class='flag-5'>門鎖</b>與物聯(lián)網(wǎng)的結(jié)合

    門鎖觸摸芯片-選型指南-應(yīng)用方案

    觸摸芯片是門禁門鎖系統(tǒng)中的核心部件,負責(zé)控制門鎖的開關(guān)、密碼輸入等功能,選擇合適的觸摸芯片對門鎖系統(tǒng)的穩(wěn)定性和安全性至關(guān)重要。
    的頭像 發(fā)表于 02-17 15:41 ?633次閱讀
    <b class='flag-5'>門鎖</b>觸摸芯片-選型指南-應(yīng)用方案

    羅德與施瓦茨產(chǎn)品在智能門鎖功耗測試中的應(yīng)用

    何為智能門鎖呢?它也被稱為數(shù)字門鎖,是為了取代前門上的螺栓鎖而設(shè)計的,是一種支持Wi-Fi或藍牙的智能家居設(shè)備,用戶可以把家里的鑰匙留在家里,使用其他方式鎖門和開鎖。
    的頭像 發(fā)表于 02-13 13:29 ?1085次閱讀
    羅德與施瓦茨產(chǎn)品在智能<b class='flag-5'>門鎖</b>功耗測試中的應(yīng)用

    智能門鎖的工作原理和構(gòu)成

    現(xiàn)在很多新房配置了智能門鎖,該產(chǎn)品的普及率不斷提升,未來市場前景非常廣闊。尤其在公寓和出租房市場,智能門鎖成為很多房子標(biāo)配。智能門鎖在用戶安全性、智能識別和管理、便捷性等方面具有先天優(yōu)勢,市場認(rèn)可度不斷攀升。
    的頭像 發(fā)表于 12-06 11:27 ?3023次閱讀

    唯創(chuàng)知音智能門鎖后板鎖方案# 唯創(chuàng)知音# 智能門鎖

    智能門鎖
    WT-深圳唯創(chuàng)知音電子有限公司
    發(fā)布于 :2024年11月22日 17:28:04

    智能門鎖原理圖

    智能門鎖原理圖
    發(fā)表于 11-14 13:42 ?55次下載