Cov txheej txheem:

Kev Tswj Chaw Taws Teeb Bluetooth Teeb: 4 Kauj Ruam (nrog Duab)
Kev Tswj Chaw Taws Teeb Bluetooth Teeb: 4 Kauj Ruam (nrog Duab)

Video: Kev Tswj Chaw Taws Teeb Bluetooth Teeb: 4 Kauj Ruam (nrog Duab)

Video: Kev Tswj Chaw Taws Teeb Bluetooth Teeb: 4 Kauj Ruam (nrog Duab)
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim
Image
Image

Qhov no yuav yog thawj qhov haujlwm hauv kab lus muaj npe: "Ua Kom Zoo Laziness: Tshaj Tawm Kev Txhim Kho rau Cov Teeb Meem Tseem Ceeb"

Puas tau pw hauv txaj lig thaum hmo ntuj nyeem lossis saib Netflix ntawm koj lub laptop? Qhov phem tshaj yog tau nkag los ntawm lub txaj kom tua lub teeb. Nov yog qhov kev daws teeb meem dhau los rau qhov teeb meem tsis tseem ceeb ntawd.

Raws li ib sab tsis:

Yog tias koj muaj kev ntseeg siab thiab paub dhau los ua si nrog koj lub zog loj, qhov kev daws teeb meem zoo dua yuav yog siv kev xa xov thiab xaim nws tom qab lub teeb hloov hauv phab ntsa. Txawm li cas los xij txij li kuv xaum kuv qhov chaw kuv tsis xav tias qhov no yuav ua rau kuv tus tswv tsev zoo siab heev!

Kauj Ruam 1: Qhov Chaw

Kev Tswj Chaw Taws Teeb thiab Hloov
Kev Tswj Chaw Taws Teeb thiab Hloov
  • 2 HC-05 Bluetooth Modules
  • 2 ATtiny85 chips
  • 28 tus pin IC qhov (socket)
  • 2 lub roj teeb Lipo me me
  • 2 cov nyees khawm
  • 2 470 ohm resistors (muaj qhov hloov pauv me me nrog qhov no, qhov txiaj ntsig tsis tas yuav yog qhov tseeb 470)
  • 1sg90 wb
  • Cov tub ntxhais hlau
  • Pawg thawj coj saib xyuas
  • Arduino Ib

Kauj Ruam 2: Kev Tswj Chaw Taws Teeb thiab Hloov

Kev Tswj Chaw Taws Teeb thiab Hloov
Kev Tswj Chaw Taws Teeb thiab Hloov
Kev Tswj Chaw Taws Teeb thiab Hloov
Kev Tswj Chaw Taws Teeb thiab Hloov
Kev Tswj Chaw Taws Teeb thiab Hloov
Kev Tswj Chaw Taws Teeb thiab Hloov

Sib dhos 2 lub voj voog raws li qhia hauv cov duab saum toj no. (Tsis txhob tso ATtiny85 chips hauv 8 tus pin qhov peb tseem xav tau rau lawv.

Siv lub tshuab luam ntawv 3D, luam tawm cov ntu rau qhov hloov pauv. Lawv tuaj yeem pom ntawm no. Qhov no tsis yog kuv thawj tus tsim thiab txhua qhov credit rau cov ntaub ntawv mus rau Thingiverse tus neeg siv Carjo3000.

Kauj Ruam 3: Pair Bluetooth Modules

Tom ntej no koj yuav tsum tau ua ob khub hc-05 bluetooth modules. Tus tswv yuav raug siv los ua chaw taws teeb, thiab tus qhev rau lub teeb hloov. Kuv tuaj yeem piav qhia yuav ua li cas qhov no tab sis muaj ntau ntau qhov kev qhia zoo rau ua qhov no thiab tsis muaj qhov taw tes rov txhim kho lub log. Kuv yuav qhia ua raws li ib ntawm ob qho kev qhia no los ua ke lub bluetooth modules ua ntej rov qab los thiab ua tiav qhov no.

www.instructables.com/id/Arduino-Bluetooth…

howtomechatronics.com/tutorials/arduino/how…

Kauj ruam 4: Program ATtiny85 thiab Upload Code

Program ATtiny85 thiab Upload Code
Program ATtiny85 thiab Upload Code
Program ATtiny85 thiab Upload Code
Program ATtiny85 thiab Upload Code

Ib zaug ntxiv muaj kev qhia ntawm no yuav ua li cas rau txheej txheem ATtiny85 chips siv Arduino Uno. Tsuas yog ua kom pom tseeb kom ntseeg tau tias ntawm cov kauj ruam hu ua "Uploading program to ATtiny85" uas koj teeb tsa lub moos rau "8Mhz (sab hauv)" ua ntej hlawv lub bootloader.

Tus qauv tsev qiv ntawv servo tus qauv rau Arduino tsis ua haujlwm rau ATtiny85 nti, hloov chaw nruab SoftwareServo lub tsev qiv ntawv. Kuv xub muaj teeb meem me me nrog lub tsev qiv ntawv no qhov kev daws teeb meem yog qhib cov ntaub ntawv Software.h hauv cov ntawv sau thiab hloov kab #include rau #include

Txhawm rau xa cov cai nkag mus rau ATtiny85 ua raws cov lus qhia hauv kev qhia ua ntej, tshwj tsis yog xa cov cai kuv muaj ntawm kuv GitHub, txhua rau txhua ntawm 2 daim. Ntsaws cov chips rau hauv 2 lub voj voog thiab tam sim no thaum koj thawb cov nyees khawm nws yuav qhib thiab tua koj lub teeb!

Pom zoo: