Cov txheej txheem:

Bluetooth Tswj Arduino LED Rooj Kas Fes: 10 Kauj Ruam (nrog Duab)
Bluetooth Tswj Arduino LED Rooj Kas Fes: 10 Kauj Ruam (nrog Duab)

Video: Bluetooth Tswj Arduino LED Rooj Kas Fes: 10 Kauj Ruam (nrog Duab)

Video: Bluetooth Tswj Arduino LED Rooj Kas Fes: 10 Kauj Ruam (nrog Duab)
Video: How to use W1209 Temperature relay controller and program the thermostat 2024, Hlis ntuj nqeg
Anonim
Bluetooth Tswj Arduino LED Rooj Kas Fes
Bluetooth Tswj Arduino LED Rooj Kas Fes
Bluetooth Tswj Arduino LED Rooj Kas Fes
Bluetooth Tswj Arduino LED Rooj Kas Fes
Bluetooth Tswj Arduino LED Rooj Kas Fes
Bluetooth Tswj Arduino LED Rooj Kas Fes
Bluetooth Tswj Arduino LED Rooj Kas Fes
Bluetooth Tswj Arduino LED Rooj Kas Fes

Nov yog kuv thawj qhov haujlwm Arduino tiag tiag thiab tseem yog kuv thawj qhov kev qhia yog li ua siab zoo hauv cov lus:) Kuv xav sim thiab teb cov lus nug uas coj kuv qee lub sijhawm los txheeb xyuas thiab muab cov lus qhia ntxaws yog li koj paub zoo heev nrog hobbyist hluav taws xob ces koj tuaj yeem hla dhau txhua kauj ruam tab sis yog tias koj tshiab rau qhov no nws yuav tsum muab txhua yam koj xav tau.

Lub hom phiaj ntawm txoj haujlwm yog tsim kom muaj 12 x 12 pixel npo hauv lub rooj kas fes uas tuaj yeem tswj tau ntawm bluetooth thiab siv los ua chav txias txias/ua si ua si ntawm nws.

Rau qhov kev tsim no koj yuav xav tau cov ntu no:

  1. Arudino Mega (lossis clone)-https://www.amazon.co.uk/Arduino-Mega-2560-R3-Micr…
  2. Arduino micro SD Card Shield (Kuv tau siv qhov no thiab siv cov kab ntawv txuas rau) -
  3. Micro SD daim npav - Txhua qhov loj me yuav ua tau tab sis nws yuav tsum tau muab ua hauv FAT32
  4. 5m WS2812B Ntxiv rau cov hlua LED -
  5. HC05 Bluetooth module -
  6. 5 V 6 Amp Fais fab mov-(Kuv siv qhov no tab sis muaj ib puas lwm tus ntawm ebay)
  7. Ikea LACK rooj (cov nyiam ua haujlwm qub) -
  8. Nkag mus rau lub tshuab txiav laser rau 3 hli plywood (lossis txhais tes khov kho). Koj tuaj yeem xaj xaj laser txiav online hauv ntau qhov chaw (https://www.hobbytronics.co.uk/laser-cutting piv txwv)
  9. Cov tshuaj tsuag xim dawb
  10. 2 m txhuas ntu T (1 1/2 x 1 1/2 x 1/8) -
  11. 450 mm x 450 mm x 6 mm iav sab saum toj (feem ntau cov kws ci hauv cheeb tsam tuaj yeem txiav cov khoom tshwj xeeb rau koj tab sis kuv siv cov no
  12. 1 x 100 micro Farad Capacitor
  13. 2x1k tiv
  14. 1x2k tiv
  15. 1 x linear rotary potentiometer
  16. Ntau yam dhia (tej zaum yog kaum ob thaum lub sijhawm ua qauv)
  17. Tsawg kawg yog peb xim ntawm cov kab uas tuab tuab rau cov laug (qhov no tuaj yeem kos qee qhov dej loj loj yog li kuv tsis xav kom jumper xov hlau rau lub zog)
  18. Stripboard rau sab hauv Circuit Court (tsis txhob txhawj nws yooj yim heev)

Cov cuab yeej xav tau:

  1. Ib tug hlau soldering + solder
  2. Ib khub ntawm snips
  3. Cov hlua hlau
  4. Dremel lossis jigsaw ntawm qee yam kom hack lub rooj sib nrug. Kuv tau siv qhov no https://www.amazon.co.uk/gp/product/B0078LENZC/ref… nrog cov kauv txiav me me

Kauj Ruam 1: Thawj Xeem thiab Txheej Txheem

Thawj Xeem thiab Txheej Txheem
Thawj Xeem thiab Txheej Txheem
Thawj Xeem thiab Txheej Txheem
Thawj Xeem thiab Txheej Txheem
Thawj Xeem thiab Txheej Txheem
Thawj Xeem thiab Txheej Txheem

Thawj qhov chaw nres nkoj ntawm kev hu xov tooj yog txiav cov hlua LED rau hauv qhov ntev uas koj xav tau. Cov hlua LED no yooj yim heev rau siv vim nws tsuas muaj 3 tus pin thiab ua rau Arduino ua haujlwm tiag tiag. Kuv txiav lub spool rau hauv 12 ntu txhua qhov ntev 12 LEDs raws li qhia hauv daim duab thiab muab lawv tso rau tom qab ntawm lub rooj kom pab kuv pom qhov twg kuv tau mus nrog qhov no.

Tom qab ntawd kuv muaj ob peb LEDs tshuav lawm kuv thiaj txuas lawv mus rau Arduino UNO Kuv yuav tsum sim yog tias lawv ua haujlwm (koj tuaj yeem siv Mega tau hais hauv cov phiaj xwm phiaj xwm ib yam nkaus). Txhawm rau ua qhov no kuv txiav thiab hle qee tus txiv neej rau txiv neej lub taub hau thiab muag lawv rau cov ntaub qhwv ntawm qhov kawg ntawm LED sawb. Ntawm WS2812 sawb kuv siv 5V xaim yog liab, av yog dawb thiab cov ntaub ntawv yog ntsuab. Nco ntsoov tias koj tau them sai sai rau cov lus qhia coj mus luam ntawm WS2812B kab xev kom koj tsis txhob sim thiab xa cov ntaub ntawv mus rau qhov tsis raug. Kuv txuas 5V kab rau 5V ntawm Arduino, Av rau GND thiab Cov Ntaub Ntawv txhawm rau pin 6 nrog 1k resistor hauv koob. Tsis nco qab tias Fritzing lub tswv yim ntawm WS2812B LEDs txawv me ntsis rau qhov kuv tau xa - txaus hais, tsuas yog xyuas kom cov ntaub ntawv txuas nrog tus pin 6, Gnd txuas nrog hauv av thiab 5 txuas nrog 5V.

Nrog tsawg LEDs (5 lossis ntau dua) Arduino yuav tsum ua kom zoo los muab lub zog; txawm li cas los xij koj tsis tuaj yeem siv zog ntau li thaum lawv nyob dawb tag nrho LEDs kos txog 60mA txhua thiab tuaj yeem cuam tshuam sai sai rau Arduino.

Piv txwv tias koj muaj Arduino IDE (yog tias tsis rub tawm thiab teeb tsa nws) teeb tsa hom chipset rau Arduino koj muaj thiab teeb tsa COM chaw nres nkoj mus rau qhov uas qhia Arduino hauv cov kev xaiv. Tam sim no rub tawm FastLED lub tsev qiv ntawv thiab nruab nws (https://fastled.io/). Qhib tus piv txwv striptest.h thiab teeb tus lej ntawm LEDs hauv daim duab rau txawm li cas los xij koj muaj (Kuv muaj 5 sab laug). Ntaus pov thawj thiab (piv txwv tias txhua yam mus tau zoo) upload nws mus rau Arduino thiab koj yuav tsum pom lub teeb ntawm kab txaij me me tuaj thiab hloov xim.

Kauj Ruam 2: Soldering Matrix thiab Stripboard

Soldering Matrix thiab Stripboard
Soldering Matrix thiab Stripboard
Soldering Matrix thiab Stripboard
Soldering Matrix thiab Stripboard
Soldering Matrix thiab Stripboard
Soldering Matrix thiab Stripboard

Tam sim no nws yog lub sijhawm los pib tsim LED matrix.

Txiav 11 luv luv ntawm txhua ntawm peb xim ntawm cov hlau uas koj muaj. Nco ntsoov tias lawv ntev txaus los ntawm qhov kawg ntawm ib txoj hlua mus rau qhov pib ntawm ib qho ntxiv. Thaum tso cov hlua LED tawm koj yuav tsum paub tseeb tias cov ntaub ntawv ntws xub ua raws tus nab. Thaum qhov no tau tso tawm, ua tib zoo muab tshuaj txhuam kab coj mus rau tom ntej raws li qhia hauv daim duab. Qhov no yooj yim dua yog tias koj siv tib xim rau txhua hom kev txuas.

Tam sim no, kev siv ntau dua, peb yuav tsum tsim cov kab hluav taws xob uas yuav tswj hwm lub zog los ntawm cov khoom siv hluav taws xob. Kuv soldered ob kab ntawm kab ntawv ua ke rau ob qho 5V thiab GND kom nws ua haujlwm tam sim no zoo dua. Saib cov ntawv schematic txuas rau lub Circuit Court uas koj xav tau los tsim. Thaum soldering lub capacitor, xyuas kom tseeb tias qhov tsis zoo kawg tau txuas rau GND txoj kev tsheb nqaj hlau, tsis yog 5V ib qho. Thaum cov kab txaij ua tiav peb yuav tsum txuas rau +VE thiab GND rau cov kab hluav taws xob LED thiab tseem siv lwm qhov ib nrab ntawm cov neeg dhia dhia peb txiav ua ntej los txuas Arduino rau lub zog hluav taws xob thiab cov kab txaij. Tam sim no yuav yog lub sijhawm zoo los ntxiv SD daim ntawv cais tawm rau Arduino kom peb tuaj yeem khaws cov ntaub ntawv rau nws thiab nyeem los ntawm nws tom qab. Thaum SD tshem tawm pawg thawj coj ntawm qhov chaw peb tuaj yeem txuas 5V txoj kev tsheb mus rau Vin tus pin thiab GND rau ib qho GND tus pin ntawm Arduino.

Thaum kawg, peb tuaj yeem txuas lub hwj chim ntsuas hluav taws xob rau cov tswv yim analog A0 raws li qhia kom peb muaj txoj hauv kev los tswj qhov ci ntawm LEDs.

Thaum tag nrho cov no ua tiav peb tuaj yeem xa daim duab skiptest rov hloov tus lej ntawm LEDs mus rau 144. Ua kom ntseeg tau tias koj muaj lub zog siv hluav taws xob ua ntej koj rub daim duab no. Vam tias tag nrho cov LEDs yuav tsum teeb nyob rau hauv cov qauv ntawm daim duab striptest yog li peb paub txhua yam ua haujlwm.

Kauj ruam 3: Bluetooth Module Integration

Bluetooth Module Kev Sib Koom
Bluetooth Module Kev Sib Koom

Qhov kawg ntawm txoj hlua tam sim no, chav HC05 txuas nrog rau Arduino Mega raws li qhia hauv kab lus. Ua kom ntseeg tau tias chav HC05 txuas rau Rx1 thiab Tx1 cov chaw nres nkoj ntawm mega - qhov no ua rau nws yooj yim dua rau txoj haujlwm thiab zam kev siv lub tsev qiv ntawv "softwareserial".

NB. Chav HC05 yuav siv 5V hauv lossis 3.3V hauv thiab feem ntau ua haujlwm ntawm 3.3V cov laj thawj yog li kuv txuas nws mus rau 3.3V kev tsheb nqaj hlau. Qee lwm cov lus qhia tau qhia Tx (ntawm Arduino) rau Rx (ntawm chav HC05) nrog lub peev xwm faib hluav taws xob txhawm rau txhawm rau 5 V cov laj thawj los ntawm Arduino mus rau qib ib txwm rau HC05 tus qauv. Qhov no yog qhov laj thawj kuv muaj 1k thiab 2k resistors hauv cov npe khoom; txawm li cas los xij, kuv tsis thab thiab zoo li zoo siab heev ntawm kuv lub rooj:)

Kauj ruam 4: Table Hacking

Rooj Hacking
Rooj Hacking
Rooj Hacking
Rooj Hacking
Rooj Hacking
Rooj Hacking

Tam sim no peb yuav tsum pib txiav lub rooj sib nrug kom muab peb cov LEDs thiab cov khoom siv hluav taws xob ua lub tsev tshiab.

Thawj qhov cim tawm ntawm 450 mm x 450 mm square hauv nruab nrab ntawm sab saum toj ntawm LACK tabletop. Siv Dremel (lossis jigsaw) txiav lub xwmfab kom zoo tshaj plaws uas koj tuaj yeem ua tau kom ncaj. Tam sim no peb tuaj yeem tshem tawm sab saum toj thiab cov duab los qhia sab hauv tawm hauv koj nrog lub hollowed tawm ntawm lub rooj raws li qhia hauv daim duab. Siv Dremel dua peb tuaj yeem laum ib lub qhov nyob rau hauv kaum ntawm qab ntawm lub rooj yog li peb muaj qee qhov uas yuav taug txoj kab hluav taws xob hla.

Thaum lub rooj tau npaj lawm peb tuaj yeem kaw cov LEDs hauv qhov ntxaws ntawm txoj haujlwm raug ua ntej peb txav mus rau cov kauj ruam tom ntej. Kuv pom nws muaj txiaj ntsig los xyuas kom meej tias cov khoom siv hluav taws xob tau raug tom qab txhua kauj ruam yog li sim ua daim duab striptest dua.

Thaum koj xis nyob txhua yam nyob hauv nws qhov chaw raug, tom qab ntawd koj tuaj yeem laum ob peb lub qhov me me los txhawm rau txuas lub zog hluav taws xob sab hauv lub rooj ntug siv cov ntsia hlau me. Kuv tau xaiv los teeb tsa Arduino sab nraum lub rooj yog li kuv tuaj yeem rov sau dua yooj yim yog tias kuv xav tau tab sis nws tau teeb tsa upside down rau hauv qab ntawm lub rooj thiab tsis yooj yim pom. Kuv kuj tau teeb tsa lub zog ntsuas hluav taws xob los ntawm hauv qab ntawm lub rooj kom lub teeb ci ntsa iab saib zoo nkauj thiab muaj txuj ci.

Kauj Ruam 5: Laser Txiav Qhov

Laser Txiav Qhov
Laser Txiav Qhov
Laser Txiav Qhov
Laser Txiav Qhov
Laser Txiav Qhov
Laser Txiav Qhov

Tam sim no peb yuav tsum tau qhia qhov laser txiav qhov uas tsim cov matrix ntawm cov plaub fab yog li peb tau txiav txim siab pixels. Kuv tau suav nrog cov ntaub ntawv dxf rau lub laser txiav ntu uas tsim cov ntoo ntoo thiab cov duab ntawm lawv kom koj paub tias lawv yuav tsum zoo li cas. Lawv tau ua los ntawm ob daim sib cais, ib qho mus raws txhua kab ntawm LEDs thiab lwm qhov hla lawv. Cov ntu uas hla muaj 10 hli qhov sib txawv siab txiav tawm hauv qab kom tso cai rau cov hlua hla dhau. Qhov sib txawv no tuaj yeem txo qis mus rau 5 hli raws li kuv pom muaj lub teeb me me los ntawm ib lub pixel mus rau lwm qhov.

11 ntawm cov ntawv theej ntawm ob ntu yuav tsum tau txiav tawm laser ntawm 3mm plywood thiab tom qab ntawd sib sau ua ke kom ntseeg tau tias lawv haum zoo. Thaum koj zoo siab, coj lub matrix sib nrug dua thiab tshuaj tsuag nws dawb txhawm rau txhim kho cov yam ntxwv ntawm lub rooj. Thaum qhuav tso lawv rov qab ua ke dua thiab tso lawv hla cov LEDs. Nws yuav nyuaj me ntsis kom haum lawv ua ke tom qab txau raws li tam sim no me ntsis tuab tab sis tsis txhob txhawj xeeb tsuas yog maj mam coj lawv mus rau hauv qhov chaw ua ntej koj tso cov lej rau hauv lub rooj.

Kauj ruam 6: Glediator

Glediator
Glediator
Glediator
Glediator

Tam sim no peb muaj tag nrho cov cuab yeej siv ua peb tuaj yeem pib saib software. Kuv rub tawm thiab teeb tsa software hu ua Glediator los tsim cov duab rau LEDs (https://www.solderlab.de/index.php/software/glediat…). Cov lus qhia teeb tsa tuaj yeem ua rau me ntsis fiddly tab sis ua raws lub vev xaib ze thiab koj yuav tsum zoo. Peb kuj yuav tsum rub daim duab kos los ntawm Glediator lub vev xaib txhawm rau rub mus rau Arduino (https://www.solderlab.de/index.php/downloads/catego…). Peb tab tom siv WS2812B LEDs kom ntseeg tau tias koj rub tawm qhov raug (WS2812 Glediator Interface). Thaum koj qhib qhov kev kos duab no, hloov NUMBER_OF_PIXELS mus rau 144 thiab xa nws mus rau Arduino.

Thaum Glediator tau teeb tsa peb tuaj yeem pib ua yeeb yaj kiab ntawm lub rooj. Ua ntej tshaj plaws peb yuav tsum teeb tsa qhov loj me rau 12 x 12 hauv Glediator software thiab tseem teeb tsa hom rau HSBL - Kab Rov tav (pib) Hauv qab Sab laug vim qhov no yog txoj hauv kev peb tau txuas cov LEDs thiab hloov xim kom GRB (qhov no yog qhov LEDs coj cov ntaub ntawv rau). Ntawm cov ntawv tso tawm, qhib qhov chaw nres nkoj COM thiab LED matrix yuav tsum pib ua kom pom cov qauv LED ntawm qhov screen nruab nrab ntawm Glediator software.

Koj tuaj yeem tsim cov yeeb yaj kiab thiab sau cia rau hauv.dat cov ntaub ntawv uas peb tuaj yeem rub mus rau SD daim npav lub ntsiab lus tias koj cov kev nyiam ua yeeb yaj kiab tuaj yeem tshwm rau ntawm lub rooj yam tsis xav tau lub PC txuas nrog. Muaj qee qhov kev qhia hauv online txog qhov no (https://hackaday.io/project/5714-glediator-from-sd… piv txwv). Kuv tau hloov kho ob peb qhov sib txawv ntawm cov cai los ua haujlwm rau qhov no yog li kuv tus lej yuav tsum zoo.

Thaum txuag koj cov tsiaj ntawv, nco ntsoov tias koj txuag lawv li "animX.dat" qhov twg X yog tus lej ntawm 1-15. Koj tuaj yeem siv ntau dua los ntawm kev hloov ob peb kab hauv kuv cov cai.

NB- Thaum kaw cov ntaub ntawv Glediator, lub software muaj kab laum nyob hauv nws uas txhais tau tias nws tsis nco qab tias koj tau xaim li kab hlua LED li cas. Hauv kuv tus lej kuv tau siv txoj haujlwm yooj yim kom thim rov qab qhov kev txiav txim ntawm cov lej uas muaj tus lej txhais tau tias nws txhua qhov qhia tau raug

Kauj Ruam 7: Bluetooth Serial Control

Bluetooth Serial Control
Bluetooth Serial Control
Bluetooth Serial Control
Bluetooth Serial Control

Teeb tsa kev sib tham ntawm bluetooth ntawm lub xov tooj thiab Arduino ua pov thawj tsis txaus ntseeg tab sis muaj ob peb kauj ruam yooj yim uas yuav ua rau qhov no yooj yim dua. Ua ntej tshaj, koj yuav tsum rub tawm ib qho app rau koj lub smartphone. Kuv siv https://play.google.com/store/apps/details?id=com…. tab sis tej zaum muaj qhov sib npaug iphone (uas koj yuav tsum tau them rau; p)

Koj yuav tau pom tias HC05 tus qauv muaj qhov hloov me me rau nws. Yog tias koj lub zog nws nrog qhov hloov pauv nias nws nkag mus rau AT-hom uas txhais tau tias koj tuaj yeem nug cov lus tsis ntawm nws thiab hloov lawv yog tias koj xav tau.

Tshaj tawm daim duab txuas mus rau Mega thiab teeb tus lej hauv koj lub PC mus rau 9600. Tshem lub zog mus rau chav HC05 thiab tom qab ntawd nyem lub pob rau nws thaum koj rov txuas nws dua. Kev ntsais muag tam sim no yuav tsum yog kwv yees li ib zaug txhua ob feeb - tam sim no HC05 nyob hauv AT -mode.

Tam sim no hauv kab ntawv saib xyuas peb tuaj yeem xa cov lus txib mus rau HC05 thiab pom nws cov lus teb. Ntaus "AT" thiab nias xa thiab koj yuav tsum pom "OK" rov qab los ntawm lub ntsuas saib - tam sim no peb paub tias nws tau mloog. Lub npe bluetooth ntawm lub cuab yeej tuaj yeem hloov pauv los ntawm kev ntaus "AT+NAME = XYZPQR" qhov twg XYZPQR yog qhov koj xav kom lub npe hu ua. Kuv hu kuv li LightWave. Lub passcode default rau bluetooth module yog 1234 (lossis 0000) tab sis qhov no tuaj yeem hloov pauv ib yam los ntawm kev xa "AT+PSWD = 9876" piv txwv. Thaum kawg, peb tuaj yeem hloov pauv kev sib txuas lus ntawm HC05 los ntawm kev xa "AT+UART = 38400". Qhov no yog tus nqi pib rau feem ntau HC05 cov qauv tab sis kuv tau teeb tsa sib txawv yog li nws yog kev coj ua zoo los teeb nws kom ntseeg tau. Muaj ntau yam ntxiv cov ntsiab lus hais txog cov lus txib no ntawm no: https://www.itead.cc/wiki/Serial_Port_Bluetooth_M… Tus-HC-05-…

Tam sim no peb tuaj yeem sim xa cov lus txib rau tus qauv ntawm bluetooth ntaus ntawv. Ua ntej tshaj tawm lub zog rau HC05 tus qauv thiab tom qab ntawd txuas nws dua. Koj yuav tsum pom tias qhov teeb nyem ntawm LED tau nrawm dua - qhov no txhais tau tias tam sim no nws tseem tos ua khub. Ntawm koj lub smartphone, qhib Arduino Bluetooth Controller app thiab nrhiav HC05 module. Yog tias koj tsis tau hloov lub npe nws yuav zoo li hu ua HC05 lossis zoo sib xws. Thaum muab cov kev xaiv ntawm qhov koj xav txuas, xaiv hom Terminal. Tam sim no sim xa qee tus lej thiab kab ntawv thiab pom yog tias lub luag haujlwm saib hauv PC qhia tias lawv tau txais. Vam tias lawv muaj yog li peb tuaj yeem txav mus, yog tias tsis muaj ntau cov lus qhia uas yuav muab qee yam rau koj (https://www.instructables.com/id/Bluetooth-Hc-05-W… piv txwv).

Qhov kawg uas yuav tsum ua ntawm no yog txhawm rau ua daim duab qhia chaw tswj tus lej nkag mus rau tus lej Arduino tuaj yeem ua qee yam nrog. Kuv siv cov txiaj ntsig hauv qab no:

Saum = 1, Nqes = 2, Sab laug = 3, Txoj cai = 4, Pib = 5, Xaiv = 6.

Kauj Ruam 8: Kev Ua Si

Kev ua si
Kev ua si

Kuv tsis muaj credit rau tus lej game. Kuv siv qhov chaws pom ntawm no https://github.com/davidhrbaty/IKEA-LED-Table sau los ntawm davidhrbaty. Txawm li cas los xij, Kuv tau hloov kho nws hauv ob peb txoj kev sib txawv:

  1. Kuv ntxiv qhov ua kom muaj kev txwv raws li tus nqi potentiometer yog li peb tuaj yeem hloov qhov ci ci
  2. Kuv tshem tawm cov cib ua si vim kuv tsis tuaj yeem muab nws los ua ke
  3. Kuv hloov cov xim coding ntawm tetris blocks yog li lawv txhua tus xim sib txawv
  4. Kuv tau reordered cov ntawv qhia zaub mov
  5. Kuv siv qhov kev xaiv ua si cov tsiaj ntawv los ntawm SD daim npav
  6. Kuv ntxiv cov qhab nia taug qab thiab cov qhab nias siab tso saib hauv cov ntawv qhia zaub mov

Cov kab ntawv txuas yuav tsum ua haujlwm ncaj qha tab sis yog tias tsis yog kuv qhov lus pom yuav tshem tawm cov kev ua si uas zoo li ua rau cov lus yuam kev thiab txheeb xyuas qhov chaws dua kom txog thaum koj pom qhov teeb meem nyob qhov twg.

Tus thawj sau ntawm txoj cai no tau ua txoj haujlwm zoo heev tsim ib yam dab tsi uas yog modular tiag tiag thiab yooj yim ntxiv rau hauv. Nws tsis yog qhov nyuaj ntxiv hauv qhov xwm txheej ntxiv kom ua haujlwm ntau ntxiv hauv lub rooj.

Cov kev xaiv hauv cov ntawv qhia zaub mov yog:

  1. SD Card - Ua yeeb yaj kiab khaws cia hauv SD daim npav
  2. Tetris
  3. Nab
  4. Pong
  5. Tsuav - Random lub tshuab hluav taws xob nuber nruab nrab ntawm 1 thiab 6
  6. Animation - Ib phau ntawm cov duab los ntawm FastLED lub tsev qiv ntawv
  7. Hnub Qub Animation - Kho - Tam sim no kuv tau siv Conway's Game of Life hloov qhov kev ua yeeb yaj kiab no
  8. Zaj sawv Animation
  9. Cov qhab nia siab - Qhia cov qhab nia siab rau tetris thiab nab

Ua ntej koj pib ua si koj yuav tsum tsim ob daim ntawv txt ntawm SD daim npav, ib qho hu ua "teths.txt" thiab lwm qhov hu ua "snkhs.txt". Hauv ob qho ntawm cov ntaub ntawv no muab tus lej 0 tom qab ntawd khaws cia rau hauv lub hauv paus nplaub tshev ntawm SD daim npav. Cov no yog cov qhab nia taug qab cov ntaub ntawv thiab yuav raug hloov kho tshiab txhua lub sijhawm cov qhab nia siab raug ntaus. Yog tias koj xav rov pib dua nws, tsuas yog hloov qhov txiaj ntsig rov qab mus rau 0 ntawm PC.

Thaum koj upload qhov program_lab ntawv LED mus rau Arduino koj tuaj yeem qhib lub ntsuas saib thiab koj yuav tsum muaj peev xwm pom bluetooth lus txib thaum koj xa lawv - qhov no koj paub txhua yam ua haujlwm tau zoo.

Kauj ruam 9: Txaus siab rau

Txaus siab rau
Txaus siab rau
Txaus siab rau
Txaus siab rau
Txaus siab rau
Txaus siab rau

Txhua yam uas tseem tshuav ua yog txhawm rau tso lub ntsiab lus LED teeb rau Mega thiab tom qab ntawd txaus siab ua si thiab qhia rau kuv paub koj cov qhab nia siab!

Kuv tseem tab tom tos rau ntu rau saum lub rooj kom tuaj txog (Aluminium T seem thiab iav) tab sis lub rooj tam sim no ua haujlwm tau zoo thiab kuv tuaj yeem ua si ntawm nws.

Qhia rau kuv paub yog tias koj muaj lus pom, kho lossis pom ib qho yuam kev uas kuv tau ua.

Kauj ruam 10: Hloov tshiab

Image
Image
Hloov tshiab
Hloov tshiab
Hloov tshiab
Hloov tshiab

Tam sim no nws ua tiav!:)

Thaum kawg kuv tau xa cov khoom txhuas T rau qhov edging thiab ua kuv txoj haujlwm zoo tshaj plaws ntawm kev txo qhov sib koom ua ke (tig tawm 45 degrees yog ib qho ntawm cov ces kaum nyuaj) tab sis nws yuav luag tag nrho. Txog rau sab saum toj kuv txiav txim siab kom tau ib daim ntawv tuab ntawm iav (425 x 425 x 8mm) thiab kuv ua rau sab hauv qab siv Rustoleum iav frosting tsuag. Kuv siv cov kua nplaum tsis tu ncua (silicone sealant) los sib koom ua ke rau sab saum toj thiab lub kaum sab xis kom muaj qhov me me ntawm qhov hloov pauv hauv qhov sib koom yog tias xav tau.

Hloov kho tshiab. Tam sim no kuv tau ntxiv hauv Conway's Game of Life raws li kev xaiv 7 hauv cov ntawv qhia zaub mov ntau dua li cov hnub qub ua duab zoo li kuv tsis tau siv dua. Yog tias koj tsis paub tias qhov kev ua si no yog dab tsi, Google nws, tab sis qhov tseeb nws yog xoom player game uas qhia kev hloov pauv raws li peb txoj cai yooj yim. Conway's Game of Life

Hloov tshiab^3. Kuv tau ua qee qhov kev hloov pauv rau cov cai kom tam sim no suav nrog kho qhov teeb meem hais txog qhov dim ntawm cov LEDs liab thiab tseem suav nrog Christmas tsob ntoo ua duab raws li Kev Xaiv 11 hauv Cov Ntawv Qhia. Txaus siab rau.

Pom zoo: