Cov txheej txheem:

Lightpipe 7-Segment Zaub: 7 Cov Kauj Ruam (nrog Duab)
Lightpipe 7-Segment Zaub: 7 Cov Kauj Ruam (nrog Duab)

Video: Lightpipe 7-Segment Zaub: 7 Cov Kauj Ruam (nrog Duab)

Video: Lightpipe 7-Segment Zaub: 7 Cov Kauj Ruam (nrog Duab)
Video: 🚀 RUTUBE и ТОЧКА. Разработка РУТУБА за 5 часов *БЕЗ ВОДЫ* [Next / React / Nest / PostgreSQL / Redux] 2024, Hlis ntuj nqeg
Anonim
Lightpipe 7-Segment Zaub
Lightpipe 7-Segment Zaub

Yuav ua li cas yog tias kuv hais rau koj tias koj tuaj yeem tsim cov zaub tawm ntawm cov hlua khau!? Zoo uas yog qhov kuv tau ua tiav! Tsim koj tus kheej xya ntu ntu tsis muaj dab tsi tshiab, nws yog qhov haujlwm Arduino ntau heev, tab sis kuv muaj lub tswv yim rau qhov no yog li kuv hais tias kuv yuav muab nws mus, thiab kuv yog kiag li zoo siab nrog qhov nws tawm los!

Duab
Duab

Nws tau tsim los ntawm Lub teeb ci khau (cov yeeb nkab lub teeb), qee qhov chaw nyob RGB LEDs (Neopixels) thiab luam tawm 3D. Lub tswv yim tom qab qhov kev tsim no tau tshoov siab los ntawm Cob LED cov haujlwm uas Tsis Txaus Siab Tus Tsim thiab David Watts tab tom ua haujlwm. Kuv yuav qhia koj li cas kuv tau ua thiab qee qhov kev xav thiab cov lus qhia kuv muaj rau qhov hloov pauv thib ob!

Kauj ruam 1: Txheeb Tawm Cov Video

Image
Image

Hauv cov vis dis aus kuv npog txhua yam kuv ua hauv Cov Lus Qhia no yog tias koj xav tshawb xyuas nws.

Kauj ruam 2: Yam Koj Yuav Tsum Tau

Kuv siv cov hauv qab no los ua cov zaub no

  • Ib qho luam tawm 3D (ntau ntxiv txog qhov no hauv qib tom ntej)
  • Teeb cov hlua khau - Kuv paub, coj txawv txawv tab sis pheej yig thiab ua haujlwm zoo. Koj yuav tsum muaj peev xwm ua 4 cov lus nrog ib khub hlua. Xim ntawm cov hlua thaum yuav lawv tsis muaj teeb meem li peb yuav tsis siv cov LEDs lawm.

    • Amazon.com* (tsis zoo ib yam kuv tau siv, tab sis lawv zoo li lawv yuav tsum ua haujlwm)
    • Amazon.co.uk* (tib yam li saum toj no)
    • Aliexpress*
  • 14pc Los Ntawm Qhov Qhov Chaw Nyob LEDs - Kuv muaj cov no tshuav los ntawm txoj haujlwm xyoo tas los thiab kuv tsis tuaj yeem pom qhov tseeb uas kuv tau txais (Kuv ntseeg tias lawv yog APA106), tab sis kuv ntseeg cov no los ntawm Sparkfun yuav tsum ua haujlwm, koj yuav xav tau mus yuav 3 pob ib ntu.

Qee yam ntxiv uas koj xav tau

  • Ib qho Arudino, Kuv siv arduino Uno los ntawm RobotDyn ntawm aliexpress*, Kuv nyiam qhov no vim tias nws siv lub micro USB txuas
  • Kuv xav tau los laum tawm qhov ntawm kuv 3d luam ntawv kom nws haum, koj yuav tsum tau ua tib yam (3mm thiab 5mm khoom yog tias xav tau)
  • Cov hniav ntse rau txiav lub teeb yeeb nkab
  • Hlau thiab cov laug

*= Cov koom nrog txuas

Kauj Ruam 3: Luam 3D

3D Luam
3D Luam

Hnub nyoog peb nyob rau qhov twg peb tuaj yeem tsim cov khoom ntawm lub cev hauv ob peb feeb! Cov zaub no yuav nyuaj dua ua yam tsis muaj lub tshuab luam ntawv 3D!

Kuv tau tsim ib feem hauv Thinkercad. Kuv pib nrog ua ib daim ces kuv zoo siab tias lub tswv yim tau ua haujlwm ua ntej kuv tau siv sijhawm ntau thiab yas ua tsis muaj nuj nqis 7 ntu qhia! Koj tuaj yeem pom kuv rov ua dua hauv Thinkercad txuas, Kuv tau muaj qee qhov teeb meem luam tawm cov ntawv me dua, thiab qee qhov pom tau ntshav los.

Nrhiav qhov no ntawm Tinkercad thiab tseem nyob ntawm Thingiverse

Ib yam uas yuav tsum nco ntsoov yog lub teeb pom kev tsis haum rau hauv lub qhov kuv tau laum rau nws, Kuv xav tau los laum tawm lub qhov nrog 3mm laum me ntsis. Kuv xav tias nws yuav tuaj yeem ua tib yam li cov zaub uas tsis muaj 3D tshuab luam ntawv siv cov ntoo tuab thiab tho qhov 3mm lub qhov hla mus thiab tom qab ntawd khawb tawm tsuas yog txaus rau 5mm LED. Yog leej twg tsis ua txoj kev no kuv xav pom nws!

Kauj Ruam 4: Txuas cov LEDs

Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs
Txuas cov LEDs

Ua ntej kuv npog ib qho ntawm cov laug, kuv yuav tsum ceeb toom koj tias qhov no tsis zoo nkauj! Kuv yuav tham txog qee qhov kev hloov pauv kuv yuav ua rau qhov no hauv qhov xaus ntawm phau ntawv qhia no.

Peb tab tom siv RGB LEDs chaw nyob, feem ntau hu ua Neopixles. Cov no yog qhov txaus me me, dab tsi ua rau lawv tshwj xeeb yog koj tuaj yeem teeb xim ntawm txhua tus neeg LED ntau dua li tsuas yog hloov tag nrho lawv ib zaug. Lawv kuj tsuas xav tau ib cov ntaub ntawv xov hlau los tswj kom nws ua tau yooj yim dua!

Koj muaj feem yuav pom cov LEDs zoo li no ntawm kab txaij, tab sis lawv kuj muaj nyob hauv daim ntawv (zoo li tus qauv LED)

Thawj qhov koj xav ua yog tau txais lub pinout ntawm koj cov LEDs, tsis muaj ib qho taw qhia tiag qhia qhov pinout ntawm kuv LEDs pom raws li kuv nrhiav tsis tau qhov twg yuav lawv thiab lwm yam LEDs sib xws zoo li muaj qhov sib txawv pinouts.

Koj cov LEDs yuav muaj cov pins hauv qab no

  • VCC - Yuav tsum txuas nrog 5V
  • Av - Yuav tsum txuas nrog hauv av
  • Din - Cov ntaub ntawv hauv, yuav tsum txuas nrog Dout ntawm LED yav dhau los
  • Dout - Cov Ntaub Ntawv Tawm, yuav tsum txuas rau lub tswv yim ntawm LED tom ntej

Cov ceg ntaub ntawv

Muab cov LEDs tso rau hauv 3D luam tawm mount thiab khoov Dout tus pin ntawm Leds kom lawv tau taw qhia rau LED tom ntej hauv ntu. (Txheeb tawm cov duab saum toj no nrog cov lej kom pom cov ntu kuv tau siv, LED 5's Dout txuas rau LED 6 thiab lwm yam).

Siv tus Dout txhais taw rau Din ceg ntawm LED tom ntej. Txog qhov khoob uas loj dhau rau Dout ceg hla, khoov tus pin Din ntawm tus LED tom ntej rov qab rau Dout ceg thiab muab lawv tso rau.

Txog lub sijhawm koj ua tiav koj yuav tsum sab laug nrog ib qho LED nrog cov khoom seem Din (LED 0 hauv kuv daim duab) thiab ib qho LED sib txawv nrog Dout seem (LED 13 rau kuv)

Yog tias koj tab tom xaim ntau dua ib qho zaub, qhov seem Dout ntawm thawj cov zaub yuav txuas rau thawj Din ntawm qhov khoom thib ob.

Lub Hwj Huam Ob Leeg

Tam sim no koj yuav tsum txuas tag nrho VCC ob txhais ceg ua ke/ Kuv tau zoo nkauj tub nkeeg ntawm no thiab siv ib daim hlau uas kuv tau siv ob txhais ceg rau. Koj yuav tsum ua kom tiav qhov ua tiav ntawm qhov no, zoo li coj VCC lub voj voos tag nrho txoj kev ncig rov qab rau LED koj tau pib, qhov no pab txo qis qhov poob qis ntawm LEDs kawg. Tom qab ntawd koj yuav tsum tau muab cov kab xaim tawm ntawm lub voj no uas koj tuaj yeem txuas tau lub zog yooj yim rau.

Rov ua cov kauj ruam tib yam li saum toj no rau hauv av ob txhais ceg.

Nco ntsoov ntsuas qhov luv lossis txuas txuas uas siv ntau lub ntsuas.

Kuv cov LEDs tsis ua rau xiav thaum lub zog nce, yog li kuv tuaj yeem sim tias txhua LED tau txais lub zog los ntawm kev thov 5v hla txoj kab hluav taws xob.

Qhov no txhua yam ua haujlwm rau kuv tab sis kuv yuav ua qhov sib txawv thaum kuv ua nws tom ntej!

Kauj Ruam 5: Ntxiv Lightpipe

Ntxiv lub Lightpipe
Ntxiv lub Lightpipe
Ntxiv lub Lightpipe
Ntxiv lub Lightpipe
Ntxiv lub Lightpipe
Ntxiv lub Lightpipe

Tom ntej no peb yuav tsum txiav lub teeb pom kev kom haum rau txhua ntu.

Kuv siv Stanley hniav los txiav nws, thaum xub thawj kuv tau pom zoo ntawm nws, tab sis kuv pom kev thawb ib yam li guillotine ua haujlwm tau zoo dua.

Ntsuas tawm lub teeb yeeb nkab txheej nws nrog lub qhov, koj xav tawm qee zaum 1-2cm ntxiv rau txhua sab rau khoov thiab nqes mus rau hauv lub qhov. Nws zoo dua los txiav lawv ntev me ntsis vim tias muaj qee chav wiggle ua hauv 3D tsim ntxiv yog ua rau nws yooj yim dua muab tso rau hauv. Yog tias nws ntev dhau lawm koj tuaj yeem txiav me ntsis tawm (yooj yim dua li muab nws rov qab rau yog tias nws luv heev:))

Hlais lub teeb rau hauv txhua qhov qhov xav tau. Nws yuav tsum zoo li daim duab saum toj no thaum ua tiav.

Kauj Ruam 6: Tswj Nrog Arduino

Tswj nrog Arduino
Tswj nrog Arduino

Tam sim no nws yog lub sijhawm los muab nws qhov kev sim tiag tiag! Xa cov duab kos rau koj Arduino. Ntau nws yog lub sijhawm los txuas cov zaub rau Arduino. Kuv nyuam qhuav siv cov kauv kauv txuas rau kuv.

  • Txuas VCC kab ntawm Leds mus rau 5v tus pin ntawm koj Arduino
  • Txuas hauv av rau tus pin hauv av
  • Txuas cov khoom seem Din rau tus pin 10 ntawm koj Arduino

Tam sim no lub zog nws thiab koj yuav tsum muaj lub ntsej muag zoo saib 7-ntu zaub!

Nco tseg: Txhua LED tuaj yeem kos txog 60mA ntawm tam sim no. Yog tias koj txuas ntau dua ib qho zaub nws yuav raug hais kom txuas ib qho cais 5v fais fab. Nco ntsoov txuas hauv av ntawm Arduino rau lub zog siv no ib yam.

Kauj Ruam 7: Cov lus xaus thiab kev txhim kho kom ua

Kuv yeej nyiam cov zaub no thiab yuav siv tau rau hauv txoj haujlwm yav tom ntej, tab sis muaj qee yam uas kuv yuav ua txawv thaum tsim dua.

Yog tias kuv tab tom tsim nws dua nrog tib lub teeb raws li LEDs raws li txoj haujlwm no kuv yeej yuav siv perf board rau txhua LED kom ua rau cov kab hluav taws xob zoo dua qub.

Tab sis lub sijhawm tom ntej kuv tab tom ua txoj haujlwm no kuv xav tias kuv yuav siv SMD LEDs los ntawm kev tsim cov PCB kev cai lossis tej zaum tseem siv qee yam zoo li no. Kuv xav tias kev daws teeb meem PCB yuav yog qhov zoo vim tias nws yuav txhais tau tias tsis muaj xov txuas ntxiv lawm! Siv SMD LEDs txhais tau tias tus qauv 3D yuav tsis xav tau kom tob li nws tsis xav tau kom haum rau ntawm qhov los ntawm LED. Nws kuj tseem yuav txo lub teeb ntshav tawm sab nraum qab ntawm LED.

Vam tias koj txaus siab rau txoj haujlwm no! yog tias koj muaj lwm lub tswv yim rau kev siv Lightpipe hauv cov haujlwm kuv xav hnov nws.

Yog tias koj xav pom ntau qhov haujlwm los ntawm kuv, txheeb xyuas kuv li YouTube channel!

Pom zoo: