Cov txheej txheem:

Disco Teeb Los Ntawm RGB Siv Arduino ntawm TinkerCad: 3 Kauj Ruam
Disco Teeb Los Ntawm RGB Siv Arduino ntawm TinkerCad: 3 Kauj Ruam

Video: Disco Teeb Los Ntawm RGB Siv Arduino ntawm TinkerCad: 3 Kauj Ruam

Video: Disco Teeb Los Ntawm RGB Siv Arduino ntawm TinkerCad: 3 Kauj Ruam
Video: icu qaug beer lom zem tiag2 official mv 2020 2024, Hlis ntuj nqeg
Anonim
Disco Teeb Los Ntawm RGB Siv Arduino ntawm TinkerCad
Disco Teeb Los Ntawm RGB Siv Arduino ntawm TinkerCad

Thaum koj muaj RGB txuas, nws yooj yim los tswj cov xim ntawm RGB los ntawm kev siv PWM tso tawm lossis tso tawm analog, rau Arduino koj tuaj yeem siv analogWrite () ntawm tus pin 3, 5, 6, 9, 10, 11, A0, A1, A2, A3, A4, A5 (rau classic Arduinos siv Atmega328 lossis 168). Ib qho analogWrite (tus pin, 0) yuav tig qhov LED tawm, analogWrite (tus pin, 127) yuav tig nws mus rau ib nrab thiab analogWrite (tus pin, 255) yuav ua rau nws tawg tag nrho. Nov yog qee qhov piv txwv piv txwv uas ua cov xim yooj yim-swirl.

Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:

Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau
Cov Cheeb Tsam Yuav Tsum Tau

1. Arduino UNO

2. RGB LED's * 7

3. Resistor *7 (220 ohms)

Kauj Ruam 2: Daim Duab Circuit:

Daim duab kos duab
Daim duab kos duab

Hauv txoj haujlwm no, Kuv tau siv 7 RGB coj uas feem ntau yog av. Kuv tau siv txhua tus pin uas muaj hauv Arduino yog tias koj xav ntxiv coj ntau dua tom qab ntawd koj tuaj yeem cuam tshuam ntau RGB LEDs nrog Arduino mega.

Yog tias koj muaj lus nug koj tuaj yeem nug hauv nqe lus saib

Kauj ruam 3: Code:

Txog kev qiv nyiaj, thov ua raws li kuv tus lej hauv qab no. Ua tsaug

Yog xav paub ntau cov phiaj xwm txuas nrog kuv ntawm:

Youtube:

Facebook nplooj ntawv:

Instagram: https://instagram.com/official_techeor? Igshid = uc8l…

Pom zoo: