Cov txheej txheem:
- Kauj Ruam 1: Cov Cwj Pwm Ntawm Lub Cev
- Kauj ruam 2: Nkag mus rau ESP8266 Pins
- Kauj Ruam 3: Sib piv Ob Arduinos
- Kauj Ruam 4: Hloov Txoj Cai thiab Xaiv Hom
- Kauj ruam 5: AT Firmware Installation
- Kauj Ruam 6: Txheeb Xyuas AT Firmware
- Kauj Ruam 7: Piv txwv
- Kauj Ruam 8: Kho Arduino IDE Ib puag ncig
- Kauj Ruam 9: Arduino Mega Nrog Relays Siv Esp8266 Pawg Sib cais
- Kauj ruam 10: Arduino Mega Nrog Ua-hauv Esp8266
Video: Arduino MEGA 2560 Nrog WiFi Ua -hauv - ESP8266: 10 Cov Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Hauv cov ntawv niaj hnub no, peb tham txog Arduino uas kuv xav txog tshwj xeeb heev, vim nws muaj ESP8266 kos rau hauv nws pawg thawj coj. Nws tsis muaj ESP12 soldered rau ntawm lub rooj tsavxwm. Hloov chaw, nws muaj Espressif nti. Yog li, ntawm lub rooj tsavxwm koj muaj Tensilica nti nrog 4MB nco, nrog rau ATmega2560, uas yog Arduino Mega ib txwm muaj.
Cia peb txav mus rau qhov Arduino ua haujlwm li cas, thiab cia peb ua qhov kev sib dhos uas qhia thaum twg koj yuav tsum xaiv ESP lossis Mega los ua lub tsev siv tshuab hauv tsev. Nrog rau qhov no, peb tuaj yeem tig teeb rau thiab tawm, uas yog cov txheej txheem uas tuaj yeem muaj txiaj ntsig zoo rau koj los txhim kho hauv koj lub tsev.
Kauj Ruam 1: Cov Cwj Pwm Ntawm Lub Cev
Kuv yeej nyiam qhov Arduino no muaj Pigtail txuas rau tus kav hlau txais xov. Vim li cas qhov no zoo? Yog tias koj txuas tus kav hlau txais xov ntawm lub cuab yeej no, koj yuav tau txais txiaj ntsig zoo, vim nws yuav ua rau koj ncav cuag, ncaj ntawm 90 metres txog 240 meters deb. Kuv tuaj txog qhov kev txiav txim siab no tom qab qhov kev xeem kuv tau ua, yog li kuv tsis tas yuav cia siab rau ntawm phau ntawv qhia xwb.
Pawg thawj coj no tseem muaj tus xaiv hloov uas tso cai rau ESP cuam tshuam kev sib txuas ntawm TX0 thiab TX3, nco ntsoov tias ATmega muaj plaub ntu. Qhov kev xaiv thib ob yog DIP Hloov, thiab peb kuj tseem muaj hom kaw suab ntawm ESP8266. Txhua tus pinning tau ua tiav nrog ATmega pinout.
Kauj ruam 2: Nkag mus rau ESP8266 Pins
Ntawm no, Kuv qhia sab nraum qab ntawm lub rooj tsavxwm, qhov twg muaj lub rooj uas qhia kev nkag mus rau ESP pins.
Kauj Ruam 3: Sib piv Ob Arduinos
Ntawm no, peb muaj kev sib piv ntawm Mega Arduino nrog kev koom ua ke ESP (Arduino Mega RobotDyn) thiab cov Mega Arduino ib txwm muaj (Arduino Mega 2560). Peb tuaj yeem pom tias lawv zoo ib yam, tab sis hauv 2560, peb muaj lub tshuab luam ntawv USB, uas yog qhov txuas loj. Txawm li cas los xij, hauv RobotDyn, peb muaj lub mini-USB. Kuv tshwj xeeb tshaj yog nyiam qhov kev xaiv me dua, tab sis lub zog yog tib yam hauv ob qho tib si.
Peb tuaj yeem pom, tom qab ntawd, tias lub hom phiaj ntawm RobotDyn tus tsim yog los tswj lub tsev ntawm ATmega.
Raws li peb pom hauv cov lus saum toj no, ATmega muaj 32MB ntawm kev nco, tsis suav nrog ESP nco. Qhov no zoo heev, txij li Mega Arduino ib txwm muaj tsuas yog 256kb ntawm kev nco. Lub zog hauv RobotDyn yog 7 txog 12 volts, thiab ESP8266 twb tau siv lawm, thiab twb muaj lub zog txo qis. Yog li, pub mis rau Arduino twb tau pub ESP, uas twb tau poob rau 3v3, thiab sab hauv uas microcontroller twb yog 3v3 lawm.
Cov txheej txheem yog tib yam, 16MHz, thiab ib qho txiaj ntsig zoo ntawm cov qauv no yog qhov ntau ntawm IOs.
Kauj Ruam 4: Hloov Txoj Cai thiab Xaiv Hom
Peb muaj ntawm no DIP Hloov thiab lub rooj nrog ob peb txoj haujlwm. Cov no pab hauv kev sib txuas, nyob ntawm koj lub hom phiaj. Ib qho tseem ceeb tshaj yog tias yog koj sau Flash hauv ESP, koj yuav tsum paub txog chaw nyob uas txawm tias txawv me ntsis.
Hauv daim duab hauv qab no, peb tau nthuav dav ntawm tus yuam sij uas hloov pauv chaw nres nkoj ntawm Arduino Mega. Qhov no txuas rau ESP, thiab tseem nyob hauv Hom Tseem Ceeb, xav kom peb yuav tsum nias ESP8266 txhawm rau sau.
Kauj ruam 5: AT Firmware Installation
Yog tias koj xav siv ESP8266 hauv AT hom, rub tawm cov ntawv PDF. Tam sim no koj yuav tsum teeb tsa daim npav kom ESP8266 txuas nrog USB thiab hauv hom kaw. Txhawm rau ua qhov no, teeb tus lej 5, 6, thiab 7 rau ON (sab laug) thiab tag nrho lwm qhov hloov pauv mus rau OFF (sab xis).
Yog tias koj xav siv ESP8266 hauv AT hom, koj yuav tsum teeb tsa Flash Download Tool raws li hauv qab no:
SPI Ceev = 80MHz
SPI hom = DIO
Flash Loj = 32Mbit 4mb bytes x 8 khoom = 32m khoom
Crystal zaus = 26M
Cov ntaub ntawv / bin / esp_init_data_default.binataddress0x3fc000
Cov ntaub ntawv / bin / blank.binataddress0x37e000
Cov ntaub ntawv / bin / boot_v1.4 (b1).binataddress0x00000
Cov ntaub ntawv / bin / ntawm / 512+512 / user1.1024.new.2.binataddress0x1000
Kauj Ruam 6: Txheeb Xyuas AT Firmware
Hauv ntu no, Kuv siv esptool.exe, uas yog lub cuab yeej hais kom nkag mus rau ESP8266 Flash thiab txheeb xyuas qee qhov chaw, xws li hom nti thiab nco loj.
Kauj Ruam 7: Piv txwv
Hauv qhov piv txwv no peb qhia qhov chaw nyob hexadecimal peb siv los sau nrog Flash Download Tool.
Tsis tas li, rau cov uas tsis muaj kev paub ntau nrog ESP8266, kuv hais qhia ob qho ntawm kuv cov vis dis aus dhau los: Kaw hauv ESP01 thiab Qhia rau ESP8266.
Kauj Ruam 8: Kho Arduino IDE Ib puag ncig
Txhawm rau sau Arduino, tsis muaj qhov paub tsis meej kiag li. Koj tsuas yog yuav tsum teeb tsa Mega Arduino 2560 pawg thawj coj saib yog tias nws yog ib txwm Arduino.
Kauj Ruam 9: Arduino Mega Nrog Relays Siv Esp8266 Pawg Sib cais
Peb nyob ntawm no cov phiaj xwm sib dhos uas kuv ua hauv video. Peb txuas Arduino Mega rau ESP01 thiab tswj ob qhov txuas rau ib daim ntawv thov.
Kauj ruam 10: Arduino Mega Nrog Ua-hauv Esp8266
Ntawm no, peb ua tib yam uas tau hais los saum no, tab sis thaum siv Arduino Mega nrog ESP ua ke. Ib qho lus qhia yog tias koj saib cov vis dis aus uas muaj npe nyob hauv Automation nrog Arduino Mega thiab ESP8266 kom paub meej ntxiv txog cov ncauj lus no.
Pom zoo:
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Ua Si Cov Khoom Ua Si Ua Tau Zoo!: 7 Cov Kauj Ruam (nrog Duab)
Hloov-Hloov Cov Khoom Ua Si: Cov Khoom Siv Hluav Taws Xob Ua Tau Zoo!: Qho khoom ua si hloov pauv qhib txoj hauv kev tshiab thiab kev daws teeb meem kom tso cai rau menyuam yaus uas muaj lub cev muaj peev xwm txwv lossis kev xiam oos qhab kev loj hlob los cuam tshuam nrog cov khoom ua si ntawm nws tus kheej. Hauv ntau qhov xwm txheej, cov menyuam yaus uas xav tau cov khoom ua si hloov pauv tsis tuaj yeem nkag mus
Cov Khaub Ncaws Khaub Ncaws Niaj Hnub Nyoog Vintage Cov Kab Xev Nrog Cov Ntaub Ntawv MP3: 8 Kauj Ruam (nrog Duab)
Kev Sau Ntiag Tug Vintage Cassette Tapes Nrog Cov Ntaub Ntawv MP3: Nrog cov kab xev nplaum kab xev popping hauv pop-kab lis kev cai tam sim no ntau dua li yav tas los, ntau tus neeg xav tsim lawv tus kheej cov ntawv. Hauv qhov kev qhia no, kuv yuav qhia koj yuav ua li cas (yog tias koj muaj daim kab xev kaw) kaw koj tus kheej cov kab xev nrog cov thev naus laus zis niaj hnub
Cov Khaub Ncaws Khaub Ncaws Jelly Donuts - Kev Taw Qhia rau Xaws Cov Khaub Ncaws Nrog Makey Makey: 4 Cov Kauj Ruam (nrog Duab)
Cov Khaub Ncaws Khaub Ncaws Khaub Ncaws - Kev Taw Qhia rau Xaws Cov Khaub Ncaws Nrog Makey Makey: Peb pom hauv Twitter tias ntau ntawm peb Cov Khaub Ncaws thiab Makey Makey cov neeg ntxeev siab xav paub ntau ntxiv txog kev xaws khaub ncaws, yog li peb tau tsim qhov kev qhia no kom qhia rau koj sai ntawm kev xaws khaub ncaws thiab yuav ua li cas koj tuaj yeem xaws qee cov khoom sib dhos. (Qhov no yog
Kev Tswj Lub Cev Muaj Zog rau Hoisting Application Siv Arduino Mega 2560 thiab IoT: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Lub Cev Muaj Zog rau Hoisting Application Siv Arduino Mega 2560 thiab IoT: Tam sim no hnub IoT raws microcontroller tau siv dav hauv daim ntawv thov kev lag luam. Kev lag luam lawv tau siv hloov kho lub khoos phis tawj. Lub hom phiaj ntawm txoj haujlwm peb kom ua tiav digitalized tswj, cov ntaub ntawv logger thiab saib xyuas 3phase induction motor w
Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Cov Neeg Siv Khoom Hloov: 8 Cov Kauj Ruam (nrog Duab)
Kev Tswj Cov Khoom Siv Los Ntawm Arduino Nrog Kev Siv Hluav Taws Xob: Lub Arduino tuaj yeem siv los tswj cov cuab yeej los ntawm kev siv cov khoom siv yooj yim hloov pauv hloov chaw