This is an old revision of the document!


RC Surveillance Car

by George-Codrin Preda (1221B)

Introduction

Résumé: The project is inspired by the Curiosity Mars rover and the growing need for remote controlled surveillance devices. From bomb disposal robots to Mars rovers, we need robots that we can send on risky missions instead of humans. A robot does not need food or sleep and it can do many things that a human cannot : it can withstand harsh conditions such as extreme temperatures or high levels of radiation.

General description

The car is built using a robot car kit with 4 motors,4 wheels and connectors,an ESP32 cam module,a L298N motor driver module, 8×1.5V batteries and the supports for the batteries, double sided tape, jumper wires and female to male and female to female wires. After assembling everything according to the diagram below, I took the ESP32 cam module out and assembled a circuit for the code upload using a breadboard, an arduino uno and a few jumper wires, the diagram for the code upload is below, in the Hardware Design section. After reconnecting the ESP32 cam module, I connected the batteries to the car. The car captures video footage using the camera present on the car and it sends the footage to my mobile phone using WebSocket through Wi-Fi connection. The mobile application created can adjust the speed of the car and the light of the flashlight present on the cam module.

Block scheme:

Hardware Design

Components list:

  • 4WD car kit
  • ESP32 cam mod
  • L298 motor driver mod
  • 8×1.5V batteries
  • 2xbattery supports
  • breadboard
  • arduino uno
  • double-sided tape
  • jumper wires, female to female wires, female to male wires

Electric scheme:

The Car

The code upload for the ESP32 cam module

Software Design

Firstly, ESP32 board was installed using Arduino Board Manager and the AsyncTCP library was added. In the AsyncWebSocket library folder the I set the WS_MAX_QUEUED_MESSAGES was set to 1 for a smooth stream.In the code I included the AsyncTCP and ESPAsyncWebServer libraries and I assigned the left and right motor pins. The light pin was also defined and also the channels for speed and light. I added camera related constants and set a name for the ESP32 Wi-Fi and a password. WebSocket is used for camera and car input control. Then, I created a HTML page for the camera control app. The rotateMotor function take motorNumber and motorDirection as arguments as it will set the car in forward or backward direction. The moveCar function takes the cases and assigns the movement direction to the rotateMotor function and it moves the car accordingly. The setupCamera function enables the camera. The sendCameraPicture captures the image and sends it to the camera WebSocket client.

Rezultate Obţinute

Work in progress.

Concluzii

Work in progress.

Download

Work in progress.

Jurnal

Work in progress.

Bibliografie/Resurse

Work in progress.

Export to PDF

pm/prj2022/agmocanu/rc_car_with_camera.1653513609.txt.gz · Last modified: 2022/05/26 00:20 by george_codrin.preda
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0