Cov txheej txheem:

Suab Reactive RGB 8x8 LEDs: 6 Kauj Ruam
Suab Reactive RGB 8x8 LEDs: 6 Kauj Ruam

Video: Suab Reactive RGB 8x8 LEDs: 6 Kauj Ruam

Video: Suab Reactive RGB 8x8 LEDs: 6 Kauj Ruam
Video: DIY Radar With Ultrasonic Sensor And Chat-GPT Generated Arduino Code | Coders Cafe 2024, Hlis ntuj nqeg
Anonim
Suab Reactive RGB 8x8 LEDs
Suab Reactive RGB 8x8 LEDs

Kuv xav tias nws yuav yog qhov txaus siab los ua ib qhov project Arduino nrog lub suab reactive RGB LEDs. Kuv lub hom phiaj kawg yuav kawg yog siv 2 tus zuj zus tuaj yeem hais qhia 8x8 LED matrices kom ua rau lub ntsej muag hnov suab tab sis tam sim no, Kuv tsuas yog tau paub txog tias cov khoom no yuav ua haujlwm ua ke li cas.

Khoom siv:

Kuv tab tom siv Arduino Uno R3 Starter Kit thiab feem ntau ntawm cov khoom siv yuav los ntawm qhov ntawd. Tsuas yog cov khoom siv ntxiv yog LM393 lub suab sensor thiab WS2812B 8x8 LED matrices. Kuv yuav tag nrho peb ntawm Amazon.com ntawm no:

Arduino Uno R3 Starter Kit ntawm Amazon.com = $ 36.99

Arduino Uno R3

Jumper Cables (m/m thiab m/f)

USB-A rau USB

LM393 Suab Sensor x 5 = $ 7.99

WS2812B RGB tus kheej tuaj yeem hais tau 8x8 LED matrix = $ 10.99 x 2

Tiny Screw Driver rau LM393 lub zog ntsuas

Koj tseem yuav xav tau ntxiv Adafruit Neopixel lub tsev qiv ntawv rau koj li Arduino software

Kauj Ruam 1: Tau Txais Cov Ntaub Ntawv

Tau Txais Cov Khoom
Tau Txais Cov Khoom

Cheeb tsam koj nyob hauv yuav tsis muab cov khoom siv hluav taws xob rau koj, xws li cov hauv txoj haujlwm no.

Koj tuaj yeem tshawb xyuas cov khoom no ntawm cov khw muag khoom nyiam lossis online. Nco ntsoov tias yog koj npaj xaj koj cov khoom online, koj yuav tsum ua nws ua ntej vim tias qee qhov ntawm lawv yuav siv sijhawm me ntsis los txog.

Kauj ruam 2: Txheeb xyuas qhov Voltage

Xyuas Voltage
Xyuas Voltage

Nco ntsoov tias koj tab tom siv qhov hluav taws xob tsim nyog, cov neeg tawm tsam, lossis lwm yam khoom siv los ua kom koj txoj haujlwm ua haujlwm nyab xeeb.

Hauv txoj haujlwm no, LM393 lub suab ntsuas tuaj yeem siv 3.3v lossis 5v tus pin thiab LED matrices siv 5v tus pin. Kuv txuas ob qho tib si rau 5v. Txawm li cas los xij, yog tias koj tau siv ib qho LED lossis ntau qhov sib txawv, koj yuav tsum tau ntxiv txoj cai tiv thaiv rau hauv Circuit Court.

Raws li koj tuaj yeem pom hauv daim duab thiab daim duab hauv qab no, kuv tsis tas yuav siv txhua lub xov hlau uas tawm los ntawm txhua tus lej LED.

Kauj Ruam 3: Kev thaiv kab hlau

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Cov kauj ruam no yuav xav tau ob hom jumper cables.

Nco ntsoov txuas txoj haujlwm kom nyab xeeb. Kuv nyiam xaim cov kab hluav taws xob thiab txuas cov khoom sib txuas thaum lub zog raug kaw tag nrho.

Kauj Ruam 4: Arduino Sketch

Nov yog kuv cov ntaub ntawv Arduino los ua haujlwm Kuv Lub Suab Rov Qab LED (s), tab sis koj tuaj yeem hloov kho nws raws li koj nyiam. Kuv tseem yuav hloov kho txoj haujlwm no yav tom ntej.

Yog tias koj qhib lub ntsuas saib hauv Arduino IDE, koj tuaj yeem tshawb xyuas lub ntsuas qhov ntsuas pom thiab ntsuas lub zog ntawm LM393 nrog cov ntsia hlau me me.

Kauj Ruam 5: Tshaj Tawm Sketch rau Arduino

Upload Sketch rau Arduino
Upload Sketch rau Arduino
Upload Sketch rau Arduino
Upload Sketch rau Arduino

Qhov no xav tau USB-A rau USB cable, yog li npaj kom nws mus.

Lub cuab yeej yuav tsum pib ua haujlwm tam sim ntawd.

Yog tias lub teeb tsis zoo li yuav qhib kom ua:

  • Kho lub hwj chim ntsuas hluav taws xob kom hloov pauv rhiab rau lub suab ntawm LM393 lub suab ntsuas
  • Qhib cov nkauj lossis tuav nws ze rau lub microphone ntawm lub sensor, vim tias nws muaj qhov luv

Kauj ruam 6: Txaus siab rau

Zoo siab!
Zoo siab!
Zoo siab!
Zoo siab!
Zoo siab!
Zoo siab!
Zoo siab!
Zoo siab!

Nrhiav kev hloov kho tshiab rau txoj haujlwm!

Pom zoo: