Cov txheej txheem:

Ntse-qhov rooj-xauv-siv-raspberry_pi_and_GSM_modemSim800_RFID: 5 Kauj Ruam
Ntse-qhov rooj-xauv-siv-raspberry_pi_and_GSM_modemSim800_RFID: 5 Kauj Ruam

Video: Ntse-qhov rooj-xauv-siv-raspberry_pi_and_GSM_modemSim800_RFID: 5 Kauj Ruam

Video: Ntse-qhov rooj-xauv-siv-raspberry_pi_and_GSM_modemSim800_RFID: 5 Kauj Ruam
Video: Cas Tsis Xaiv Koj - R-Lin Thoj New Song Original By Zaj Dub [Official MV] 2023 2024, Kaum ib hlis
Anonim
Ntse-qhov rooj-xauv-siv-raspberry_pi_and_GSM_modemSim800_RFID
Ntse-qhov rooj-xauv-siv-raspberry_pi_and_GSM_modemSim800_RFID

Hauv qhov kev qhia no, Kuv mus dhau yuav ua li cas sib xyaw EM-18 RFID Reader module nrog Raspberry Pi board. Kuv kuj tseem qhia yuav ua li cas ua ke tus actuator, qhov no yog Relay, los teb rau qhov nyeem tau raug los ntawm RFID module. Tus actuator no tuaj yeem yog lub xauv solenoid, tus hais lus, lossis txawm tias lub vev xaib cuam tshuam uas teev cov ntaub ntawv. Thiab tseem cuam tshuam nrog GSM tus qauv los muab lus ceeb toom. Kuv tham txog qhov kev tsim qauv no tuaj yeem ua raws li RFID ntse ntsuas phoo.

Txuas RFID mus rau Raspberry Pi

Ib qho yooj yim RFID Kev Sib Txuas Txheej Txheem suav nrog peb ntu: daim npav RFID lossis Daim Ntawv (uas muaj cov neeg siv lossis cov khoom lag luam cov ntaub ntawv cuam tshuam ntawm lub nti), tus nyeem ntawv RFID (lub cuab yeej uas ua rau daim npav RFID thiab rho tawm cov ntaub ntawv los ntawm Daim Npav) thiab Tus Txheej Txheem (zoo li Khoos Phis Tawj lossis Microcontroller uas tom qab ntawd ua cov ntaub ntawv).

Hauv txoj haujlwm no, Kuv yuav siv qhov nrov EM-18 RFID Reader Module thiab ob peb daim npav RFID. Muaj lwm qhov nrov RFID Nyeem Ntawv hu ua RFID RC522.

Qhov sib txawv tseem ceeb ntawm EM-18 thiab RC522 RFID Modules yog: EM-18 raws li 125 KHz Kev Sib Txuas Xov Tooj Cua thaum RC522 yog ua raws li 13.56 MHz Zaus. Tuaj rau kev xaiv interface, EM-18 siv Kev Sib Txuas Lus thaum RC522 siv SPI Kev sib txuas lus (txawm hais tias lub nti txhawb I2C thiab UART ib yam nkaus). Yog li, xaiv RFID Reader Module yog qhov tseem ceeb heev raws li nws txhais tau tias koj sib tham nrog tus qauv siv Raspberry Pi lossis Arduino li cas.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

1. Raspberry Pi 3 Model B+:-Raspberry Pi 3 Model B+ yog cov khoom lag luam tshiab tshaj plaws hauv Raspberry Pi 3 ntau yam, khav theeb 64-ntsis quad core processor khiav ntawm 1.4GHz, dual-band 2.4GHz thiab 5GHz wireless LAN, Bluetooth 4.2/BLE, Ethernet sai dua, thiab muaj peev xwm PoE ntawm cais cais PoE HAT.

2. EM-18 RFID Reader Module:- EM18 RFID Reader yog tus qauv uas nyeem cov ntaub ntawv ID khaws hauv RFID TAGS. Cov ntaub ntawv ID no yog qhov tshwj xeeb rau txhua TAG uas tsis tuaj yeem luam tawm qhov no tus qauv txuas ncaj qha mus rau ib qho microcontroller UART lossis los ntawm RS232 hloov mus rau PC nws muab UART/Wiegand26 tso tawm. Qhov RFID Reader Module no ua haujlwm nrog 125 KHz RFID cim npe

3. GSM Module: -SIM800 yog plaub-qhab GSM/GPRS module uas ua haujlwm ntawm zaus GSM 850MHz, EGSM 900MHz, DCS 1800MHz thiab PCS 1900MHz. SIM800 nta GPRS ntau chav kawm 12/ chav kawm 10 (tsis teb los tau) thiab txhawb nqa GPRS cov phiaj xwm phiaj xwm CS-1, CS-2, CS-3 thiab CS-4.

4. CP2102:- CP2102 nti los ntawm SiLabs yog ib qho nti USB rau UART choj IC. Nws xav tau yam tsawg sab nraud. CP2102 tuaj yeem siv rau kev txav chaw qub txeeg qub teg chaw nres nkoj raws li cov cuab yeej rau USB. … Cov qauv no pab txhua tus uas nyiam nrog RS232/Cov Txheej Txheem Kev Sib Txuas Lus, los tsim USB cov cuab yeej yooj yim heev.

5. 5V Relay:- 1-Channel 5V Relay Module yog lub rooj sib tham sib txuas, nws tuaj yeem tswj tau ncaj qha los ntawm ntau yam ntawm microcontrollers xws li Arduino, AVR, PIC, ARM thiab ntxiv rau. Txhawm rau muab nws yooj yim, nws yog qhov hloov pauv tsis siv neeg los tswj lub Circuit Court tam sim no nrog lub teeb liab tam sim no. 5V relay teeb liab input voltage ntau, 0-5V.

6. Poj niam rau Poj Niam Jumper Wires.

Kauj ruam 2: Txhim Kho Lub Tsev Qiv Ntawv

Txhawm rau nruab PySerial Pob

Kuv tsis paub tias pob PySerial tau teeb tsa ua ntej lossis tsis nrog Rasbian OS, tab sis hauv kuv qhov xwm txheej nws tsis tau teeb tsa raws li kuv siv Lite version ntawm Raspbian OS, yog li peb thawj kauj ruam yog teeb tsa PySerial pob, Yog tias koj Raspberry Pi txuas nrog internet ces siv cov lus txib hauv qab no hauv LXTerminal los teeb tsa PySerial tsev qiv ntawv rau Python.

sudo apt-tau nruab nruab sej-serial

Thiab yog tias koj tsis muaj internet txuas rau Raspberry Pi, tom qab ntawd koj tuaj yeem rub tawm pob PySerial los ntawm txhaj rau ntawm no, ntawm Windows/Linux/Mac platforms thiab tom qab ntawd luam cov ntawv no rau hauv koj li Raspberry Pi, thiab tom qab ntawd siv LXTerminal mus rau cov npe uas koj tau theej cov ntawv thiab tom qab ntawd siv cov lus txib hauv qab no los teeb tsa pob PySerial.

sudo python setup.py nruab

Yog li tom qab theem no peb tau teeb tsa pob PySerial thiab tam sim no peb tuaj yeem pib nrog sau cov phiaj xwm yooj yim rau kev nyeem thiab sau ua haujlwm, tab sis ua ntej ntawd peb yuav tsum ua kom muaj kev sib txuas lus txuas hauv Raspberry Pi, uas yog xiam oob khab.

Kauj Ruam 3: Txuas Cov Txheej Txheem Ua Ke

Txuas Cov Khoom Siv Ua Ke
Txuas Cov Khoom Siv Ua Ke

Kev piav qhia Circuit:

Daim duab qhia chaw muaj Raspberry Pi 3, RFID Reader, RFID Tags, GSM, Relay thiab CP2102. Ntawm no Raspberry Pi tswj cov txheej txheem ua tiav zoo li Nyeem Cov Ntaub Ntawv los ntawm Tus Nyeem Ntawv, sib piv cov ntaub ntawv nrog cov ntaub ntawv ua ntej, tsav tsheb Relay thiab xa cov ntaub ntawv mus rau GSM. RFID Reader yog siv los nyeem Cov Ntawv Cim RFID. Relay yog siv rau kev qhia. GSM yog siv rau kev xa xov.

RELAY PIN_VCC ------------------- 2 ntawm Raspberry Pi

RELAY PIN_GND ------------------- 6 ntawm Raspberry Pi

RELAY PIN_INP ------------------- 11 ntawm Raspberry Pi

RFID txuas nrog CP2102-ONE thiab GSM module txuas nrog CP2102-TWO. Ob lub CP2102 no txuas nrog lub USB chaw nres nkoj ntawm raspberry pi.

Kauj Ruam 4: Piav Qhia Kev Ua Haujlwm

Ntawm no Raspberry Pi 3 tab tom tswj tag nrho cov txheej txheem ntawm txoj haujlwm no (Tus neeg siv tuaj yeem siv ib qho Raspberry Pi Board). RFID Reader nyeem daim npav ID RFID, cov ntaub ntawv no tau txais los ntawm Raspberry Pi los ntawm UART, tom qab ntawd Raspberry Pi siv tau daim npav thiab xa cov ntaub ntawv mus rau GSM.

Thaum ib tus neeg muab lawv daim npav RFID hla tus nyeem ntawv RFID txhawm rau luam theej duab, RFID nyeem tag cov ntaub ntawv thiab xa mus rau Raspberry Pi. Tom qab ntawd Raspberry Pi nyeem Cov Cim Cim Tus Kheej ntawm qhov cim npe RFID thiab tom qab ntawd sib piv cov ntaub ntawv no nrog cov ntaub ntawv lossis cov ntaub ntawv ua ntej. Yog tias cov ntaub ntawv tau sib phim nrog cov ntaub ntawv tau npaj tseg, tom qab ntawv xa thiab xa xov los ntawm GSM, thiab yog tias cov ntaub ntawv tsis sib xws ces Raspberry pi xa cov lus 'Daim Npav Tsis Txaus' los ntawm GSM thiab xa tawm mus.

Kauj ruam 5: Txoj Cai

Rub tawm cov cai txuas ntawm no thiab muab tso rau hauv koj lub rooj tsavxwm, thiab xaim txhua yam raws li qhia hauv daim duab yav dhau los.

Rub tawm tus lej:

Vam tias qhov no ua rau koj yooj yim dua. Nco ntsoov sau npe yog tias koj nyiam kab ntawv no thiab pom nws muaj txiaj ntsig, thiab yog tias koj muaj lus nug lossis xav tau kev pab nrog dab tsi, tsuas yog tawm lus tawm hauv qab no … Ua tsaug elementzonline.com

Pom zoo: