A follow-up to the CRF SumoBot1 designed by Kalle Strålman.

Bluetooth remote control code from Shib Sankar Das’s ESP32-Bluetooth-RC-Car-Project2

Please find:

“Rendered image of nano-hat v1.2”

TODO

  • Choose wires or PCB for connection (PCB right now)
  • Add sensors
  • Add Sumo-code
  • Design the chassis
  • Write build instructions

Instructions

Uploading code to the ESP32

  • Install Arduino IDE v2 from their website3 or your favourite package manager. Current version is 2.3.8.
  • Install the required boards from the Boards Manager in the left column, second icon from the top:
    • esp32 by Espressif Systems (current version 3.3.11)
  • Install the required libraries from the Library Manager, icon under the Boards Manager (or via Tools > Manage Libraries):
    • “NimBLE_Arduino” by h2zero (current version 2.5.1)
    • “HCSR04” by Martin Sosic (current version 2.0.0)
  • Choose the correct board from the Select Board dropdown > Select other board and port. Then Search for MakerGO ESP32 C6 SuperMini. It will look as if nothing happens but that is fine.
  • Connect the ESP32 to your computer while holding the BOOT button on the board. It will show up in the right column as something like /dev/usb/ttyASM0 if you are on linux. Click Ok.
    • The board may not show up, in which case you need to hold the Boot button while connecting the board, then tapping the RST button and finally releasing the BOOT button.
  • Paste the contents of minisumo-bot.ino into the default sketch or download the file and open it from File > Open
  • Verify and/or Upload the sketch to the ESP32 using the checkbox and/or arrow in the top left corner.

Bill of Materials

  • PCB
  • 3D printed chassis
  • ESP32 C6 Supermini
  • Motor driver: L298N
  • Ultrasonic sensor: HC-SR04
  • IR sensor: v183
  • Cables

Changelog

VersionChanges
v2.0
  • Updated PCB design
  • Changed to ESP from Arduino
v1.2
  • Add EN_A and EN_B pins for controlling H-Bridge speed
  • Move start module placement slightly more towards the edge
  • Add header pins for unused ports on the Arduino to allow further extension / mods
  • Add an optional switch to pull-up and bypass start module
v1.1
  • Move mounting holes slightly
  • Add header pins for start module
v1.0First draft

References