Cov txheej txheem:

Neopixel Ws 2812 LED Sawb Nrog Arduino Tswj los ntawm Bluetooth Los ntawm Android lossis Iphone: 4 Cov Kauj Ruam
Neopixel Ws 2812 LED Sawb Nrog Arduino Tswj los ntawm Bluetooth Los ntawm Android lossis Iphone: 4 Cov Kauj Ruam

Video: Neopixel Ws 2812 LED Sawb Nrog Arduino Tswj los ntawm Bluetooth Los ntawm Android lossis Iphone: 4 Cov Kauj Ruam

Video: Neopixel Ws 2812 LED Sawb Nrog Arduino Tswj los ntawm Bluetooth Los ntawm Android lossis Iphone: 4 Cov Kauj Ruam
Video: The Most Beautiful Thing I've Ever Built 2024, Kaum ib hlis
Anonim
Image
Image

Nyob zoo cov neeg hauv cov lus qhia no kuv tau tham txog yuav ua li cas tswj neopixel coj sawb lossis ws2812 coj sawb ntawm koj lub xov tooj Android lossis iphone siv Bluetooth txuas.

yog li koj tuaj yeem ntxiv neopixel coj sawb hauv koj lub tsev nrog Arduino nrog hc05 los muab nws Bluetooth txuas thiab tswj nws los ntawm lub xov tooj ntawm tes & txaus siab rau lub teeb pom kev.

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau
Cheeb Tsam Xav Tau

YUAV TSUM MUAJ: MUAJ ARDUINO UNO:

www.utsource.net/itm/p/7199843.html

YUAV HC05:

www.utsource.net/itm/p/6466232.html

MUAJ WS2812 LED:

MUAJ WS2812 LED Nplhaib:

www.utsource.net/itm/p/8673715.html

//////////////////////////////////////////////////////////////////////////////

peb lub hauv paus tseem ceeb xav tau yog

Arduino ib

Neopixel coj sawb

Bluetooth hc05 yog

Thiab ob peb yam ntxiv raws li

Jumper xov hlau

Resistor 1k 2k ib

Breadboard thiab lwm yam

BBuying txuas:-

neopixel coj sawb:-

www.banggood.com/1M-WS2812-IC-SMD5050-Wate…

www.banggood.com/1M-WS2812-IC-SMD5050-Drea…

www.banggood.com/AUDEW-1M4M5M-RGB-SMD5050-…

www.banggood.com/1M-5M-WS2813-RGB-Dream-Co…

www.banggood.com/WS2812-5V-Colorful-Highli…

www.banggood.com/1M-2M-3M-WS2812-SMD5050-B…

Bluetooth Module HC05-

www.banggood.com/HC-05-Wireless-Bluetooth-…

www.banggood.com/HC-05-Wireless-Bluetooth-…

Arduino Ua Haujlwm:-

www.banggood.com/Wh Wholesale-Arduino-Compati…

www.banggood.com/3Pcs-Arduino-Compatible-R…

www.banggood.com/UNO-R3-ATmega16U2-AVR-Mod…

Kauj ruam 2: Tsim Circuit Court

Tsim Circuit Court
Tsim Circuit Court

npaj Circuit Court rau ntawm lub khob cij raws li tau hais schmatics hauv daim duab & sim siv lwm lub hwj chim rau ws2812 tsis txhob siv nws los ntawm Arduino uno vim tias ARDUINO tsis tuaj yeem ua haujlwm ws2812. & Bluetooth tib lub sijhawm yog li sim siv ntxiv 5v fais fab mov hloov rau ws 2812

Yog tias koj tsis muaj lub zog txuas ntxiv ces hauv txoj cai koj tuaj yeem txo qhov ci ci ntawm neopixel coj sawb kom txo lub zog siv los ntawm nws.

Kauj Ruam 3: Coding Tshooj

Coding Tshooj
Coding Tshooj

Rub tawm cov cai los ntawm qhov txuas hauv qab no:-

Code & Schmatics:-

Thiab nco ntsoov tias koj nruab adafruit neopixel lub tsev qiv ntawv tau teeb tsa.

Thiab hauv txoj cai teeb tsa cov ntaub ntawv tus pin ntawm coj sawb, tsis muaj coj hauv coj sawb & qhov ci ntawm cov coj sawb & xa cov cai rau Arduino.

Kauj Ruam 4: Teeb App hauv Xov Tooj

Image
Image
Teem App hauv Xov Tooj
Teem App hauv Xov Tooj
Teem App hauv Xov Tooj
Teem App hauv Xov Tooj

qhib lub khw ua si ntawm koj lub xov tooj thiab rub tawm Bluetooth lub davhlau ya nyob twg hc 05 app thiab txuas lub app rau hc05 Bluetooth module, yog tias koj muaj lub iPhone los ntawm Apple lub khw rub tawm ib qho Bluetooth davhlau ya nyob twg app nws yuav ua haujlwm zoo.

Thiab xa cov cim los ntawm app mus rau hc 05 los tswj coj sawb raws li qhia hauv duab. Raws li xa tus cim "r" yuav tig coj sawb rau xim liab zoo sib xws txhua lub luag haujlwm tau muab hauv qab no:-

CHARACTER FUNCTION

"r" liab xim coj sawb

"g" ntsuab xim coj sawb

"b" xiav xim coj sawb

"w" dawb xim coj sawb

"o" tua tawm

"a" zaj sawv animation

"m" mix qauv

Yog li sim tag nrho cov cim no & xa nws & txaus siab rau koj coj coj lub teeb pom kev zoo hauv koj lub tsev & yog tias muaj teeb meem tshwm sim ces xa cov vis dis aus rau kev pab.

Pom zoo: