Cov txheej txheem:

Kev Teeb Tsav Tsheb Siv Arduino thiab Ultrasonic Sensor: 4 Kauj Ruam
Kev Teeb Tsav Tsheb Siv Arduino thiab Ultrasonic Sensor: 4 Kauj Ruam

Video: Kev Teeb Tsav Tsheb Siv Arduino thiab Ultrasonic Sensor: 4 Kauj Ruam

Video: Kev Teeb Tsav Tsheb Siv Arduino thiab Ultrasonic Sensor: 4 Kauj Ruam
Video: Qhia txuas xaim hluav taws xob daim: 02 2024, Kaum ib hlis
Anonim
Image
Image

Nrog lub sijhawm ntawm cov thev naus laus zis ntse, txhua yam tau zoo dua thiab kev thauj mus los ntse yog ib qho ntawm cov haujlwm uas yuav ua rau muaj kev cuam tshuam loj rau peb lub neej.

Orignally luam tawm ntawm:

Arduino yog ib qho yooj yim microcontrollers siv, yooj yim rau program, yooj yim muaj nyob hauv kev lag luam hauv zos yog nrov ntawm cov tub ntxhais kawm thiab nyiam ua haujlwm.

Paub txog txhua qhov ntawd, Kuv tso kuv qhov kev paub los ua qhov Caij Nyoog-raws kev teeb tsa kev siv Arduino nrog txhua yam khoom uas yooj yim muaj.

Txoj haujlwm no yog tus qauv ntawm kev ntom ntom raws kev tswj hwm cov teeb tsheb uas yuav tshuaj xyuas qhov ntom ntom ntawm ob txoj hauv kev thiab yuav txiav txim siab seb lub teeb yuav tsum nyob rau qhov twg.

Cia peb pib.

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
  • ARDUINO UNO MUAJ NYIAJ NTAWM NO >>>>>>>
  • HC-SR04 MUAJ NYIAJ NTAWM NO >>>>>>>>>>
  • JUMPER WIRES
  • GREEN LEDS
  • Liab LEDS

Kauj ruam 2: Ua Kev Sib Txuas

Ua Kev Sib Txuas
Ua Kev Sib Txuas

peb yuav siv ob lub ntsuas ultrasonic rau ob txoj hauv kev thiab 6 LEDs, 3 rau txhua sab.

Ultrasonic Sensor 1:

  • txhais >>>>> Arduino tus pin D10
  • Ncha >>>>>> Arduino tus pin D9
  • GND >>>>>>>> NCO
  • VCC >>>>>> 5V

Ultrasonic Sensor 2:

  • txhais >>>>> Arduino tus pin D12
  • Ncha >>>>>> Arduino tus pin D11
  • GND >>>>>>>> GND
  • VCC >>>>>>> 5V

LEDs:

  • Txhua lub cathodes ntawm LEDs yuav tsum mus rau GND thiab txhua qhov ntawm GND yuav tsum yog ib txwm muaj.
  • Red1 Anode >>>>>> Arduino D8
  • Yellow1 Anode >>>>> Arduino D7
  • Green1 Anode >>>>> Arduino D6
  • Green2 Anode >>>>> Arduino D5
  • Yellow2 Anode >>>> Arduino D4
  • Red2 Anode >>>>> Arduino D3

Kauj ruam 3: Upload Code thiab Koj Ua Tiav

Koj tuaj yeem pom cov cai los ntawm txhaj rau ntawm no.

Upload code thiab koj zoo mus.

Txheeb video yog tias koj pom muaj teeb meem.

Kauj Ruam 4: Ua raws li peb ntawm SOCIAL MEDIA

FACEBOOK

INSTAGRAM

YOUTUBE

WEBSITE

Pom zoo: