Cov txheej txheem:

Kab Follower Neeg Hlau Siv Arduino Uno thiab L298N: 5 Kauj Ruam
Kab Follower Neeg Hlau Siv Arduino Uno thiab L298N: 5 Kauj Ruam

Video: Kab Follower Neeg Hlau Siv Arduino Uno thiab L298N: 5 Kauj Ruam

Video: Kab Follower Neeg Hlau Siv Arduino Uno thiab L298N: 5 Kauj Ruam
Video: Управление двигателем постоянного тока с ШИМ с помощью Arduino и модуля L298N с библиотекой - Robojax 2024, Lub Xya hli ntuj
Anonim
Image
Image

Kab Paj yog cov neeg hlau yooj yim zoo tshaj plaws rau cov khoom siv hluav taws xob pib.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas

Duab
Duab

Tus neeg hlau taug kev raws txoj kab siv iR sensor. Lub sensor muaj ob lub diodes, ib qho diode xa lub teeb infrared, lwm lub diode tau txais lub teeb pom kev los ntawm qhov chaw. Thaum cov duab hluav taws xob qis poob rau ntawm qhov chaw dawb, lawv tau pom rov qab. Thaum lub teeb infrared poob rau saum npoo av dub, lub teeb tau nqus los ntawm cov xim dub thiab tsis muaj cov duab pom rov qab, yog li photodiode tsis tau txais lub teeb. Lub ntsuas ntsuas ntsuas qhov pom ntawm lub teeb pom kev thiab xa tus nqi mus rau arduino. Muaj lub zog ntsuas ntawm lub sensor, uas peb tuaj yeem hloov kho qhov nkag siab ntawm lub sensor.

Kauj ruam 2:

Tam sim no Arduino yuav tsum txiav txim siab raws li cov ntaub ntawv tau txais los ntawm lub sensor, kom txog thaum lub ntsuas pom tsis muaj kab dub nws yuav mus tom ntej. Yog tias lub ntsuas cua sab laug pom kab dub, tus neeg hlau tig mus rau sab xis, thiab yog tias lub ntsuas cua sab xis pom kab dub, nws tig sab laug. Tus neeg hlau yuav nres thaum ob lub ntsuas pom pom kab dub nyob rau tib lub sijhawm.

Kauj Ruam 3: Sau Element's

List Element cov
List Element cov

teev cov ntsiab lus:

1 x Arduino Uno

1x298n wb

2 x IR sensor

14x cev

1x Plexi 10cmx17cm

4 x TT Motor

6 x AA

1x Baterry tuav

8 x hlau nrug 10 hli

Kauj ruam 4: Schema

Schema
Schema

Kauj ruam 5: Ir Sensor Configure

Ir Sensor teeb tsa
Ir Sensor teeb tsa

Tam sim no ua ntej tig lub hwj chim, xyuas tias koj tau txuas txhua yam kom raug. Luam qhov program program thiab xa nws mus rau koj lub arduino, tom qab ntawd qhib lub ntsuas saib (hauv Arduino IDE -> Cuab Yeej -> Saib Xyuas Serial). Muab koj tus neeg hlau tso rau ntawm txoj kab dub thiab teeb lub hwj chim kom lub ntsuas tus nqi pom ≈ 1023, thiab ntawm cov nplaim dawb ≈ 33. Sketch ir configure download. Luam cov cai hauv qab no thiab xa nws mus rau arduino. Muaj kev lom zem? Sketch download tau

Pom zoo: