Cov txheej txheem:

Thaum muaj xwm ceev Sensor rau cov lag ntseg: 4 Cov kauj ruam
Thaum muaj xwm ceev Sensor rau cov lag ntseg: 4 Cov kauj ruam

Video: Thaum muaj xwm ceev Sensor rau cov lag ntseg: 4 Cov kauj ruam

Video: Thaum muaj xwm ceev Sensor rau cov lag ntseg: 4 Cov kauj ruam
Video: Zoo Siab Nrog Koj - Paj Tsua Thoj [ Official MV ] Nkauj Tawm Tshiab 2022 2024, Hlis ntuj nqeg
Anonim
Thaum Muaj Xwm Ceev Sensor rau Cov lag ntseg
Thaum Muaj Xwm Ceev Sensor rau Cov lag ntseg

Peb tab tom sim tsim lub kaw lus ceeb toom uas yuav ceeb toom rau cov tib neeg uas tsis tuaj yeem hnov lub tswb nrov thaum lub laum lossis lub tswb nrov tau hnov. Tam sim no, ib tus neeg uas lag ntseg/tsis hnov lus tau txais kev ceeb toom lawv yuav raug ceeb toom raws li cov ntsiab lus ntawm kev ceeb toom. Tam sim no muaj cov ntawv nyeem hauv ASL chav kawm thaum cov tswb nrov no tshwm sim. Txawm li cas los xij, thaum cov tub ntxhais kawm ntawv nyob sab nraum chav kawm ntawv lawv yuav tsis tau txais cov ntawv ceeb toom ntawd. Peb lub Bluetooth tau siv Arduino system suav nrog lub teeb pom kev thiab LED nyeem ntawv tshuaj ntsuam. Lub kaw lus tuaj yeem ua rau tsawg dua $ 100 thiab tuaj yeem muab cov ntaub ntawv tseem ceeb rau cov tub ntxhais kawm.

Khoom siv

Koj xav tau:

  • Arduino lossis ATMega328
  • 16x2LCD zaub
  • HCO6Bluetooth sensor Jumper Cables
  • Jumper Cables
  • Potentiometer

Kauj ruam 1: Teeb

Teeb
Teeb

Txuas lub LCD zaub rau Arduino siv tus qauv pin hauv qab no:

RS tus pin rau tus lej digital 12

Pab tus pin rau tus lej digital 11

D4 tus pin rau tus lej digital 5

D5 tus pin rau tus lej digital 4

D6 tus pin rau tus lej digital 3

D7 tus pin rau tus lej digital 2

R/W tus pin rau hauv av

VSS tus pin rau hauv av

VCC pin to 5V

Kauj ruam 2: Txuas Bluetooth

Txuas lub Bluetooth sensor siv tus qauv pin hauv qab no:

TX pin to RX of Arduino

RX tus pin rau TX ntawm Arduino

VCC pin to 5V

GND pin to GND

Kauj ruam 3: Coding

Thaum koj tab tom sau cia nco ntsoov hloov lub suab kom pom cov lus ntawm LED. Cov Lus Hais Hais muaj xws li: Kev Kub Ntxhov, Kev Tua Hluav Taws Xob, Kev Ruaj Ntseg Hauv Ntiaj Teb, thiab lwm yam.

Qauv Cai:

yog (lub suab == "*xwm txheej ceev") {lcd.setCursor (0, 0);

lcd.print ("");

lcd.setCursor (0, 0);

lcd.print ("Thaum Muaj Xwm Ceev"); }

lwm tus yog (lub suab == "*phom tua hluav taws")

{lcd.setCursor (0, 0);

lcd.print ("");

lcd.setCursor (0, 0);

lcd.print ("Hluav Taws Xob"); }

lwm yog (lub suab == "*av qeeg laum")

{lcd.setCursor (0, 0);

lcd.print ("");

lcd.setCursor (0, 0);

lcd.print ("Laum Av"); }

Kauj ruam 4: Kev ua haujlwm

Bluetooth yuav tsum tau ua khub rau tsev kawm ntawv cov thawj coj saib xyuas thaum muaj xwm ceev

Thaum cov lus tshaj tawm, Bluetooth sensor yuav hloov cov lus mus rau cov ntawv uas tsim nyog thiab nthuav tawm nws ntawm LCD.

Pom zoo: