Download Print this page

Keyestudio VISION SMART CAR KS5017 Assembly Instructions Manual

Advertisement

Quick Links

keyestudio WiKi
keyestudio WiKi
Feb 29, 2024

Advertisement

loading
Need help?

Need help?

Do you have a question about the VISION SMART CAR KS5017 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Keyestudio VISION SMART CAR KS5017

  • Page 1 WiKi keyestudio WiKi Feb 29, 2024...
  • Page 3 KS5017 KEYESTUDIO VISION SMART CAR 1 1. Kit List 2 2. Description 3 3. Parameters 4 4. Features 5 1.Product Assembly 6 2.ESP32-CAM Mainboard (1). Introduction ..........
  • Page 5 WiKi KS5017 KEYESTUDIO VISION SMART CAR...
  • Page 6 WiKi KS5017 KEYESTUDIO VISION SMART CAR...
  • Page 8: Kit List

    WiKi CHAPTER 1. KIT LIST Picture Components ESP32-CAM Motor Driver Board Wheel Camera Bracket USB Cable Directional Wheel Chapter 1. 1. Kit List M3*8 Dual-pass Copper Pillar...
  • Page 9 CHAPTER 2. DESCRIPTION The ESP32-CAM video car is a smart car based on the ESP32-CAM module. It has video transmission and remote control functions. The ESP32-CAM module is an IoT development board that integrates a camera and a Wi-Fi module, which is able to transmit images captured by the camera in real time.
  • Page 10 WiKi Chapter 2. 2. Description...
  • Page 11 CHAPTER THREE 3. PARAMETERS USB voltage / charging voltage: 5V Working voltage: 5V/3.3V Battery voltage: 3.7V Data transmission method: WiFi Operating temperature: –10 to +65 degrees Celsius...
  • Page 12 WiKi Chapter 3. 3. Parameters...
  • Page 13 CHAPTER FOUR 4. FEATURES (1). The car integrates the download circuit of the ESP32-CAM development board into a motor driver board, which greatly improves the convenience of using the ESP32-CAM. (2). We have integrated the charging function of the car into the motor driver board. (3).
  • Page 14 WiKi Chapter 4. 4. Features...
  • Page 15: Product Assembly

    CHAPTER FIVE 1.PRODUCT ASSEMBLY The assembly of the video car is very simple, you only need to assemble the directional wheel and wheels. Step 1: Fix the M3x8MM copper pillars to the directional wheel with screws. Step 2: Fix the directional wheel to the driver board of the car with M3x20+6MM copper pillars. Step 3: Assemble the wheel onto the motor.
  • Page 16 WiKi Step 6:Tear off the double-sided tape under the camera base and assemble it on the ESP32-CAM card slot so that it supports the camera at 90 degrees. Step 7: Plug the ESP32-CAM development board into the car motor driver board, then the video car is successfully assembled.
  • Page 17 CHAPTER 2.ESP32-CAM MAINBOARD 6.1 (1). Introduction ESP32-CAM is a development board based on the ESP32 chip, which integrates a camera module for building camera and video applications. The ESP32 chip is a low-power, high-performance Wi-Fi and Bluetooth dual-module solution with rich hardware resources and powerful software support. Features 1.
  • Page 18 WiKi 6.2 (2). Parameters 1. Smallest 802.11b/g/n Wi-Fi BT SoC module 2. Low-power 32-bit CPU that can also serve application processors 3. Clock speed is up to 160MHz, and the total computing power is up to 600 DMIPS 4. Built-in 520 KB SRAM and external 4MPSRAM 5.
  • Page 19 WiKi Camera ESP32 Pin ESP32 Pin PIN5 PIN14 PIN18 PIN15 PIN19 DATA0 PIN2 PIN21 DATA1/LED PIN4 PIN36 DATA2 PIN12 PIN39 DATA3 PIN13 PIN34 PIN35 XCLK PIN0 PCLK PIN22 VSYNC PIN25 HREF PIN23 PIN26 PIN27 POWER PIN PIN32 6.3. (3). ESP32-CAM Pinout...
  • Page 20 WiKi Chapter 6. 2.ESP32-CAM Mainboard...
  • Page 21 CHAPTER SEVEN 3. MOTOR DRIVER BOARD INTRODUCTION (1). Introduction The motor driver board is designed for the ESP32-CAM video car, which boasts an automatic download circuit to download code for the ESP32-CAM via a USB cable. It also integrates a battery charging function and we can charge via a USB cable.
  • Page 22 WiKi (4). Schematic Diagram Chapter 7. 3. Motor Driver Board Introduction...
  • Page 23 CHAPTER EIGHT 4. ABOUT ARDUINO IDE 8.1 (1).Download Arduino IDE 8.1.1 A.Windows System Step 1: You could download Arduino IDE from the official websitehttps://www.arduino.cc/ Step 2: Enter the link and click SOFTWARE: Step 3: There are various versions of IDE for Arduino. Just download a version compatible with your system. Here we will show you how to download and install the windows version of Arduino IDE.
  • Page 24 WiKi Step 4: You just need to click JUST DOWNLOAD. Step 5: After the download is complete, we will get the .exe file, as shown below: Chapter 8. 4. About Arduino IDE...
  • Page 25 WiKi Step 6Right-click “arduino-ide_2.2.1_Windows_64bit.exe” and tap “Open”. Step 7Tap “I Agree”. 8.1. (1).Download Arduino IDE...
  • Page 26 WiKi Step 8Tap “Next” Step 9First click “Browse. . . ” to set the installation path of Arduino IDE, then click “Install”. Chapter 8. 4. About Arduino IDE...
  • Page 27 WiKi Step 10Wait for installation to complete. Step 11Click “Run Arduino IDE” and “Finish”. 8.1. (1).Download Arduino IDE...
  • Page 28 WiKi 8.1.2 B. MAC System Just download a version compatible with your computer system. Chapter 8. 4. About Arduino IDE...
  • Page 29 WiKi 8.2 (2).Install ESP32 Development Environment 8.2.1 AInstall it on Arduino IDE Typically, we cannot find ESP32 board from “Board” in “Tools”. Because we have not install this board on Arduino IDE yet. 8.2. (2).Install ESP32 Development Environment...
  • Page 30 WiKi Here are the procedures of ESP32 board installation: Open Arduino IDE. Click “File ——>Preferences” Chapter 8. 4. About Arduino IDE...
  • Page 31 WiKi Copy the link of ESP32 board“https://espressif.github.io/arduino-esp32/package_esp32_index.json” to Additional boards manager URLs and tap OK. Click the icon of “Board Manager” to check for boards. 8.2. (2).Install ESP32 Development Environment...
  • Page 32 WiKi In the search bar, type in ESP32 and search to install the latest version. Then you just need to wait a few minutes for the installation to complete. During installing, please ensure the stability of network. If it fails, please operate last step again to re-install it.
  • Page 33 WiKi After installation, select the correct board model. 8.2. (2).Install ESP32 Development Environment...
  • Page 34 WiKi 8.2.2 BDownload the provided offline installation package Click the link to download the ESP32 offline installation packageESP32 Package 2.0.12 After the download is complete, unzip it and you will get a file named “esp32_package_2.0.12_arduinome.exe”. Chapter 8. 4. About Arduino IDE...
  • Page 35 WiKi Tap “Open”. 8.2. (2).Install ESP32 Development Environment...
  • Page 36 WiKi Wait for the installation to complete, then restart the Arduino IDE to see the options for the ESP32 development board. Chapter 8. 4. About Arduino IDE...
  • Page 37 WiKi 8.3 (3).Install the CH340 driver on your computer (1).Windows System Enter the linkInstall CH340 Driver on Windows System — Getting started with Arduino documentation (getting- started-with-arduino.readthedocs.io) (2).MAC System Enter the linkInstall CH340 Driver on MAC System — Getting started with Arduino documentation (getting-started- with-arduino.readthedocs.io)
  • Page 38 WiKi 8.4 (4).Upload code to ESP32-CAM board via Arduino IDE A. Arduino IDE Interface 1. “File”: Including New Sketch, Open. . . , Sketchbook, Examples, Close, Save(Save as. . . ), Preferences, Ad- vanced. . . , etc. 2. “Edit”: Including Copy, Paste, Auto Format, Increase/Decrease Font Size, etc. Commonly, you can use shortcuts to do these operations.
  • Page 39 WiKi 16. IDE Output: To report error or successful uploading, and to display data from serial monitor. B. Upload code After selecting the development board, we need to select the COM port. After the development board installs the driver, a COM port will be displayed. If you don’t know which one to select, you can enter the device manager of your computer to check, as shown below: (If there are multiple COM ports and you don’t know which one it is, you...
  • Page 40 WiKi As can be seen from the picture, our COM port is COM3. We select “Port” in the “Tools” and then select “COM3”. Chapter 8. 4. About Arduino IDE...
  • Page 41 After connecting the development board, then we need to add code, here we provide a sample code, the function of the code is to print “Hello Keyestudio!” every second in the serial monitor. Copy and paste the following code into the code area of arduino IDE.
  • Page 42 WiKi (continued from previous page) void loop() { // put your main code here, to run repeatedly: Serial.println("Hello Keyestudio!"); //Serial port printing delay(1000); //Delay of 1 second to compile and upload the code. After the upload is successful, the prompts will appear, as shown in the figure: Chapter 8.
  • Page 43 WiKi Then tap to open the serial port monitor to set the baud rate to 9600, and you will see that the serial port printing the string “Hello Keyestudio!”. 8.4. (4).Upload code to ESP32-CAM board via Arduino IDE...
  • Page 44 WiKi 1. “Toggle Autoscroll”: Set whether the print window follows printing 2. “Toggle Timestamp ”: Set whether to display printing time 3. “Clear Output”: Clear data in print window 4. Serial port input box 5. Serial port sending format 6.
  • Page 45 CHAPTER NINE 5. CONTROL THE LEDS OF THE CAR (1).Description The video car is equipped with two 10mm headlights. We will control the two LEDs with one pin, so that the status of the two LEDs is synchronized. No wiring is required, just plug the ESP32-CAM development board into the motor driver board of the video car.
  • Page 46 WiKi (3).Code Tap it to download the codeCodes Keyestudio ESP32-CAM Video Smart Car Control LED Flashing https://www.keyestudio.com #define LED 12 //Define LED as 12 pin void setup() { // put your setup code here, to run once: pinMode(LED,OUTPUT); //Set IO12 pin as output...
  • Page 47 WiKi (continued from previous page) digitalWrite(LED,HIGH); //IO12 pin outputs high level delay(1000); //delay 1s digitalWrite(LED,LOW); //IO12 pin outputs low level delay(1000); //delay 1s (4).Test Result After the code is uploaded successfully, the LEDs light up for 1s and turn off for 1s.
  • Page 48 WiKi Chapter 9. 5. Control the LEDs of the Car...
  • Page 49 CHAPTER 6. CONTROL THE BRIGHTNESS OF LEDS (1).Description A “breathing LED” is a phenomenon where an LED’s brightness smoothly changes from dark to bright and back to dark, continuing to do so and giving the illusion of an LED“breathing. Thus how to control LED’s brightness? We need to use the PWM of ESP32 to achieve it.
  • Page 50 WiKi PWM, Pulse-Width Modulation, is a very effective method for using digital signals to control analog circuits. Common processors cannot directly output analog signals. PWM technology makes it very convenient to achieve this conversion (translation of digital to analog signals).
  • Page 51 • dutyCycleThe duty cycle of PWM, ranging from 0 to 2^(resolution digits)-1, where resolution is the PWM resolution when calling the ledcSetup() function. (3).Code Tap it to download the codeCodes Keyestudio ESP32-CAM Video Smart Car Control the brightness of LED https://www.keyestudio.com #define LED 12...
  • Page 52 WiKi (continued from previous page) void loop() { // put your main code here, to run repeatedly: (int 0; i < 255; i++) { //for loop, control i to increase from 0 to 255 ledcWrite(0, i); //output pwm delay(10);...
  • Page 53 Car_right(value1, value2);Car right turn function, value1 is the backward speed value of the right wheel, value2 is the forward speed value of the left wheel. Car_stop();Car stop function. (3).Code Tap it to download the codeCodes Keyestudio ESP32-CAM Video Smart Car Motor Driver https://www.keyestudio.com #include "SetMotor.h"...
  • Page 54 WiKi (continued from previous page) Car_forward(200, 200); //The car moves forward delay(2000); //delay 2s Car_backwards(200, 200); //The car moves back delay(2000); Car_left(100, 100); //The car turns left delay(2000); Car_right(100, 100); //The car turns right delay(2000); Car_stop(); //The car stops delay(2000);...
  • Page 55 CHAPTER TWELVE 8. VIDEO SMART CAR (1).Description The ESP32-CAM development board boasts a camera and wifi function. Video signals are transmitted to the control end (mobile phone or computer) through wifi, and the control signals from the control end are also transmitted to ESP32-CAM through wifi.
  • Page 56 WiKi Operation animation example (3).Code The following is the main code. The web page code, control car and video transmission codes are all in the app_server.h file. Since this knowledge involves extracurricular knowledge such as HTML, CSS and JS, please consult the relevant information if you want to know more.
  • Page 57 WiKi (continued from previous page) // const char* password = "ChinaNet@233"; //Password. Leave blank for open network. bool const char* ssid "keyes1"; //AP Name or Router SSID const char* password "88888888"; //Password. Leave blank for open network. //AP Settings...
  • Page 58 WiKi (continued from previous page) config.pin_d5 Y7_GPIO_NUM; config.pin_d6 Y8_GPIO_NUM; config.pin_d7 Y9_GPIO_NUM; config.pin_xclk XCLK_GPIO_NUM; config.pin_pclk PCLK_GPIO_NUM; config.pin_vsync VSYNC_GPIO_NUM; config.pin_href HREF_GPIO_NUM; config.pin_sscb_sda SIOD_GPIO_NUM; config.pin_sscb_scl SIOC_GPIO_NUM; config.pin_pwdn PWDN_GPIO_NUM; config.pin_reset RESET_GPIO_NUM; config.xclk_freq_hz 20000000; config.pixel_format PIXFORMAT_JPEG; //init with high specs to pre-allocate larger buffers (psramFound()) { config.frame_size...
  • Page 59 WiKi (continued from previous page) Serial.print("Camera Ready! Use http://"); Serial.print(WiFi.localIP()); Serial.println(" connect"); else // Setup Access Point Serial.println("ssid: " (String)ssid); Serial.println("password: " (String)password); Serial.println("WiFi is Standalone Scout32"); WiFi.mode(WIFI_AP); WiFi.softAP(ssid, password, channel, hidden, maxconnection); Serial.print("Camera Ready! Use http://"); Serial.print(WiFi.softAPIP()); Serial.println("...
  • Page 60 WiKi Chapter 12. 8. Video Smart Car...
  • Page 61 CHAPTER THIRTEEN 9. GAMEPLAY EXPANSION IDEAS 1. The LEGO holes on both sides of the car’s driver board can be used to assemble LEGO. 2. There are four GPIO ports for expanding sensors and modules.
  • Page 62 WiKi Chapter 13. 9. Gameplay Expansion Ideas...
  • Page 63: Common Problems

    CHAPTER FOURTEEN 10. COMMON PROBLEMS 1. Select the wrong development board. Many ESP32 series are compatible but the internal library files are different. For example, when uploading the video car code, the development board selects “ESP32 Dev Module”, then you can upload the code successfully, but the code does not run.