Cov txheej txheem:

Neeg Saib Xyuas Yees Duab: 10 Kauj Ruam
Neeg Saib Xyuas Yees Duab: 10 Kauj Ruam

Video: Neeg Saib Xyuas Yees Duab: 10 Kauj Ruam

Video: Neeg Saib Xyuas Yees Duab: 10 Kauj Ruam
Video: Tsis Deev Koj Thiaj Tsis Seev BY Aka 2024, Kaum ib hlis
Anonim
Image
Image
Video Saib Xyuas Neeg Hlau
Video Saib Xyuas Neeg Hlau

Xav txog yog tias koj muaj tus neeg hlau uas muaj lub koob yees duab ntawm lub nkoj thiab tuaj yeem tswj tau hauv Is Taws Nem.

Nws yuav qhib ntau txoj hauv kev los siv nws. Piv txwv li, koj tuaj yeem xa tus neeg hlau mus rau chav ua noj txhawm rau txheeb xyuas yog tias koj yuam kev tso lub lauj kaub rau ntawm lub qhov cub!

Kuv tau sim sim siv ESP32-CAM cov laug cam txhim kho thiab pom tias nrog ESP32-CAM nws tuaj yeem ua tau yooj yim.

ESP32-CAM yog lub koob yees duab me me nrog ESP32-S nti uas raug nqi kwv yees li $ 10- $ 15.

ESP32-CAM module tuaj yeem ua haujlwm nrog Arduino IDE. ESP32-CAM tus qauv kuj tseem muaj ob peb GPIO pins txuas rau sab nrauv kho vajtse.

Yog li, cia peb pib!

Kauj Ruam 1: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Daim Ntawv Teev Npe:

ESP32-CAM x1

FT232RL FTDI Mini USB x1 - rau kev tso tus lej rau ESP32 -CAM

Dual Channel DC Tsav Tsav L298N x1

Adafruit (PID 3244) Mini Round Robot Chassis Kit - 2WD nrog DC Motors x1 - Kuv tau siv lub chassis no, tab sis koj tuaj yeem ua koj tus kheej lossis yuav lwm lub chassis muaj. Qhov peb xav tau ntawm no yog lub log thiab DC Motors

18650 Roj Teeb Nrog x1

18650 Roj teeb x2 (raws li kev xaiv plaub lub roj teeb AA thiab nws tus tuav tuaj yeem siv tau hloov ntawm 18650 roj teeb)

Mini Pan/ Tilt Platform w/ 2 SG-90 Servos x1

MB102 Breadboard Power Supply Module x1

iRobbie-A iOS App

Kauj Ruam 2: Sib dhos Chassis

Sib sau ua ke Chassis
Sib sau ua ke Chassis
Sib sau ua ke Chassis
Sib sau ua ke Chassis
Sib sau ua ke Chassis
Sib sau ua ke Chassis

Sib sau cov neeg hlau chassis nrog ob lub tshuab DC, 3 lub log thiab mini L298N lub cev muaj zog tsav tswj. Siv siv daim kab xev txhawm rau txhawm rau txuas lub tshuab tsav lub cev rau lub platform.

Kauj Ruam 3: Txuas Cov Hluav Taws Xob

Txuas Hlau
Txuas Hlau

Txuas cov xov hlau raws li qhia hauv kab lus.

Kauj Ruam 4: Npaj Pan/Tilt Platform

Npaj Pan/Tilt Platform
Npaj Pan/Tilt Platform
Npaj Pan/Tilt Platform
Npaj Pan/Tilt Platform
Npaj Pan/Tilt Platform
Npaj Pan/Tilt Platform
Npaj Pan/Tilt Platform
Npaj Pan/Tilt Platform

Rub tawm cov xov hlau los ntawm sab saum toj ntawm lub chassis platform. Npaj cov xov hluav taws xob los ntawm SG-90 servos ntawm Pan/Tilt platform. Hauv txoj haujlwm no peb xav tau tsuas yog Tilt servo.

Txuas lub Yias/Tilt rau saum lub chassis platform.

Kauj Ruam 5: Npaj MB102 Breadboard Power Supply Module

Npaj MB102 Breadboard Power Supply Module
Npaj MB102 Breadboard Power Supply Module
Npaj MB102 Breadboard Power Supply Module
Npaj MB102 Breadboard Power Supply Module

Siv MB102 Breadboard Power Supply Module yog nyob ntawm yeem. Koj tuaj yeem nqa 5V thiab Av rau ESP32-CAM thiab servo motor los ntawm L298N tsav tsheb, tab sis kuv pom tias nrog MB102 nws yooj yim dua. Lub zog txhawb lub zog muaj lub zog khawm thiab ua rau koj muaj kev yooj yim dua nrog thaiv.

Txhawm rau txuas tus qauv rau lub chassis platform, Kuv tau tshem cov pins hauv qab ntawm MB102. Tom qab ntawd, Kuv txuas nws mus rau sab saum toj ntawm lub chassis nrog ob tog sided mounting daim kab xev.

Kauj Ruam 6: Kev Xeem Kawg thiab Sib Sau Cov Neeg Hlau

Qhov kawg thaiv thiab teeb tsa tus neeg hlau
Qhov kawg thaiv thiab teeb tsa tus neeg hlau
Xeem Kawg thiab Sib Sau Cov Neeg Hlau
Xeem Kawg thiab Sib Sau Cov Neeg Hlau
Xeem Kawg thiab Sib Sau Cov Neeg Hlau
Xeem Kawg thiab Sib Sau Cov Neeg Hlau

Txuas txhua ntu siv cov txheej txheem. Siv ib qho ua npuas dej thiab ob tog sib txuas daim kab xev txhawm rau txuas ESP32-CAM mus rau Pan/Tilt platform.

Kauj ruam 7: Upload Code

Upload Code
Upload Code
Upload Code
Upload Code
Upload Code
Upload Code

Nruab ESP32 Ntxiv rau ntawm Arduino IDE:

Ua raws li ib qho ntawm cov lus qhia tom ntej los teeb tsa ESP32 ntxiv rau, yog tias koj tseem tsis tau:

Txhim kho ESP32 Board hauv Arduino IDE (Windows cov lus qhia)

Txhim kho ESP32 Board hauv Arduino IDE (Mac thiab Linux cov lus qhia)

Rub tawm cov cai los ntawm no

Nco ntsoov tias koj muaj ob lub tab nrog cov cai hauv Arduino IDE: esp32_cam_car thiab app_httpd.cpp raws li pom ntawm lub vijtsam.

Ua ntej rub tawm cov cai, koj yuav tsum ntxig koj lub peev xwm network hauv cov kev hloov hauv qab no: const char* ssid = "Your_WIFI_Network" const char* password = "Your_WIFI_Password"

Txuas ESP32-CAM lub rooj tsavxwm rau koj lub computer siv FTDI programmer. Ua raws li daim duab schematic.

Tseem ceeb: GPIO 0 xav tau txuas nrog GND kom koj thiaj li tuaj yeem xa cov cai.

Nias ESP32-CAM on-board RST khawm ua ntej rub tawm cov cai. Khiav Arduino IDE thiab nyem Upload kom tsim thiab nyem cov duab kos rau koj lub cuab yeej.

Kauj Ruam 8: Tau txais IP Chaw Nyob

Tom qab xa cov cai, tshem tawm GPIO 0 los ntawm GND.

Qhib Serial Monitor ntawm tus nqi baud ntawm 115200. Nias ESP32-CAM on-board RST khawm. ESP32-CAM IP chaw nyob yuav tsum tau qhia hauv Serial Monitor.

Kauj Ruam 9: Tswj Koj Cov Neeg Saib Xyuas Yees Duab

Tshem tawm ESP32-CAM los ntawm FTDI programmer.

Txuas ESP32-CAM rov qab mus rau Pan/Tilt platform, tig lub zog thiab nias ESP32-CAM on-board RST khawm.

Rub tawm App los ntawm no Rub lub App ntawm koj iPhone, nkag mus rau ESP32-CAM IP chaw nyob thiab ua si nrog tus neeg hlau!

Kauj Ruam 10: Tswj Koj Tus Neeg Hlau Hauv Is Taws Nem

Koj yuav tsum qhib koj lub router teeb tsa. (google yuav ua li cas rau koj lub router). Muaj koj yuav pom qee qhov chaw, suav nrog qee yam raws kab ntawm Kev Xa Mus lossis Chaw Xa Ntawv Xa Mus.

Qhov tseem ceeb uas yuav tsum tau nco ntawm no yog "Port Range" thiab "Device" lossis "IP address".

Hauv "Port Range" koj yuav tsum ntaus 80-81.

Rau "Ntaus" koj yuav tsum xaiv koj li ESP32-CAM ntaus ntawv. Hauv qee tus routers koj yuav tsum tso tus IP chaw nyob ntawm koj ESP32-CAM hloov lub npe ntaus ntawv.

Mus rau www.whatsmyip.org thiab luam koj tus IP. Siv tus IP no hauv App thaum koj nyob sab nraum koj lub tsev network.

Pom zoo: