Cov txheej txheem:

Tswj Lub Teeb Hloov Nrog Koj Tus Kheej Cardboard Infinity Gauntlet: 10 Kauj Ruam
Tswj Lub Teeb Hloov Nrog Koj Tus Kheej Cardboard Infinity Gauntlet: 10 Kauj Ruam

Video: Tswj Lub Teeb Hloov Nrog Koj Tus Kheej Cardboard Infinity Gauntlet: 10 Kauj Ruam

Video: Tswj Lub Teeb Hloov Nrog Koj Tus Kheej Cardboard Infinity Gauntlet: 10 Kauj Ruam
Video: YUAV UA LI CAS THIAJ TSIS TSW TSOG! DIY 2024, Kaum ib hlis
Anonim
Image
Image

Kuv tau tshoov siab los ntawm Avengers Movie, Kuv pib ua Thanos Infinity Gauntlet los ntawm cov duab los qhia. Hauv qhov haujlwm no kuv siv MPU6050 thiab NRF24L01+ 2.4GHz Wireless RF Transceiver Modules los sib tham ntawm ob lub Arduino cov laug cam wirelessly. Infinity Gauntlet yog tus xa tawm thiab Servos (Hloov Hloov) yog tus txais.

Kauj Ruam 1: Yuav tsum kho vajtse thiab khoom siv

Arduino Mega + USB Cable II Arduino Uno: https://amzn.to/2qU18sO II

Arduino nano:

9v roj teeb:

Hloov:

Jumper xov hlau:

Txiv neej DC Barrel Jack Adapter rau Arduino:

Micro Servo 9g:

Mini Breadboard:

9v Roj Teeb Clip Txuas:

Duab los qhia:

Ruby:

NRF24L01+ 2.4GHz Wireless RF Transceiver Module:

MPU 6050:

LED Sawb:

Kauj Ruam 2: NRF24L01 2.4GHz Transceiver Module

PIB 6050
PIB 6050

NRF24L01 2.4 GHz Transceiver Module siv 2.4 GHz band thiab nws tuaj yeem ua haujlwm nrog baud tus nqi los ntawm 250 kbps txog 2 Mbps thiab nws tuaj yeem siv rau kev sib txuas lus wireless ntawm qhov siab txog 100 meters., tab sis qhov zoo yog tias lwm tus pin zam 5V cov laj thawj. Tus qauv sib txuas lus siv SPI raws tu qauv.

Kauj Ruam 3: MPU6050

MPU6050 muaj 3-axis Accelerometer thiab 3-axis Gyroscope hauv nws. Qhov ntsuas no pab peb ntsuas kev nrawm, nrawm, kev hloov pauv, kev hloov chaw thiab ntau lwm yam lus hais txog qhov ntsuas ntawm lub kaw lus lossis khoom siv. Cov nti no siv I2C (kev sib koom ua ke sib txuas) txheej txheem rau kev sib txuas lus.

Kauj Ruam 4: WS2812B LED Sawb

WS2812B LED Sawb
WS2812B LED Sawb

WS2812B yog qhov ntse tswj LED lub teeb ci, nrog kev tswj hluav taws xob thiab RGB nti ua ke ncaj qha rau hauv 5050 RGB (Liab, Ntsuab, thiab Xiav) LED. Txhua LED muaj peb qhov txuas ntawm txhua qhov kawg, ob qho rau lub zog thiab ib qho rau cov ntaub ntawv. Nws xav tau tsuas yog ib qho ntaub ntawv nkag los tswj lub xeev, qhov ci, thiab xim ntawm tag nrho peb lub LEDs.

Kauj Ruam 5: Ua Infinity Gauntlet Los Ntawm Cardboard

Koj tuaj yeem saib cov vis dis aus Kuv Ua Tus Infinity Gauntlet Los Ntawm Cardboard.

Kauj Ruam 6: Tus Kws Tshaj Tawm (Infinity Gauntlet) Code

Txhua yam koj yuav tsum tau ua yog teeb tsa MPU6050 lub tsev qiv ntawv, I2C lub tsev qiv ntawv, Lub tsev qiv ntawv nrawm, RF24 Lub Tsev Qiv Ntawv. Koj yuav tau txais qhov yuam kev yog tias koj tsis nruab.

Thaum koj xav ntxiv lub tsev qiv ntawv tshiab rau hauv koj Arduino IDE. Mus rau cov npe uas koj tau rub tawm ZIP cov ntaub ntawv ntawm lub tsev qiv ntawv. Luam tawm ZIP cov ntaub ntawv nrog tag nrho nws cov qauv txheej txheem hauv ib ntus nplaub tshev, tom qab ntawd xaiv cov ntawv tais ceev tseg, uas yuav tsum muaj lub tsev qiv ntawv lub npe. Luam nws hauv "cov tsev qiv ntawv" nplaub tshev hauv koj phau ntawv teev npe.

Txuas cov arduino thiab xa cov program muab rau ntawm koj arduino uno.

Kauj Ruam 7: Tus Neeg Tau Txais Txoj Cai

Txuas cov arduino thiab xa cov program muab rau ntawm koj arduino uno.

Kauj Ruam 8: Daim Kab Xaim rau Kev Tshaj Tawm (Infinity Gauntlet)

Daim Kab Xaim rau Kev Tshaj Tawm (Infinity Gauntlet)
Daim Kab Xaim rau Kev Tshaj Tawm (Infinity Gauntlet)
Daim Kab Xaim rau Kev Tshaj Tawm (Infinity Gauntlet)
Daim Kab Xaim rau Kev Tshaj Tawm (Infinity Gauntlet)

Hauv qhov haujlwm no kuv muab kuv cov khoom siv hluav taws xob tso rau hauv qhov tsis paub kawg. Tej zaum koj yuav xav muab cov khoom siv hluav taws xob tso rau hauv qhov chaw nyab xeeb.

Kauj Ruam 9: Daim Duab Txuas Rau Tus Txais

Daim duab thaiv rau Tus Txais
Daim duab thaiv rau Tus Txais
Daim duab thaiv rau Tus Txais
Daim duab thaiv rau Tus Txais

Kuv tau teeb tsa arduino uno, 9v Roj teeb thiab lub wireless txuas ntawm phab ntsa siv ob kab xev thiab kuv tau teeb tsa servos ze ntawm lub teeb hloov yog li koj tuaj yeem txuas wireless/qhib lub teeb thaum twg los xij koj xav tau.

Kauj ruam 10: Ua tiav

Infinity pob zeb LED thiab servos yog tswj los ntawm kev txav ntawm lub hnab ntim ntsuas pom siv MPU6050 lub ntsuas, yog li thaum koj txav lub hnab ntim tom qab ntawd Infinity pob zeb LED yuav ci thiab lub servos yuav tig thiab yog tias koj txav lub gauntlet rov dua LED yuav tawm thiab cov servos yuav tig rov qab.

Pom zoo: