Cov txheej txheem:

Heads Up !!: 3 Kauj ruam
Heads Up !!: 3 Kauj ruam

Video: Heads Up !!: 3 Kauj ruam

Video: Heads Up !!: 3 Kauj ruam
Video: Tus Neeg Ruam 2024, Kaum ib hlis
Anonim
Taub hau !!
Taub hau !!

Cov tub ntxhais kawm thiab cov neeg laus feem ntau muaj haujlwm ntau los sau lossis phau ntawv nyeem; txawm li cas los xij, lawv lub taub hau feem ntau los ze dua thiab ze rau phau ntawv yam tsis tau pom lawv tus kheej. Txhawm rau daws qhov teeb meem no, Kuv tsim lub cuab yeej kom tsis txhob muaj neeg mob myopia thaum lawv los ze rau phau ntawv. Cov cuab yeej muaj ob lub LEDs, ib qho ntsuab thiab lwm qhov yog xim liab, ib lub tshuab ntsuas ultrasonic los ntsuas qhov deb thiab ib qho LCD vaj huam sib luag los qhia qhov nrug deb. Thaum koj lub taub hau ze rau phau ntawv dhau los, lub ntsuas hluav taws xob ultrasonic yuav kuaj nws thiab LEDs yuav ntsais kom ceeb toom koj kom tswj kom nrug deb.

Khoom siv

  • 1 Ultrasonic Sensor
  • 1 LCD vaj huam sib luag
  • Hlau
  • LEDs (txhua xim)
  • 1 Cov qhob cij
  • 1 Arduino pawg thawj coj saib
  • Cov ntawv los xij
  • Kab xev los yog kua nplaum

Kauj ruam 1: Programming

Programming
Programming

Nov yog kuv qhov program code txuas:

create.arduino.cc/editor/ricky0601/610b425b-840a-4050-94c5-3e877d04aa8d/preview

Kauj ruam 2: Kev thaiv kab

Thaiv
Thaiv

Ultrasonic:

Vcc rau 5v (+)

Trig thiab Echo rau ob qho Digital Pin

LWD to GND (-)

LED:

LED ntev ceg rau GND (-)

LED luv ceg rau resistor

Resistor rau Digital Pin

LCD Vaj Huam Sib Luag (i2c):

SCL to CSY

SND to CSY

LWD to GND (-)

Vcc rau 5V (+)

Kauj ruam 3: Kawg

Kawg
Kawg
Kawg
Kawg

Nqa cov ntawv los xij thiab lo lawv ua ke rau txhua yam zoo uas koj xav tau tsuav koj tuaj yeem tso koj lub rooj tsavxwm rau hauv thiab tsis cuam tshuam rau qhov ntsuas nrug deb ultrasonic ua haujlwm. Tom qab ntawd, koj ua tiav cov cuab yeej, ZOO SIAB !!!!

Pom zoo: