Tuesday, 28 February 2023

How to make a surveillance robot using ESP32 Cam Module | Hash Robotics

 63,110 views  25 Oct 2020
Hello, humanoids...
In this video, I have made a surveillance robot using the ESP32 Cam module.

ESP32-CAM is a low-cost development board with a WiFi camera. It allows creating IP camera projects for video streaming with different resolutions. ESP32-CAM has a built-in PCB antenna.

It has OV2640 Camera Module 2MP For Face Recognization has a very competitive small-sized camera module that can operate independently as a minimum system with a footprint of only 40 x 27 mm.
It is suitable for home smart devices, industrial wireless control, wireless monitoring, and other IoT applications.

Get source code and circuit here: https://bit.ly/2Hyvm0g https://drive.google.com/file/d/1_i4Gh2LnE9zR7uabqBsL2DCDYT5ruI-r/view
ESP32 board manager URL:

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json


Kindly watch my other videos...
Hash the humanoid robot using Arduino:    • Hash humanoid rob...  
How to make WiFi controlled robot using Nodemcu ESP8266:    • WiFi controlled r...  
How to make a gesture control robot using Nodemcu ESP8266:    • Gesture control r...  

Stay connected...
Facebook: https://www.facebook.com/hashrobotics/
Instagram: https://www.instagram.com/hash_robotics/
Twitter: https://twitter.com/hash_robotics

Color tracking using ESP32-CAM and OpenCV | Hash Robotics

Hello Humanoids... This video is based on tracking color object using ESP32-CAM and OpenCV based on the RGB values. OpenCV is a cross-platform library using which we can develop real-time computer vision applications. It mainly focuses on image processing, video capture and analysis including features like color detection, face detection and object detection. Get circuit diagram and source code here: http://bit.ly/35Omzk3 Kindly watch my other videos... Mini humanoid robot using ESP32 Hash Junior:    • Mini humanoid rob...   Making of mini hash humanoid robot:    • Making of mini ha...   Humanoid robot with voice and face expression using ESP32:    • Humanoid robot wi...   Mini hash humanoid robot control with Google Assistant:    • Mini hash humanoi...   Stay connected... Facebook: https://www.facebook.com/hashrobotics/ Instagram: https://www.instagram.com/hash_robotics/ Twitter: https://twitter.com/hash_robotics

 

12 Brilliant ESP32 Projects to try in 2023!

This video contains 12 Amazing projects using ESP32. Subscribe to our channel to never miss any good project ideas. PCBA from $0 (Free Setup, Free Stencil), Get $54 new user coupons: https://jlcpcb.com/?from=TPC Get your free trial version of the Altium designer: https://www.altium.com/yt/topprojects... Want to learn Electronics the easy way, then check out our course: https://courses.etechnophiles.com/cou... About JLCPCB: JLCPCB is a leading global PCB manufacturer, that provides the rapid production of high-reliability and cost-effective PCBs with the best customer experience in the industry. About Altium: Altium is the industry’s leading PCB design software that combines schematic, layout, and everything else you need in one environment to effortlessly design printed circuit boards. -------------------------------------------------------------------------------------------------------------------------------------------------------- Disclaimer: All the projects in this video are the sole property of the creators. We are thankful to each one of them for sharing their projects with us or allowing us to include their project in this video. Check out the full project video of the respective creators below: ----------------------------------------------------------------------------------------------------------------------------------------------------------- Project links: 12. Picoclick- ESP32 based IOT button | Source: makermoekoe His channel:    / @makermoekoe   Project video:    • Picoclick-C3 is t...   11. DIY E.D.I.T.H Smart Glasses | Source: the Technowright His channel:    / @thetechnowright   Project video:    • Making a Real lif...   10. Smartwatch | Source: Volos Projects His channel:    / @volosprojects   Project video:    • Let's make Smartw...   9. Multiple ESP32-CAM for Security System | Source: That Project His channel:    / @thatproject   Project video:    • Multiple ESP32-CA...   8. 3D printed Steam Train | Source: DIY Machines His channel:    / @diymachines   Project video:    • 3D PRINT a STEAM ...   7. Weather station | Source: Volos Projects Project video:    • Weather station u...   6. Solar Power Monitoring System | Source: How To Electronics His channel:    / @howtoelectronics   Project video:    • IoT Based Solar P...   5. Smart Doorbell | Source: Smart Solutions for Home His channel:    / @smartsolutionsfo...   Project video:    • A DIY Smart Doorb...   4. Door Lock System | Source: techiesms His channel:    / @techiesms   Project video:    • IoT Door Lock usi...   3. ESP32 Internet Radio | Source: Volos Projects Project video:    • ESP32 Internet Ra...   2. IoT Remote | Source: techiesms Project video:    • IoT Remote to con...   1. Surveillance Robot | Source: Hash Robotics His channel:    / @hashrobotics   Project video:    • Surveillance Robo...   ------------------------------------------------------------------------------------------------------------ Chapters: 00:00 Intro 00:13 Picoclick 00:59 E.D.I.T.H Glasses 01:44 Smartwatch 02:30 Security Camera 03:58 Steam Train 04:39 Weather station 05:19 Solar Power Monitoring System 06:01 Smart Doorbell 06:39 Door Lock System 07:20 Internet Radio 07:58 IoT Remote 08:39 Surveillance Robot 09:15 Outro --------------------------------------------------------------------------------------------------------- Kits we recommend----- The only Raspberry Pi kit you need(our pick):- Amazon: https://amzn.to/3Ikabcn All in one Arduino Kit (our pick):- Amazon: https://amzn.to/35a5jIv ESP8266 Weather Station Kit:- USA: https://amzn.to/3nQwcIn Best ESP32 Kit(our pick):- USA: https://amzn.to/3xn6tua

Internet & Manual with Feedback | Home Automation with Blynk | esp32

 

 All sources are provided free or charge but you need to buy the components. The links to purchase the components are also provided.

 

5,915 views 29 Mar 2020 IoT Projects using Blynk JLCPCB Prototype for $2(Any Color): https://jlcpcb.com In this video, I have shown to make your own Internet and Manually controlled home automation project along with the real-time feedback this time using Blynk IoT platform Not only that, you can also control the appliances without internet with your regular electrical switches like you normally do in your day to day life. Goto Blynk forum for more help : http://community.blynk.cc Thumbnail designed by - Darshil Rathod (Instagram - @darshil_rathod2) darshilrathod0@gmail.com Subscribe now to watch some amazing videos coming up soon. http://bit.ly/techiesms_youtube _________________________________________________________________ Important Links You can Download the code,PCB design and every other details form this project from my website:-https://techiesms.com/iot-projects/in... Blynk app for iOS :- https://apps.apple.com/us/app/blynk-i... Blynk app for Android :- https://play.google.com/store/apps/de... Goto Blynk forum for more help : http://community.blynk.cc _________________________________________________________________ Components List ESP-32 development board - https://amzn.to/2LvBkhI 5 volts Non-latching Relay - https://amzn.to/2M4LKUX Hi-Link 5 volts Power Supply - https://amzn.to/2URBkfg Two pin terminal connectors - https://amzn.to/2UT2TVk BC547 transistor - https://amzn.to/2Akuqpl Buzzer - https://amzn.to/32F1rZq _________________________________________________________________ Buy the components from here Visit my Amazon Storefront for purchasing any components you need for this project or any other project :- http://bit.ly/techiesms-Amazon-Store _________________________________________________________________ Subscribe Now :- http://bit.ly/techiesms_youtube Facebook :- http://www.facebook.com/techiesms Twitter :- http://www.twitter.com/imtechiesms Instagram :- https://www.instagram.com/techiesms/ Website :- http://www.techiesms.com WhatsApp number :- +91 82000 79034 _________________________________________________________________ #techiesms explore | learn | share

Monday, 27 February 2023

How to setup and use ESP32 Cam with Micro USB WiFi Camera

Testing 4WD Esp32-cam Arduino Car

https://s.lazada.com.my/s.UhSku
The board in Arduino should be AI Thinker ESP32-CAM.
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json  has the latest versions but cannot be downloaded into my Intel Macbook Pro.
 
For Mac, use the link below.
The board manager link below can be downloaded into my Macbook but only older versions but ESP32-CAN is available for selection.

https://dl.espressif.com/dl/package_esp32_index.json

 It keeps on crashing so we need to reset it frequently. The reset pin is at the bottom of the ESP32 board.


The camera sideways. It's highest resolution is 1600 X 1200. This picture was taken with the lens protector still attached.

The test was made using the example sketch, esp32/camera. Board is AI Thinker esp32-cam.
 
This kit is based on the project posted at hackster designed by 
 
Published © Apache-2.0.
 
 
The wiring should therefore follow its code. The control source codes look good. The circuit diagram is correct. 5V is actually Vcc input to ams1117 3.3V voltage regulator. The polarity of the wiring that is not clear because the right wheels will rotate backward if driver normally forward.

 
When compiling the original code with the edit for my Wifi router, it failed to compile with esp32 library version 2.0.6. As suggested by the blog below, I downgraded to version 1.0.6 for it to compile.

After a few recompiles, it managed to work somehow. The works perfectly. Camera does not produce any image. The controls are all messed up. The right motors work all the time, but the left motor worked rarely, but need to use the Android Chrome in my mobile phone. Browsers from my PC, do not work with the controls at all, only the flash.

My wirings appear to be reversed. The pins that worked for my wiring is as below. Physically, I reversed the right motors. out1 is negative, out2 is positive. It is better to do the adjustment in source code, rather than trying to correct the orientation physically.

Flash is at pin 4, but there is a port also at pin 4.

/* Defining motor and servo pins */
const int RMotor1 = 14;
const int RMotor2 = 15;
const int LMotor1 = 12;
const int LMotor2 = 13;
const int ServoPin = 2;
const int FlashPin = 4;
 
 

Installing ESP32 Board in Arduino IDE 2.0 (Windows, Mac OS X, Linux)

 

There is a new Arduino IDE—Arduino IDE 2.0 (beta version). In this tutorial, you’ll learn how to install the ESP32 boards in Arduino IDE 2.0 and upload code to the board. This tutorial is compatible with Windows, Mac OS X, and Linux operating systems.

Installing Programming ESP32 Board in Arduino IDE 2.0 Windows Mac OS X Linux

Arduino IDE 2.0 is an experimental software—it is still in beta version. This means that you may find some bugs and some features may not be fully developed.

If you want to install the ESP32 boards on the “classic” Arduino IDE, follow the next tutorial instead:

If you prefer programming the ESP32 using VS Code + PlatformIO, go to the following tutorial:

You migh also like reading the ESP8266 Guide: Installing ESP8266 NodeMCU Board in Arduino 2.0 (Windows, Mac OS X, Linux)

Prerequisites: Arduino IDE 2.0 Installed

Before proceeding make sure you have Arduino IDE 2.0 installed in your computer.

Go to the Arduino website and download the version for your operating system.

Arduino IDE 2.0 Downloads Page downloading software
  • Windows: run the file downloaded and follow the instructions in the installation guide.
  • Mac OS X: copy the downloaded file into your application folder.
  • Linux: extract the downloaded file, and open the arduino-ide file that will launch the IDE.
Arduino IDE 2.0 installation successful Windows Mac OS X Linux

If you have doubts, you can go to the Arduino Installation Guide.

Do you need an ESP32 board? You can buy it here.

Recommended reading: ESP32 Development Boards Review and Comparison

Install ESP32 Add-on in Arduino IDE

To install the ESP32 board in your Arduino IDE, follow these next instructions:

1. In your Arduino IDE 2.0, go to File > Preferences.

Arduino IDE 2.0 open preferences menu to install ESP32 boards

2. Copy and paste the following line to the Additional Boards Manager URLs field.

https://dl.espressif.com/dl/package_esp32_index.json
Additional URLs Field ESP32 Arduino IDE 2.0

Note: if you already have the ESP8266 boards URL, you can separate the URLs with a comma, as follows:

http://arduino.esp8266.com/stable/package_esp8266com_index.json,https://dl.espressif.com/dl/package_esp32_index.json

3. Open the Boards Manager. You can go to Tools > Board > Boards Manager… or you can simply click the Boards Manager icon at the left-side corner.

Arduino IDE 2.0 Boards Manager select test

4. Search for ESP32 and press the install button for esp32 by Espressif Systems.

Install ESP32 boards Arduino IDE 2.0

That’s it. It should be installed after a few seconds.

Testing the Installation

To test the ESP32 add-on installation, we’ll upload a simple code that blinks the on-board LED (GPIO 2).

Copy the following code to your Arduino IDE:

/*********
  Rui Santos
  Complete project details at https://RandomNerdTutorials.com/vs-code-platformio-ide-esp32-esp8266-arduino/
*********/

#include <Arduino.h>

#define LED 2

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  pinMode(LED, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(LED, HIGH);
  Serial.println("LED is on");
  delay(1000);
  digitalWrite(LED, LOW);
  Serial.println("LED is off");
  delay(1000);
}

View raw code

Uploading the Sketch

On the top drop-down menu, select the “unknown” board. A new window, as shown below, will open.

Arduino IDE 2.0 Select ESP32 Board and COM Port

You should select your ESP32 board model and the COM port. In our example, we’re using the DOIT ESP32 DEVKIT V1 board. Click OK when you’re done.

Now, you just need to click on the Upload button.

Arduino 2.0 Upload Button

After a few seconds, the upload should be complete.

Programming ESP32 Arduino IDE 2.0 Upload Successful

Note: some ESP32 development boards don’t go into flashing/uploading mode automatically when uploading a new code and you’ll see a lot of dots on the debugging window followed by an error message. If that’s the case, you need to press the ESP32 BOOT button when you start seeing the dots on the debugging window.

The ESP32 on-board LED should be blinking every second.

ESP32 board Built in LED turned on HIGH Arduino IDE 2.0 demonstration

Serial Monitor

You can click on the Serial Monitor icon to open the Serial Monitor tab.

Open Arduino IDE Serial Monitor Arduino IDE 2.0 ESP32

That’s it! You’ve installed the ESP32 Boards successfully in Arduino IDE 2.0.

Wrapping Up

This is a quick guide that shows how to prepare Arduino IDE 2.0 for the ESP32 Boards on a Windows PC, Mac OS X, or Linux computer.

Remember that Arduino IDE 2.0 is an experimental software, so it might have some bugs, and some features might not be fully functional.

Next, you might want to read: Getting started with ESP32 or learn more about the ESP32 board with our resources:

Thank you for reading.



Build Web Server projects with the ESP32 and ESP8266 boards to control outputs and monitor sensors remotely. Learn HTML, CSS, JavaScript and client-server communication protocols DOWNLOAD »

Enjoyed this project? Stay updated by subscribing our newsletter!

29 thoughts on “Installing ESP32 Board in Arduino IDE 2.0 (Windows, Mac OS X, Linux)”

  1. Hi

    Can this be installed as an independent stand-alone entity, leaving the existing IDE in place and still operational ? Will it pick up the existing sketch folder and have access to all the libraries already installed ? I only ask because my past experience of installing updates to the existing IDE has been less than happy. I have ended up having to reinstal libraries and boards as updating has always seemed to be a case of installing a new version over the top of an existing version, rather than just running an ‘invisible’ update file …

    Reply
    • Hi Geoff.
      I think you can have both Arduinos installed without conflicts. Just make sure you install the new Arduino 2.0 on a different location.
      Regards,
      Sara

      Reply
      • Thanks Sara. That makes sense. A little while ago, a colleague sent me this :

        which details another IDE for use with Arduino called Visual Micro. I’ve not tried it yet, just watched the video, but I have to say that it looks very good and does at least what the new beta Arduino IDE does, and maybe better yet. Might be worth you taking a look to see what you think ?

        Reply
    • Hi.
      At the moment, as the IDE is still in beta version, I prefer to use the “old” Arduino IDE or VS Code + PlatformIO at the moment.
      Andreas Spiess has done a great video explaining and comparing the differences.
      Regards,
      Sara

      Reply
  2. I loaded but could not locate the tools folder to put in the hooks for SPIFFS uploading to the Tools Tab. I had tool folders all over the place in an attempt to get it to appear.
    Have you guys installed that option?
    thanks.
    Dave

    Reply
  3. Hi Dave,
    I had that problem a while back and raised a query. Their reply is that the tools were probably implemented in Java whereas the Theia IDE framework Arduino IDE 2.x is based on supports VS Code extensions.
    The full reply is at
    https://forum.arduino.cc/t/tool-to-upload-data-to-spiffs-is-missing/699986
    I got around this by using OTA updates, as described by Sara and Rui at
    https://randomnerdtutorials.com/esp32-ota-over-the-air-arduino/
    Good luck, Martin
    P.S. Geoff, I have both versions of the IDE installed and running against the same sketch base.
    P.P.S Said, the major usage difference is that you can only have one sketch open at a time which makes copy/paste between sketches difficult.

    Reply
    • Hi Said,
      seems like the one sketch issue may be related to my Mac running Big Sur. Other OSes don’t have that problem.
      You can run both so give it a go.
      Regards, Martin.

      Reply
  4. Have they done anything to fix the Wemos-lolin32-oled board code uploading issues? I’ve spent hours on hours this week trying to get code loaded on this board without success using both Arduino IDE and VS code platformio on Win 10. Any combination of pressing/holding/releasing the EN and Boot buttons does not help.

    Reply
      • I started with that tutorial as soon as I had issues. No joy. What is odd is that every once and a while I can get the board to appear on the platformio device list under com12, but then it disappears again. I don’t find any pattern as to when it appears. The board otherwise functions fine with the code already running on it but I am trying to change that code. There is no EN pin on this board, like other ESP32 boards, to which to ad a capacitor. I cannot find a board schematic either or I would figure out another way to attach a capacitor from the EN pin to ground.

        Reply
  5. hi Rui.

    do you have tutorial about tensorflow lite run on ESP32?
    since I read from this https://www.tensorflow.org/lite/microcontrollers
    esp32 is one of the boards that supports tensorflow. i want to make something about ai on esp32. such as recognizing the sound to run or turn on something. but still don’t know where to start. hope you make a simple project using esp32 and tensorflow in the near future.

    best regards,

    Reply
      • hi.
        I hope you could make some tutorial about tensorflow in the near future, since AI especially deep learning become hot topic in the last few years. btw, I really enjoy all of your tutorials, easy to understand for beginner like me.

        regards,

        Reply
  6. Hello, the arduino ide2.0 does not recognize the esp32 wrover kit while the arduino ide 1.8.5 works with the wrover kit as an esp32 wrover module The wrover kit is simply and esp32 wrover module with ili9341 lcd ,sd card reader/writer, camera bus expansion ,as well as I/O headers and much more for an experimenter it is the ideal playgroundas it is ready out of the box to program /plug and play why this unit is being ignored or skipped over does not make sense,Why it does not work in arduino 2.0 I do not know???Please lets get it fixed.

    Reply
  7. Hi
    I see the arduino beta 2.11 works with my ESP32 🙂
    Do you know how or are you going to investigate using a JTAG debugger with the new arduino IDE?

    Reply
  8. Hello Sara,
    Im new to arduino and im trying to get a handle on how to use unix time on an Uno board.
    Is the information posted above valid for the Uno and Nano boards?
    And while I have your attention, is there a hidden ‘find’ function in the Arduino IDE to simply replacing text in the sketch.
    Now Im using MS Word.
    Is there such a function in Visual Micro?
    Im in the process of moving into Visual.

    Reply
    • Hi.
      To replace text in an Arduino sketch, you just need to press CTRL+F and a new window will open to find/replace text.
      Regards,
      Sara

      Reply
  9. Hello,
    I always have to hold the ESP32 “boot” button during upload of the sketch to my ESP32 DEV1 board, using Arduino 1.8.16. Its not mentioned in your tutorial.
    Is that boot holding still the case with Arduino v2?

    Thanks,
    Alan

    Reply
  10. My post that politely pointed out your omission of pressing the ESP32 boot button during sketch upload, was deleted by moderator it seems.
    No problem. My participation/signup to this site is now also being deleted.

    Reply
    • Hi.
      It was not deleted. You can see the comment above and you can also see that I answered your comment.
      We receive tons of comments every day on different blog posts.
      It is very difficult to keep up with all the comments.
      If a user never commented before, its comment will be subjected to moderation, which may take some time depending on the load of work we have.
      I never delete any comments.
      I’m sorry for the misunderstanding.
      Regards,
      Sara

      Reply
  11. I run an ESPduino32. But I have occasionally noticed choosing the board DOIT ESPduino32 results in compilation or upload errors. However choosing DOIT ESP32 DEVKIT V1 does not suffer from these issues. So you may want to choose DEVKIT for the ESPduino.

    Reply
  12. I am getting an installation error on attempting to install “esp32 by Espressif Systems” (step 4 above).

    Arduino IDE is 2.0.1. esp32 version is 1.0.6. Computer O/S is Windows 10 Home version 21H2 (build 19044.2075). Problem occurred on two different computers.

    Error is:
    Installing esp32:xtensa-esp32-elf-gcc@1.22.0-97-gc752ad5-5.2.0
    Failed to install platform: esp32:esp32.
    Error: 13 INTERNAL: Cannot install tool esp32:xtensa-esp32-elf-gcc@1.22.0-97-gc752ad5-5.2.0: moving extracted archive to destination dir: rename C:\Users\pjfit\AppData\Local\Arduino15\tmp\package-2000256404\xtensa-esp32-elf C:\Users\pjfit\AppData\Local\Arduino15\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-97-gc752ad5-5.2.0: Access is denied.

    At this point (after the error) C:\Users\pjfit\AppData\Local\Arduino15\tmp is empty (which seems reasonable), but the C:\Users\pjfit\AppData\Local\Arduino15\packages\esp32\tools directory is empty too (which doesn’t seem reasonable).

    I did try running the Arduino IDE as admninistrator, but got the same error.

    Any hints? Thanks.

    Reply
  13. New to this…
    Arduino IDE 2.0.3
    Espressif esp32-wroom-32d dev board w/their board package powered by USB
    Selected ESP32 Dev Module on com5 (get board info reports same)
    Added 10mf capacitor to pins 2(en) and 14(gnd) per your tutorial (works great)
    Loaded Rui Santos “blink_led” code into new sketch
    Compiled/uploaded without error ending on “Hard resetting via RTS pin…” and spinning icon in bottom status bar “Building sketch”.
    Parsing back through compile msgs – “Chip is ESP32-D0WD-V3 (revision 3)”
    No blinking LED (just the solid red LED), no serial monitor output. Pressing either of the onboard buttons (en and boot, I believe) changes nothing.
    Advice, please…Tom

    Reply

Leave a Comment

Close ad