Cov txheej txheem:

DIY RGB LED Vaj Huam Sib Luag Clock: 5 Cov Kauj Ruam
DIY RGB LED Vaj Huam Sib Luag Clock: 5 Cov Kauj Ruam

Video: DIY RGB LED Vaj Huam Sib Luag Clock: 5 Cov Kauj Ruam

Video: DIY RGB LED Vaj Huam Sib Luag Clock: 5 Cov Kauj Ruam
Video: I Made a DIY ELGATO KEY LIGHT FOR $13 (LED Panel) 2024, Kaum ib hlis
Anonim
DIY RGB LED Vaj Huam Sib Luag Moos
DIY RGB LED Vaj Huam Sib Luag Moos

Arduino yog lub rooj tsav xwm nrov hnub no. Kuv siv nws nrog RTC thiab lwm yam kev ntsuas tau ntev thiab siv LCD, Xya-ntu qhia thiab teev cov cim matrix, tab sis qhov teeb meem yog tias cov zaub no me me me me, yog li tus ua cim ntawm cov lus no nyeem tau daim ntawv luv luv yog li kuv los nrog RGB P13.33 Module uas yog qhov loj thiab tseem nyeem tau los ntawm kev nyob deb dua.

Lub moos loj no pheej yig dua tus nqi thiab tseem yooj yim los ua. yog li cia pib

Kauj Ruam 1: Yuav Tsum Kho Vajtse:

Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse
Yuav tsum tau kho vajtse

Arduino (uno, nano, pro-mini, thiab lwm yam).

3-7805.

2- P13.33 RGB LED module.

PCB (pom me me).

DS1307 RTC Hom.

CR2025 xov tooj ntawm tes + Tus tuav.

32.768KHz siv lead ua oscillator.

10 Kohm Resistor.

Kauj ruam 2: Software Yuav Tsum Tau

Software Yuav Tsum Tau
Software Yuav Tsum Tau

Arduino

Koj tuaj yeem rub tawm ntawm No:

www.arduino.cc/en/Main/Software?

P13.33 tsev qiv ntawv arduino.

koj tuaj yeem rub tawm ntawm No:

github.com/FoxExe/P13.33-RGB-LED.git

DS1307 tsev qiv ntawv arduino

Koj tuaj yeem rub tawm los ntawm no:

github.com/adafruit/RTClib.git

Kauj Ruam 3: Kev piav qhia Circuit:

Kev piav qhia Circuit
Kev piav qhia Circuit

Hauv Circuit no kuv siv arduino nano. Tus pin ntawm arduino txuas nrog LED vaj huam sib luag txuas (HUB-08).

Kev kho vajtse txuas yog raws li hauv qab no:

HUB -08 - Arduino

OE - pin 13

CLK (moos) - tus pin 12

LATCH - tus pin 11

A - pin 7

B - pin 6

RED - pin 8

GREEN - pin 9

BLU - pin 10

C - Tsis txuas nrog

D - Txuas tsis tau

GND - Hauv av

P13.33 vaj huam sib luag khiav ntawm 5 volts tab sis nws xav tau qhov siab tam sim no, yog li peb tsis tuaj yeem tsav nws ncaj qha los ntawm arduino. Kuv siv lwm lub hwj chim ntxiv xws li 5 volt 2 amp lub xov tooj charger.

DS1307 txuas nrog SDA thiab SCL pins ntawm arduino uas nyob ntawm A4 thiab A5 pins ntawm arduino.10k ohm rub-up resistors tau siv vim hais tias cov no yog qhib qhov pins. Cov qauv no tswj hwm nws lub sijhawm los ntawm CR 2025 roj teeb thaum lub hwj chim tseem ceeb raug kaw.

Kauj Ruam 4: Lub Hwj Chim Source:

Hwj chim Source
Hwj chim Source

LED vaj huam sib luag xav tau qhov siab tam sim no. Nws xav tau 1 amp tam sim no txhua qhov yog li peb xav tau tsawg kawg 2 amp lub zog siv rau kev tsav ob lub P3.33 vaj huam sib luag. peb tuaj yeem tsav nws yooj yim nrog lub xov tooj them nyiaj lossis lub txhab nyiaj tab sis yog tias peb nce Tus lej peb xav tau 5 amp lossis ntau dua tam sim no lub zog hloov pauv. Rau kev ua tau zoo dua ib qho 7805 tuaj yeem txuas nrog txhua lub vaj huam sib luag.

Kauj ruam 5: Code

Koj tuaj yeem rub daim ntawv foos ntawm no:

Pom zoo: