Cov txheej txheem:

Suab thiab Hluav Taws Tube: 5 Kauj Ruam
Suab thiab Hluav Taws Tube: 5 Kauj Ruam

Video: Suab thiab Hluav Taws Tube: 5 Kauj Ruam

Video: Suab thiab Hluav Taws Tube: 5 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Hlis ntuj nqeg
Anonim
Suab thiab Hluav Taws Tube
Suab thiab Hluav Taws Tube
Suab thiab Hluav Taws Tube
Suab thiab Hluav Taws Tube
Suab thiab Hluav Taws Tube
Suab thiab Hluav Taws Tube

Thaum saib ntau txoj haujlwm ntawm tinterweb Kuv pom ob peb yam kuv nyiam, qhov hluav taws kub / nplaim taws thiab lub suab ntsuas lub suab, yog li vim li cas ho tsis muab lawv ua ib qho?

Kuv muaj lub tshuab luam ntawv 3D thiab ntau yam khoom yog li qhov no tau nrawm (tsis suav txog 9 teev teev ntawm kev luam ntawv) txoj haujlwm.

Txhua yam koj xav tau yog qee cov ntsiab lus meej thiab xim ntawm koj xaiv, lossis tsuas yog meej dua yog tias koj xav tau. Hauv cov lus ntawm Bob Ross, nws yog koj lub ntiaj teb thiab koj tuaj yeem ua qhov koj xav tau hauv nws.

Ua ntej tshaj, tau txais qee qhov me me ntawm kev xaj (saib qib 1)

Thaum koj tos rau cov uas tuaj txog tau txais lub tshuab luam ntawv tawm thiab teeb tsa ua haujlwm luam ntawv (saib qib 2)

Sib sau ua ntu (ntu 3) tom qab ntawd zaum rov qab thiab txaus siab rau:-)

Khoom siv

Saib qib 1, Kuv tsis paub qhov me me nyob ntawm no:-)

Kauj Ruam 1: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Kuv muaj ntau yam ncaws tawm ntawm lwm qhov haujlwm txuas ntxiv thiab qhov no yog cov npe luv ntawm cov khoom koj xav tau, cov no yog txhua yam los ntawm Aliexpress tab sis muaj nyob thoob plaws qhov chaw (Google yog koj tus phooj ywg!)

1 Arduino Nano (lossis zoo sib xws)

2 WS2812 144 LED sawb (tsuas yog siv 20 ntawm qhov loj dua thiab 16 ntawm qhov luv luv)

3 MAX4466 mic nrog preamp

4 Xaub qhov hloov lossis latching laub khawm

5 Mini USB breakout

6 1 x 10K resistor

7 Nkag mus rau lub tshuab luam ntawv 3D

Kauj Ruam 2: Tau Txais 3D Luam Ntawv

Tau txais 3D Printing!
Tau txais 3D Printing!
Tau txais 3D Printing!
Tau txais 3D Printing!
Tau txais 3D Printing!
Tau txais 3D Printing!
Tau txais 3D Printing!
Tau txais 3D Printing!

Tsuas muaj ob peb ntu los luam tawm thiab lub raj ua tiav hauv ob qhov ntev, qhov luv luv tau teeb tsa rau 30 pixels ntawm ib lub 'meter' thiab 150mm raj tau yoog kom coj 144 pixels ib 'meter' (lawv tau dav dua uas kuv tsis tau ua) tsis paub!)

Kuv tau ua lub nplhaib uas koj muab lo rau hauv qab ntawm lub hauv paus, koj tsis xav tau nws tab sis nws ua rau lub neej yooj yim dua, kub kua nplaum lossis superglue tus menyuam dev mus rau hauv qab ntawm lub hau loj.

Lub kaus mom tsuas yog thawb kom haum rau hauv lub raj tab sis koj tuaj yeem lo lawv ib zaug koj tau lees tias txhua yam ua haujlwm.

Ntawm lub hauv paus lub qhov me me nyob rau hauv pem hauv ntej yuav tsum yog rau lub laub hloov (teeb tsa sab hauv lub hauv paus) tab sis nws hloov tawm qhov "latching" hloov pauv tsis xauv, yog li kuv foob nws tawm thiab ntxiv qhov hloov pauv hloov.

Kauj Ruam 3: Shove Code rau hauv Arduino

Shove Code rau hauv Arduino
Shove Code rau hauv Arduino
Shove Code rau hauv Arduino
Shove Code rau hauv Arduino

Kuv siv 168 Arduino Nano, ntau chav rau cov cai thiab lawv pheej yig dua li lwm tus.

Tshaj tawm cov cai siv Arduino IDE, koj tuaj yeem tau txais los ntawm arduino.cc

Kuv tau siv V1.8.5 raws li nws tau teeb tsa hauv lub PC no thiab tau sib xws nrog lwm qhov haujlwm txuas ntxiv mus.

Tsuas muaj qee qhov ntawv sau tseg hauv qhov chaws, pom tseeb koj tus pin thiab tus lej pixels koj yuav tsum paub txog.

suav koj cov pixels thiab hloov kho N_PIXELS 20 kom muaj pes tsawg tus neeg koj siv.

Koj tuaj yeem kho lub suab rhiab heev ntawm lub lauj kaub nce ntawm lub mic lossis los ntawm kev kho INPUT_CEILING 900 (saib sau ntawv)

Kauj Ruam 4: Lub Sijhawm Txuas Hluav Taws Xob

Lub sij hawm thaiv
Lub sij hawm thaiv

Kuv tsis muaj daim kab xev rau qhov no tab sis ua siab ncaj koj tsis xav tau ib qho:

Hloov:

Digital Output Pin 2 ntawm Arduino mus rau qhov nruab nrab ntawm qhov hloov qhov latching

Ib sab ntawm qhov hloov mus rau 0V

Lwm sab ntawm kev hloov mus rau 5V ntawm 10k resistor

LED sawb:

Gnd rau 0V

DI rau Pin 6 (Digital tawm 6) ntawm Arduino

5V rau (koj kwv yees nws) 5V

MAX4466:

Tawm mus rau A1 ntawm Arduino

Vcc rau 3.3V THIAB Aref ntawm Arduino

Gnd rau 0V

USB breakout (yeem):

Kuv yooj yim siv 0V thiab 5V tus pin rau Gnd thiab V hauv ntawm Arduino yog li kuv lub PC tsis pom qhov chaw nres nkoj txhua zaus kuv qhib lub zog.

Qhov ntawd yog hais txog nws!

Kauj ruam 5: Txaus siab rau

Txaus siab rau!
Txaus siab rau!
Txaus siab rau!
Txaus siab rau!

Piv txwv tias txhua yam zoo, tam sim no koj tuaj yeem xaiv ntawm cov nplaim hluav taws lossis cov suab nrov.

Tsuas yog zaum rov qab thiab txaus siab:-)

Pom zoo: