Cov txheej txheem:

Txaj Headboard LED Stripe Teeb Nrog ESP8266-01: 5 Cov Kauj Ruam
Txaj Headboard LED Stripe Teeb Nrog ESP8266-01: 5 Cov Kauj Ruam

Video: Txaj Headboard LED Stripe Teeb Nrog ESP8266-01: 5 Cov Kauj Ruam

Video: Txaj Headboard LED Stripe Teeb Nrog ESP8266-01: 5 Cov Kauj Ruam
Video: #sofaset #headboard #design HOW TO MAKE CHESTER FIELD HEADBOARD LED PANEL 2024, Hlis ntuj nqeg
Anonim
Txaj Headboard LED Stripe Teeb Nrog ESP8266-01
Txaj Headboard LED Stripe Teeb Nrog ESP8266-01

Qhov no yog txoj haujlwm yooj yim heev uas kuv tsis quav ntsej lub sijhawm ntev dhau los, tab sis vim yog kev cais tawm, kuv tau ua qee yam sib txawv nrog cov khoom kuv muaj ntawm tes.

Lub tswv yim yog kom muaj lub teeb dimmerizable, uas tuaj yeem tswj tau los ntawm TCP cov lus txib yooj yim lossis los ntawm kev hloov phau ntawv.

Vim tias tsis muaj ntu, kev tsim kho los ua lub ntsiab lus tseem ceeb ntawm txoj haujlwm. Ua ntej, Kuv tsis muaj qib logic MOSFET, thiab tsuas yog muaj qhov hloov pauv tam sim no MOSFET siab, yog li xav tau tus tsav tsheb me me (tsis yog qhov tsim tau zoo tshaj plaws los ntawm txoj kev), tom qab ntawd lub vaj huam sib luag mem tes hloov pauv tau ploj mus, yog li kuv tau siv lub tshuab microwave tso tseg qhov rooj-xauv kev ruaj ntseg hloov rau lub laub khawm.

Kuv vam tias koj kawm qee yam thiab muaj kev lom zem nrog txoj haujlwm no.

Khoom siv

  • 3 m ntawm Dawb LED kab txaij. Thaum kuv yuav nws suav nrog 12 V fais fab mov
  • ESP8266-01S x 1
  • 2N3904 NPN transistor x1
  • 2N3906 PNP transistor x 1
  • IRF3205 MOSFET x 1
  • AMS1117-3.3 tus tswj x 1
  • 3.3 K resistor x 2
  • 1 K resistor x 1
  • 1.5 K resistor x 1
  • 120 resistor x 1
  • 10 k resistor x 1
  • 10 uF 16 V electrolytic capacitor x 1
  • 100 nF ceramic lossis polyester capacitor x 1
  • Qhov (socket) lub taub hau txuas 1x6 (ob chav nyob). Txawm tias zoo dua yog tias koj muaj tus poj niam 2x4 txuas rau ESP.
  • Terminal txuas rau cov khoom siv thiab cov zis LED
  • Ib lub thawv yas dav dav
  • Cov cuab yeej hluav taws xob yooj yim (cov hlau txuas, hlau txiav, pliers, thiab lwm yam)
  • Arduino IDE nrog ESP8266 txhawb nqa kev teeb tsa.
  • USB rau 3.3 V UART Serial Converter lossis yog tias tsis muaj, ib qho Arduino UNO lossis Nano nrog kev teeb tsa pom ntawm no https://www.electronicshub.org/esp8266-pwm-tutorial-led-fading/ (los ntawm txoj kev, nplooj ntawv txuas zoo heev PWM qhia rau ESP)

Kauj ruam 1: Schematic

Schematic
Schematic

Lub Circuit Court muaj PWM tswj MOSFET ntawm GPIO2. Cov tsav tsheb xav tau vim tias IRF3205 xav tau yam tsawg 10 V txhawm rau mus txog nws qhov Rds (ntawm) ntawm 8 miliohms, thiab ESP tsuas yog muab 3.3 V.

Tus tswj hwm 3.3 V tso cai rau lub zog ESP los ntawm cov khoom siv tib yam li cov kab txaij LED, thiab lub kaus mom ntxiv txhim kho cov khoom ruaj khov.

Thaum kawg, lub laub khawm ntawm GPIO0, mus dhau lub voj voog ci nrog txhua qhov nyem. Ntawm kuv rooj plaub, peb qib kev ci ntsa iab thiab teeb tawm.

Kauj ruam 2: Circuit Court Assembly

Circuit Court los ua ke
Circuit Court los ua ke
Circuit Court los ua ke
Circuit Court los ua ke
Circuit Court los ua ke
Circuit Court los ua ke

Nws yog (tsis yog) nrawm thiab (tiag tiag) qhov haujlwm qias neeg. Qhov kev xav tsis zoo tshaj plaws yog qhov kev sib tshuam sib hloov ua haujlwm zoo li lub pulser li cas.

Thov, tsis txhob saib cov hlua: P

Kauj Ruam 3: Teeb LED Teeb

LED Stripe Installation
LED Stripe Installation

Ntsuas thiab txiav peb ntu, tom qab ntawd txuas cov xov hlau. Thaum kawg, tev cov nplaum thiab nias tawm tsam sab nraum qab ntawm lub taub hau.

Hauv kuv qhov xwm txheej kuv tau dag thiab siv daim kab xev dav lo hla cov kab txaij LED, vim tias cov nplaum tsis muaj zog li cas.

Thaum kawg, ntswj cov xov hlau ntawm lub davhlau ya nyob twg thiab tshawb xyuas cov kev sib txuas.

Kauj ruam 4: Programming

Programming
Programming

Txoj cai xav tau kev txhim kho ntau yam xws li txhim kho txoj kab kev cais, txhawb nqa tus IP chaw nyob ruaj khov, teeb tsa hom, txuag ib puag ncig hloov pauv mus rau EPROM, nyeem ib puag ncig hloov pauv los ntawm EPROM ntawm khau raj, thiab ntxiv rau.

Txog qhov rub tawm firmware, Kuv siv Arduino nrog ESP lub tsev qiv ntawv zej zog version 2.5.0. Qhov no tseem ceeb vim tias ESP qhov program thauj khoom tsis ua tiav nrog cov kho tshiab, tej zaum yog ib qho nrog ESP8266-01, tej zaum vim tias kuv siv Arduino UNO ua tus thauj khoom, kuv tsuas yog tsis paub.

Nco ntsoov ntxiv https://arduino.esp8266.com/stable/package_esp8266… rau koj qhov kev nyiam Arduino txhawm rau kom tau txais ESP pawg thawj coj saib kev txhawb nqa.

www.electronicshub.org/esp8266-pwm-tutoria… muaj cov lus qhia zoo ntawm ESP8266 PWM. Tsis tas li, kuv tau siv lawv Arduino rau USB hloov pauv mus rau ntsaws qhov program rau hauv ESP.

Kauj ruam 5: Xeem

Kev Xeem
Kev Xeem

Txheeb xyuas kab thaiv nrawm ua ntej, thiab ntxig rau ESP8266 rau hauv Circuit Court ua ntej qhib lub zog.

Thawb lub pob Yuav tsum hloov ntawm qhov ci qis, nruab nrab ci, siab tshaj plaws thiab lub teeb tawm.

Txog qhov ntsuas TCP, Kuv siv Qhov Ntsuas Ntsuas tab sis lwm yam software zoo sib xws yuav ua haujlwm

Pom zoo: