Cov txheej txheem:
- Kauj ruam 1: Tau Kev tshoov siab
- Kauj Ruam 2: PCB Tsim
- Kauj Ruam 3: PCBs thiab Cheebtsam
- Kauj Ruam 4: Sib dhos lub voos xwmfab
- Kauj ruam 5: Arduino Code
- Kauj ruam 6: APP
- Kauj Ruam 7: Muaj Kev Lom Zem
Video: Rau Sided PCB LED Tsuav Nrog WIFI & Gyroscope - PIKOCUBE: 7 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Nyob zoo cov neeg tsim khoom, nws yog tus tsim moekoe!
Hnub no kuv xav qhia koj yuav ua li cas thiaj tsim lub tsuav LED tiag tiag raws li rau PCBs thiab 54 LEDs nyob rau hauv tag nrho. Ib sab ntawm nws lub ntsej muag sab hauv gyroscopic uas tuaj yeem txheeb pom qhov txav chaw thiab txoj haujlwm tsuav, lub voos xwmfab los nrog ESP8285-01F uas yog qhov tsawg tshaj plaws WiFi MCU Kuv paub txog tam sim no. MCU qhov ntev tsuas yog 10 txog 12 millimeters. Txhua tus PCB muaj qhov ntev 25 x 25 mm thiab muaj cuaj WS2812-2020 mini LED pixel. Ib sab ntawm tus tswj hwm muaj 150mAh Lipo roj teeb thiab them hluav taws xob hauv lub tsuav. Tab sis ntau ntxiv txog qhov no tom qab …
Yog tias koj tab tom nrhiav rau lub voos xwmfab me dua, tom qab ntawv txheeb xyuas thawj qhov uas kuv tau tsim ntawm kuv lub vev xaib. Nws tau muab pov rau hauv epoxy cob!
Pikocube version 1
Kauj ruam 1: Tau Kev tshoov siab
Txaus siab rau daim vis dis aus!
Koj yuav pom yuav luag txhua yam rau lub voos xwmfab hauv daim vis dis aus no. Txog qee cov ntaub ntawv qhia ntxiv, tsim qauv, PCB thiab cov ntaub ntawv code koj tuaj yeem tshawb xyuas cov theem hauv qab no.
Kauj Ruam 2: PCB Tsim
Raws li koj yuav paub, kuv nyiam PCB tsim software yog Autodesk EAGLE. Tias yog vim li cas kuv tau siv nws rau txoj haujlwm no ib yam.
Kuv tau pib siv ob tus qauv PCB sib txawv, vim tias kuv tsis xav ua lub voos xwmfab loj dua qhov nws yuav tsum tau ua. Cov duab sab nraud ntawm ob qho tib si PCBs tsuas yog cov duab plaub ntawm 25x25 mm. Qhov tshwj xeeb ntawm cov PCBs no yog peb lub qhov tso rau ntawm txhua sab uas faib peb lub cim +5V, GND thiab LED teeb liab thoob lub voos xwmfab. Qhov kev txiav txim ntawm PCBs tau qhia hauv ib qho ntawm cov duab qhia saum toj no. Vam tias koj tuaj yeem xav, ob sab xim ua ke ib zaug thaum lub voos xwmfab tau muab tais ua lub voos xwmfab. Cov xub tau cim WS2812 kab cim kab.
Cov duab kos, cov laug cam thiab BOMs ntawm ob qho PCBs tau txuas nrog rau theem no.
Kauj Ruam 3: PCBs thiab Cheebtsam
Lub voos xwmfab tag nrho muaj ob yam sib txawv ntawm PCBs. Thawj qhov los nrog lub roj teeb them hluav taws xob thiab lub roj teeb Lipo thiab qhov thib ob muaj MCU, lub ntsuas hluav taws xob thiab qee lub zog txuas hluav taws xob. Tau kawg PCBs tsuas yog tau nruab ib zaug ib zaug. Tag nrho cov seem tsuas yog muaj cuaj LEDs nyob sab nraum ntawm lub voos xwmfab.
Cov PCBs tshwj xeeb tshaj yog cov qhov tso rau ntawm txhua sab. Ntawm ib sab tes cov qhov/kab laug sab tau siv kom tau lub voos xwmfab zoo li lub voos xwmfab thiab tuav txhua yam nyob hauv qhov chaw thiab ntawm qhov tod tes nws xa ob lub zog rau LEDs thiab WS2812 teeb liab. Qhov kawg yog qhov nyuaj dua vim tias nws yuav tsum tau ua nyob rau hauv qhov kev txiav txim tshwj xeeb. Txhua lub PCB muaj qhov nkag ib qho nkaus xwb thiab ib qho teeb liab tso tawm nkaus xwb thiab txhawm rau cuam tshuam ib lub teeb liab ntawm ib lub ntsiab lus, Kuv tau ntxiv qee qhov SMD soldering jumper pads.
Qhov koj xav tau rau MCU pawg thawj coj:
- ESP8285-01F WiFi MCU
- ADXL345 Gyroscope
- SMD Capacitors 0603 (100n, 1µ, 10µ)
- SMD Resistors 0603 (600, 1k, 5k, 10k, 47k, 100k, 190k, 1M)
- SMD Diode SOD123 1N4148
- SMD LED 0805
- SMD Mosfet (IRLML2244, IRLML2502)
- SMD LDO MCP1700 Nws
- SMD 90deg Khawm
- WS2812 2020 LED
Qhov koj yuav xav tau rau lub rooj tsav xwm fais fab:
- MCP73831 Charger IC
- SMD Capacitors 0603 (100n, 1µ, 10µ)
- SMD Resistors 0603 (1k, 5k, 10k)
- SMD diode MBR0530
- SMD LED 0805
- SMD Mosfet (IRLML2244)
- JST 1.25mm 2P Connector
- WS2812 2020 LED
Kauj Ruam 4: Sib dhos lub voos xwmfab
Rau txhua qhov ntsiab lus ntawm kev sib dhos lub voos xwmfab koj yuav tsum xa mus rau cov vis dis aus saum toj no.
Sib dhos lub voos xwmfab tsis yog qhov yooj yim tshaj plaws, tab sis kom ua kom yooj yim dua me ntsis Kuv tau tsim cov kev pab me me uas tsawg kawg peb ntawm rau rau PCBs tuaj yeem ua ke ua ke. Ua ob zaug koj yuav tau txais ob sab PCB uas yuav tsum tau txuas nrog thaum txhua yam ua haujlwm. Yog, xyuas kom txhua yam ua tiav. Kuv tsis tau sim nws txog tam sim no, tab sis kev tshem tawm ib qho PCB tawm ntawm lub voos xwmfab tuaj yeem nyuaj.
Nco ntsoov muab tshuaj txhuam peb PCBs ua ke ua ntej koj txuas lub roj teeb. Txwv tsis pub koj yuav tsum hloov kho cov ntaub ntawv.stl nrog lub qhov me me qhov twg lub jack haum rau hauv.
Kauj ruam 5: Arduino Code
Lub voos xwmfab yuav pib nrog WiFi xiam oob khab kom txuag tau qee lub zog, uas yog hu ua modem pw tsaug zog. Hais txog ESPs cov ntaub ntawv, MCU siv sijhawm tsuas yog 15mA thaum nyob hauv modem pw, qhov nws xav tau ib puag ncig 70mA hauv ib txwm muaj. Zoo rau cov khoom siv roj teeb zoo li qhov no. Txhawm rau ua tiav qhov no koj yuav xav tau cov lej hauv qab no ua ntej hu rau teeb tsa ua haujlwm.
void preinit () {
ESP8266WiFiClass:: preinitWiFiOff (); }
Nrog lwm lub pob nyem koj tuaj yeem tsim WiFi los ntawm kev hu rau tus qauv WiFi.begin () ua haujlwm lossis hauv qhov no Blynk.begin () uas yog teeb tsa hu rau APP uas kuv tau xaiv los tswj lub voos xwmfab.
Hloov qee qhov kev ua yeeb yaj kiab rau lub voos xwmfab tsuas yog ua lej me ntsis. Kev hloov pauv ntawm matrix mus rau pixel ntawm ib lub phab ntsa tshwj xeeb tau ua tiav nrog cov haujlwm pabcuam yooj yim no:
int tau_pixel (int mat, int px, int py) {
// pib ntawm kaum sab laug rov qab (px + py * 3) + mat * 9; }
Xa mus rau PCB pixel kev txheeb xyuas hauv kauj ruam 2, thawj lub zeem muag yog ib qho saum toj kawg nkaus, qhov thib ob yog lub ntsej muag tig mus rau ib sab, cov tom ntej yog nyob ib ncig ntawm lub voos xwmfab mus rau hauv txoj kev yog thiab lub cim kawg yog hauv qab.
Thaum siv cov lej txuas, koj yuav tsum hloov kho WiFi daim ntawv pov thawj kom phim koj lub network. Txhawm rau siv kom raug nrog Blynk APP, nco ntsoov muab ob daim ntawv (BLYNK.ino thiab lwm qhov nrog Blynk hauv nws) rau hauv tib daim nplaub tshev ua ntej qhib daim duab. Cov duab kos muaj ob lub tab sib txawv. Lwm cov ntawv, uas ua tsis muaj dab tsi, tsis tas yuav tsum tau nruab nrog lwm lub tab. Nws tsuas yog ua rau lub voos xwmfab tsaug zog thaum lub pob tsis tau nias. Txwv tsis pub lub voos xwmfab yuav tsis tsaug zog thiab yuav kos tam sim no txhua lub sijhawm.
Kauj ruam 6: APP
Raws li twb tau hais lawm, lub voos xwmfab pib nrog nias lub pob ib zaug. Tab sis nws yuav tsis pib nrog WiFi ua haujlwm txhua. Lwm qhov xovxwm ib zaug thaum lub voos xwmfab twb tau pib yuav pib WiFi thiab txuas rau lub network uas tau npaj ua ntej. Tom qab koj tuaj yeem siv BlynkAPP los tswj lub voos xwmfab. Tau kawg koj tuaj yeem txuas ntxiv kev ua haujlwm, muaj ntau txoj hauv kev rau qhov no …
Ib qho piv txwv yooj yim teeb tsa hauv Blynk APP tau qhia ntawm no. Nws suav nrog ob qho SLIDER (ci ntsa iab thiab ua kom nrawm), ob lub STYLED BUTTON (hloov cov qauv duab thiab hloov lub voos xwmfab tawm), ib kauj ruam rau kev hloov pauv lub voos xwmfab, ib qho LED rau pom uas cov dice sab tau nce thiab kawg tab sis tsis tsawg kawg GAUGE rau qhia lub roj teeb xwm txheej. Txhua yam ntawm cov cuab yeej no siv cov pins virtual rau APP-MCU kev sib txuas lus. Ib yam dab tsi los nyeem tus pin virtual ntawm MCU yog hu rau lub luag haujlwm no, qhov V1 tau hais txog kev siv tus lej virtual thiab param.asInt () tuav tus nqi tam sim no ntawm tus pin. Kev txwv tsis pub ua haujlwm tsuas yog txwv cov txiaj ntsig tuaj (kev nyab xeeb ua ntej: D).
BLYNK_WRITE (V1) {
// StepH t = millis (); current_mode = txwv (param.asInt (), 0, n_modes - 1); }
Txhawm rau sau tus lej pin rau Blynk APP koj tuaj yeem siv cov haujlwm hauv qab no:
int cov ntaub ntawv = getBatteryVoltage ();
Blynk.virtualWrite (V2, cov ntaub ntawv);
Koj yuav tau txais cov ntaub ntawv ntau ntxiv txog qhov no hauv Arduino kos duab!
Kauj Ruam 7: Muaj Kev Lom Zem
Tsim thiab tsim lub voos xwmfab tau lom zem heev rau kuv! Txawm li cas los kuv tau muaj qee qhov teeb meem nrog nws. Thawj qhov yog tias kuv xav siv lub zog hloov pauv hluav taws xob sab hauv thawj lub voos xwmfab kom ntseeg tau tias WS2812 LEDs yuav khiav ntawm 5V. Luckily lawv yuav khiav ntawm Lipo voltage ntawm ib puag ncig 3, 7V ib yam nkaus, vim tias lub zog hloov pauv tau nyob deb dhau thiab cuam tshuam lub teeb liab LED uas ua rau lub voos xwmfab ntsais muag tsis xav tau.
Qhov teeb meem loj thib ob yog tias kuv xav siv lub wireless them tau, txawm tias yog qhov thib ob. Luckily Kuv tau ntxiv qee qhov them nyiaj uas tuaj yeem nkag tau los ntawm sab nraum lub voos xwmfab vim tias lub zog inductive tau cuam tshuam los ntawm GND lub dav hlau ntawm PCB thiab cov khoom siv. Yog li ntawd kuv yuav tsum tsim lub tshuab luam ntawv 3D them nyiaj, kom lub voos xwmfab tuaj yeem tso rau hauv thiab qee qhov kev sib cuag tau nias rau lub voos xwmfab.
Vam tias koj nyiam nyeem cov lus qhia no thiab yuav pom txoj hauv kev los tsim koj tus kheej lub voos xwmfab!
Xav tias dawb los txheeb xyuas kuv li Instagram, Lub Vev Xaib thiab Youtube channel kom paub ntau ntxiv txog lub voos xwmfab thiab lwm yam haujlwm zoo!
Yog tias koj muaj lus nug lossis qee yam ploj lawm thov qhia rau kuv paub hauv cov lus hauv qab no!
Muaj kev lom zem tsim!:)
Thawj qhov khoom plig hauv PCB Tsim Kev Sib Tw
Pom zoo:
Cine Sided Digital Tsuav: 7 Kauj Ruam
Nine Sided Digital Dice: Siv: https://www.instructables.com/id/Arduino-Led-Dice..Kuv tau ntxiv ob lub ntxiv LED.Qhov Qhia yuav qhia koj li cas los tsim tshwj xeeb cov dice uas tuaj yeem nthuav tawm. lej ib txog rau cuaj los ntawm kev siv Arduino. Nws yog qhov haujlwm yooj yim, thiab nws yog
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
DIY Professional Ob Chav Sided PCB: 8 Kauj Ruam (nrog Duab)
DIY Professional Ob Chav Sided PCB: Niaj hnub no, PCBs tuaj yeem yuav pheej yig heev los ntawm Tuam Tshoj. Tab sis cia peb hais tias koj xav tau ib qho hauv 24 teev, ua koj tus kheej yog qhov kev xaiv nkaus xwb. Tsis tas li ntawd, nws yog txoj hauv kev nyuaj dua thiab lom zem
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rov Ua Rau Lawv rau 12V.: 3 Cov Kauj Ruam
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rewiring Lawv rau 12V: Kuv txoj kev npaj tau yooj yim. Kuv xav txiav cov phab ntsa uas siv hluav taws xob LED teeb ua ib daim ces rov txuas nws kom khiav tawm 12 volts. Lwm txoj hauv kev yog siv lub zog hloov pauv, tab sis peb txhua tus paub tias lawv tsis muaj txiaj ntsig zoo, puas yog? Txoj cai? Los yog lawv?