Cov txheej txheem:

2-Axis JoyStick ntawm Cov Ntawv Stamp: 7 Kauj Ruam
2-Axis JoyStick ntawm Cov Ntawv Stamp: 7 Kauj Ruam

Video: 2-Axis JoyStick ntawm Cov Ntawv Stamp: 7 Kauj Ruam

Video: 2-Axis JoyStick ntawm Cov Ntawv Stamp: 7 Kauj Ruam
Video: Night 2024, Kaum ib hlis
Anonim
2-Axis JoyStick ntawm Cov Ntawv Nyiaj Yooj Yim
2-Axis JoyStick ntawm Cov Ntawv Nyiaj Yooj Yim
2-Axis JoyStick ntawm Cov Ntawv Nyiaj Yooj Yim
2-Axis JoyStick ntawm Cov Ntawv Nyiaj Yooj Yim
2-Axis JoyStick ntawm Cov Ntawv Nyiaj Yooj Yim
2-Axis JoyStick ntawm Cov Ntawv Nyiaj Yooj Yim

JoyStick

Kauj Ruam 1: Koj Tus Microcontroller Tshiab

Koj Tus Microcontroller Tshiab
Koj Tus Microcontroller Tshiab

Kauj ruam rov qab thiab saib cov ntawv yooj yim thiab tau paub txhua yam ntawm nws.

Kauj Ruam 2: Nruab -VSS Cov Xov Tooj

Nruab qhov -VSS Cov Xov
Nruab qhov -VSS Cov Xov

Muab ob lub xov hlau tso rau -VSS nyob rau sab saum toj ntawm lub rooj tsavxwm. tom qab ntawd khiav ib lub xov hlau rau tus pin 11 ntawm daim ntawv qhia zaub mov. Qhov thib ob xaim yuav mus rau tus pin 0 ntawm lub khob cij.

Kauj ruam 3: JoyStick Nruab

JoyStick Nruab
JoyStick Nruab
JoyStick Nruab
JoyStick Nruab

Tam sim no coj tus joystick thiab teeb nws rau ntawm daim ntawv qhia zaub mov. nws yuav tsum tau zaum txhua txoj kev mus rau sab laug ntawm hauv qab heev. GND yuav tsum yog tus pin 0 ntawm daim ntawv qhia zaub mov.

Kauj ruam 4: Capacitor Install

Nruab Capacitor!
Nruab Capacitor!

Koj yuav xav tau ob lub 0.01uF capacitors. teeb tsa lawv ntawm lub khob cij ntawm tus pin 0, 1 thiab tom qab ntawd ntawm 9, 11.

Kauj Ruam 5: Lub Sijhawm Tiv Thaiv

Lub sij hawm Resistor!
Lub sij hawm Resistor!

Tam sim no coj 2 220-Ohm resistors thiab muab tso rau ntawm daim txiag ntoo ntawm tus pin 1, 4 tom qab ntawd lwm qhov ntawm 7, 9.

Kauj Ruam 6: Pin Pin

Pin Hlau
Pin Hlau

Tam sim no nqa 2 cov xov hlau thiab muab lawv tso rau ntawm tus pin 0, 1 tom qab ntawd lwm qhov kawg ntawm tus pin 4, 7 ntawm lub khob cij.

Kauj Ruam 7: JoyStick Code

Nov yog tus lej PBasic los ua tus joystick ua haujlwm.

Pom zoo: