Cov txheej txheem:

Longboard Underglow: 5 Kauj Ruam (nrog Duab)
Longboard Underglow: 5 Kauj Ruam (nrog Duab)

Video: Longboard Underglow: 5 Kauj Ruam (nrog Duab)

Video: Longboard Underglow: 5 Kauj Ruam (nrog Duab)
Video: Rares Gaitan, The 20 year old Romanian Self-made Millionaire | The Romaniac Show #5 2024, Kaum ib hlis
Anonim
Longboard Underglow Cov
Longboard Underglow Cov

Los ntawm spikytunaLinkedin Ua raws ntau los ntawm tus sau:

Cardboard Shoji Teeb
Cardboard Shoji Teeb
Cardboard Shoji Teeb
Cardboard Shoji Teeb
Nab ntawm Breadboard
Nab ntawm Breadboard
Nab ntawm Breadboard
Nab ntawm Breadboard
Suab paj nruag Reactive Mood Teeb
Suab paj nruag Reactive Mood Teeb
Suab paj nruag Reactive Mood Teeb
Suab paj nruag Reactive Mood Teeb

Txog: Kuv yog tus kws tsim txuj ci kev lag luam hauv av uas nquag ua cov haujlwm uas yog qhov deb tshaj plaws ntawm aero. Xav paub ntau ntxiv txog spikytuna »

Intro

Tej zaum koj tau muaj lub hom phiaj los ua lub longboard saib zoo li mob. Tej zaum koj tau poob siab ntawm koj lub siab hauv kev cais tawm. Txawm yog vim li cas los xij, tso qis qis rau ntawm koj lub rooj tsavxwm yog txoj hauv kev zoo nkauj los dag nws. Kuv tau ua WS2812 LED sawb tswj nrog lub ntsuas hluav taws xob, bluetooth module, thiab Arduino Nano.

Yam yuavtsum tau kawm uantej

Kev nkag siab yooj yim ntawm Arduino thiab kev siv tshuaj yaj yeeb. Lub peev xwm caij skateboard yuav txias heev.

Nco ntsoov rau Tus Tsim (Koj)

Muaj ntau qhov sib txawv ntawm daim ntawv ntev, cov khoom siv tau zoo, thiab cov tswv yim ntawm qhov tsis zoo yuav tsum zoo li cas. Yog li ntawd, koj lub teeb yuav luag yeej tsis phim qhov kuv muaj. Phau ntawv qhia no piav qhia cov txheej txheem tsim dav dav ntawm kuv qhov ci, tab sis kho nws ntau dua raws li kev pom zoo. Muab koj tus kheej kiv rau nws!

Lub Hom Phiaj

- Muab lub teeb LED tso rau hauv lub rooj tsavxwm nrog ntau yam qauv ua ntej.

- Wirelessly tswj hais cov qauv.

- Txiav tawm thaum khaws, kom tsis txhob muaj neeg dig muag.

Khoom siv

  • Arduino Nano Cov
  • HC-06 Bluetooth Module
  • ADXL345 Accelerometer
  • 2 x WS2812 LED Sawb + Cov Txuas Txuas
  • Perfboard
  • 2.54 hli Poj Niam Headers
  • 22 AWG Cov Tub Ntxhais Hlau
  • USB roj teeb txhab nyiaj
  • Capacitor (100 uF)
  • Longboard (pom tseeb)
  • Velcro
  • Soldering Hlau + Solder

Cov no yog Amazon cov koom tes txuas mus yog li kuv tau khwv tau nyiaj me ntsis nrog txhua qhov muag. Yog tias koj tsis muaj cov khoom siv no thiab xav txhawb nqa cov phiaj xwm yav tom ntej ntawm kuv, ua raws cov kab ntawv txuas no!:)

Kauj Ruam 1: Npaj Tawm thiab Breadboard

Npaj Tawm thiab Breadboard
Npaj Tawm thiab Breadboard

Npaj cov yam ntxwv thiab cov qauv uas koj xav tau ntawm koj lub rooj tsavxwm. Qhov no yog ib qib uas tau qhib lawm. Nws tag nrho rau koj los txiav txim siab nyuaj npaum li cas lossis yooj yim koj xav tau. Yog tias koj xav tau qhov tsawg kawg nkaus liab qab, roj teeb, Arduino, thiab LED kab txaij yog txhua yam koj xav tau.

Thaum koj txaus siab nrog koj teeb tsa, kos cov duab zoo, zoo huv si. Qhov no yuav pab tau thaum koj hloov nws mus rau perfboard lossis PCB.

Kuv Yuav Tsum Tau:

LEDs nyob tau.

Kuv xav tau cov npe LEDs yog li kuv tuaj yeem ua tus qauv zoo nkauj dua.

Bluetooth.

Kuv tsis xav khoov thiab nias lub pob kom hloov kuv tus qauv, yog li kuv yuav siv Bluetooth module thiab kuv lub xov tooj los ua nws.

Accelerometer.

LEDs tuaj yeem ci tau zoo nkauj thiab kuv tsis xav ua rau cov neeg taug kev thab thaum kuv nqa kuv lub rooj tsavxwm. Yog li ntawd, kuv yuav siv lub ntsuas ntsuas ntsuas kom pom thaum lub rooj tsav xwm tau tuav, thiab tua lub teeb tom qab ntawd.

Lub tswv yim:

Xeem, xeem, xeem.

Nco ntsoov koj sim koj teeb tsa ntawm lub khob cij ua ntej lwm yam! Qhov no ua rau nws yooj yim dua debug koj cov khoom siv thiab teeb tsa lub teeb pom kev zoo. Kuv kuj pom zoo ntsuas cov khoom ib los ntawm ib qho, txhawm rau txwv tus lej ntawm qhov hloov pauv thaum muaj kab laum tshwm.

Nco tseg:

Saum toj no yog daim duab kab ke ntawm kuv teeb tsa. Cov pins rau txhua qhov tivthaiv tau teev tseg ntawm txhua tus xub.

Kauj Ruam 2: Txoj Haujlwm

GITHUB LINK

Cov cai kuv muab ntawm qhov txuas no tsuas yog lub hauv paus thiab koom nrog tsuas yog Bluetooth module. Txhawm rau hloov tus qauv, siv Serial Bluetooth app ntawm koj lub xov tooj. Hloov tus pinout raws li qhov koj xav tau.

Kuv tsim kuv tus lej txhawm rau ua kom yooj yim rau suav nrog cov qauv tshiab thiab hloov pinout. Txhawm rau tsim cov qauv tshiab, muab cov lus pom zoo strncmp hauv req_handle () thiab ua rau koj cov qauv ua haujlwm hauv cov qauv.h.

Koj yuav xav tau ob qho glowy_basic.ino thiab qauv.h. Nco ntsoov suav nrog lawv nyob hauv tib daim nplaub tshev thaum ua haujlwm koj li Nano. Lawv tau raug sib cais, kom tsis txhob ua cov ntawv loj, tsis tsim nyog. Qhov no tsis yog txhais tau tias kev lag luam npaj tau.

Yog tias koj tsis xav siv kuv tus lej? Ua koj tus kheej! Cov tsev qiv ntawv yog qhov ncaj thiab siv tau yooj yim.

Cov tsev qiv ntawv siv:

  • FastLED.h (Rau LEDs)
  • SoftwareSerial.h (Serial rau Bluetooth)
  • Hlau.h (I2C)

Kauj Ruam 3: Hloov mus rau Perfboard

Hloov mus rau Perfboard
Hloov mus rau Perfboard
Hloov mus rau Perfboard
Hloov mus rau Perfboard

Ceev faj, qhov no yuav ua rau nkees.

(Yog tias koj tuaj yeem muab tso rau ntawm PCB es tsis txhob siv cov ntawv ntoo, kuv pom zoo nws.)

Perfboard yog qhov nruab nrab nruab nrab ntawm tus qauv ntawm lub khob cij thiab puv PCB. Nws yog qhov kev xaiv zoo tshaj plaws uas kuv muaj ntawm tes los ua qhov me me mus tas li. Kuv lub hom phiaj yog ua kom cov ntaub thaiv npog zoo li no (siv poj niam lub taub hau los txuas ntu) kom kuv tuaj yeem rov siv cov khoom tseem ceeb. Nco ntsoov tias koj tau siv lub tshuab hla lub tshuab hluav taws xob ua ke nrog koj lub roj teeb txuas. Qhov no yuav ua rau lub tshuab tawg ntawm kev hloov tam sim no ntawm koj cov hlua LED. Kuv tsis tuaj yeem nthuav qhia txhua qhov sib koom ua ke uas kuv tau ua tab sis kuv tau kawm ntau yam thaum lub sijhawm txheej txheem no.

Lub tswv yim:

Tso nws tawm.

Nqa koj cov khoom thiab muab tso rau ntawm koj lub rooj tsavxwm! Kev npaj qhov twg thiab yuav ua li cas lawv haum ua ke yog qhov tseem ceeb rau kev zam lub sijhawm ua yuam kev.

Khoom.

Cov hlua hlau tseem ceeb yuav tsum muaj. Nws yog qhov yooj yim dua kom haum stripped cov tub ntxhais rau hauv lub qhov ntawm perfboard, txij li nws yuav tsis sib cais sib nrug zoo li xaim xaim.

Ntsuas peb zaug, txiav ib zaug.

Txhawm rau kom muaj cov ntoo zoo nkauj me me, nco ntsoov tias koj yeej paub ntau npaum li cas xaim koj yuav tsum tau siv los txuas ib qho ntawm koj lub rooj tsavxwm mus rau lwm qhov.

Kuaj nws ob zaug.

Nquag siv lub ntsuas ntsuas kom ntseeg tau txuas ntxiv ntawm cov ntsiab lus thiab xyuas kom tsis muaj qhov luv. Qhov no yuav pab tiv thaiv qhov ua rau roj teeb puas tsuaj.

Kev Pabcuam Li Cas.

Cov pob qij txha tsis tuaj yeem tuav kev ntxhov siab thiab ua kom zoo, yog li koj xav tau qee yam ntawm kev nyem nyem kom tswj tau qhov tsis tau npaj tseg. Qhov no yog qhov tseem ceeb tshwj xeeb, txij li koj lub rooj tsav xwm tau ntsib kev co ntau. Kuv tus kheej tau siv cov hlua khi kom ruaj ntseg cov xov hlau thiab cov xaim xaim.

Kauj Ruam 4: Txuas Tshooj rau Longboard

Txuas cov khoom rau Longboard
Txuas cov khoom rau Longboard

Nws yog txoj kev caij nkoj yooj yim, tam sim no uas lub perfboard tau ua tiav.

Nov yog qhov chaw uas lub velcro los rau hauv. Kuv xav siv velcro vim tias nws muaj zog heev tab sis tshem tau.

  1. Muab tus txiv neej sab ntawm lub velcro rau ntawm daim ntawv ntev nws tus kheej. Tus txiv neej sab yog yooj yim los ntxuav, yog tias koj txiav txim siab caij tsheb yam tsis muaj lub teeb ci.
  2. Muab tus poj niam sab ntawm lub velcro tso rau hauv lub roj teeb pob thiab hauv qab ntawm perfboard.
  3. Txuas cov hlua LED.
  4. Txuas lub roj teeb thiab lub perfboard.

Lub tswv yim:

Log tom.

Tsis txhob muab cov xov hlau lossis cov khoom tso rau sab xis saum lub log. Yog tias tig tig dhau, lub log tuaj yeem kov thiab ua rau cov khoom no puas.

Tsov.

Tsis txhob muab cov xov hlau lossis cov khoom sib txuas rau ntawm tus tw, vim tias lawv yuav tiv toj rau hauv av. Rau qhov laj thawj pom tseeb, qhov no yuav ua rau cov khoom no puas.

Kev tiv thaiv.

Kuv tsis ua raws cov lus qhia no rau kuv tus kheej vim tias kuv tsis muaj lub tshuab luam ntawv 3D, tab sis kuv pom zoo kom tsim cov npog tiv thaiv rau cov kab txaij thiab cov ntawv sib dhos. Tshaj tawm cov khoom siv hluav taws xob, zoo li saum toj no, muaj feem cuam tshuam rau kev puas tsuaj los ntawm cov khib nyiab nrawm thiab dej ntws los ntawm lub log. Cov npog tiv thaiv yuav txo qhov kev puas tsuaj no thiab ua kom lub neej nyob ntev dua ntawm cov cuab yeej zoo li no.

Pom zoo: