Cov txheej txheem:
- Kauj ruam 1: Electronics
- Kauj ruam 2: Sib dhos
- Kauj Ruam 3: Arduino Code
- Kauj ruam 4: Interface
- Kauj ruam 5: Siv
Video: Wi-Servo: Wi-nkaus Browser Tswj Cov Servomotors (nrog Arduino + ESP8266): 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Cov lus qhia no qhia yuav ua li cas tswj hwm qee tus neeg siv khoom nyob deb ntawm lub network Wi-nkaus, siv qhov browser zoo ib yam (Firefox, piv txwv). Qhov no yuav raug siv hauv ntau daim ntawv thov: khoom ua si, neeg hlau, drones, lub koob yees duab yias/qaij, thiab lwm yam.
Cov motors tau txuas rau Arduino Uno, uas txuas rau Wi-nkaus network los ntawm ESP-8266 module. Kev tswj lub interface tau tsim nrog HTML thiab jQuery.
Miguel cov lus qhia (https://allaboutee.com/2015/01/02/esp8266-arduino-led-control-from-webpage/), uas qhia yuav ua li cas tig LEDs rau/tua siv ESP-8266, tau txais kev tshoov siab rau qhov no ncej.
Cov txheej txheem pom ntawm no yog siv hauv ib qho ntawm kuv cov haujlwm: "Robô da Alegria":
www.instructables.com/id/Joy-Robot-Rob%C3%B4-Da-Alegria-Open-Source-3D-Printed-A/
Koj yuav pom ntau ntxiv txog qhov no hauv ib qho ntawm cov txuas hauv qab no:
hackaday.io/project/12873-rob-da-alegria-joy-robot
www.facebook.com/robodaalegria/
github.com/ferauche/RoboAlegria
Kauj ruam 1: Electronics
Rau qhov haujlwm no koj yuav xav tau cov hauv qab no:
- Arduino Uno (yuav)
- ESP8266 (yuav)
- Protoshield (rau qhov hloov pauv ntau dua) lossis cov qhob cij zoo tib yam (yuav)
- 10 kohm resistor (x3)
- Qee cov xov hlau jumper
- SG90 servomotor (x2) (yuav)
- Lub khoos phis tawj (rau suav thiab xa cov lej Arduino)
Koj yuav tsis xav tau cov cuab yeej tshwj xeeb rau kev sib dhos ntawm txoj haujlwm no. Txhua yam khoom tuaj yeem nrhiav pom online ntawm koj lub khw e-lag luam uas koj nyiam. Lub voj voog tau siv los ntawm USB chaw nres nkoj (txuas nrog lub khoos phis tawj lossis lub xov tooj zoo ib yam), tab sis koj kuj tseem tuaj yeem ntxiv DC lub zog hluav taws xob sab nraud lossis lub roj teeb txuas nrog rau Arduino lub zog txuas.
Kauj ruam 2: Sib dhos
Txuas txhua lub componets raws li cov qauv. Koj yuav xav tau qee lub xov hlau txuas los txuas ESP-8266 tus qauv thiab cov neeg pabcuam. Koj tuaj yeem siv daim ntawv pov thawj (rau kev sib cog lus ntau dua), ib qho khoom noj khoom haus zoo tib yam, lossis tsim koj tus kheej Arduino daim ntaub thaiv.
Txuas lub USB cable rau Arduino Uno board thiab mus rau kauj ruam tom ntej.
Kauj Ruam 3: Arduino Code
Txhim kho qhov tseeb Arduino IDE. Hauv qhov haujlwm no lub tsev qiv ntawv servo.h tau siv rau kev tswj hwm ntawm servos. Txhawm rau kom zam kev tsis sib haum xeeb ntawm Wi-nkaus module thiab khoos phis tawj USB chaw nres nkoj thaum tso cov cai, softserial library tau siv. Tsis xav tau lub tsev qiv ntawv ntxiv rau kev sib txuas lus nrog ESP-8266 module. Thov txheeb xyuas qhov baudrate ntawm koj ESP8266 thiab teeb tsa kom raug hauv txoj cai.
Qee tus neeg siv servomotors pib jitter thiab ua suab nrov txawv txawv thaum nws txoj haujlwm ze rau qhov txwv (0 thiab 180 degrees). Txhawm rau zam qhov ntawd, lub kaum sab xis tau txwv ntawm 10 thiab 170 degrees ob qho tib si hauv Arduino code thiab hauv kev tswj kev sib txuas (tom qab).
Hmoov tsis zoo, lub tsev qiv ntawv servo.h thiab lub tsev qiv ntawv softserial.h siv tib lub sijhawm ntawm microcontroller. Qhov no yuav ua rau muaj kev kub ntxhov hauv cov servos thaum twg Arduino sib tham nrog ESP-8266. Txhawm rau zam qhov ntawd, cov servos raug cais los ntawm Arduino tom qab txhua lo lus txib. Koj kuj tseem tuaj yeem txuas tus qauv rau tus qauv txuas tus lej. Hauv qhov no, nco ntsoov txiav qhov module ua ntej txhua qhov rub tawm.
Rub tawm Arduino code (wi-servo.ino) thiab hloov XXXXX los ntawm koj lub router wifi SSID thiab YYYYY los ntawm tus password router. Txuas Arduino board rau koj lub computer USB chaw nres nkoj thiab xa cov cai.
Kauj ruam 4: Interface
Lub html interface tau tsim los rau kev tswj hwm ntawm servomotors. Hauv qhov piv txwv no, tau siv ob lub servos, tab sis ntau ntxiv tuaj yeem ntxiv rau Arduino Uno (Kuv tau sim txog plaub lub cav).
Ib daim ntawv ntawv tau siv los nkag IP chaw nyob ntawm ESP module.
Rub tawm Wi-servo.html thiab jquere.js cov ntaub ntawv thiab txuag ob qho tib si hauv tib lub nplaub tshev.
Kauj ruam 5: Siv
Thaum Arduino rov pib dua, nws yuav sim txuas koj li Wi-nkaus network tau txais. Siv Serial Monitor txhawm rau txheeb xyuas yog tias kev sib txuas tau ua tiav, thiab kom tau txais tus IP uas tau muab rau koj li ESP-8266 los ntawm koj lub router.
Qhib cov ntawv html hauv internet browser (Firefox).
Qhia tus IP chaw nyob ntawm koj ESP-8266 hauv kab ntawv thiab koj yuav npaj mus. Xaiv lub kaum sab xis xav tau rau txhua qhov servo siv cov swb. Qhov browser yuav xa daim ntawv thov mus rau Arduino thaum koj tso lub pob nyem, thiab txav txhua qhov kev pabcuam.
Pom zoo:
Arduino Browser Raws Kev Tswj Chaw Taws Teeb (linux): 9 Cov Kauj Ruam (nrog Duab)
Arduino Browser Raws Kev Tswj Chaw Taws Teeb (linux): Peb muaj menyuam. Kuv hlub lawv rau cov khoom me me tab sis lawv khaws zais cov chaw taws teeb tswj rau lub xov tooj cua thiab TV thaum lawv tso cov menyuam yaus raws. Tom qab qhov no tshwm sim nyob rau niaj hnub rau ntau xyoo, thiab tom qab kuv tus poj niam uas kuv hlub tso cai rau kuv kom muaj
ESP8266 - Kev Kho Vaj Tsev Nrog Timer thiab Kev Tswj Chaw Taws Teeb Ntawm Is Taws Nem / ESP8266: 7 Cov Kauj Ruam (nrog Duab)
ESP8266 - Dej Irrigation Nrog Timer thiab Kev Tswj Chaw Taws Teeb Ntawm Is Taws Nem / ESP8266: ESP8266 - Kev ywg dej nyob deb tswj thiab nrog sijhawm rau zaub zaub, paj vaj thiab nyom. Nws siv ESP-8266 Circuit Court thiab hydraulic / hluav taws xob valve rau cov chaw tso dej rau dej kom zoo.Qhov Zoo: Tus nqi qis (~ US $ 30,00) nkag tau sai Commands ov
ESP8266 RGB LED Sawb WIFI Tswj - NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi - RGB LED Sawb Smartphone Tswj: 4 Cov Kauj Ruam
ESP8266 RGB LED Sawb WIFI Tswj | NODEMCU Raws li IR Chaw Taws Teeb rau Led Sawb Tswj Hauv Wifi | RGB LED Sawb Smartphone Tswj: Nyob zoo cov neeg hauv qhov kev qhia no peb yuav kawm paub siv nodemcu lossis esp8266 li IR chaw taws teeb los tswj RGB LED sawb thiab Nodemcu yuav raug tswj los ntawm smartphone dhau wifi. Yog li hauv paus koj tuaj yeem tswj RGB LED Sawb nrog koj lub xov tooj
Tswj Cov Khoom Siv Hauv Internet Los ntawm Browser. (IoT): 6 Kauj Ruam
Tswj Cov Khoom Siv Hauv Internet Los ntawm Browser. (IoT): Hauv Phau Ntawv Qhia no kuv yuav qhia koj li cas koj tuaj yeem tswj hwm cov khoom siv xws li LEDs, Relays, motors thiab lwm yam hauv Is Taws Nem los ntawm web-browser. Thiab koj tuaj yeem nkag mus rau kev tswj hwm kev nyab xeeb hla txhua lub cuab yeej. Lub vev xaib uas kuv siv ntawm no yog RemoteMe.org mus ntsib
Browser Tswj Roomba Neeg Hlau Nrog Raspberry Pi Qauv 3 A+: 6 Cov Kauj Ruam (nrog Duab)
Browser Tswj Xyuas Roomba Neeg Hlau Nrog Raspberry Pi Qauv 3 A+: Txheej txheem cej luam Cov lus qhia no yuav tsom mus rau yuav ua li cas muab Roomba tuag lub hlwb tshiab (Raspberry Pi), qhov muag (Webcam), thiab txoj hauv kev los tswj txhua yam los ntawm lub vev xaib. Muaj ntau ntau ntawm Roomba hacks uas tso cai tswj hwm ntawm cov ntawv sib txuas. Kuv tsis muaj