Cov txheej txheem:

ESP8266 Lub Koob Yees Duab Chaw Taws Teeb: 5 Kauj Ruam
ESP8266 Lub Koob Yees Duab Chaw Taws Teeb: 5 Kauj Ruam

Video: ESP8266 Lub Koob Yees Duab Chaw Taws Teeb: 5 Kauj Ruam

Video: ESP8266 Lub Koob Yees Duab Chaw Taws Teeb: 5 Kauj Ruam
Video: BTT - Manta M8P - MainSailOS with EMMc 2024, Hlis ntuj nqeg
Anonim
ESP8266 Lub Koob Yees Duab Chaw Taws Teeb
ESP8266 Lub Koob Yees Duab Chaw Taws Teeb

Hauv Cov Lus Qhia Kuv yuav qhia koj li cas koj tuaj yeem ua lub koob yees duab IP nyob deb ntawm cov khoom koj tuaj yeem yooj yim yuav ntawm Ebay, Banggood, lossis lwm yam khoom lag luam. Kuv xav kom lub koob yees duab txav mus los, tsim nyog me me, thiab khiav hauv kuv lub tsev network.

Kauj Ruam 1: Tus Tsim

Tsim
Tsim
Tsim
Tsim
Tsim
Tsim
Tsim
Tsim

Kuv tau xaiv los siv Arduino Mega hla Arduino Uno vim tias kuv xav tau 2 qhov chaw nres nkoj, thiab thaum kuv tuaj yeem ua raws tus thib ob ntawm Uno, nws tsis ntseeg tau ntawm qhov nrawm dua. Kuv khaws pob me tshaj ESP8266, ESP-01 kom txuag chaw. Txhawm rau khaws cov duab Kuv siv Sainsmart microSD daim npav adapter. Txog lub koob yees duab, Kuv tau xaiv ArduCAM Mini 2MP vim tias nws tau tsim hauv FIFO ntxiv nrog rau lub lens kho kom pom tseeb cov duab. Txhawm rau txuas nws mus rau pawg thawj coj Kuv tau siv ntu luv CAT5 cable txij li nws muaj tus lej ntawm tus neeg ua haujlwm raug thiab lub txuas tau ua rau txoj hauv kev yooj yim los txuas thiab tshem lub koob yees duab los ntawm daim ntaub thaiv. Nws kuj tseem tso cai rau kuv kom yooj yim taw lub koob yees duab hauv cov lus qhia sib txawv lossis ntxiv txuas ntxiv rau hauv kab.

Kuv siv Fritzing los ntes cov txheej txheem thiab teeb tsa PCB. Cov laug cam tau tsim los ntawm PCBWay, tab sis cov chaw tsim khoom muaj peev xwm lees txais Gerber cov ntaub ntawv tuaj yeem ua rau PCBs.

Khoom siv

  • Arduino Mega Cov
  • Blank PCB thaiv
  • USB programming kab
  • 12V DC, 250mA lossis ntau dua, 2.1mm ntsaws, nruab nrab tus pin zoo lub zog hloov pauv
  • ESP8266 (ESP-01)
  • ESP8266 Programming Board
  • ArduCAM Mini 2MP
  • microSD Card nyeem ntawv module + microSD daim npav
  • AMS1117-33 (3.3 linear voltage regulator)
  • n-channel mosfet (rau qib hloov pauv)
  • 4 10kΩ resistors
  • 50V 100 uF capacitor
  • Ntsug RJ45 network nkaus
  • CAT5 cable thiab txuas (lossis lwm yam 8 tus neeg xyuas pib cable)
  • tus 8-tus pin ob kab poj niam lub taub hau (rau ESP-01)
  • 6-tus pin ib kab poj niam lub taub hau (rau microSD daim npav nyeem ntawv)
  • 12mm nylon standoff (txhawb microSD daim npav nyeem ntawv)
  • 3 1-tus pin txiv neej lub taub hau (rau cov ntawv xeem)
  • tus txiv neej 2-tus pin header (rau cov ntawv xeem)
  • tus txiv neej 3-tus pin header (rau cov ntawv xeem)
  • Acrylic Arduino Mega case (yeem)

Cov Cuab Yeej Xav Tau

  • Soldering Hlau
  • Solder
  • Yaug cutters
  • Multimeter
  • RJ45 crimper (yog tias tam sim no cable nrog txuas tsis nyob ntawm tes)

Kauj Ruam 2: Teeb nyem ESP8266

Teeb nyem ESP8266
Teeb nyem ESP8266
Teeb nyem ESP8266
Teeb nyem ESP8266
Teeb nyem ESP8266
Teeb nyem ESP8266

Txhawm rau nyem rau ESP8266 Kuv ua raws li phau ntawv qhia los ntawm Txhua Qhov Hais Txog Kev Sib Txuas. Kuv flashed ESP8266 nrog AT hais kom ua teeb tsa 2.1.0 thiab SDK version 1.1.0 uas tuaj yeem pom ntawm no nrog ESP8266 lub teeb nyem. Kuv kuj siv PuTTY los tshuaj xyuas yog tias lub khoos phis tawj raug teeb tsa raug. Cov txheej txheem ntawm kuv tau siv rau program ESP8266 kuj tseem tuaj yeem pom saum toj no. Kuv tau tsim cov phiaj xwm phiaj xwm ntawm lub rooj sib tham me me, vim tias nws tsis tsim nyog muaj PCB tsim. Nco tseg pinout ntawm kev sib txuas lus txuas ntawm lub rooj tsav xwm phiaj xwm sib phim pinout ntawm cov ntawv txuas rau USB adapter uas kuv tau siv.

Cov ntaub ntawv rau Flashing

  • Serial rau USB adapter (CP2102)
  • USB A rau B hloov pauv (yog li kuv tuaj yeem siv USB txuas ib txwm muaj)
  • 40x60mm proto-board, 2.54mm suab
  • 6 tus pin ntsia hlau davhlau ya nyob twg
  • 8 tus pin ob kab poj niam lub taub hau
  • 2 laub khawm (ib ntus)
  • AMS1117-33 (3.3 linear voltage regulator)
  • 16V 47 uF electrolytic capacitor
  • 2 10kΩ resistors
  • ntau yam khoom ntawm xaim

Kauj Ruam 3: Sib dhos Shield

Muaj ntau txoj hauv kev koj tuaj yeem muab cov taub hau tso rau hauv, tab sis kuv tau xaiv ua ntej ntsaws rau hauv Mega, tom qab ntawd muab daim thaiv npog PCB tso rau saum. Tom qab ntawd kuv tsoo cov pins kaum nrog cov laug thiab txheeb xyuas qhov ua kom sib haum, ua ntej muab tag nrho cov koob. Thaum tag nrho cov pins ntawd tau muag lawm, Kuv tshem PCB los ntawm Mega, thiab muab cov khoom seem txuas rau. Kuv pib los ntawm nruab nrab ntawm lub rooj tsavxwm, thiab ua haujlwm kuv txoj kev mus rau sab nraud. Ua ntej tso lub rooj tsavxwm thawj zaug, Kuv tau tshuaj xyuas kom tsis muaj qhov luv ntawm tus pin lossis nruab nrab ntawm lub zog thiab hauv av.

Kauj Ruam 4: Ua Haujlwm Arduino Mega

Programming Arduino Mega
Programming Arduino Mega

Kuv siv qhov hloov kho me ntsis ntawm SparkFun ESP8266 lub tsev qiv ntawv rau Arduino (hloov kho lub tsev qiv ntawv txuas nrog). Kuv tau coj cov ntawv luv ntawm SparkFun (daim npav microSD, ESWP8266 webserver) thiab ArduCAM. Cov cai tau teeb tsa raws li hauv qab no; thaum koj nkag mus rau lub vev xaib los ntawm koj tus browser, nws yuav siv daim duab, khaws nws mus rau daim npav microSD, thiab tom qab ntawd xa nws mus rau koj tus browser. Ib qho yooj yim version ntawm lub vev xaib raug txuas (index.txt). Lub vev xaib yuav tsum tau muab tso rau ntawm daim npav microSD. Thaum cov cai tau muab tso rau, txheeb xyuas kom txhua yam txuas tau zoo los ntawm kev qhib lub koos pij tawj saib thiab nyeem cov lus initalization. Ib daim vis dis aus ntawm tus saib xyuas txuas thaum pib yog txuas nrog. Nws qhia tau tias lub koob yees duab, daim npav nyeem ntawv microSD, thiab ESP8266 tau txuas nrog, tias ESP8266 txuas nrog WIFI, thiab tus IP chaw nyob tau muab rau.

Kauj Ruam 5: Khiav Cov Duab Weberver

Khiav Cov Duab Weberver
Khiav Cov Duab Weberver
Khiav Cov Duab Weberver
Khiav Cov Duab Weberver

Txhawm rau khiav lub vev xaib thawj zaug, khiav Arduino IDE thiab teeb tsa COM chaw nres nkoj mus rau qhov uas Mega txuas nrog. Qhib tus saib xyuas ntu, thiab teeb tsa tus nqi rau qhov Mega tau teeb tsa. Thaum koj qhib qhov kev tshuaj xyuas nws yuav luam tawm qee cov ntaub ntawv pib, tom qab ntawd luam tawm tus IP uas ESP8266 tau muab rau (qhov no tau sau tseg hauv xiav hauv thawj daim duab). Txij ntawm no mus, Kuv nkag mus rau hauv kuv lub router thiab tau npaj ua ntej tus IP chaw nyob uas ESP8266 tau txuas nrog mus tas li, yog li ESP8266 yuav ib txwm muab rau qhov chaw nyob ntawd. Piv txwv li, txhawm rau saib cov duab los ntawm kuv lub vev xaib Kuv ib txwm siv 192.168.1.135 hauv kuv lub vev xaib. Kuv tuaj yeem ua qhov no ntawm txhua lub cuab yeej txuas nrog kuv LAN/WLAN. Txuas nrog yog cov duab piv txwv, thiab tej zaum yuav zoo li nws tau txais rau 2 megapixel lub koob yees duab. Nws feem ntau siv sijhawm ob peb zaug los ua kom pom tseeb cov duab. Lub koob yees duab ua kom pom tseeb yuav yog qhov zoo, tej zaum qhov ntawd yuav yog kuv qhov kev txhim kho yav tom ntej.

Pom zoo: