Cov txheej txheem:

DIY RGB LED Teeb-Sib Teeb nrog Arduino: 3 Kauj Ruam
DIY RGB LED Teeb-Sib Teeb nrog Arduino: 3 Kauj Ruam

Video: DIY RGB LED Teeb-Sib Teeb nrog Arduino: 3 Kauj Ruam

Video: DIY RGB LED Teeb-Sib Teeb nrog Arduino: 3 Kauj Ruam
Video: NOOBS PLAY CLASH ROYALE FROM START LIVE 2024, Hlis ntuj nqeg
Anonim
Image
Image

Lub hauv paus tseem ceeb ntawm kuv txoj haujlwm yog ua raws lub vev xaib no: Ntawm no

Hauv txoj haujlwm no, Kuv tsim Lub Teeb nrog RGB LED thiab LDR sensor. Los ntawm kev siv lub LDR sensor ua qhov hloov pauv, lub teeb yuav pib ci thaum lub teeb qis. Lub teeb tuaj yeem siv ua lub teeb hmo ntuj vim tias nws yuav cia li pib ua haujlwm sai li sai tau thaum lub teeb tawm. Kuv ntxiv a Nws kuj tuaj yeem yog khoom ua si thaum koj dhuav. Yeej, koj tsuas yog yuav tsum npog lub LDR sensor, tom qab ntawd lub voj voog yuav pib tig, thiab koj tuaj yeem ntsia nws ntev npaum li koj tuaj yeem ua tau.

Kev Hloov Loj Kuv tau ua nrog txoj haujlwm:

1. Keeb kwm, tus tsim tau siv peb lub LDR sensors los tswj ib qho xim tawm ntawm Liab, Xiav, thiab Ntsuab. Hloov chaw ua qhov ntawd, Kuv hloov nws mus rau hauv ib qho LDR thiab cia nws tswj peb xim

2. Kuv ntxiv lub cav rau ntawm lub teeb, thiab tom qab ntawd muab daim duab ntawm lub voj voog hypnosis tso rau kom lom zem.

Khoom siv

Cov ntaub ntawv hauv qab no tau yuav hauv khw muag khoom hluav taws xob lub cev:

  1. RGB LED x1
  2. Arduino Leonardo x1
  3. Lub khob cij x1
  4. Resistors x2
  5. Arduino Gearbox Tsav x1
  6. Daim duab ntawm Hypnosis Circle
  7. LDR sensor ua
  8. Jumper Hlau
  9. L298N Lub cev muaj zog tsav module x1

Kauj Ruam 1: Txuas Cov Hluav Taws Xob mus rau Breadboard

Kho kom zoo nkauj
Kho kom zoo nkauj
  1. Lub Cev Muaj Zog yuav tsum xub txuas rau L298N Lub Cev Tsav Tsheb tsav, tom qab ntawv txuas tus qauv rau Digital Pins
  2. LDR sensor yuav tsum txuas rau Analog Pins
  3. Peb ntawm cov chaw nres nkoj ntawm RGB LED yuav tsum txuas rau Digital Pins

Kauj Ruam 2: Txoj Haujlwm

Cov khoos kas tuaj yeem nkag mus tau los ntawm qhov txuas no: Arduino Code

Kauj ruam 3: Kho kom zoo nkauj

Kho kom zoo nkauj
Kho kom zoo nkauj
  1. Kuv tau siv lub thawv los kho lub teeb sab nrauv thiab npog cov xov hlau sab hauv
  2. Kuv tau ntxiv lub voj voog Hypnosis thiab lub cav rau ntawm lub teeb tsuas yog ua kom nws nthuav dua

Pom zoo: