Cov txheej txheem:

Password Circuit Breaker: 6 Kauj Ruam
Password Circuit Breaker: 6 Kauj Ruam

Video: Password Circuit Breaker: 6 Kauj Ruam

Video: Password Circuit Breaker: 6 Kauj Ruam
Video: Password Based Circuit Breaker using 8051 Microcontroller 2024, Kaum ib hlis
Anonim
Image
Image
Tus Password Circuit Breaker
Tus Password Circuit Breaker

Cov phiaj xwm hauv qab no qhia txog kev siv yooj yim ntawm 89S52 lub tshuab tswj hwm lub cev los tswj cov khoom sib txawv thiab tiv thaiv kev nkag mus ntawm cov khoom no nrog kev pab ntawm tus lej nkag nkag, luv luv: Tus Password Circuit Breaker.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau

  • 89S52 pawg thawj coj loj
  • 16x2 LCD Module
  • 4 channel relay module
  • 4x4 Matrix Keypad
  • Potentiometer
  • Jumper xov hlau
  • Ua Cov Hluav Taws Xob
  • Roj teeb 12V (fais fab mov)
  • Ntoo thav duab
  • Polystyrene ntawv

Tam sim no yog tias koj xav tau lub load los ua DC tso tawm ces koj xav tau cov khoom siv hauv qab no:

  • 4 LEDS (khaws cov khoom ntxiv rau kev sim)
  • 330 ohm resistors

Los yog lwm qhov yog tias koj xav tau qhov chaw ac ntawm lub davhlau ya nyob twg thauj khoom koj yuav xav tau:

  • 4 lub qhov muag teeb (nrog rau lub qhov)
  • Adapter

Nco tseg: Yog tias koj xav ua koj txoj haujlwm me ntsis ntxiv, koj tuaj yeem ua koj tus kheej lub adapter nrog kev pab los ntawm kev hloov pauv thiab lub rectifier. Google nws.

Kauj Ruam 2: Daim Npav Qhia || Daim duab ntws

Siab Phem || Daim duab ntws
Siab Phem || Daim duab ntws
Siab Phem || Daim duab ntws
Siab Phem || Daim duab ntws

Peb daim ntawv qhia lub siab muab cov kev xav dav dav ntawm cov ncauj lus sib txawv xws li nws cov teeb meem tseem ceeb thiab kev daws teeb meem, cov khoom xav tau thiab lwm yam.

Daim duab ntws qhia cov ntaub ntawv qhia ib qib zuj zus hais tias yuav ua li cas thiaj li ua tiav cov txheej txheem yuav txav mus rau tom ntej.

Kauj Ruam 3: Daim Duab Hluav Taws Xob

Daim Duab Hluav Taws Xob Hluav Taws Xob
Daim Duab Hluav Taws Xob Hluav Taws Xob

Hauv peb qhov haujlwm peb tau siv cov khoom siv dc los qhib lub nra. Koj tuaj yeem siv cov tswv yim ac ib yam nkaus!

Kauj ruam 4: Tus Pin Configuration

Tus PIN Kho
Tus PIN Kho

Nov yog yuav ua li cas tus pin teeb tsa tau teeb tsa rau hauv lub programmable board nrog cov khoom sib txawv.

P1.0 - P1.7 = Keypad Matrix

P3.1 - P3.4 = Relay Input (IN1, IN2, IN3, IN4) [VCC thiab GND pins rau 5V thiab GND tus pin ntawm pawg thawj coj saib]

P2.4 - P2.7 = LCD cov ntaub ntawv kab nkag

P0.4 - P0.5 = RS thiab Nyeem/Sau chaw nres nkoj ntawm LCD

Nco tseg: Ntawm no peb tau ua 4-ntsis cov ntaub ntawv xa mus rau hauv lcd kom ua kom yooj yim dua.

Kauj Ruam 5: Txuas Hluav Taws Xob

Txuas Txuas
Txuas Txuas
Txuas Txuas
Txuas Txuas

Xyuas kom tseeb tias txhua lub davhlau ya nyob twg txuas nrog ua ke. COM chaw nres nkoj yuav txuas nrog 5V tus lej ntawm pawg thawj coj loj.

Tom ntej no txhua qhov tsis muaj lub davhlau ya nyob twg yuav raug muab rau cov khoom thauj khoom (hauv peb qhov teeb meem LEDs).

NCO TSEG: Nws yuav tsum ua kom ntseeg tau tias qhov siab tshaj plaws tam sim no los ntawm cov leds yuav tsum tsis pub tshaj 15mA.

Yog li ntawm no nrog kev muab 5V thiab tam sim no ntawm 15mA peb paub V = I*R.

Yog li peb xav tau kev tiv thaiv R = 330 (ohms)

Kauj Ruam 6: Teeb Kawg

Teeb Kawg
Teeb Kawg

Thaum ua tiav txoj hlua tiav, cov kauj ruam tom ntej yog kev tso chaw kom tsim nyog

Ntawm no peb tsim cov ntoo ntoo zoo li cov ntawv polystyrene tuaj yeem kho tau hauv qab nws.

Tom ntej no, npog sab saum toj ntawm tus ncej nrog daim ntawv dawb ntawm daim ntawv-ntawv rau kev nthuav qhia kom raug.

Thaum kawg kho tag nrho cov khoom siv sab saud siv tus pin uas yuav hla los ntawm cov polystyrene.

Pom zoo: