Cov txheej txheem:
- Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Kauj ruam 2: Circuit Court
- Kauj ruam 3:
- Kauj Ruam 4: Hauv Visuino ADD & Txuas Cheeb Tsam
- Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
- Kauj ruam 6: Ua si
Video: Arduino LED Tswj Nrog Analog Joystick: 6 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Hauv qhov kev qhia no peb yuav kawm paub siv analog Joystick los tswj lub LED.
Saib daim vis dis aus.
Kauj ruam 1: Yam Koj Yuav Tsum Tau
- Arduino UNO (lossis lwm yam Arduino)
- 4 XLED
- Joystick
- 4X Resistor 220Ω (lossis qee yam zoo sib xws)
- Cov qhob cij
- Jumper xov hlau
- Visuino program: Rub tawm Visuino
Kauj ruam 2: Circuit Court
- Txuas Arduino tus pin [5V] rau breadboard tus pin zoo [kab liab]
- Txuas Arduino tus pin [GND] rau breadboard tus pin zoo [kab xiav]
- Txuas Joystick tus pin [VRx] rau Arduino Analog tus pin [1]
- Txuas Joystick tus pin [VRy] rau Arduino Analog tus pin [0]
- Txuas Joystick tus pin [+5V] rau Breadboard tus pin zoo [kab liab]
- Txuas Joystick tus pin [GND] rau Breadboard tus lej tsis zoo [kab xiav]
- Txuas txhua tus LED tsis zoo tus pin ntawm lub khob cij rau lub khob cij tsis zoo tus pin GND [kab xiav]
- Txuas txhua tus tiv thaiv rau LED tus pin zoo ntawm lub khob cij
- Txuas arduino digital pin [2] rau thawj tus tiv thaiv
- Txuas arduino digital pin [3] rau tus tiv thaiv thib ob
- Txuas arduino digital pin [4] rau tus tiv thaiv thib peb
- Txuas arduino digital pin [5] mus rau tus tiv thaiv plaub
Kauj ruam 3:
Txhawm rau pib ua haujlwm rau Arduino, koj yuav tsum muaj Arduino IDE teeb tsa los ntawm no:
Thov nco ntsoov tias muaj qee qhov teeb meem tseem ceeb hauv Arduino IDE 1.6.6. Nco ntsoov tias koj nruab 1.6.7 lossis siab dua, txwv tsis pub Cov Lus Qhia no yuav tsis ua haujlwm! Yog tias koj tsis tau ua raws cov kauj ruam hauv Phau Ntawv Qhia no teeb tsa Arduino IDE rau program Arduino UNO! Visuino: https://www.visuino.eu tseem yuav tsum tau teeb tsa. Pib Visuino raws li pom hauv thawj daim duab Nyem rau ntawm "Cov cuab yeej" khawm ntawm Arduino tivthaiv (Daim Duab 1) hauv Visuino Thaum qhov kev sib tham tshwm, xaiv "Arduino UNO" raws li qhia hauv daim duab 2
Kauj Ruam 4: Hauv Visuino ADD & Txuas Cheeb Tsam
- Ntxiv 4X "Sib piv Tus Nqi Analog" tivthaiv
- Xaiv "CompareValue2" thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 1
- Xaiv "CompareValue4" thiab hauv cov khoom qhov rai teeb tsa "Tus nqi" rau 1
- Txuas Arduino AnalogIn [0] rau "CompareValue1" tus pin [Hauv] thiab "CompareValue2" tus pin [Hauv]
-
Txuas Arduino AnalogIn [1] rau "CompareValue3" tus pin [Hauv] thiab "CompareValue4" tus pin [Hauv]
- Txuas "CompareValue1" tus pin [Tawm] rau Arduino tus lej digital [2]
- Txuas "CompareValue2" tus pin [Tawm] rau Arduino tus lej digital [3]
- Txuas "CompareValue3" tus pin [Tawm] rau Arduino tus lej digital [4]
- Txuas "CompareValue4" tus pin [Tawm] rau Arduino tus lej digital [5]
Kauj Ruam 5: Tsim, Ua Ke, thiab Tshaj Tawm Arduino Code
Hauv Visuino, hauv qab nyem rau ntawm "Tsim" Tab, xyuas kom tseeb tias qhov chaw nres nkoj raug xaiv, tom qab ntawd nyem rau ntawm "Compile/Build and Upload" khawm.
Kauj ruam 6: Ua si
Yog tias koj ua lub zog Arduino UNO module, thiab txav txoj haujlwm joystick lub LED yuav nyem.
Nrog koj zoo siab! Koj tau ua tiav koj txoj haujlwm nrog Visuino. Kuj txuas nrog yog Visuino project, uas kuv tau tsim rau Cov Lus Qhia no, koj tuaj yeem rub tawm nws ntawm no thiab qhib nws hauv Visuino:
Pom zoo:
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: 4 Cov Kauj Ruam (nrog Duab)
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: Tsis ntev los no kuv tau siv sijhawm qee lub sijhawm siv khoom hauv thiab ib puag ncig kuv lub tsev. Kuv tab tom siv Domoticz ua kuv daim ntawv thov Tsev Automation, saib www.domoticz.com kom paub meej. Hauv kuv tshawb nrhiav daim ntawv thov daim ntawv qhia uas qhia tag nrho Domoticz cov ntaub ntawv tog
ESP8266 RGB LED Sawb WIFI Tswj - NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi - RGB LED Sawb Smartphone Tswj: 4 Cov Kauj Ruam
ESP8266 RGB LED Sawb WIFI Tswj | NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi | RGB LED Sawb Smartphone Tswj: Nyob zoo cov neeg hauv qhov kev qhia no peb yuav kawm paub siv nodemcu lossis esp8266 li IR chaw taws teeb los tswj RGB LED sawb thiab Nodemcu yuav raug tswj los ntawm smartphone dhau wifi. Yog li hauv paus koj tuaj yeem tswj RGB LED Sawb nrog koj lub xov tooj
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Cov Txheej Txheem Digital thiab Analog 2015: 3 Cov Kauj Ruam (nrog Duab)
Cov cuab yeej cuab tam - Ceramic hauv Cov Ntsiab Lus ntawm Digital thiab Analog Cov Txheej Txheem 2015: Txog tam sim no, cov khoom siv hlau yog cov khoom siv tes ua uas tsis muaj kev cuam tshuam digital. Vim li no, nws zoo siab heev los ua phooj ywg nrog cov cuab yeej tshiab. Lub hauv paus pib yog daim ntawv qub thiab CNC Styrocutter.DESIGNBOOM
Begging Neeg Hlau Nrog Saib Xyuas Lub Ntsej Muag thiab Tswj los ntawm Xbox Tus Tswj - Arduino: 9 Cov Kauj Ruam (nrog Duab)
Begging Robot Nrog Lub ntsej muag taug qab thiab Tswj los ntawm Xbox Controller - Arduino: Peb tab tom yuav ua tus thov neeg hlau. Tus neeg hlau no yuav sim ua rau khaus lossis ua rau pom kev dhau ntawm tib neeg. Nws yuav ntes lawv lub ntsej muag thiab sim tua lasers ntawm lawv. Yog tias koj muab tus neeg hlau ib npib, nws yuav hu nkauj thiab seev cev. Tus neeg hlau yuav xav tau
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw