Cov txheej txheem:

Kev Tswj Chaw Taws Teeb: ESP8266 Nrog Npib Cell: 5 Cov Kauj Ruam (nrog Duab)
Kev Tswj Chaw Taws Teeb: ESP8266 Nrog Npib Cell: 5 Cov Kauj Ruam (nrog Duab)

Video: Kev Tswj Chaw Taws Teeb: ESP8266 Nrog Npib Cell: 5 Cov Kauj Ruam (nrog Duab)

Video: Kev Tswj Chaw Taws Teeb: ESP8266 Nrog Npib Cell: 5 Cov Kauj Ruam (nrog Duab)
Video: txiav dav 800mm RC chaw taws teeb tswj nyom mower zoo tshaj plaws nqe kev muag khoom Tuam Tshoj 2024, Kaum ib hlis
Anonim
Image
Image
Cov Tshuaj
Cov Tshuaj

Qhov teeb meem loj siv ESPs yog kev siv hluav taws xob thaum Wifi "nce", txog 100-200mA, nce siab txog 300mA. Cov coincells ib txwm xa ob peb mA, nce mus txog 20-40mA. Tab sis rau ESPs qhov hluav taws xob yuav tawg. Peb xav tau "kev pab me ntsis ntawm kuv tus phooj ywg": supercap. Cov khoom siv hluav taws xob xa tawm tam sim no txaus rau lub zog Wifi thiab xa xov, hauv qhov no hloov qhov hais kom ua. Lwm qhov kev xaiv yog datalogger uas yuav tsum sawv txhua ob peb teev rau ob peb feeb.

Hauv cov lus qhia no kuv siv Esp8266 los tsim lub chaw taws teeb tswj rau phillips hue teeb.

Kauj Ruam 1: Cov Tshuaj

Cov Tshuaj
Cov Tshuaj

Ua ntej tshaj plaws peb yuav tsum paub tias nws tsis muaj lub tswv yim zoo los txuas lub roj teeb thiab lub hau yooj yim.

Kev them nqi tam sim no los ntawm xov tooj ntawm tes mus rau lub hau yuav tsum tau txo nrog tus tiv thaiv. Cov lus qhia tshwj xeeb rau kuv cov xov tooj ntawm tes qhia peb txog qhov siab tshaj tam sim no ntawm 25mA.

Ohm txoj cai: R = U/I -> 3V/25mA = 120 Ohm.

Supercap muaj lub peev xwm txaus los ua lub zog ESP rau 10-20 vib nas this. Yog tias koj siv tus IP chaw nyob zoo li kuv ua, ESP tsuas yog sawv los li 1-2 vib nas this xa/tau txais nws cov lus thiab poob rau hauv "pw tsaug zog" kom txog rau thaum lub khawm pib dua.

Ob txoj kev xaiv rau schematic:

1. Txuas cov khoom ncaj qha thiab siv qhov hloov pauv hloov rau kev nqis tes ua, saib daim duab. Hauv qhov no peb yuav tsum ua kom ntseeg tau tias wemos xav tau lub zog me me li sai tau, yog li peb yuav tsum tshem tawm 3.3V tus tswj hwm thiab muab khoom rau uart-ic.

2. Peb siv lub khawm hloov uas cais cov khoom los ntawm wemos. Qhov tsis zoo yog tias koj yuav tsum nias lub pob rau 1-2 vib nas this kom txog thaum ua tiav. (teeb rau lossis tawm)

Kauj Ruam 2: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Thawj Yam Yuav Tsum Tau:

  • Wemos D1 mini
  • Npib Cell CR2450
  • Npib Cell Socket
  • Supercap 3.3F 3.0V siv ib qho nrog me me tso tawm tam sim no
  • Resistor 120 hli
  • xov hlau

Qhov Yuav Tsum Tau Kawm Thib Ob:

Soldering hlau

3D Tshuab Luam Ntawv rau cov ntaub ntawv luam tawm

los yog

lwm yam me me (siv) rooj plaub

los yog

phab ntsa hloov

Kauj Ruam 3: 3d Luam Ntawv

3D Luam Case
3D Luam Case

Nov yog qee cov ntaub ntawv stl rau rooj plaub me me uas lub rooj tsavxwm haum raws nraim

Kuv siv cov ntawv luam ib txwm muaj nrog infill ntawm 30% thiab 0.2 hli txheej siab.

Lub pob qhov rooj kuj tau luam tawm yog li koj tuaj yeem siv khawm rov pib dua rau kev nqis tes ua thiab tsis tas yuav siv lub pob ntxiv. Ua daim tiab thiab lub ntsej muag rau lub pob qhov rooj vim qhov khoom me me heev

Kauj Ruam 4: Coding Esp8266

Coding tus Esp8266
Coding tus Esp8266

Ua ntej koj xav tau Arduino IDE. Then koj yuav tsum teeb tsa lub tsev qiv ntawv rau Esp8266.

Koj yuav pom ntau qhov kev qhia ntawm no ntawm cov lus qhia yuav ua li cas npaj cov khoom me me no:-)

Rau kev txuas nrawm dua/hloov pauv peb siv tus IP chaw nyob zoo li qub.

Tom qab qhib daim duab txuas nrog Arduino IDE koj yuav tsum ua qee qhov kev teeb tsa nyob ntawm koj li WIFI hauv zos.

n

IPAddress rooj vag (192, 168, 178, 1);

ip chaw nyob ntawm koj lub zos wifi router qhov twg lub choj hue txuas nrog

Tus IP chaw nyob IP (192, 168, 178, 216);

IP chaw nyob ntawm koj qhov kev hloov pauv, paub txog kev siv chaw nyob siab nyob hauv thaj tsam ntawm 200-250 uas tsis siv rau lwm yam khoom siv

IPAddress subnet (255, 255, 255, 0);

int lub teeb = 2;

tus naj npawb ntawm koj lub teeb uas tau hloov

const char hueHubIP = "192.168.178.57";

ip chaw nyob ntawm tus choj hue

const char hueUsername = "hue choj username"

koj yuav tsum tsim lub npe tso cai siv tus choj hue, saib ntawm qhov kev qhia no

const int hueHubPort = 80;

ib txwm "80"

const char ssid = "SSID"; // network SSID (npe)

const char pass = "password"; // network password

thaum kawg SSID thiab tus password ntawm koj lub wifi

Tom qab hloov cov chaw no koj tau npaj rau upload!

Kauj Ruam 5: Kauj Ruam Kawg thiab Kev Xav

Kauj Ruam Kawg thiab Kev Xav
Kauj Ruam Kawg thiab Kev Xav

Nco ntsoov ua ntej them lub hau ua ntej txuas rau wemos vim tias Esp8266 tam sim ntawd pib ua wifi txuas tom qab rov pib dua/txuas lub zog.

Saib kev sib dhos hauv video

kom txuag hluav taws xob txuas tus pin 4 thiab 16 ntawm uart-ic thiab tshem tawm qhov ntsuas hluav taws xob, thov nco ntsoov tom qab ntawd nws tsis tuaj yeem ua haujlwm wemos ntawm USB !!

Pom zoo: