Cov txheej txheem:
- Kauj Ruam 1: Cov Ntaub Ntawv:
- Kauj ruam 2: Sib dhos
- Kauj Ruam 3: Txoj Cai
- Kauj Ruam 4: Kev txhim kho thiab Kev Siv Sib Txawv ntawm Gyro
- Kauj Ruam 5: Tsis ntev los no ntxiv rau hauv Tutorial, Neopixel Ring Driven by Gyroscope
Video: Gyroscope Led Tswj Nrog Arduino: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Hauv qhov haujlwm no kuv yuav qhia koj li cas tsim kom yooj yim 4 coj qaij dimmer nrog lub gyroscope thiab ib qho arduino uno. Muaj 4 lub teeb nyob hauv qhov "+" cov duab thiab lawv yuav ci ntau dua thaum koj qaij lub khob cij.
Qhov no yuav tsis cuam tshuam nrog ib qho kev sib txuas, tsuas yog kev sib dhos ua ke ntawm lub rooj sib tham thiab pib ua haujlwm yooj yim arduino.
Kauj Ruam 1: Cov Ntaub Ntawv:
1) Arduino Uno board thiab USB cable. Koj tuaj yeem siv pawg sib txawv yog tias koj nyiam tab sis nco ntsoov tias cov laug cam sib txawv muaj tus lej sib txawv, piv txwv li yog tias koj siv Arduino Mega SDA thiab SCL pins yog 20 thiab 21.
2) 4 leds, leds yuav tsum zoo ib yam, xim tsis muaj teeb meem nws nyob ntawm koj:)
3) 4 tus tiv thaiv zoo ib yam nyob ib puag ncig ntawm 100 ohms thiab 1 K ohm, kuv pom zoo ib ncig 200
4) ib lub khob cij
5) dupont xov hlau
6) MPU-6050 gyro
7) U-puab jumper cables (xaiv tau). Kuv tau siv cov jumper cables vim tias lawv saib zoo dua ntawm lub khob cij, thiab cov leds pom ntau dua li no. Koj tuaj yeem pom lub thawv 140 ntawm ebay ntawm kwv yees li 4 $. Yog tias koj tsis muaj cov kab no koj tuaj yeem hloov lawv nrog dupont xov hlau.
Kauj ruam 2: Sib dhos
1) Pib los ntawm kev tso 4 leds rau ntawm lub khob cij hauv qhov "+" zoo. Qhov ntev ntawm tus coj yog qhov zoo. Kuv tau tso cov pins zoo rau sab saum toj thiab hauv qab coj ntawm sab xis, thiab rau sab laug thiab sab xis coj hauv qab no (saib ntawm daim duab thawj.
2) Ntxig plaub tus tiv thaiv rau hauv lub khob cij.
3) Muab MPU6050 zoo li hauv daim duab
4) Ntxig cov xov hlau. Cov leds hauv av yuav ncaj qha mus rau hauv av. Cov pins zoo yuav dhau los ntawm tus tiv thaiv mus rau hauv arduino pins: tus pin 3 los ntawm tus tiv thaiv mus rau pem hauv ntej coj, tus pin 5 los ntawm tus tiv thaiv mus rau hauv qab coj, thiab zoo ib yam nrog tus pin 6 txoj cai coj, tus pin 9 sab laug coj
MPU6050 yuav tsum txuas nrog hauv av thiab 5V+, tom qab ntawd txuas SDA rau A4 (analog 4), SCL rau A5
Kuv kuj tau txuas tus txheej txheem fritzig, yog tias koj xav kom ntseeg tau tias kev sib txuas raug lawm.
Kauj Ruam 3: Txoj Cai
Cov lej cim ntawm no:
Los yog luam-muab nws los ntawm hauv qab no:
Koj yuav xav tau ob lub libs sab nraud I2CDev thiab MPU6050, kuv tau txuas lawv ntawm no, thiab kuv tau tshaj tawm hauv qab cov hauv paus ntawm cov cai. Kuv tsis tau sau cov libs nws tsis yog kuv qhov txiaj ntsig:)
Yog tias koj tsis paub yuav teeb tsa lub tsev qiv ntawv li cas qhia cov lus qhia no:
Tom qab ntawd luam tawm lossis rub tawm kuv lub tsev qiv ntawv thiab sim nws.
* I2CDev lub tsev qiv ntawv qhov chaw:
Kauj Ruam 4: Kev txhim kho thiab Kev Siv Sib Txawv ntawm Gyro
Nov yog qhov haujlwm yooj yim tshaj plaws uas kuv tau ua nrog MPU6050, kuv tuaj yeem xav txog ntau yam kev tsim los ntawm lub tswv yim no:
- ntxiv ob lossis ntau lub leds rau txhua qhov kev coj, yog li tus steeper tus tim tswv, ntau lub teeb yuav ci
- ua qhov hnav uas yuav ceeb toom koj nrog lub suab tias koj tsis muaj txoj haujlwm ncaj
Cov xwm txheej tsis zoo uas kuv xav tuaj yeem txhim kho nrog qee qhov lej (hloov yog tias nrog qee qhov sib npaug).
Raws li BONUS:) kuv tau ua youtube video nrog lwm qhov ntawm qhov haujlwm, kuv tau ntxiv 3 leds rau nce, e rau nqes, 2 rau sab laug thiab ob rau sab xis.
Yog koj xav tshuaj xyuas qhov video nyem ntawm no. Kuv kuj tau txuas ib daim duab ntawm daim ntawv qhia zaub mov saum toj no.
Rau cov neeg uas txaus siab rau txoj cai mus ntawm no, thiab hloov kab no
#define SIMPLE_IMPLEMENTATION tseeb
---------- nrog ----------- #define SIMPLE_IMPLEMENTATION cuav
Tus pinout coj tshiab yog: coj lub teeb pem hauv ntej: 3, 12, 11, hauv qab coj: 5, 6, 7, sab laug coj: 10, 4, sab xis coj: 6, 9
Hauv kuv lwm qhov kev qhia kuv tau qhia tias yuav siv lub gyroscope li cas toflip cov duab ntawm lub khoos phis tawj thaum cov zaub yog lub cev tig. Cov lus qhia nyob ntawm no.
Yog tias koj nyiam cov vis dis aus hauv youtube, koj tuaj yeem tau txais ntau los ntawm kev sau npe rau kuv cov channel ntawm no
Kauj Ruam 5: Tsis ntev los no ntxiv rau hauv Tutorial, Neopixel Ring Driven by Gyroscope
Koj tuaj yeem pom cov cai ntawm no yog tias koj xav paub txog qhov ntawd.
Pom zoo:
Kev Yooj Yim Yooj Yim Tswj - Tswj Koj Cov Khoom Ua Si RC Nrog Kev txav ntawm Koj Tes: 4 Kauj Ruam (nrog Duab)
Kev Yooj Yim Yooj Yim Tswj - Tswj Koj Cov Khoom Ua Si RC Nrog Kev txav ntawm Koj Lub Cev: Txais tos rau kuv 'ible' #45. Ib pliag dhau los kuv tau ua tiav RC version ntawm BB8 siv Lego Star Wars qhov chaw … https://www.instructables.com/id/Whats-Inside-My-R..Thaum kuv pom nws txias heev Force Band ua los ntawm Sphero, kuv xav tias: " Ok, kuv c
Rau Sided PCB LED Tsuav Nrog WIFI & Gyroscope - PIKOCUBE: 7 Cov Kauj Ruam (nrog Duab)
Six Sided PCB LED Dice With WIFI & Gyroscope - PIKOCUBE: Nyob zoo cov neeg tsim khoom, nws yog tus tsim moekoe! Ib sab ntawm nws lub ntsej muag sab hauv gyroscopic uas tuaj yeem txheeb pom qhov txav chaw thiab qhov chaw, lub voos xwmfab los nrog ESP8285-01F uas yog
Tsheb Tswj Chaw Taws Teeb - Tswj Kev Siv Wireless Xbox 360 Tus Tswj: 5 Kauj Ruam
Lub Tsheb Tswj Chaw Taws Teeb - Tswj Kev Siv Wireless Xbox 360 Tus Tswj: Cov no yog cov lus qhia txhawm rau tsim koj tus kheej lub tsheb tswj chaw taws teeb, tswj siv wireless Xbox 360 maub los
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
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