Cov txheej txheem:

Ultrasonics Sensor: 3 Kauj Ruam
Ultrasonics Sensor: 3 Kauj Ruam

Video: Ultrasonics Sensor: 3 Kauj Ruam

Video: Ultrasonics Sensor: 3 Kauj Ruam
Video: Ultrasonic Sensor HC-SR04 and Arduino Tutorial 2024, Hlis ntuj nqeg
Anonim
Ultrasonic Sensor
Ultrasonic Sensor

Hauv qhov kev qhia no kuv yuav ntsuas nrug nrog lub ntsuas hluav taws xob ultrasonic.

Khoom siv

Arduino uno boardUltrasonic sensorJumper xov hlau

Kauj Ruam 1: Teeb thiab Sensor Cov Ntaub Ntawv

Teeb thiab Sensor Cov Ntaub Ntawv
Teeb thiab Sensor Cov Ntaub Ntawv
Teeb thiab Sensor Cov Ntaub Ntawv
Teeb thiab Sensor Cov Ntaub Ntawv

Txuas tus vcc tus pin ntawm ultrasonic sensor mus rau 5v ntawm arduino board. GND tus pin ntawm lub sensor rau GND ntawm arduino board. Trig tus pin rau pin2 ntawm arduino thiab echo tus pin rau pin4 ntawm arduino.

Kauj ruam 2: Txoj Cai Raws Li Ib txwm

Txoj Cai Raws Li Ib txwm!
Txoj Cai Raws Li Ib txwm!
Txoj Cai Raws Li Ib txwm!
Txoj Cai Raws Li Ib txwm!

Txoj cai no yuav luam tawm qhov nrug nruab nrab ntawm lub ntsuas cua ultrasonic thiab cov khoom nyob rau ntawm nws xub ntiag. Qhov txiaj ntsig yuav raug luam tawm hauv cov ntawv xov xwm.

Kauj Ruam 3: Qhov Zoo Tshaj Plaws

Qhov Zoo Tshaj Plaws
Qhov Zoo Tshaj Plaws
Qhov Zoo Tshaj Plaws
Qhov Zoo Tshaj Plaws

Tam sim no koj tuaj yeem ntsuas kev ncua deb txog 4 meters thiab nws yuav luam tawm hauv cov ntawv saib xyuas (ctrl + ua haujlwm + M lossis mus rau cov cuab yeej thiab ob npaug nyem rau ntawm lub ntsuas saib). Koj tuaj yeem txuas tus lcd thiab luam qhov nrug hauv nws.

Pom zoo: