Skip to content

Source code and schematics for the ESP32-based robot with the 6-servos manipulator

License

Notifications You must be signed in to change notification settings

rmaryan/RoboTank-ESP32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoboTank-ESP32

A source code and schematics for the ESP32-based robot with the 6-servos manipulator

Contents

Used Components

ESP IDF Requirements

This project relies on the features introduced in ESP IDF version 4.1. Make sure you use at least this version.

Schematics

Schematics

Remote Control

We use Flysky FS-i6 a 2.4GHz 6-channel transmitter which is absolutely sufficient for our case.

The functionality was expanded with the alternative firmware version from this source: https://github.com/qba667/FlySkyI6. The number of channels increased to 14 (we use 10 though). Also there are numerous functionality and ui improvements.

To access all channels at the robot's side, RC receiver is connected using iBus digital interface. Anyway it is more natural for the microcontroller-based projects, though require some processing power to read the messages stream and decode RC switches and gimbals positions.

Flysky FS-i6 Layout

Flysky FS-i6 Controls

RC Channels Mapping and Flow Chart

RC Transmitter Switch Channel # Function
Left Gimbal 3 and 4 Controls the arm servos (depends on SWC position)
Right Gimbal 1 and 2 Controls the chassis motors
SWA 5 Remote control activation
UP - Remote Control is active
DOWN - Remote Control is inactive
After power on or reconnect, switch SWA down then up to activate RC. For the safety reasons all remote commands will be ignored until such initial activation sequence take place.
SWB 6 AI mode activation
UP - manual control mode
DOWN - AI control mode (RC should still be activated first)
VRA 7 nothing at the moment
VRB 8 nothing at the moment
SWC 9 Arm sevos pair selection
Selects which pair of servos are going to be controlled by the left gimbal (1=>top, 2=>middle, 3=>bottom)
SWD 10 Lights Toggle
UP - all lights ON
DOWN - all lights OFF

![RC Flow Chart](schematics/RC flow chart.png)

Robot's Web Page and OTA

Right after booting, the robot tries to connect to the local WiFi network. Connection parameters can be specified in "OTA WiFi Configuration" in make menuconfig.

Having a connection started, robot launches own Web Server. You can find the IP address of the robot in your WiFi router settings pages (making it static can be a good idea).

Direct your web browser to the robot's IP address and a home page will be shown. You can upload new firmware updates there (so you don't need to connect your robot with the USB wire any more). Also you can see the log messges output right on the web page (this feature will work if LOG_USE_WEB_FRONTEND is defined in RoboTank-ESP32.cpp).

Schematics

On-board sounds

Place the files from sdcard folder to the root of the sound module SD card.

Tracks are the following:

  • 0000.AD4 - Thinking
  • 0001.AD4 - Working
  • 0002.AD4 - Talking
  • 0003.AD4 - Hello
  • 0004.AD4 - Scared
  • 0005.AD4 - Be careful
  • 0006.AD4 - Vivaldi - Winter

Files were converted from the original MP3's as described here: https://www.buildcircuit.com/how-to-convert-mp3-and-wav-files-to-ad4-format-wtv020sd-tutorial/

3D Models

Some of the parts were 3D-printed. Corresponding FreeCAD and STL files are provided in the schematics/3D Models folder.

  • RC Antenna cradle
  • IR distance sensors consoles
  • Backside voltmeters cradles

Liked some of my work?

Buy Me A Coffee

About

Source code and schematics for the ESP32-based robot with the 6-servos manipulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published