Cov txheej txheem:
Video: Arduino Distance Finder: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Qhov no yog daim phiaj ua mov ci raws txoj haujlwm uas siv Atmel Atmega 2560 (Arduino Mega) txhawm rau nrhiav qhov nrug deb siv Ultrasonic Sensor. Cov zis tuaj yeem tau txais hauv "cm" ntawm ob qho 16x2 LCD Screen thiab Serial Monitor ntawm Arduino IDE. Peb kuj tseem tuaj yeem siv 16x2 LCD Screen lossis Serial Monitor ntawm tib lub sijhawm, txhais tau tias ib yam yog xaiv tau. Tag nrho cov Circuit Court yog siv los ntawm +5V thiab +3.3V ntawm Arduino Mega. Cov lej txuas kuj tseem tuaj yeem hloov kho rau lwm yam khoom Arduino.
Kauj ruam 1: Yuav tsum tau ua
Cov hauv qab no yuav tsum ua kom tiav txoj haujlwm no:
1- Arduino Mega lossis Arduino UNO
2- Potentiometer (piv txwv li 5K) (yeem)
3- LCD 16x2 (yeem)
4- Ultrasonic sensor
Kauj Ruam 2: Pin-outs & thaiv
Tus Pin-outs & Kev thaiv ntawm Arduino Mega lossis Arduino UNO thiab lwm yam khoom siv txuas ntxiv nrog cov kauj ruam no thiab tseem muab cov hauv qab no:
============
Arduino => LCD
============
+5V => VDD lossis VCC
GND => VSS
8 => TSI
GND => RW
9 => EJ
4 => D4
5 => D5
6 => D6
7 => Txd7
+3.3V => AW
GND => KA
================== Arduino => Potentiometer
==================
+5V => 1st pin
GND => pin 3
================= Potentiometer => LCD
=================
Pin 2 => Vo
=> Koj tuaj yeem teeb qhov sib piv siv Potentiometer
===================== Arduino => Ultrasonic sensor
=====================
10 => VCCV
11 => Cov
12 => Hlo
13 => TZS
Kauj ruam 3: Upload Code
Tshaj tawm cov cai rau Arduino Mega lossis Arduino UNO. Tom qab xa cov cai rau Arduino, qhib Serial Monitor ntawm Arduino IDE kom tau txais cov txiaj ntsig. Koj tseem tuaj yeem txuas 16x2 LCD Screen kom tau txais cov zis. Cov ntaub ntawv Arduino.ino kuj tau txuas nrog cov kauj ruam no.
Pom zoo:
Arduino UNO Nrog OLED Ultrasonic Range Finder thiab Visuino: 7 Kauj Ruam
Arduino UNO Nrog OLED Ultrasonic Range Finder thiab Visuino: Hauv qhov kev qhia no peb yuav siv Arduino UNO, OLED Lcd, Ultrasonic range finder module, thiab Visuino los tso tawm ultrasonic ntau ntawm Lcd thiab teeb tsa qhov txwv nrug nrog liab LED. Saib daim vis dis aus
Tutorial: Yuav Siv Analog Ultrasonic Distance Sensor US-016 Nrog Arduino UNO: 3 Kauj Ruam
Tutorial: Yuav Siv Analog Ultrasonic Distance Sensor US-016 Nrog Arduino UNO: Nqe lus piav qhia: US-016 ultrasonic pib module tso cai 2 cm ~ 3 m tsis ntsuas qhov muaj peev xwm, muab hluav taws xob 5 V, ua haujlwm tam sim no 3.8mA, txhawb kev tso tawm analog voltage, ruaj khov thiab txhim khu kev qha Cov qauv no tuaj yeem sib txawv sib txawv nyob ntawm qhov appli
DIY Range Finder Nrog Arduino: 6 Kauj Ruam
DIY Range Finder Nrog Arduino: Hauv kab lus no kuv yuav qhia koj yuav ua li cas koj tuaj yeem ua tus nrhiav pom ntau yam siv arduino
Arduino LED Ring Ultrasonic Distance Sensor: 8 Kauj Ruam
Arduino LED Ring Ultrasonic Distance Sensor: Hauv qhov kev qhia no peb yuav kawm paub siv LED lub nplhaib nrog thiab Ultrasonic module ntsuas qhov nrug deb.Muaj video ua qauv qhia
Arduino Range Finder: 6 Kauj Ruam
Arduino Range Finder: Qhov kev nrhiav ntau yam no tau tsim los saib xyuas seb lub qhov rooj qhib lossis tsis qhib. Kev ntsuas qhov deb ntawm lub qhov rooj yuav tso cai rau peb txheeb xyuas seb lub qhov rooj qhib lossis kaw