LAFVIN ESP32 Manual

Camera 4wdrobot carkit

Advertisement

Quick Links

ESP32 Camera 4WD Robot Car Kit

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for LAFVIN ESP32

  • Page 1 ESP32 Camera 4WD Robot Car Kit...
  • Page 3: Table Of Contents

     Step 2:Wiring ......................2  Step 3:Upload Main Code ..................5  Step 4:Mobile Device Connects to the ESP32-Cam Robot ........6  Step 5:Web Remote Control ESP32-Cam Robot Car ........... 10  How to Upload Main Code ................... 12 ...
  • Page 4: Step 1:Assembly Tutorial

    Step 1:Assembly Tutorial  For more details refer to Assembly Tutorial Video.mp4 1/38...
  • Page 5: Step 2:Wiring

     Step 2:Wiring 2/38...
  • Page 6 3/38...
  • Page 7 4/38...
  • Page 8: Step 3:Upload Main Code

     Step 3:Upload Main Code Tip:Since the program has been uploaded to the ESP32Cam before the factory, you can just skip this step and no need to upload it repeatedly. Learn more about How to Upload Main Code 5/38...
  • Page 9: Step 4:Mobile Device Connects To The Esp32-Cam Robot

     Step 4:Mobile Device Connects to the ESP32-Cam Robot Turn on the power switch. When the red LED light on the ESP32CAM board lights up, it means: ESP32CAM WiFi Available. If it does not light up, try restarting the ESP32CAM.
  • Page 10 Mobile device connects to the wifi hotspot:ESP32-Cam Robot 7/38...
  • Page 11 Type and access the address "192.168.4.1" on your browser 8/38...
  • Page 12 Tip:If the remote control web page fails to load, The possible reasons are: 1) The battery is low. Make sure the total battery voltage is >11.1V 2) The wrong wifi device is connected, the correct device name: 3)Because some mobile devices have the network assistant turned on by default. This may cause control instructions to be routed incorrectly.
  • Page 13: Step 5:Web Remote Control Esp32-Cam Robot Car

     Step 5:Web Remote Control ESP32-Cam Robot Car 10/38...
  • Page 14 The robot car is not moving? There may be the following reasons: ①It must be powered by 18650*3 batteries. Make sure the total battery voltage>11.1V. Due to air transportation, the battery may not be included in the kit, you need to buy the battery yourself.
  • Page 15: How To Upload Main Code

     How to Upload Main Code Install Arduino IDE  Go to https://www.arduino.cc/en/Main/Software. If you have questions about the installation of Arduino IDE, you can refer to Getting Started with Arduino products. Tip: Before starting this installation procedure, make sure you have the latest version of the Arduino IDE installed in your computer.
  • Page 16: Installing Esp32 Add-On In Arduino Ide

    Installing ESP32 Add-on in Arduino IDE  ①Open the Boards Manager. You can go to Tools > Board > Boards Manager… or you can simply click the Boards Manager icon in the left-side corner. 13/38...
  • Page 17 ②Search for esp32 and select 2.0.11 ,click the INSTALL button for esp32 by Espressif Systems. 14/38...
  • Page 18 ③Installing, this will take a while 15/38...
  • Page 19 ④Successfully installed platform esp32:2.0.11 16/38...
  • Page 20: Install Ch340 Driver

    Install CH340 Driver  What is CH340 Driver? CH340 is a TTL (serial) to USB converter and vice versa. This chip has been used in some boards such as Arduino boards, ESP8266, etc. The boards using the CH340 chip,need a programmer in order to access the processor or to program them.But there is a downside.
  • Page 21 If you connect your board to the computer before installing the driver, your computer will not recognize the board correctly and you will see following image in Device Manager. To open Device Manager, search for it in the Windows Start menu. 18/38...
  • Page 22 Follow the steps below to install the CH340 driver: ① Downloading the driver First, download the CH340 driver from the this link. Windows CH340 Driver You can also download the latest version of the driver directly from the manufacturer’s site google link 19/38...
  • Page 23 ② Installing the driver After downloading the driver, open it and click Install. Tip:Before installing the driver software, you must connect the ESP8266 D1 WiFi UNO board to your computer with a USB cable 20/38...
  • Page 24 After successful installation you should see this message Note:In some cases, you may need to reset Windows after the driver installation is complete. 21/38...
  • Page 25 ③ Checking Correct Driver Installation in Device Manager If your driver has been installed correctly, and if you connect your board to a computer, then you can see its name and port number in the Port section. For example, my Arduino board is connected to COM28. 22/38...
  • Page 26 ④ Checking Correct Driver Installation in Arduino IDE Open the Arduino IDE software. Go to the Tools->Port: menu , select the COMx. Note that this port number must be the same as the number you saw in the previous step. 23/38...
  • Page 27 Tip:If you don't find the Arduino CH340 device in your computer's device manager or Arduino IDE, It means the driver software installation failed. You can try ①UNINSTALL the driver, restarting your computer, and then repeating the above steps. ②Change the USB interface or change to another computer ③Use a USB cable that can transfer data, not just power 24/38...
  • Page 28: Upload Code

    Upload Code  ①Start Arduino IDE, open the code in File->Open...->ESP32 Camera 4WD Robot Car Kit>Main Code>ESP32_Camera_4WD_Robot_Car.ino 25/38...
  • Page 29 ②Use USB cable to connect the ESP32CAM board to the computer.(It may be that the power supply of the USB interface of the computer is insufficient, you can turn on the power switch of the robot car at the same time.) 26/38...
  • Page 30 ③Select your Board in Tools > Board menu>esp32>AI Thinker ESP32-CAM 27/38...
  • Page 31 ④Select the Port (if you don’t see the COM Port in your Arduino IDE, you need to Install the CH340 Drivers) 28/38...
  • Page 32 ⑤Click the Upload button in the Arduino IDE. Wait a few seconds while the code compiles and uploads to your board. 29/38...
  • Page 33 If everything went as expected, you should see a “Done uploading.” message.If the Arduino IDE reports errors maybe you missed some steps. Arduino getting started guide is as follows Errors when uploading a sketch Getting Started with Arduino products 30/38...
  • Page 34: L298N Motor Driver

    L298N Motor Driver There are many ways to control a DC motor. The method we’ll use here is suitable for most hobbyist motors, that require 6V or 12V to operate. We’re going to use the L298N motor driver that can handle up to 3A at 35V. Additionally, it allows us to drive two DC motors simultaneously, which is perfect to build a robot.
  • Page 35 L298N Motor Driver pinout Let’s take a look at the L298N motor driver pinout and see how it works. The motor driver has a two terminal block in each side for each motor. OUT1 and OUT2 at the left and OUT3 and OUT4 at the right.
  • Page 36 At the bottom you have a three terminal block with +12V, GND, and +5V. The +12V terminal block is used to power up the motors. The terminal is used to power up the L298N chip. However, if the jumper is in place, the chip is powered using the motor’s power supply and you don’t need to supply 5V through the terminal.
  • Page 37: Motor State

    Control DC motors with the L298N Now that you’re familiar with the L298N Motor Driver, let’s see how to use it to control your DC motors. Enable pins The enable pins are like an ON and OFF switch for your motors. For example: If you send a HIGH signal to the enable 1 pin, motor A is ready to be controlled and at the maximum speed;...
  • Page 38 If you apply power the other way around: HIGH to input 1 and LOW to input 2, the motor will rotate backwards. Motor B  can be controlled using the same method but applying HIGH or LOW to input 3 and input 4. Controlling 2 DC Motors –...
  • Page 39: Esp32-Cam Specifications

    ESP32-CAM Specifications 36/38...
  • Page 40 37/38...
  • Page 41 The ESP32-CAM is based upon the ESP32-S module, so it shares the same specifications. It has the following features:  802.11b/g/n Wi-Fi  Bluetooth 4.2 with BLE  UART, SPI, I2C and PWM interfaces  Clock speed up to 160 MHz ...

Table of Contents