ESP32 Mobile WIFI Camera

From MakerFabsWiki
Jump to: navigation, search

Introduction

Makerfabs ESP32 Mobile WIFI Camera based on the ESP32 BLE/WIFI module and the ESP32 Wifi camera module, and the 2WD mobile platform, it can be used for remote monitoring, while the users can control it remotely, to move the car and adjust the camera..

The ESP32 mobile WIFI Camera can be easily used as customer getting them with few minutes, There we prepared 2 control methods for ESP32 Mobile WIFI Camera:
1. BLE controlling, with an Android app;
2. Web controlling, with WIFI& MQTT
https://www.youtube.com/watch?v=W4-0P6VzAi8

Model: MFECM03

It can be an Internet Watch, with real Date&Time:

ESP32 Mobile CAM 1.jpg

ESP32 Mobile CAM 2.jpg

All hardware& software for ESP32 Mobile WIFI camera are open-source for Makers & Learns, and detailed step-by-step guide& explanation for the hardware& software provided, for the Makers& Learner to study, and thus to create endless better applications.

Package List

  • 1 x ESP32 development board
  • 1 x ESP32 development board
  • 1 x ESP32 Mobile WIFI Camera Base board(with Motor Driver)
  • 1 x 2WD Mobile Platform with Universal Wheel
  • 2 x Motors

ESP32 Mobile WIFI Camera Technical Support

The ESP32 Mobile WIFI camera is composed by 2 parts:
• The ESP32 development module, to control the Car, with BLE, or WIFI&MQTT;
• The ESP32 Camera, for barely video shooting.

Step_1: ESP32 Camera Module Programming

Firstly we need to code the ESP32 Camera module to make it send out the images.
1. Install the ESP32 boards supporting by setting the preference board manager URL to https://dl.espressif.com/dl/package_esp32_index.json
And install the ESP32 library:
ESP32 Mobile CAM 3.jpg
ESP32 Mobile CAM 4.jpg
ESP32 Mobile CAM 5.jpg
2. Select the board to Tools->Board->Select AI-Thinker ESP32-CAM and Download the ESP32-CAM codes at: https://github.com/hunrypan/ESP32-Car/blob/master/ESP_Car_CAM/ESP_Car_CAM.ino

Programming the code to the ESP32 camera module, note that before upload program you need use a jumper wire to connect ground to D0 pin and press boot button to make the chip into write state. Then upload file to chip and see serial output. If you see it display ip 192.168.0.166, the program is run successful.

Step_2:ESP32 development board coding

The ESP32 development board act as car controlling, users can use Android BLE or Website(through MQTT) to control the car.

1. BLE Control

1. Install the ESP32 boards supporting by setting the preference board manager URL to https://dl.espressif.com/dl/package_esp32_index.json
Select the board “ESP32 Wrover Module” and install ESP32 library
ESP32 Mobile CAM 6.jpg
ESP32 Mobile CAM 7.jpg

And the esp32 servo library, at : https://github.com/RoboticsBrno/ESP32-Arduino-Servo-Library and them by click: Sketch -> Include Library -> add .zip Library (Note that you may need to change field name ESP32-Arduino-Servo-Library-master to ESP32-Arduino-Servo-Library in Arduno IDE library) ESP32 Mobile CAM 8.jpg
ESP32 Mobile CAM 9.jpg
And finally download the code from https://github.com/hunrypan/ESP32-Car/blob/master/ESp_Car_Bluetooth/ESp_Car_Bluetooth.ino to the ESP32 development board.
And install the APP on your Android, to start the BLE control.

2. WIFI&MQTT Control:

With WIFI control, there some other libraries need to be installed:
1. Library Install. Seach the “esp32 mqtt”, and install the “EspMqttClent by Patrick Lapointe”

ESP32 Mobile CAM 10.jpg
Also download the https://github.com/knolleary/pubsubclient, and install it by ““Sketch -> Include Library -> add .zip Library”(also note that you many need to change filed name pubsubclient_master to pubsubclient )
ESP32 Mobile CAM 11.jpg
And also the esp32 servo library, at : https://github.com/RoboticsBrno/ESP32-Arduino-Servo-Library and them by click: Sketch -> Include Library -> add .zip Library
(Note that you may need to change field name ESP32-Arduino-Servo-Library-master to ESP32-Arduino-Servo-Library in Arduno IDE library)
2. MQTT instance. Get an account at : https://www.cloudmqtt.com/ and create an instance such as:
ESP32 Mobile CAM 12.jpg
3. Programming. Download the ESp_Car_mqtt.ino at https://github.com/hunrypan/ESP32-Car/blob/master/ESp_Car_mqtt/ESp_Car_mqtt.ino and changes the MQTT info to your own instance info:
ESP32 Mobile CAM 13.jpg
And then upload the sketch to ESP32 development module.
4. Control via WIFI& MQTT / you can now control the car and all get the images at: http://www.windcoffee.club/car

ESP32 Mobile CAM 14.jpg