Cov txheej txheem:

Ua pa Tsob Ntoo Christmas - Arduino Christmas Lub Teeb Tswj: 4 Cov Kauj Ruam
Ua pa Tsob Ntoo Christmas - Arduino Christmas Lub Teeb Tswj: 4 Cov Kauj Ruam

Video: Ua pa Tsob Ntoo Christmas - Arduino Christmas Lub Teeb Tswj: 4 Cov Kauj Ruam

Video: Ua pa Tsob Ntoo Christmas - Arduino Christmas Lub Teeb Tswj: 4 Cov Kauj Ruam
Video: His laptop died so he used his TYPEWRITER. 😭🤷‍♂️ #shorts 2024, Hlis ntuj nqeg
Anonim
Image
Image
Qhov
Qhov

Nws tsis yog xov xwm zoo uas lub thawv tswj rau kuv 9-ft ua ntej-ua ntoo Christmas ntoo tawg ua ntej Christmas , thiab cov chaw tsim khoom tsis muab hloov chaw. Qhov tsis txaus ntseeg no qhia yuav ua li cas thiaj ua rau koj tus kheej lub teeb LED tsav tsheb thiab tus tswj siv Arduino thiab L298N Tsav Tsheb, nrog rau ntau qhov pom kev suav nrog 'ua pa' tus qauv coj tsob ntoo Christmas no rov muaj sia dua.

Tsob ntoo kuv muaj yog Xim Hloov LED Christmas Tsob Ntoo Ua los ntawm GE, suav nrog cov teeb pom kev hauv qab no: 1) pom cov teeb pom kev zoo, 2) ntau xim LED teeb, 3) hloov pauv los ntawm ntau yam. Tsob ntoo yog tswj los ntawm lub teeb tswj los ntawm 29V DC fais fab mov. Cov xim hloov ua haujlwm li cas? Kuv sib cais lub thawv tswj, nws muab tawm tias txhua lub teeb pom kev muaj lub teeb pom kev zoo thiab xim LED txuas nrog ua ke tab sis nrog kev thim rov qab. Nyob ntawm qhov sib txawv ntawm DC lub zog muab, ib qho pom tseeb lossis xim LED yuav ci, yog li muab cov xim hloov pauv nrog tsuas yog ob txoj kab hluav taws xob. Hauv kuv qhov xwm txheej, transistors hauv H-choj sab hauv lub thawv tswj tau luv thiab lub zog hluav taws xob kuj tseem puas. Txhawm rau kom tsob ntoo rov ua haujlwm dua, Kuv yuav tsum nrhiav 29V DC lub zog hluav taws xob thiab tswj kom hloov pauv mus rau LEDs. Nov yog tib txoj haujlwm ib yam li tswj kev taw qhia thiab nrawm ntawm DC motors. Nrog rau lub khoos phis tawj me me, nws tseem tuaj yeem hloov qhov kev siv ntawm lub teeb thiab tsim kev pom ntxiv xws li "ua pa".

Kauj Ruam 1: Qhov Chaw

Qhov
Qhov
Qhov
Qhov
Qhov
Qhov

Lub teeb tswj muaj ob ntu:

  1. 29V DC fais fab mov
  2. Cov tswj hluav taws xob hloov pauv xim thiab ci ntawm LED lub teeb los ntawm kev hloov pauv qhov sib txawv ntawm DC lub zog nrog PWM (Pulse-width Modulation).

Tsob ntoo xav tau lub zog hluav taws xob 29V nrog txog 500mA muaj peev xwm. Nws nyuaj rau nrhiav lub zog qis 29V DC fais fab mov. Kuv siv XL6009 Step-up Power Module DC-DC Converter kom hloov pauv 12V DC rau 29V DC. Txog cov ntsiab lus ntawm XL6009 cov qauv, muaj cov lus qhia Qhia tau zoo.

Txhawm rau tswj lub teeb, Kuv siv L298N H-choj lub cav tswj, tswj los ntawm Arduino Nano board. L298N muaj ob qhov zoo sib xws H-choj txhua tus muaj qhov siab tshaj ntawm 2 Ampere muaj peev xwm thiab yog qhov zoo tshaj los siv hauv qhov no.

Txij li LN298N tus qauv raug rau 29V DC lub zog, lub onboard 5V lub zog siv hluav taws xob yuav tsum raug xiam oob qhab (tshem tawm 5V me me qhib lub jumper) thiab siv los ntawm 5V lub zog sab nraud. Kuv siv LM2596 DC rau DC Buck Hloov los hloov 12V DC rau 5V rau lub zog LM298N thiab Arduino Nano board. XL6009 thiab LM2596 modules zoo ib yam, nws tau qhia kom kho qhov hluav taws xob tso tawm cais ua ntej qhov sib dhos zaum kawg ntawm lub teeb tswj lub teeb, thiab qhia meej cov cim ntawm cov xov hlau.

Txhawm rau txuas cov khoom siv, Kuv siv Dupont jumper xov hlau lossis 16-18 AWG tso tseg cov xov hlau.

Ib qho ntxiv, koj yuav xav tau qee cov xov hlau thiab cov ntsia hlau, ntxiv rau nkag mus rau lub tshuab luam ntawv 3D los luam tawm rooj plaub, thiab cov hlau txuas.

Kauj Ruam 2: Hluav Taws Xob thiab Hluav Taws Xob

Electronics thiab thaiv
Electronics thiab thaiv

Txoj hlua yog qhov ncaj. Thaum cov khoom siv hluav taws xob hloov kho rau qhov xav tau qhov hluav taws xob, txuas 29V rau lub zog xa hluav taws xob ntawm L298N module lub cev muaj zog cim ua GND thiab +12V, thiab GND thiab 5V davhlau ya nyob twg ntawm L298N module mus rau tus pin sib xws ntawm Arduino Nano pawg thawj coj saib. Tsis tas li, txuas lub +5V fais fab mov los ntawm LM2596 tus qauv rau tib GND thiab +5V lub dav hlau los txhawb lub zog qhov laj thawj ntawm qhov Circuit Court. Tom qab ntawd, txuas Arduino Nano mus rau L298N raws li hauv qab no:

Pin 9 IN1

Pin 8 IN2

Pin 10 ENA

Thaum kawg, txuas lub teeb LED mus rau Qhov Chaw Tso Tawm ntawm lub L298N module.

Kauj ruam 3: Programming

Cov ntawv txuas nrog yog tus qauv Arduino kos duab nrog "Ua pa" cov nyhuv.

Kauj Ruam 4: Luam Lub Teeb Tswj Lub Teeb

Sau Lub Teeb Tswj Lub Teeb
Sau Lub Teeb Tswj Lub Teeb
Sau Lub Teeb Tswj Lub Teeb
Sau Lub Teeb Tswj Lub Teeb

Hauv qab no yog cov ntaub ntawv STL rau lub thawv ntawv, Kuv tau luam tawm txhua feem nrog 25% ntxiv. Mount tag nrho cov khoom siv hluav taws xob sab hauv lub thawv siv M2x5mm tus kheej tapping screws thiab sib dhos lub thawv.

Pom zoo: