Cov txheej txheem:
Video: Tswj LED Matrix Array Nrog Arduino Uno (Arduino Powered Robot Face): 4 Cov Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Cov lus qhia no qhia yuav ua li cas thiaj tswj tau ib qho ntawm 8x8 LED matrices siv Arduino Uno. Phau ntawv qhia no yuav raug siv los tsim qhov yooj yim (thiab cov khoom pheej yig) rau koj tus kheej cov haujlwm. Txoj kev no koj tuaj yeem tso tawm cov tsiaj ntawv, tus lej lossis cov tsiaj ntawv nyiam.
A 5 cov lej sib piv siv hauv ib qho ntawm peb cov phiaj xwm neeg hlau ("Robô da Alegria") tau siv ua piv txwv los ua kom pom cov thev naus laus zis no. Koj yuav pom ntau ntxiv txog qhov haujlwm no hauv cov kab txuas hauv qab no:
www.instructables.com/id/Joy-Robot-Rob%C3%B4-Da-Alegria-Open-Source-3D-Printed-A/
hackaday.io/project/12873-rob-da-alegria-joy-robot
github.com/ferauche/RoboAlegria
www.facebook.com/robodaalegria/ Tshwj xeeb ua tsaug rau lwm tus tswv cuab koom nrog hauv txoj haujlwm hais los saum no, lub luag haujlwm rau thawj tus qauv ntawm cov cai tau nthuav tawm hauv qhov kev qhia no: • Thiago Farauche • Diego Augustus • Yhan Christian
Kauj Ruam 1: Cheeb Tsam
Cov hauv qab no tau siv hauv txoj haujlwm no:
- Arduino Uno (yuav)
- 8x8 LED matrix array nrog MAX7219 tsav tsheb (x5) (yuav)
- Poj niam-rau-poj niam jumper xov (4 jumpers ntawm 5 cables txhua)
- Txiv neej-rau-famale jumper xov hlau (1 jumper ntawm 5 cables)
- 2 hli daim ntawv acrylic (yeem rau kev kho cov khoom siv)
- M2 x 10 hli ntsia liaj qhov rooj (x20) (yeem rau kev kho cov khoom sib dhos)
- M2 x 1, 5 hli txiv ntseej (x20) (xaiv rau kev kho cov khoom sib xyaw)
- Lub khoos phis tawj (rau suav thiab xa cov lej Arduino)
- Kev muaj tswv yim
Daim ntawv ceeb toom tias koj yuav xav tau ob hom kev dhia: poj niam-rau-poj niam rau kev sib txuas ntawm cov lej thiab tus txiv neej-rau-poj niam rau kev sib txuas ntawm lub tsho sib tw rau Arduino.
Cov naj npawb ntawm cov khoom sib txawv tuaj yeem sib txawv raws li tus qauv koj xav hauv siab.
Kauj ruam 2: Sib dhos
Txuas txhua lub componets raws li cov qauv. Koj yuav xav tau qee lub xov hlau txuas los txuas thawj lub zeem muag rau Arduino, thiab txhua tus lej mus rau tom ntej ntawm kab.
Arduino Pinout: Peb
- Arduino tus pin 13 = DIN ntawm thawj cov zaub
- Arduino tus pin 12 = CLK ntawm lub nrig nrig
- Arduino tus pin 11 = CS ntawm thawj cov zaub
- Arduino 5V tus pin = Vcc ntawm thawj cov zaub
- Arduino GND tus pin = Gnd tus pin ntawm thawj cov zaub
Koj kuj tseem xav npaj txhua qhov khoom tso rau hauv txoj haujlwm. Rau qhov uas koj tuaj yeem siv daim ntawv acrilic, qee qhov ntsia liaj qhov rooj thiab cov txiv ntoo (plaub rau txhua qhov tso saib) thiab tso txhua qhov kev tivthaiv rau hauv txoj haujlwm Tsis tas yuav siv cov cuab yeej los sib dhos rau hauv Circuit Court, tabsis koj yuav xav tau cov ntsia hlau lossis cov cuab yeej ntse yog tias koj xav muab cov lus tso rau mus rau saum npoo nrog qee qhov ntsia hlau thiab txiv ntoo. Hauv peb qhov piv txwv, tsib lub ntsej muag tau muab tso rau hauv lub ntsej muag (ob lub qhov muag thiab lub qhov ncauj). Txhais lub USB cable rau Arduino Uno board thiab mus rau kauj ruam tom ntej.
Kauj ruam 3: Coding
Nrog qhov hloov tshiab Arduino IDE tau teeb tsa, ntxiv LedControl.h lub tsev qiv ntawv, uas yog siv los tswj cov LEDs. Download, suav thiab xa Arduino cov cai, uas tau muab faib ua 4 ntu: 1. Lub ntsiab lus ntawm lub qhov muag thiab qhov ncauj: txhua lub qhov muag tau teeb tsa thiab 8-byte array. Lub qhov ncauj tau txhais tias yog 24-byte array; 2. Teeb: teeb tsa cov lus qhia thiab pib kev sib txuas lus; 3. Qhov tseem ceeb: tos rau kev sib txuas lus cov lus txib thiab xaiv lub ntsej muag twg yuav tshwm; 4. Lub luag haujlwm pabcuam: ua haujlwm rau teeb tsa lub qhov muag thiab lub qhov ncauj. setRow muaj nuj nqi tau siv los teeb tsa txhua kab ntawm LED zaub. Nws tau siv hloov chaw setColumn vim nws ua haujlwm yim zaus nrawm dua! Txoj kev no, cov duab kos rau txhua qhov khoom yuav tsum tau tshaj tawm tig 90 degrees rov qab-clockwise.
setIntensity tau siv los txwv LEDs qhov ci ci. Nws tau teeb tsa ua 1 (hauv qhov ntsuas ntawm 0 txog 15) txhawm rau txo qis kev siv hluav taws xob ntawm cov qauv mus rau qib uas tsim nyog los ntawm USB chaw nres nkoj.
Kauj ruam 4: Siv
Tom qab rub tawm kom Arduino txuas nrog USB chaw nres nkoj ntawm koj lub khoos phis tawj thiab qhib Serial Monitor. Qhov chaws tau teeb tsa los teeb tsa cov cim ntawm lub ntsej muag ntawm lub ntsej muag LED, nyob ntawm cov lus tau txais los ntawm kab ntawv txuas. Cov lus txib hauv qab no tau teeb tsa:
Rau qhov muag
- : (qhov muag ib txwm)
- ; (ntsais muag)
- 8 (spooky ob lub qhov muag)
Rau qhov ncauj:
- ) (zoo siab)
- | (nruab nrab)
- ((tu siab)
- D lossis d (zoo siab heev)
- O lossis o (xav tsis thoob)
- P lossis p (tus nplaig tawm)
Ntaus ob tus cim (ib qho rau ob lub qhov muag thiab lwm yam rau lub qhov ncauj) hauv cov ntawv saib xyuas, nyem sau thiab cov lus yuav raug hloov kho tshiab raws li koj cov lus txib.
Koj tuaj yeem hloov cov duab kos (ntxiv lub ntsej muag tshiab piv txwv) lossis hloov txoj kev tswj hwm (suav nrog bluetooth lossis wi-fi interface), raws li koj xav tau.
Muaj kev lom zem!
Pom zoo:
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: 4 Cov Kauj Ruam (nrog Duab)
Phab Ntsa Mount rau IPad Raws Li Tsev Automation Tswj Vaj Huam Sib Luag, Siv Servo Tswj Cov Hlau nplaum los Qhib Screen: Tsis ntev los no kuv tau siv sijhawm qee lub sijhawm siv khoom hauv thiab ib puag ncig kuv lub tsev. Kuv tab tom siv Domoticz ua kuv daim ntawv thov Tsev Automation, saib www.domoticz.com kom paub meej. Hauv kuv tshawb nrhiav daim ntawv thov daim ntawv qhia uas qhia tag nrho Domoticz cov ntaub ntawv tog
ESP8266 RGB LED Sawb WIFI Tswj - NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi - RGB LED Sawb Smartphone Tswj: 4 Cov Kauj Ruam
ESP8266 RGB LED Sawb WIFI Tswj | NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi | RGB LED Sawb Smartphone Tswj: Nyob zoo cov neeg hauv qhov kev qhia no peb yuav kawm paub siv nodemcu lossis esp8266 li IR chaw taws teeb los tswj RGB LED sawb thiab Nodemcu yuav raug tswj los ntawm smartphone dhau wifi. Yog li hauv paus koj tuaj yeem tswj RGB LED Sawb nrog koj lub xov tooj
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
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
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw