Skip to content

ESP Bluetooth/WiFi Car

  • by

All in one RC Car with WiFi and Bluetooth, and OLED (optional)

Most of remote control Robot Cars use WiFi or Bluetooth protocol only. Thanks for ESP32-CAM, we could build RC robot with Camera with both WiFi and Bluetooth protocol.

ESP32-CAM Car

  • build the wifi car
  • develop the HTTP server with streaming video & motor control
  • develop the Bluetooth command
  • develop the mobile application

ESP32 Car (w/o CAM)

  • build the wifi car
  • develop the HTTP server with streaming video & motor control
  • develop the mobile application

ESP8266 Car (w/o CAM & Bluetooth)

  • build the wifi car
  • develop the HTTP server with streaming video & motor control
  • develop the Bluetooth command
  • develop the mobile application

Youtube Video

IMAGE ALT TEXT HERE

ESP WiFi/Bluetooth RC CAM CAR (Free No ADs)

Download from Google Play

How it works

We are using HTTP protocol and Bluetooth Serial port command.

For Bluetooth, it’s ESP32 only. We use Bluetooth Serial to control the car.

For WiFi, The server is the ESP32/ESP8266 and the client is the smartphone. The client will send HTTP requests to the server in order to control the car.

ESP32/ESP8266 chip is able to create its own WIFI network (Access Point mode = AP) or to connect to an existing wifi network (Station Mode = STA).

The smartphone must be connected to the same wifi network as the chip and know its ip address and the port of its server. To make it easier, I also use an OLED display to show current IP address on the display.

Build your own wifi car

  • ESP32-CAM / ESP32 DevKit / ESP8266
  • L9110s motor driver or L293D/L298N
  • USB PowerBank or other Power source such as 18650×2.

You cound find car kit to assemble your car such as.

*Car Kit#2

*Amazon(Car Kit#3)

Android application settings for WiFi and Bluetooth Command

You can customize all the commands with Android Apps. The apps support both WiFi comand and Bluetooth Command. You could switch between WiFi mode and Bluetooth mode via Android app.

To control RC car with WiFi, you must connect your smartphone to the same wifi network as your wifi car. Make sure that the application parameters are correct (IP, PORT, etc..).

To control RC car with Bluetooth, you must pair the car with it’s Bluetooth name, and then connect on it.

The defaults commands sent are:

Live Camera URL : (port = http port(80) +1)

CAM URL: http://192.168.4.1:81/stream

Besides Robot CAM Car URL, since it’s WebView browser, you could assign any public IP CAM URL such as.

HTTP Command

GET - http://192.168.4.1:80/state?cmd=F (forward)
GET - http://192.168.4.1:80/state?cmd=B (backward)
GET - http://192.168.4.1:80/state?cmd=R (right)
GET - http://192.168.4.1:80/state?cmd=L (left)
GET - http://192.168.4.1:80/state?cmd=S (stop)

Bluetooth Serial Comand

cmd 'L' : MotorLeft()  (Left)
cmd 'R' : MotorRight() (Right)
cmd 'F' : MotorUp()    (Forward)
cmd 'B' : MotorDown()  (Backword)
cmd 'X' : MotorStop()  (Stop)

Android:

ESP32-CAM Reference design

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *