Cov txheej txheem:

Bright Ball IOT: 8 Kauj Ruam
Bright Ball IOT: 8 Kauj Ruam

Video: Bright Ball IOT: 8 Kauj Ruam

Video: Bright Ball IOT: 8 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Image
Image
Bright Pob IOT
Bright Pob IOT
Bright Pob IOT
Bright Pob IOT

Txoj haujlwm no yog ua los ntawm kev tswj hwm, los ntawm app Blynk, matrix ntawm neopixel, txij li lub teeb yooj yim tsis txaus Kuv ntxiv lub moos thiab ntsuas kub thiab qhov ntsuas cua, tab sis peb pom hauv ntxaws.

Kauj Ruam 1: Cheeb Tsam

1: Arduino R3

16: NeoPixel WS2812B

1: LCD 16x2 nrog I2C module

1: RTC (Lub Sijhawm Tiag) DS 1307

1: DHT 22 (ntsuas kub thiab av noo)

1: DC DC Hloov Kho Kauj Ruam Down

1: Tawm Txoj Cai LM1117

1: ESP5266-01

3: Khawm Hloov

1: Diverter

1: Diffuser rau sab nrauv opal dawb pob teeb

1: Lub thawv hluav taws xob sib txuas

1: Resistor 220 ohm

1: Resistor 510 ohm

1: Resistor 1K ohm

1: Resistor 470 ohm

3: Diode 1N4007

Cov xov hlau

Kauj Ruam 2: Coj Matrix

Coj Matrix
Coj Matrix
Coj Matrix
Coj Matrix

Kuv tau tsim cov kab me me ntawm nepixel zoo li hauv daim duab hauv qab no, nws tau tswj los ntawm Arduino nrog lub tsev qiv ntawv "Adafruit_NeoPixel.h", nws yog qhov kaj heev thiab nws tau pom zoo kom tsis txhob saib, thaum lub LEDs tau qhib.

Kauj Ruam 3: Sensor DHT

Kuv siv DHT 22 lub ntsuas los saib xyuas ib puag ncig ib puag ncig, LED xim sib txawv, sawv cev rau qhov ntsuas kub, hauv 12 xim sib txawv, los ntawm xiav (txias) mus rau liab (kub).

Kauj ruam 4: Moos

Moos
Moos
Moos
Moos
Moos
Moos

Lub moos tau tswj hwm los ntawm RTC, Kuv siv DS1307 tab sis nws tseem tuaj yeem haum DS3231, kom paub meej saib "Clock Set Date Time", tsis sib thooj rau qhov haujlwm ntawd, Kuv tshem tawm cov rub tawm hauv cov nyees khawm, P1, P2 thiab P3, uas tau siv los kho lub sijhawm, thiab kuv tau hloov pauv me me hauv cov cai.

Kauj ruam 5: IOT

Image
Image
IOT
IOT

Arduino txuas nrog internet ntawm ESP8266, uas nyob rau hauv, txuas nrog App Blynk

Los ntawm lub xov tooj koj tuaj yeem hloov xim ntawm lub teeb nyob ntawm qhov kev xav. Cov xim tau teeb tsa raws li hauv qab no:

V1 = Liab

V2 = Ntsuab

V3 = Blu

V5 = Daj

V6 = Ntshav

V7 = Cyan

V8 = Dawb

V4 = Kub

Kauj Ruam 6: Cov Qauv Hluav Taws Xob

Fais fab Scheme
Fais fab Scheme
Fais fab Scheme
Fais fab Scheme

Raws li koj tuaj yeem pom los ntawm daim duab kab hluav taws xob, lub plawv ntawm Circuit yog "Arduino", hauv kuv qhov xwm txheej kuv siv "Arduino Nano".

Rau tus pin A4 thiab A5 txuas nrog rau SDA thiab SCL ntawm I2C 16x2 Zaub, thiab RTC.

Qhov ntsuas kub thiab av noo tau txuas nrog Pin 4, dhau los ntawm tus tiv thaiv rub-Up.

Diverter, txuas nrog tus pin 12 ntawm Arduino, hloov pauv los ntawm IOT hom mus rau kev ua si zoo ntawm lub teeb, hu ua "zaj sawv".

Txhawm rau ua kom lub zog ESP8266 Kuv siv LM1117 tus tswj hwm, thaum txo qis qhov hluav taws xob ntawm RTX, Kuv tau siv qhov sib cais tiv thaiv (R1-R2).

Pawg D1, D2, D3 muaj lub luag haujlwm tiv thaiv:

  • D1 tiv thaiv tiv thaiv rov qab polarity.
  • D2, yog tias peb hloov Arduino code, tiv thaiv kev pub mis ntawm Neopixel matrix.
  • D3 txo qis 5.6 Volts mus rau 5 Volts

Kauj Ruam 7: Arduino Code

Code los ntawm create.arduino.cc:

cov tsev qiv ntawv:

  • Wire.h - Arduino IDE
  • RTClib.h -
  • LiquidCrystal_I2C.h -
  • DHT.h-https://github.com/adafruit/DHT-sensor-library
  • Adafruit_NeoPixel.h -
  • ESP8266_Lib.h -
  • BlynkSimpleShieldEsp8266.h -

Parameters yuav tsum tau teev nyob rau hauv cov cai:

  • char auth = "YourAuthToken"; sau tus lej Token ntawm app Bynk
  • Blynk.begin (auth, wifi, "ssid", "password"); nkag mus rau SSID thiab tus password rau koj lub router Wi -nkaus

Kauj Ruam 8: Siv

Image
Image

Txij li thaum kuv tus miv tsis nyiam tsob ntoo Christmas, thaum lub caij so, kuv siv lub teeb no hauv "hom zaj sawv"

Pom zoo: