Cov txheej txheem:

GO-4 Ntse Tsev Arduino Bot: 7 Kauj Ruam (nrog Duab)
GO-4 Ntse Tsev Arduino Bot: 7 Kauj Ruam (nrog Duab)

Video: GO-4 Ntse Tsev Arduino Bot: 7 Kauj Ruam (nrog Duab)

Video: GO-4 Ntse Tsev Arduino Bot: 7 Kauj Ruam (nrog Duab)
Video: NOOBS PLAY CLASH ROYALE FROM START LIVE 2024, Hlis ntuj nqeg
Anonim
GO-4 Ntse Tsev Arduino Bot
GO-4 Ntse Tsev Arduino Bot

Hauv qhov haujlwm no kuv yuav qhia koj li cas los tsim Smart Home Bot siv IOT thev naus laus zis los tswj koj cov cuab yeej siv hauv tsev nyob deb ntawm Internet.

Tab sis ua ntej peb pib tham txog cov txheej txheem no raws li peb tau siv los ua …

IOT yog dab tsi?

Internet ntawm Yam (IoT) yog cov txheej txheem sib txuas ua ke cov cuab yeej siv tshuab, tshuab siv tshuab thiab digital, khoom siv, tib neeg uas tau muab cov cim tshwj xeeb thiab muaj peev xwm hloov cov ntaub ntawv hla lub network yam tsis xav tau tib neeg-rau-tib neeg lossis tib neeg-rau- kev sib tham hauv computer.

Ib yam, hauv Is Taws Nem Ntawm Yam, tuaj yeem yog tus neeg muaj lub plawv saib xyuas kev cog qoob loo, Kev Siv Dej hauv cov liaj teb nrog lub tshuab biochip transponder, lub tsheb uas muaj lub ntsuas hluav taws xob ua kom ceeb toom rau tus tsav tsheb thaum lub log log qis lossis lwm yam yam khoom lossis tus neeg tsim khoom uas tuaj yeem muab tus IP chaw nyob thiab muab lub peev xwm los hloov cov ntaub ntawv hla lub network.

Yog li cia peb hais tias IOT yog lub kaw lus loj hauv is taws nem uas suav nrog txhua lub tshuab siv tus cim tshwj xeeb hu rau IP chaw nyob.

Kuv tuaj yeem dhau los ua ib feem ntawm lub ntiaj teb no siv kuv li Arduino board?

Muaj cov cuab yeej siv thev naus laus zis me me hu ua ESP8266 thiab nws yog lub cuab yeej zoo rau kev pab koj li phiaj xwm nkag mus rau hauv internet. Koj tuaj yeem txuas nws rau hauv Arduino yooj yim raws li qhia thiab tso cai rau koj txoj haujlwm sib tham hauv is taws nem. Txhawm rau tswj nws los ntawm txhua qhov chaw hauv ntiaj teb ntawm IP chaw nyob!

Cov lus qhia tshwj xeeb ntawm tus tswj hwm sab hauv:

· Tus txheej txheem Espressif yog 32-ntsis thiab 80MHz thiab tuaj yeem hloov kho rau 160MHz.

· 64KB nco bootloader.

· 64KB Ceev RAM nco rau lub microcontroller.

· 96KB random nkag tau nco.

*ceeb toom (1)

ESP8266 ntaus ntawv feem ntau yog muag yam tsis muaj ib qho qauv, thiab hauv kuv tus kheej lub tswv yim kuv nyiam siv nws ESP-01 adapter kom yooj yim txuas rau Arduino board.

Kauj Ruam 1: Cov Cheeb Tsam Xav Tau

Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam
Yuav tsum tau Cheebtsam

Tus qauv neeg hlau (muaj nyob hauv qib 3)

Arduino Uno R3

ESP8266 tus qauv

ESP-01 adapter

Plaub txoj kev Relay

LCD module 16x2

LED nrog 220 ohm resistor

Jumper xov hlau

Kauj Ruam 2: Txhim Kho ESP8266 Module

Txhim kho ESP8266 Module
Txhim kho ESP8266 Module
Txhim kho ESP8266 Module
Txhim kho ESP8266 Module
Txhim kho ESP8266 Module
Txhim kho ESP8266 Module

Tsis zoo li qhov seem ntawm lwm yam khoom siv ESP8266 tus qauv xav tau

teeb tsa ua ntej siv, vim tias nws yog tus qauv ib leeg thiab muaj ntau txoj hauv kev koj tuaj yeem ua raws kom xa cov cai rau nws.

*ceeb toom (2)

Tus neeg hlau tau nkag los ntawm lub network Wi-nkaus nkaus xwb. Txhawm rau tswj nws pov hauv is taws nem, koj yuav tsum tau ua chaw nres nkoj xa mus rau ntawm koj lub router.

Yog xav paub ntxiv txog cov ncauj lus no:

www.pcworld.com/article/244314/how_to_forward_ports_on_your_router.html

Kauj Ruam 3: Sib Sau Cov Neeg Hlau

Sib dhos Cov Neeg Hlau
Sib dhos Cov Neeg Hlau
Sib dhos Cov Neeg Hlau
Sib dhos Cov Neeg Hlau

Lub sijhawm no kuv xaiv cov qauv duab los yooj yim uas tuaj yeem sib sau ua ob peb teev.

Rub tus Qauv los ntawm no:-

paper-replika.com/index.php?option=com_cont…

Sib sau ua ke lub hauv paus no yooj yim zoo nws tseem tso cai rau koj txhawm rau txhim kho tag nrho cov khoom siv sab hauv yam tsis muaj cov xov tsis zoo, yog li kuv kho LCD 16*8 zaub module nyob rau hauv pem hauv ntej ntawm nws txhawm rau pab daws cov teeb meem ntawm cov neeg hlau thiab kuv yuav piav qhia nws tom qab.

Hauv qhov txuas no koj yuav kawm paub siv lcd zaub module

www.arduino.cc/en/Tutorial/LiquidCrystalDisplay

Kauj Ruam 4: Sib Sau Robot Torso

Image
Image
Sib dhos Robot Torso
Sib dhos Robot Torso

Neeg hlau lub cev

muaj ib daim, thiab muaj ob lub qhov nyob rau hauv pem hauv ntej yog li koj tuaj yeem txhim kho koj lub teeb ci LED nrog 220 ohm resistor thiab lub koob yees duab module yog tias koj xav tau.

Kauj Ruam 5: Lub Taub Hau Robot thiab Tis

Neeg Hlau Lub Taub Hau thiab Tis
Neeg Hlau Lub Taub Hau thiab Tis
Neeg Hlau Lub Taub Hau thiab Tis
Neeg Hlau Lub Taub Hau thiab Tis

Cov khoom no yog qhov yooj yim heev thiab nws tsis muaj cov xov hlau lossis kab hluav taws xob sab hauv.

Kauj Ruam 6: Relay Circuit

Image
Image
Relay Circuit
Relay Circuit
Relay Circuit
Relay Circuit

YUAV UA LI CAS YUAV TSHUAJ NTUJ RAU ARDUINO

Nov yog hom kev xa xov uas nws muaj peev xwm siv los hloov cov khoom siv hluav taws xob. Cov kev xa tawm no yuav tswj hwm cov cuab yeej siv feem ntau hauv tsev tshwj tsis yog lub zog siab tshaj plaws xws li cov cua sov hauv chav, qhov cub, thiab lub cav. Xyuas kom tseeb tias VA (Volts x Amps) ntawm lub cuab yeej koj tab tom qhib/tawm yog tsawg dua qhov ntsuas qhov ntsuas.

Ceeb Toom: Nco ntsoov ceev faj heev thaum sim nrog AC, hluav taws xob tuaj yeem ua rau raug mob hnyav.

Relay module los ntawm sab hauv qab tau qhib thaum AC txuas nrog tsis txhob kov lub Circuit Court.

Rau DC ib feem ntawm Circuit:

Arduino tus pin 10 -> module pin S

Arduino GND -> module pin -

Arduino +5V -> module pin +

Kauj Ruam 7: Cov Lus Qhia thiab Cov Lus Qhia

Cov Lus Qhia thiab Cov Lus Qhia
Cov Lus Qhia thiab Cov Lus Qhia
Cov Lus Qhia thiab Cov Lus Qhia
Cov Lus Qhia thiab Cov Lus Qhia

thaum tsim koj tus kheej cov phiaj xwm nrog Arduino, muaj qee qhov kev dag uas yuav pab tau kom nco ntsoov yog tias koj raug daig.

· Nco ntsoov tias koj suav nrog lub tsev qiv ntawv raug #include ESP8266WiFi.h

· Nco ntsoov tias koj tau nyeem tawm ntawm qhov chaw nres nkoj raug hauv Arduino 115200 instated ntawm chaw nres nkoj 9600 Serial.begin (115200);

· Txoj haujlwm tsis xav tau lub zog ntxiv.

· Tsis tas li, nco ntsoov tias siv sau SSID raug thiab tus lej nkag mus rau koj li WIFI network hauv zos

const char* ssid = "YOUR_SSID";

const char* password = "YOUR_PASSWORD";

· Thaum koj qhib lub vijtsam txuas kom ntseeg tau tias qhov URL tau qhia zoo li no:

Siv qhov URL txuas no: https://192.168.1.100/, luam qhov URL thiab muab tshuaj txhuam rau hauv koj lub vev xaib.

* Tsab ntawv txuas

Pom zoo: