Surveillance Car using ESP32 Cam module | ESP32 Camera wi-fi car 🚓
Vložit
- čas přidán 1. 07. 2024
- In this video we are going to make camera surveillance car 🚓 using esp32 cam module.
We will capture images using camera present on the car and send these images to our mobile phone using WebSocket through wi-fi connection.
We will also control the car with our own improved mobile app.
I have explained in details each step along with code.
👉Please subscribe: czcams.com/users/hashinclude...
👉Components list:
✅ 4WD Car kit amzn.to/3t1WcCc
✅ ESP32 Cam module amzn.to/3UIyib1
✅ L298N motor driver module amzn.to/3hfLIwJ
✅ 7-12 V DC Battery (in our case lipo 3s battery) amzn.to/4ewRm6G
✅ Breadboard amzn.to/3sXgZqC
✅ Arduino Uno amzn.to/3z97ACS
✅ Double sided tape amzn.to/3KSJdfa
✅ Glue gun amzn.to/3zfhwe4
✅ Jumper wires amzn.to/3heE3Pa
👉 Shorts Channel :
/ ujwalnandanwar
👉Code and diagram:
github.com/un0038998/CameraCar
👉ESP32 board URL:
dl.espressif.com/dl/package_e...
👉AsyncTCP Library:
github.com/me-no-dev/AsyncTCP...
👉ESPAsyncWebServer Library:
github.com/me-no-dev/ESPAsync...
👉Wi-Fi Car
• Smartphone controlled ...
👉Hand Gesture controlled car
• Hand Gesture Controlle...
👉Bluetooth car
• How to make Bluetooth ...
👉Obstacle avoiding car
• Arduino Obstacle Avoid...
👉Arduino RC car using nrf24l01+ module
• Arduino RC car using N...
👉Watch more videos:
/ hashincludeelectronics
👉Follow us on Instagram:
/ hashincludeelectronics
⏱Chapters
00:00 Intro
01:00 Components
01:34 Car Assembly
03:38 Code Explanation
07:01 Code upload (Using Arduino Uno)
08:14 Mobile App
08:48 Car Demo
12:19 Important Points
#esp32cam #surveillancecar #hashincludeelectronics - Věda a technologie
Innovative idea and perfect presentation.👏🏻👍🏻
Thank you 👍🏻
It's really amazing project thank for this.
Thank you 👍🏻
As you helped, I changed it to a 12v battery and ran it, and it worked normally. It must have been difficult to answer due to the time difference, but thank you for kindly answering until the end.
This is awesome news 👏🏻👏🏻 good power supply always sorts out most of the problems . I am glad that I could help you 🙂cheers 👍🏻
@@hashincludeelectronics Once again, thank you for your kind help.
@@user-ny7hu4xz3xhey there may i know what was ur problem? Can we connect i have to submit this as a project in my college if u can assist me with this please provide ur Instagram handle or so?
#hashincludeelectronics
Thanks For This Detailed Project Sir..
It Worked in The First Attempt.
Code Explanation were Awesome.
Pin Diagrams Helped a Lot.
Thanks a Lot Sir.
Awesome and well done 👍🏻
Great project. Is it possible to add a label with a sensor value on a web page? If yes....how I can do it?
Hey you got any alternative for Esp32 Camera module ?
thank you very much, Of all these videos, it's very easy for me to understand
Thank you very much 👍🏻👏🏻
Thank you friend your video is very Helper
Thanks for checking out the video 👍🏻👏🏻
Especial Thanks for explaining the code. I'm subscribing for it.
Thank you very much 👍🏻
Hello, nice video, I also watched your pan tilt video, can you please combine both of these, like fitting the pan tilt on this car and using both
Thanks for checking out video and your comments 👍 Combining these both would be very interesting idea. Will see if I can do that in near future. Or you can try yourself and let us know how it goes.
@@hashincludeelectronics Hi, I will try to combine this project with Pan-Tilt Project.
Could you please assist me with the pin arrangement?
Since both of the projects use the same pin 12 - 15.
@@agungliem1219 that’s great . Yeah I would help you on this . You can try using gpio1 and gpio3 which are uart pins VRX and VTX. We are not using serial communication so these pins should be good . Use these pins for 2 servos . Do not use gpio16 pin with camera.
@@hashincludeelectronics Thank you, I will try this.
@@agungliem1219 sounds good . All the best and let me know if you face any issue 👍🏻
Awesome Ujwal !!
Thank you 👍🏻
Super project! worked like a charm for me. I have also tried the earlier pan tilt servo project.Thanks a lot.
Awesome 👏🏻
Did your website load?
for me alao the website is not loading
@@parithosh8069And if i connect mywifi car ssid then how i will load the ip on chrome without internet
@@shadowfighter7085 can you connect to My-wifi car network ?
Thanks for the great and very detailed project. Followed it literally and worked in the first attempt (my granddaughter thinks I am a genius!). However, when using the robot, sometimes the image freezes on the screen of the cell phone. Is there a probable cause for it and a way to fix the freeze?
I am glad that you liked the video and it worked 🙂👍🏻. Not sure if you already changed one setting as suggested in video . We need to set something like MAX_QUEUE_MESSAGES to 1 in the websocket library. I have described in the video . Please set it and re upload the code if not done previously. That should solve the problem .
I am impressed that you answer all questions promptly. Thank you very much.
@@darcynog thank you very much for kind words 🙂👍🏻
Hey man, love your video. Is it possible to adjust the code so the car has an auto pilot mode to avoid obstacles once you've determined a path for it
Thanks for checking out the video and your comment. This project will be quite complicated. Will try to do this in coming days.
@@hashincludeelectronics Thank you so much, this is much appreciated
Thanks a lot , Great Explanation
Thank you very much 👍🏻👏🏻
I loved it ❤
In the wifi and password space in the code should we enter the wifi and password credentials of which the system is connected or does the esp 32 cam module has it's own wifi?
const char* ssid = "MyWiFiCar";
const char* password = "12345678";
These lines in the code are these the credentials of the wifi signal produce by the esp 32 cam module or are these the credentials of an existing wifi network
Please keep it as it is. Esp32 cam will create a wifi network with these credentials. You need to connect to this ssid and password 👍🏻👏🏻
The code is getting uploaded properly
But when I apply the voltage the four motor start moving
And I'm not getting the wifi signal what might be the reason
@@samarthkashyaphs9279 check for loose or wrong connections 👍🏻👏🏻
Just that I don't understand it when I didn't make any changes there :-( Editing the code won't be a problem, but unfortunately I have no idea where to rewrite it.
In that case you need to learn little bit of coding . It’s not that difficult . Give it a try 👍🏻
Mata code eka එවැන්නකි
jabardast 😍😍😍😍😍😍
Thank you 🙂
Nice... It's working perfectly ❤
Thank you very much 👍🏻👏🏻
hi bro
mera work nhi kr raha can you help ?
I Have Tried to make this same project for a long time....
But it didn't Work...
But your video is pretty better than the others (Explaining is Nice)...
I should try it again...
How do i get the app after making the car please can I Know ???
Thank you very much for checking out video and your kind words 👍🏻. Regarding app , once you upload the code and restart the esp32cam, connect to wifi on mobile using MyWiFiCar ssid and password as 12345678. Then type 192.168.4.1 in your mobile browser like google chrome . It should open the app . Let me know if you face any issue . I have explained this in video as well .
@@hashincludeelectronics Thanks Very Much
my car is not giving me any wifi signal to connect what should i do
Please make sure you are using rechargeable battery 👍🏻👏🏻
nice it work perfectly. the only issues I face is "brownout detector was triggered"
Thanks for checking out the video . 👍Provide good rechargeable battery supply.
Hello friend..i really appreciate the work you did,i made a follow up on every step and now the prototype is working fine
Nice job 👏🏻👍🏻
Hii I am facing a problem in the project when i am uploading the code the code uploads but after when i connect ESP32 to car the car moves normally like when we connect battery to a motor the tyres are moving continuosly and also the wifi name is not showing CAN YOU PLS HELP ME OUT😢😢😢😢
Pls help me out
Please check the video for any missing step . 👍🏻👏🏻
@@hashincludeelectronics I have checked the video many times And I have not missed any steps can you pls tell me what's the mistake
@@saksham-62061- power issue
2-wrong connection (either on code or on cables)
@@saksham-6206did u get the WiFi to show up? If so what did u do to fix the issue
Bro my esp32 cam got heat up and is no longer connecting to wifi. When I connect it, it automatically disconnects after 3-5 seconds but now it's not even connecting. Bro my whole project is ruined. Please help
Same here bro 😖
Same here bro😭😭😭
Re-upload the code
Same I am also facing
@@alkasingh7815did it worked ?
By reaploading the code
This is awesome 👍😎...
I second this👍🏻😎
Thank you 👌🏻👍🏻
Keep up good work , you are truly inspiring and keep motivating us... :)
Give me the idea for to other functions like gsm and gps etc..
Or do you have to edit lines 484 and 485?
Love your code for stream video. Really short...
Thank you very much 🙂👍🏻
es el unico que me funciono jejje muchas gracias excelente video :)
Muchas Gracias 🙏
GREAT VIDEO
Thank you very much for checking out the video 👍🏻👏🏻
GERMAN EMPIRE WILL MAKE THIS TECHNOLOGY NOW >:)@@hashincludeelectronics
If you edit those 2 lines, what should you do?
DTI ( Digital Thinking Innovation ) Lab Passed Successfully 😂
awsome brooo !!!
Thank you very much 👌🏻👍🏻
@@hashincludeelectronics your wellcome haha
Sir, I love your projects very much. Sir can you please make a 6 dof ps2 controlled robotic arm car and give me the circuit diagram and the code for the 6 dof ps2 controlled robotic arm car?
Thanks for checking out video 👏🏻👍🏻. I have question that how this car will look like ?
Perfect presentation although you speak very rapidly. Many thanks for this project. Would it be possible to add a collision protection using an HC-SR04 US sensor and defining 10 cm or so as minimum distance?
Thanks for checking out the video 👍🏻👏🏻. Yes we can add ultrasonic sensor in this project . I have not used this in any of my esp32 project yet . I generally use NewPing library in Arduino boards for ultrasonic sensor . For esp32 NewPing library will not work . You need to read the ultrasonic sensor using pulseIn method . Please check more details on internet in this 👍🏻👏🏻
Straightforward using the HC-SR04 in the loop doesn't work. Blinking without delay makes the WIFI unstable. Using a second ESP32 with distance calculation and relais between LN293 and the motors works, but is a bit clumsy solution. I'll continue my research. Perhaps multitasking with the second core in the ESP32 is a possibility.
Good observation and finding . I need to use HCSR04 in esp32 for my next project. I am going to try it 👍🏻👏🏻
Please can you make a video on how to capture and save image on laptop using esp 32 cam please please please before 18 sept
Very Nice. Any way to view the camera and control the car from anywhere... outside of the local network?
Currently we can not . However I am finding a way to do it . Will let you know once I test it .
@hashincludeelectronics but I am using the 18650 lithium ion 3.7v 2600mah 2 batteries
Make sure those batteries are charged fully 👍🏻👏🏻
Great job Done
How we Add More Option add like Car Front light and Haron bib
Thanks 👍You can easily add those additional option in the code. Just copy paste the existing sliders/button and change the name.
Nice video bro, all explained well. I have one question. I already try your project and everything is fine until i control the car. The wifi disconnect after the car move a bit. Is the cause from my battery?
Thanks for checking out the video 👍🏻. Yes . Please use only rechargeable battery .
Great project
Can you make it from nrf24l01 transmitter and reciver please
Thank you . Actually this module itself works on wifi communication so should not be a good idea to use nrf on top of it (nrf also uses same 2.4 GHz band 😉). May be if we use other camera module which does not have communication inbuilt , there we can use nrf trans receiver module .
Great project really enjoyed. Where does the wifi from "MyWifiCar" come from? Also could we replace it with our own wifi to make it stronger? Thanks
Thank you very much for checking out the video 👍🏻👏🏻. This project creates its own wifi network hence the ssid . You don’t need to use your home wifi credentials.
ESP32 does not require any internet connection? Please sir answer me...I am from Bangladesh sir, and I loved your video ❤️
In this project esp32 works in AP mode which creates local WiFi network itself . And our mobile can connect to it . We don’t need any internet for this.
Interesting video. Is it possible to connect the esp32 cam module to arduino and not directly to l298 motor driver but can still have the functions?
Thanks for checking out the video 👍🏻. However I did not understand your question .
nice project ! which app you used ?
It’s inbuilt in Arduino code and created using html and java script 👍🏻
Nice project ,My son is trying to do this project he is facing some issue uploading the code to the ESP32 cam ,how do we contact .
Instead of using L298N .. L293d motor drive sheild can be used ?
No . Please use only L298N module👍🏻👏🏻
Sir, I don't want to control it from phone, but just want the camera view. As I want to add this ESP32 cam module, to a hand following robot. How to do that?
And, in that, hand following robot I used Arduino uno, and a Motor driver shield, do i need to add 98 N Motor driver now?
You can use it as it is . 👍🏻👏🏻
incredible
Thank you very much 👍🏻👏🏻
@@hashincludeelectronics welcome. i keep used yr vid as guidance
The website app for this car is working for now itself in Android pls tell Because i am going to try this
@hashincludeelectronics Great project but I have a question that can I use 11.1v 2200MAH battery??
Yes you can use that . That’s a nice battery having good power 👍🏻👏🏻
@@hashincludeelectronics Thanks
bro, if we have to connect the io 12 pin to ena and enb pin, then we have to remove its upper cover or not?
Yes we have to 👍🏻👏🏻
Yes i used same ssid and password
Then password entered and going to connect
And says its wrong
which creditionals i put it in ssid and password my own or your project in that case im confused
Use the credentials from the video 👍🏻
Which Arduino ide version you are using
This is 1.8.13 . 👏🏻👍🏻
Do i use lipo 7.4v and arduino chip smd? Please answer me, thanks.
Nope . This project needs esp32cam module .
are we supposed to disconnect all the connections from adruino and carry on with the motor module ?
Yes please.
If we connect en a and en b then wifi not shown
But without that connection wifi is showing
Instead of zippy 1500 mah dc battery
We can use the li ion battery?
Yes you can 👏🏻👍🏻
how can i add taking photo function by this can you explain me?
What is the car mobile can u please explain further
On which platform do you develop the control panel applications?
It’s html and java script . So I create sample html page on windows and then add that text code into Arduino code .
Hello sir. I need to do the obstacle avoidance car which capture the image by esp32 camera when obstacle is detected. Can we please discuss about that?
Where do you want to store the captured image ? 👍🏻👏🏻
Does the source of the voltage matter? Does it HAVE to be LiPo? I have a surplus of 18650 cells and some rechargable AAs and wonder if i can use these. Also all videos for these cars use the same motors, can i use different motors? (I need smaller motors) Thank you for your videos
Thank you very much for checking out the video 👍🏻👏🏻. Yes you can use any rechargeable battery . Make sure total voltage is between 7-12 V. Also you can use other DC motor as well👍🏻
Would 4 18650 be too much??
@@hashincludeelectronics
@@hashincludeelectronicscan we use the 9v dc battery (non rechargeable)as power supply.
@@abhinavmb7279 no . Please don’t use that non rechargeable 9v battery . It causes power issues . Use only any rechargeable battery 👍🏻👏🏻
@@hashincludeelectronics 👍
Nice video!! 😄😄😄 I have a question.. If I’d like to use a 6wheel car with 6dc motors… what power source can I use???
You can use the same battery power used in project . Make sure it should be rechargeable battery 👍🏻👏🏻
@@hashincludeelectronicsThanks for the answer
sir i already follow your scheme with cam position like yours, but my video not rotate
thanks for the amazing video. just one question.... after uploading the code and doing all the connections. i have connected to the Mywificar network, and when i go to the 192.168.4.1 im geting the controls and the image but not the video. the page takes very long to load and instead of the video, only few seconds of footage comes with lag and then it stops showing anything. ive done each and every step in the video, including changing the 31 to 1 in the notepad file from the librrary
Try recompiling and reloading the code 👍🏻👏🏻
I have a doubt,
->After u put glue gun and paste the esp32 cam anddo all connections at the first, afterwards hwo do we connect it to arduino?
->After all I tried uploading the code and then do all the connections, in the connections photo You have given the direct current from the battery, where as in the video the thing you have done is you have given connection from the motor driver. Which should I follow now?
->can I use a 9v HW Battery? Or shud i use the Lipo 3s battery itself? Bcoz It looks too expensive. And the budget of the whole project is 2000.
Please reply asap, as i am in the work of the project
Thank you!
Thanks for checking out the video 👍🏻once code uploaded and everything is done , do not connect it to laptop . Just provide power supply with battery. Do not use that 9v battery as it does not provide enough power. Use some rechargeable battery .
@@hashincludeelectronics is duracell 1200mAH rechargable battery be enough
@@hashincludeelectronics nd can u asnwer me the second point?
Bro in discription shows 3 programs
Which program to dump
Please check the video for all the detailed steps 👍🏻👏🏻
Do the TT gear motors have specific positive and negative terminals? And how can I tell which is which?
Not really. You can interchange the wires and the rotation of motor will be reversed. There is no such specific +v and -v terminals for these TT gear motors..
@@hashincludeelectronics Thank you very much! Appreciate the quick response
@@hashincludeelectronics So would I be correct in saying that any 2 terminals of 2 TT gear motors can be connected to any OUT pin of the motor driver?
@@joelkruger6654 yes
in the future you can enter the function capture image brother
That’s good idea 👍🏻
I see that the enA and enB terminals on the motor driver each have 2 pins, do you use 2 female jumper wires for each pin?
I checked the circuit diagram and seems like only the front pin is used, is this correct?
You need to connect both the pins .
@@hashincludeelectronics Because looking here raw.githubusercontent.com/un0038998/CameraCar/main/Diagrams/Camera%20Car.png it seems like only the front pins of enA and enB are connected to IO12?
@@joelkruger6654 oh ok . I understood now . Yeah you need to connect the front pin only.
1:39 bro did u just solder the wires to the motors without putting anything else or you put glue type thing?
It’s up to you 👍🏻
Hello, I did everything like in the movie and it works great, but I have a problem with the image from the camera, or the pmalu refreshes or not at all and the image is still
There is one setting which says MAX_MESSAGE_QUEUED that needs to be changed . Could you please check that part in the video ? It’s must needed . It will resolve your issues .
Is it possible if i use x6mini camera instead of esp32 cam?
I am not aware about that cam module 👍🏻👏🏻
Is it possible to use LCD touchscreen with ESP32 for controlling this car and getting video from it? To avoid using cellphone...? Like WT32 SC01 plus or even T-deck with mounted trackball?
You need to have touch screen device and also internet browser to open this app and work properly . If your LCD screen device supports all these then yes you can use 👍🏻👏🏻
So, web video server or access point is the only way to capture video from esp32cam?
Thanks for the project for ESP32-CAM with AP mode in HTTP Web but I try to download the project in the link and add the library, but I find that it always cannot timely to update the video even if I close the Bluetooth and other 2.4gdevice. Could you help to check it ?
Thanks for checking out the video 👍 However I did not get the question properly.
Could you please elaborate more or you can send me the query on my email id un0038998@gmail.com.
czcams.com/video/DS3WBF2clsQ/video.html
Very nice project sir❤ I have an L293d motor so will the codes be same for that also or will there be any changes?
Yes there will be change . You need to check the pins connection according to L293D module and make changes in code . 👍🏻👏🏻
Thank you so much sir🙏
@@darkghostrider2014 Welcome 🙏
Sir could you please tell me where can i get the enA and enB speed control pins in the L293d motor module it would be really helpful!!
where in code needs to change to rotate camera 90 degree?
IF I KEEP COS AS IS SUPPLEMENTARY CAN I REFUND?
Thank you very much sir for this amazing explication but i have problem when i write in the browser the ip adresse . Nothing do and i dont get the web page of the application . Please what can i do in this case . Thank you
You need to connect to wifi as shown in video . Please check 👏🏻👍🏻
After dumping the program the wifi not shown in phone
There's a small problem... How to connect 2 cables into io12
The EnA and EnB is 2 different ports... So do we cut the jumper cable and then connect the 2 and then put it together?
Yes exactly 👍🏻👏🏻
sir we can fix Antenna to esp32 cam to increase the range
Please do it and share the experience 👍🏻👏🏻
should we use the same IP address or should we generate one for ourselves ?
Yes the IP Address should be exactly same as shown in video. You can change SSID and password if needed as you like Or you can keep it same.
Can you control it without connecting to the same network? Example rc car on wifi, phone on mobile data
Sorry I did not get your question properly .
which application you use for creating diagrams?
Its fritzing
How many programs it have
And which module to dump
Please check the video for full details👏🏻👍🏻
Nice and interesting Project. Can I convert this to a Mecanum wheel Robot Car using two L298N driver module and using esp32-cam?
Sure you can make that . But make sure you have sufficient pins on esp32 cam to control 2 L298N modules .
I am not very familiar with esp32-cam and my question was in fact regarding wether the esp32-cam has sufficient pins to control 2 L298N driver modules. Any suggestion is appreciated . Both the projects are excellent and a hybrid would be fantastic. Keep up the good work👍
@@cvasantrao I am glad that you thought of using this esp32cam with mecanum wheels using 2 L298N modules 👏🏻👏🏻 actually L298N has 6 pins for controlling so we need total 12 pins which are not available on esp32 cam . However we can still control the L298N using just 4 pins . Ena and enb connected to 5 volts . So we will need total 8 pins only and can be supported by esp32 cam .Can you try it ? Check my mecanum car video for this connection. Let me know if you face any issue .
@@hashincludeelectronics I think we need only nine pins because the 4 enable pins of the L298N can be connected to one GPIO. So we would need only nine pins. I will be ordering the parts very soon and try it out and update you. Thanks again.
@@cvasantrao nice thinking 👏🏻👏🏻 would wait for it 👍🏻
Which device can be used in the place of arduino
You can use any ftdi module for code upload 👍🏻👏🏻 .
Can I use 9volt alkaline battery for it
No. Please use only rechargeable battery 👍🏻👏🏻
ledcSetup' was not declared in this scope; did you mean 'ledc_stop'? How to Solve
Please install lower version of esp32 board 2.0.16 👍🏻👏🏻
Thank you
Can you tell me if I can use esp 32 with 5servo motors?
Sure . You can use those many servos . Do you want to use it with esp32cam or just esp32?
Because if you are using servo motors with esp32cam and with ESPServo library , then you should consider checking out my video on PanTiltControl . There I have explained how to use servo with cam. Because there is some timer conflict can happen . However you can easily use servos with other esp32 modules and ESPServo library .
@@hashincludeelectronics can you help me plz I want to stream video as a feedback of the actions of a distance robot which is hand robot and hand robot needs 5 servo motors
So can you suggest for me suitable controller for interface with servo motors and I can make steaming with it ?
Is it possible to connect the ESP32 Cam module to my own website which I made and hosted with python?
Yes you can connect it . You need to use AP mode 👍🏻👏🏻
when I drag speed & light slider, This sentence " Serial.printf("Key [%s] Value[%s]
", key.c_str(), value.c_str()); " works exactly. But when I push buttons(move buttons), the sentence is not display anything. Please inform me.
Thanks for checking out video 👍🏻. Are you using it on computer screen or laptop ? Those move buttons will only work on touch screen like mobile .
Can I use esp32 as programer? Instead of Arduino uno
You can use any valid programmer 👍🏻
Sir this project is so good!! . But i didn't understand about code part and website and all sir please can you help me out
The website coding is done in Arduino code itself . It is built in html and JavaScript 👍🏻👌🏻