Cov txheej txheem:

Arduino Joysticker: 4 Kauj Ruam
Arduino Joysticker: 4 Kauj Ruam

Video: Arduino Joysticker: 4 Kauj Ruam

Video: Arduino Joysticker: 4 Kauj Ruam
Video: How to Use a Joystick with Arduino (Lesson #13) 2024, Hlis ntuj nqeg
Anonim
Arduino Joysticker
Arduino Joysticker

Txoj haujlwm no yog txhua yam hais txog yuav siv arduino nrog Joy stick thiab lcd li cas

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau

1x Arduino (Txhua yam, Kuv siv uno)

1 x Breadboard (Sparkfun / Maplin)

1x 16 × 2 LCD Screen sib xws nrog Arduino (Sparkfun / Maplin)

1x Thumb stick (Kuv khaws kuv li los ntawm cov khoom ua si tawg) (Sparkfun)

1x Breakaway pins4x Tswb Hlau / Jumpers (Sparkfun / Maplin)

1x Hlau Stripper1x Hlau snips

1 x tiaj snip (Rau cov pin tawg)

Kauj ruam 2: Txuas Lcd rau Arduino

Kev Txuas Lcd rau Arduino
Kev Txuas Lcd rau Arduino

Txuas tus pin 1, 3 thiab 5 rau Arduino's GND. (Tsis muaj teeb meem twg)

Txuas tus pin 2 rau Arduino's +5v

Txuas tus pin 4 rau Arduino's Digital Pin 12

Txuas tus pin 6 rau Arduino's Digital Pin 11

Txuas tus pin 11 rau Arduino's Digital Pin 10

Txuas tus pin 12 rau Arduino's Digital Pin 9

Txuas tus pin 13 rau Arduino's Digital Pin 8

Txuas tus pin 14 rau Arduino's Digital Pin 7

Kauj Ruam 3: Txuas Joystick

Txuas Joystick
Txuas Joystick

Tam sim no cia peb txav mus rau tus ntiv tes xoo, Kuv tau xim xim txhua 6 tus pin ntawm tus ntiv tes xoo, txhua qhov kev taw qhia yog Liab, Dawb thiab Dub, lawv sawv cev rau +5v, Cov teeb liab sib piv thiab hauv av hwm.

Nqa cov xov hlau dub mus rau hauv txoj kev tsheb nqaj hlau hauv av, thiab cov xov hlau liab rau hauv +5v lub tsheb ciav hlau fais fab, txuas ib lub xaim dawb rau hauv analog hauv 0 thiab lwm qhov rau hauv analog hauv 1

Kauj ruam 4: Coding

Coding
Coding

nyem qhov no rau cov cai

Cov ntawv PDF tau txuas rau saum toj ntawm cov kauj ruam

Uplode cov cai thiab txaus siab ua si nrog nws

Pom zoo: