Cov txheej txheem:

Arduino Tswb - Lab 5: 4 Cov Kauj Ruam
Arduino Tswb - Lab 5: 4 Cov Kauj Ruam

Video: Arduino Tswb - Lab 5: 4 Cov Kauj Ruam

Video: Arduino Tswb - Lab 5: 4 Cov Kauj Ruam
Video: Baby dance in roller pub EVIAN Dame tu Cosita (baby tu Cosita version) 2024, Hlis ntuj nqeg
Anonim
Arduino Tswb - Lab 5
Arduino Tswb - Lab 5

Txheej txheem cej luam: Cov lus qhia ntawm kev tsim lub tswb siv Ultrasonic sensor ntawm Arduino UNO

Siv: Ultrasonic sensor, LED (2), LCD Screen, Potentiometer, Arduino UNO, breadboard, thiab xov hlau

NCO TSEG: Siv NewPing thiab LiquidCrystal Libraries

Kauj Ruam 1: Ntxiv LCD Screen thiab Potentiometer

Ntxiv LCD Screen thiab Potentiometer
Ntxiv LCD Screen thiab Potentiometer

Lob koj lub hwj chim thiab LCD Screen thiab ntxiv lawv rau hauv koj lub khob cij raws li qhia.

Cov Pins LCD:

1. GROUND2. Hwj chim 3. PIN 124. PIN 115. PIN 106. PIN 97. EMPTY 8. EMPTY9. EMPTY10. EMPTY11. PIN 812. GROUND13. PIN 714. Potentiometer15. Hwj chim 16. GROUND

Cov Potentiometer Pins:

1. POWER2. GROUND

Tsis tas li, nco ntsoov txuas lub khob cij lub zog thiab hauv av rau Arduino UNO

Kauj ruam 2: Ntxiv Ultrasonic Sensor

Ntxiv Ultrasonic Sensor
Ntxiv Ultrasonic Sensor

Txuas koj lub sensor mus rau daim ntawv qhia zaub mov.

Hwj chim - PowerJumper - Tus Pin 5Echo - Tus Pin 6Ground - Hauv av

NCO TSEG: Lub kaum ntse ntse koj lub sensor yog li nws tsis cuam tshuam nrog cov xov hlau

Kauj Ruam 3: Ntxiv LEDS

Ntxiv LEDS
Ntxiv LEDS

Txuas cov LEDS!

LED 1:

1. Hauv av2. PIN 13

LED 2:

1. Hauv av

2. PIN 3

Kauj ruam 4: Code

Tom qab koj ua tiav teeb tsa koj lub rooj tsavxwm, tsuas yog rub tawm cov cai no kom koj ceeb toom thiab ua haujlwm!

Pom zoo: