Cov txheej txheem:

DIY Glowing Orb Balls Nrog Arduino: 8 Kauj Ruam (nrog Duab)
DIY Glowing Orb Balls Nrog Arduino: 8 Kauj Ruam (nrog Duab)

Video: DIY Glowing Orb Balls Nrog Arduino: 8 Kauj Ruam (nrog Duab)

Video: DIY Glowing Orb Balls Nrog Arduino: 8 Kauj Ruam (nrog Duab)
Video: Jute Ball | How to make a yarn ball | Twine Sphere | DIY wedding decorations 2024, Kaum ib hlis
Anonim
Image
Image

Nyob Zoo Cov Menyuam:-)

Hauv cov lus qhia no kuv tab tom tsim kom muaj qhov project Arduino LED zoo kawg. Kuv tau siv zaj npas ua los ntawm iav, Kuv lo ib lub LED dawb nrog txhua lub pob zaj thiab teeb tsa Arduino nrog cov qauv sib txawv xws li ua pa ua pa, pawg los ntawm pawg ….

Koj tuaj yeem dai txoj haujlwm no ntawm phab ntsa lossis kab hlau rhuav.

Kuv tau siv Dragon Ball's tab sis koj tuaj yeem siv txhua lub pob xim, tsuas yog tsis txhob yuav loj dhau, lawv qhov loj me yuav ua rau muaj teeb meem.

Kauj Ruam 1: Sau Cov Khoom Peb Yuav Tsum Tau

Soldering LED Nrog Tooj Hlau
Soldering LED Nrog Tooj Hlau
  • Arduino Nano (328p)
  • LED (Dawb)
  • Tooj Hlau (25-27 Gauge)
  • Cov iav iav (Koj Xaiv)
  • Thaum Tshav Kub Kub Shrink Tubes (3mm, 8mm)
  • Cov qhob cij
  • Kev tiv thaiv (100 ohm)
  • Soldering Hlau
  • Soldering Hlau
  • Soldering Flux
  • Alumunium Ntawv Nyiaj Ntawv
  • Daim Kab Xev Hluav Taws Xob
  • Phom phom
  • Jumper Wires (Txiv neej rau Poj Niam lossis Poj Niam rau Poj Niam)
  • Ntau cov xov hlau (Siv Cov Xim Sib Txawv Sib Txawv)
  • Yas lossis Nylon Hlua (3-4 hli hauv Dia)
  • Zaj Pob Teeb

Thiab qhov tseem ceeb tshaj plaws! Peb Tes Txawj Ntse;)

Kauj Ruam 2: Soldering LED Nrog Tooj Hlau

Soldering LED Nrog Tooj Hlau
Soldering LED Nrog Tooj Hlau

Tam sim no siv 80-90 cm ntawm tooj liab hlau thiab tshem tawm cov rwb thaiv tsev ntawm qhov kawg nkaus xwb, Yog li peb tuaj yeem muab nws txuas nrog LED. To tshem tawm Rwb thaiv tsev koj tuaj yeem siv cov ntawv xuab zeb lossis tsuas yog ua kom sov nws thiab tom qab ntawd siv cov ntawv xuab zeb. qhov kawg tau raug ntxuav tam sim no txiav ib daim me me ntawm 3 hli kub ntsws raj thiab muab tooj liab xaim los ntawm nws thiab tam sim no txuas ob lub davhlau ya nyob twg ntawm LED nrog tooj liab hlau ntawm tib qhov ntev thiab tom qab ntawd npog lawv nrog lub raj cua sov.

Nyob rau hauv tib txoj kev solder tag nrho cov LED ua tib zoo.

Kauj Ruam 3: Twisting Copper Wire

Twisting tooj liab hlau
Twisting tooj liab hlau
Twisting tooj liab hlau
Twisting tooj liab hlau
Twisting tooj liab hlau
Twisting tooj liab hlau
Twisting tooj liab hlau
Twisting tooj liab hlau

Tam sim no yam koj yuav tsum ua yog ntswj tooj liab hlau txuas nrog LED yog li nws zoo li xaim ib yam li hauv daim duab

Yog vim li cas twist ntawm tooj liab hlau?

Peb ntswj cov xaim kom nws tuaj yeem ua haujlwm zoo ib yam nkaus thiab muab lub zog. Tab sis ua kom ntseeg tau tias cov tooj liab tau raug thaiv los ntawm txhua qhov chaw ntau dua li nws qhov kawg uas txuas nrog LED thiab txuas ntxiv mus rau Arduino.

Txhawm rau kho qhov ntev ntawm tooj liab hlau. Simply yob nws ntawm tus cwj mem thiab tom qab ntawd tshem tus cwj mem thiab lub caij nplooj ntoo hlav yuav tsim, Siv qhov no koj tuaj yeem kho qhov ntev ntawm tag nrho xya pob thiab ua cov qauv sib txawv.

Kauj Ruam 4: Khaws LED Nrog Pob

Khaws lub LED Nrog Pob
Khaws lub LED Nrog Pob
Khaws lub LED Nrog Pob
Khaws lub LED Nrog Pob

Tom qab ntswj tag nrho cov tooj liab nws yog lub sijhawm los lo coj nrog lub pob pob. Ua cov kua nplaum kom txaus kom lub pob yuav tsis poob. Ntawm no thaum cov kua nplaum tau teeb tsa kom sov me ntsis nrog cua kub thiab muab cov ntawv ci tso rau nws kom cov lub teeb tsuas yog ci hauv lub pob pob tsis tawg los ntawm lwm qhov.

Kauj Ruam 5: Pib Nrog Circuit

Image
Image
Pib Nrog Circuit Court
Pib Nrog Circuit Court
Pib Nrog Circuit Court
Pib Nrog Circuit Court

Okay Sau txhua yam peb xav tau tam sim no cia mus rau ntawm Circuit.

Ua ntej txuas rau 100 ohm resistor nrog txhua tus (luv ceg) ntawm LED thiab lwm qhov kawg (Ntev Ntev) txuas nrog Arduino raws li tau hais hauv qab no, Ua tib yam nrog txhua xya LED's. Kuv tau siv lub roj teeb 9v. Koj tuaj yeem ua tau siv txuas txuas ntxiv ib yam li cov ntaub ntawv cable rau Arduino yog tias koj muaj lub qhov hluav taws xob nyob ze.

Tam sim no cia peb muab txhua yam tso rau ntawm Breadboard thiab ntsuas lossis ntsuas hluav taws xob thiab xa cov code.ino rau koj lub Arduino board. Kuv tau ntxiv Circuit simulation video kom koj tuaj yeem saib cov zis lossis cov qauv coj. Pawg Thawj Coj!

LED txuas nrog Arduino pins

LED 1-pin 2

LED 2-pin 3

LED 3-pin 4

LED 4-pin 5

LED 5-pin 6

LED 6-pin 7

LED 7-tus pin 8

Yog tias koj xav ntxiv LED ntau ntxiv tom qab ua raws cov lus qhia no thiab siv Cov Lus hauv daim duab saum toj no

Cov pins sib piv thiab nws cov lej pin qhia rau Arduino Uno/Nano/Pro Mini/Micro A0 yog sib npaug rau 14

A1 yog sib npaug rau 15

A2 yog sib npaug rau 16

A3 yog sib npaug rau 17

A4 yog sib npaug rau 18

A5 yog sib npaug rau 19

Kev Sib Txuas Hauv Circuit: Ua ntej, tso tag nrho cov LEDs ntawm lub khob cij. Lub Cathode davhlau ya nyob twg (Lub Cev Ncaj Ncees) yuav tsum txuas nrog hauv av (GND) ntawm tus tiv thaiv (100 ohm) thiab Anode davhlau ya nyob twg (Ntev Ntev) ntawm txhua lub LED yuav txuas nrog ib ntu ntawm Arduino Pins raws li qhia hauv Cov Lus Saum Saum.

Kuv tau siv ThinkerCAD rau Circuit Simulation

Kauj Ruam 6: Kauj Ruam 6: Kuaj Qhov Circuit

Kauj Ruam 6: Xeem Lub Circuit Court
Kauj Ruam 6: Xeem Lub Circuit Court

Tam sim no muab txhua yam tso rau ntawm daim ntawv tais thiab xyuas txhua yam ua haujlwm tau zoo.

Tshaj tawm cov cai rau Arduino thiab ntsuas tus qauv txhawm rau kho lub sijhawm ncua raws cov kauj ruam no:-

rooj plaub 1:

onrun (random (200, 220)); // Txhawm rau kho lub sijhawm ncua sijhawm rov pib dua cov no (x, y) qhov tseem ceeb rau koj qhov txiaj ntsig nyiam

tawg;

rooj plaub 2: hloov pauv (random (200, 220)); // Koj tuaj yeem xaiv qhov sib txawv hauv txhua kis

tawg;

rooj plaub 3: offrun (random (200, 220)); // Hauv txhua lub voj kev xaiv tus nqi ntawm x thiab y raug xaiv

tawg;

rooj plaub 4:

pawg (random (200, 220)); // Yog tias koj xav txhim kho tus nqi ces tsuas yog tshem tawm x, y thiab muab tus nqi koj xav tau

tawg;

Kauj Ruam 7: Npaj Txhua Lub Pob

Teem Txhua Pob
Teem Txhua Pob
Teem Txhua Pob
Teem Txhua Pob
Teem Txhua Pob
Teem Txhua Pob

Nqa tag nrho cov iav pob thiab thawj hauv av tag nrho cov xov hlau txuas nrog cov tiv thaiv. Tom qab txheeb xyuas txhua qhov pins tsis zoo rau hauv av, tam sim no txuas cov xim sib txawv rau txhua qhov zoo tooj liab xaim dav hlau thiab muab cov kab txuas txuas thiab npog lawv nrog cov cua sov ntsws.

Tom qab ua qhov no khi tag nrho cov xov hlau nrog hlua yas txhawm rau muab lub zog rau nws. Tam sim no siv ob peb jumper xov hlau rau txiv neej thiab tshem lub tsev ntawm tus txiv neej sab thiab txuas txhua lub jumper xaim ib los ntawm ib qho nrog txhua qhov kawg ntawm xaim ntawm sab A (saib hauv daim duab saum toj no) Tam sim no txuas tag nrho cov xov hlau mus rau Arduino Thiab dai nws qee qhov twg thiab txhawb nws.

Kauj Ruam 8: Ua tiav Cov Qauv

Finalizing Tus Qauv
Finalizing Tus Qauv
Finalizing Tus Qauv
Finalizing Tus Qauv
Finalizing Tus Qauv
Finalizing Tus Qauv

Koj tuaj yeem kho qhov ntev ntawm tooj liab hlau los ntawm kev ua raws cov kauj ruam 3 thiab tuaj yeem tsim ntau yam qauv zoo li ob peb saum toj no.

Ua rau koj cov phooj ywg zoo siab thiab txaus siab rau Lub Teeb Pom Kev

Thov txim: (rau lub koob yees duab zooGuys cov txuas no tau luv url los ntawm qhov uas kuv sau ob peb duas las uas yuav pab kuv mus yuav khoom rau kuv nyiam;-) Ua tsaug rau kev nkag siab

Arduino Code qhov chaw

Pom zoo: