Cov txheej txheem:

Binary moos Siv Neopixels: 6 Cov Kauj Ruam (nrog Duab)
Binary moos Siv Neopixels: 6 Cov Kauj Ruam (nrog Duab)

Video: Binary moos Siv Neopixels: 6 Cov Kauj Ruam (nrog Duab)

Video: Binary moos Siv Neopixels: 6 Cov Kauj Ruam (nrog Duab)
Video: BTT Octopus V1.1 — Дополнительные сервоприводы 2024, Hlis ntuj nqeg
Anonim
Image
Image
LED Sawb, Cia Pib Nrog Qhov ntawd
LED Sawb, Cia Pib Nrog Qhov ntawd

Nyob zoo cov neeg, Kuv nyiam txhua yam LED cuam tshuam nrog thiab tseem nyiam siv lawv hauv ntau txoj hauv kev nthuav dav Yog, Kuv paub Binary Clock tau ua tiav ntawm no ntau lub sijhawm, thiab txhua tus piv txwv zoo ntawm kev tsim koj li cas lub moos.

Kuv yeej txaus siab rau Binary Clock los hais tias "Kuv tau ua qhov ntawd", thiab tau saib seb qhov twg kuv muaj, LEDs, Resistors, RTC, Arduino.. tom qab ntawd kuv pom Neopixel Sawb (WS2812). Qhov ntawd tau txais kuv xav, yuav luag txhua lub Binary Clocks Kuv tau pom siv LED Matrix uas cuam tshuam nrog ntau qhov kev sib txuas, tsis txhob ua rau kuv yuam kev, Kuv tsis muaj teeb meem soldering, tab sis vim li cas kuv thiaj siv tsis tau cov hlua … Lub phiaj xwm tsim, kev sib tw txais..

Yog li ua ntej, Kuv zaum kom paub seb kuv xav tau dab tsi hauv Binary Clock, yooj yim, Sijhawm, Mins Thib Ob, ntau kawg ntawm 4 kab yog li kuv tuaj yeem nyeem nws nrog txheeb ze yooj yim, thiab yog tias koj xav paub yuav ua li cas nyeem Binary Clock, Kuv tuaj yeem pom zoo kom pom thiab rad ntawm nplooj ntawv no: Yuav ua li cas nyeem Binary Clock Kuv yuav ua dab tsi hauv tsev, hmoov zoo kuv tau nyob hauv Ikea thiab tau siv ob peb ntawm lawv Ribba daim duab thav duab hauv lwm qhov haujlwm, yog li xav bingo, yuav ua zoo (thiab ntawm £ 2.99 yog tus nqi zoo).

Tsis muaj ado ntxiv, Daim Ntawv Teev Npe:

  • Arduino Ib
  • RTC Module (ds1302) Ebay (UK)
  • (Tam sim no hloov mus rau 10k lauj kaub) 220k Potentiometer Ebay (UK)
  • 470r Resistor Ebay (UK)
  • Ribba Daim Duab Ikea Ribba
  • Acetate - rau Daim Npog
  • Siv Lub Tshuab Luam Ntawv Laser

Lwm cov xov hlau sib txuas, lub rooj noj mov thiab 5v lub zog yuav tsum tau, Kuv xav tias koj muaj cov ntawd:)

Tam sim no cia ua lub tsev…

Kauj Ruam 1: LED Sawb, Cia Pib Nrog Qhov ntawd

LED Sawb, Cia Pib Nrog Qhov ntawd
LED Sawb, Cia Pib Nrog Qhov ntawd
LED Sawb, Cia Pib Nrog Qhov ntawd
LED Sawb, Cia Pib Nrog Qhov ntawd
LED Sawb, Cia Pib Nrog Qhov ntawd
LED Sawb, Cia Pib Nrog Qhov ntawd

Yog li ua ntej, tau txais LED Sawb, ib qho kuv tau muaj LED's (pixels) txhua 16.5mm, uas zoo li tus ncej kuv muaj, yog li kuv txiav lawv tawm ntawm 6 pixel sib nrug siv rab txiab txiab (siv kev nyab xeeb ib txwm siv).

Thov nco tseg tias nyob ze ntawm kab txaij muaj cov xub, qhov no yog cov lus qhia ntawm cov ntaub ntawv thiab lub zog, thiab cov tooj liab tau muaj kab hla, txiav raws kab ntawd kom ntseeg tau tias koj muaj tooj liab los nyob ntawm qhov kawg ntawm txhua qhov kev txiav ib feem.

Tam sim no koj yuav tsum muaj 4 LED strips nrog 6 pixels ntawm txhua tus, yog tias koj muaj, ua tau zoo, yog tias tsis yog, zoo dua, sim dua, lossis rov ua dua lawv rov qab ua ke (xyuas kom cov xub nyob hauv kab) thiab sim suav kom raug tom ntej.

Tsiv mus nrawm nrawm, cia kom tau txais cov kab ntawv LED hauv qee qhov zoo sib xws lossis xaj, kuv yuav ua li cas yog los ntsuas tus ncej, thiab faib qhov no mus rau ntu sib npaug. Kuv xav tau kuv tus kheej sab hauv daim duab mount, yog li kuv qhov kev xam siv qhov ntawd tsis yog tag nrho cov thav duab. Lub mount yog cov duab los qhia uas ib txwm thav duab, muaj daim duab hauv cov kauj ruam no nrog lub teeb tso rau saum tus ncej.

Kauj Ruam 2: Mount LED Strips, thiab Cuam Tshuam …

Mount LED Strips, thiab Solder…
Mount LED Strips, thiab Solder…
Mount LED Strips, thiab Solder…
Mount LED Strips, thiab Solder…
Mount LED Strips, thiab Solder…
Mount LED Strips, thiab Solder…
Mount LED Strips, thiab Solder…
Mount LED Strips, thiab Solder…

Raws li tuaj yeem pom hauv cov duab rau qib no, Kuv tau luam kab rau hauv ntawv thiab muab cov kab txaij tso rau ntawm lawv, tom qab ntawd, rov txhim kho tus ncej txhua lub sijhawm thiab "pom qhov muag" nws kom ntseeg tau tias kuv muaj qhov zoo li kuv xav tau. Thaum kuv zoo siab, Kuv tau muab daim kab xev txuas rau sab nraub qaum nrog cov kua nplaum, nplaum rov rau ntawm kuv tus kheej tsis zoo.

Txog qhov tsim ntawm qhov no kuv siv LibreCAD, uas yog Qhib Qhov Chaw thiab ntau dua qhov tsim nyog rau txoj haujlwm, nco ntsoov thaum luam ntawv mus rau hauv nruab nrab cov duab thiab hloov pauv cov ntawv luam rau 1: 1. Kuv tau txuas nrog Layout Kuv tau siv hauv qib no.

Tom ntej ntawm ToDo daim ntawv teev npe yog xaim cov kab tawm. Hauv kuv lub thawv ntawm cov khoom Kuv muaj qee tus txiv neej PCB ntug txuas txuas yog li kuv tau siv lawv ntau dua li siv thawj qhov txuas rau. Yog tias koj muaj cov no thiab xav mus rau txoj kev ntawd thov koj ua siab dawb ua li ntawd.

Xijpeem, pib ntawm kab txaij hauv qab, cov xub mus ncaj rau LEFT, muab koj txuas txuas txuas rau ntawm kab txaij, lossis koj thawj lub xovtooj txuas, kuv xav hais kom siv Liab, Dub thiab lwm xim rau cov ntaub ntawv. Cov kab ntawv feem ntau yog cov ntawv +. -, D… + yog koj qhov zoo, - yog qhov tsis zoo, D yog Cov Ntaub Ntawv, tsis yog txhua yam zoo ib yam thiab tuaj yeem muaj qhov sib txawv, kuv li yog 5v. thov xyuas kom meej thaum lub zog koj siv lub hwj chim tsim nyog.

Qhov ntawd yog thawj kab ntawv pib, tam sim no peb yuav tsum ua dab tsi yog txuas txhua kab ntawv hauv kab, yog li ntawd yuav tsum yog sab laug ntawm kab txaij hauv qab, mus rau sab xis ntawm kab txaij tom ntej, ntxiv rau thiab ntxiv mus, cov kab kawg yuav tsum tsis muaj kev sib txuas ntawm sab laug thiab cov xub rau txhua kab ntawv yuav tsum yog RIGHT to LEFT raws li tau hais ua ntej

Kauj Ruam 3: Qee Tus Tsis Nyiam Nws

Qee tus tsis nyiam Nws Bare!
Qee tus tsis nyiam Nws Bare!
Qee tus tsis nyiam Nws Bare!
Qee tus tsis nyiam Nws Bare!
Qee tus tsis nyiam Nws Bare!
Qee tus tsis nyiam Nws Bare!

Tus kheej kuv nyiam qhov zoo li liab qab zoo li koj tuaj yeem pom nws ua haujlwm zoo li cas, txawm li cas los xij, "Nws Leej Twg Yuav Tsum Ua Raws" hais tias yog mus rau ntawm phab ntsa ntawd nws xav tau "saib zoo dua" yog li kuv yuav tsum xav sai thiab paub kuv tuaj yeem siv Layout thiab hloov kho nws me ntsis, luam nws mus rau acetate thiab nws yuav zoo. Ntau npaum li kuv xav hais tias kuv tsoo photoshop thiab ua qhov no hauv ib pliag, kuv ua tsis tau, tus phooj ywg ntawm kuv tau ua qhov no rau kuv, vim tias kuv cov txuj ci hauv photoshop tsis zoo li kuv lub hlwb xav xav.

Qhov kawg rendering tau luam tawm mus rau acetate, txiav thiab muab tso rau tom qab iav, daim duab teeb tsa tom ntej, tom qab ntawd cov kab ntawv LED, thaum kawg lub thaub qab pawg thawj coj nrog cov xov hlau tawm los rau lub zog thiab cov ntaub ntawv.

Raws li pom hauv daim duab, Kuv muaj cov xov liab, Dub thiab Ntsuab los tawm, thiab cov xov hlau sib txuas sib txuas tau tig rov qab.

Cov khoom kawg Kuv yuav tsum lees paub tsis txaus ntseeg tsis zoo ib yam nkaus..

Binary hauv qab hais tias "Binary Clock"

Kuv yuav tau hloov mus rau ib qho kev hloov pauv thaum kuv tuaj yeem tso kuv txhais tes rau qee qhov ntau dua acetate, thiab qhov ntawd yog txav tus lej rau kab mus rau sab xis me ntsis ntxiv, lawv pom barley.

Kauj Ruam 4: Pib Nrog Cov Xov Tooj … Cia Kev Lom Zem Pib

Pib Nrog Cov Xov Tooj … Cia Kev Lom Zem Pib
Pib Nrog Cov Xov Tooj … Cia Kev Lom Zem Pib
Pib Nrog Cov Xov Tooj … Cia Kev Lom Zem Pib
Pib Nrog Cov Xov Tooj … Cia Kev Lom Zem Pib

Raws li kuv paub tseeb tias koj tuaj yeem pom hauv cov duab Kuv tsis tuaj yeem pom qhov qauv raug hauv Fritzing yog li kuv tau import cov duab thiab kab nws zoo tshaj qhov kuv tuaj yeem ua tau.

Cov tsheb nqaj hlau hauv qab yuav tsum muaj nws tus kheej 5v lub zog xa khoom, qhov loj ntawm lub hwj chim tau nthuav tawm ntawm kev siv koj li LED. Kuv xav qhia rau er ntawm sab ntawm kev ceeb toom thiab siv ib qho uas tuaj yeem lis txhua qhov LED tau teeb ntawm qhov ci tshaj plaws.

Kuv tseem tsis tau cog lus qhov no rau PCB (yuav siv daim kab xev) raws li kuv tuaj yeem ntxiv lub vijtsam LCD hauv qhov tsis muaj rau yav tom ntej nrog ntsuas kub thiab tso saib Hnub/Sijhawm thiab Kub nyob hauv tus qauv, uas yog vim li cas tsis muaj lwm yam schematic tam sim no..

CEEB TOOM.. ceeb toom qhov ua yuam kev hauv daim duab, Hauv av los ntawm RTC (Cov hlau dub) xav tau mus rau hauv av tsis yog txoj kev tsheb nqaj hlau zoo li qhia, yuav hloov daim duab tshiab thiab rub nws dua, ua tsaug istoos rau kev pom.

Kauj Ruam 5: Thaum kawg, Tsiaj Ntsuj Plig ciaj sia !

Image
Image
Tam sim no Me Me Ntxiv Ntxiv !!!!
Tam sim no Me Me Ntxiv Ntxiv !!!!

Kauj ruam kawg … huzzah

Txheeb xyuas, ntsuas ob zaug, thiab txheeb xyuas koj cov kev sib txuas ntxiv …

Tam sim no tau txais cov duab kos tso rau hauv koj Arduino, kuv yuav tsis piav qhia yuav ua li cas, vim tias muaj ntau tshaj li cov lus qhia ntawm kev ua qhov no thiab yuav tsis ntxiv ib qho txiaj ntsig rau qhov no ible …

Hauv cov lus ntawm tus lej, kab 119, qhov no xav tau yam tsis txaus siab, kab kab ntawv no teev sijhawm thiab hnub tim:

// myRTC.setDS1302Time (00, 28, 17, 7, 27, 3, 2016);

Kom tsis pom zoo hloov qhov no mus rau:

myRTC.setDS1302Time (00, 28, 17, 7, 27, 3, 2016);

Thiab muab tso rau hnub/sijhawm tam sim no hauv hom ntawv uas tau teev tseg hauv teh sketch ntawm kab 115:

// vib nas this, feeb, teev, hnub ntawm lub lim tiam, hnub ntawm lub hli, hli, xyoo

Ok, yog li tam sim no upload qhov kos duab… ua tiav? ok

Tam sim no, thaum koj rov pib dua Adruino nws yuav teeb hnub/sijhawm rau qhov tshwj xeeb ntawd, thiab koj tsis xav kom nws ua li ntawd, yog li tawm lus kab 119 thiab xa daim duab dua. Tam sim no ntawm kev rov pib dua nws yuav nyeem lub sijhawm RTC (Lub Sijhawm Tiag) thiab yuav tsum raug.

Txhua qhov teeb meem, txheeb xyuas koj kev sib txuas, uas yuav yog qhov teeb meem tseem ceeb, thiab yog tias lub roj teeb koj siv hauv koj li RTC tsis muaj zog, tom qab ntawd koj tau txais lub sijhawm nyeem tsis raug (Kuv paub, nws tau tshwm sim rau kuv, ua rau 48:45:45)

Muaj lus nug lossis teeb meem thov tso rau hauv cov lus thiab yuav pab txhua yam kuv ua tau..

Muaj kev lom zem, thiab txaus siab..

Kauj Ruam 6: Tam Sim No Ib Yam Ntxiv Ntxiv !!

Tam sim no Me Me Ntxiv Ntxiv !!!!
Tam sim no Me Me Ntxiv Ntxiv !!!!
Tam sim no Me Me Ntxiv Ntxiv !!!!
Tam sim no Me Me Ntxiv Ntxiv !!!!

Tag kis no kuv tau xav yuav ua li cas kuv tuaj yeem txhim kho Binary Clock, yog li thaum mulling qhov no dua thiab muaj kas fes kuv tau mus txog ntawm lub cua sov nruab nrab raws li tau hnov txias, tab sis txias npaum li cas, qhov kub yog dab tsi !!!

Ib txoj kev cunning…

Vim li cas ho tsis ntxiv qhov kub thiab txias rau lub moos?

Cov lus nug zoo, tsis muaj laj thawj yog vim li cas tsis ua, yog li cia ua..

20 feeb nrog Fritzing thiab kuv tau muaj theem tom ntej hauv kuv cov txuj ci npaj mus, tsuas yog xav tau los txiav tawm ib qho ntxiv 6 pixel ntev ntawm LED Sawb, ob peb ntawm cov xov hlau, 4k7ohm resistor thiab ib teev wielding kuv ntseeg cov hlau txuas thiab ob peb kab ntawm cov cai… Ua tiav!

Kuv puas ua rau nws yooj yim, zoo, xav tsis thoob nws yog …

Yog li nrog me ntsis ntawm kab txaij kuv muab tso rau ntawm DHT11 thiab qhov xav tau tiv thaiv, raws nraim li hauv daim duab.

Kuv hloov kho daim duab uas tau siv yav dhau los, tso nws thiab hav, ua haujlwm thawj zaug.. Ok nws tsis tau, thaum kuv muab tus txiv neej txuas txuas txuas txuas rau ntawm kab txaij, Kuv tau tswj kom tau txais kev sib koom tsis zoo ntawm Cov Ntaub Ntawv kab, yog li yuav tsum reseller nws..

Qhov ntsuas kub tau teeb tsa ntsug thiab nyeem raws li pom hauv daim duab, yog li qhov ntsuas kub thaum daim duab ntawd raug, yog 19 deg C.

Qhov txaus siab DHT11 tseem ntsuas cov av noo, khaws saib vim tias tej zaum yuav muaj lwm txoj hlua tuaj txog sai sai nrog cov av noo.

Pom zoo: