Skip to content

ShocKwav3/Hexapod

Repository files navigation

Hexapod

Just a hobby project, because it's cool

Body and construction is based on this cool hexapod project. Electronics are conceptually almost the same as the original project uses.

Code written by me, this was the main goal for this robot.

Pre-requisites

Before proceeding, the following needs to be ready. Some of them are not mandatory, such as pymakr-vsc, but it sure makes development hassle free.

Software

Hardware

  • A suitable microcontroller with WiFi and bluetooth
  • Physical parts. All are available in the reference repository mentioned above. The author was generous enough to make the 3d files available in thingiverse as well.
  • 18 Servos, at-least, to begin with since it's a 18-DOF robot.
    • I went with tower pro mg92b
    • Different servos would require the 3d files to be modified to support their dimensions
  • Multi channel servo driver
    • I went with the obvious PCA9685
      • I needed two, since each of them supports 16 channels.
      • One of their I2C address must be changed. See config.py. How-to.
      • I used 9 from each. Maybe I will drive some leds with the free ones later.
    • Optional if the microcontroller has enough pins and a power supply to be designed in such case
  • Power supply.
    • Mainly a battery that is capable of supplying required power for the whole system. I used a 3S 2200mAh 30C LiPo that I had lying around from my rc hobby.
    • I went with a mini360 buck converter for the microcontroller
    • I chose this 10A buck converter to power the servos

Local setup

Few mandatory things and some convenient tools are needed to be setup to make life easier.

  • pymakr 2 should be setup with VSCode
  • While it's optional, it's good to setup thonny as well incase pymakr gives trouble, which is probable when a new update drops for VSCode
  • Also optional but nice to setup webrepl since it serves as a wireless connection point where we can upload code.
    • by this point, REPL can be easily accessed using thonny or pymakr-vsc
    • boot.py seems to be a good place for it right after WiFi setup
  • Nodejs should be installed for pymakr to work
  • Micropython, on the microcontroller, should be installed using esptools
  • Rename secretConfigs.sample.py to secretConfigs.py and populate the values
  • Map joints and update values in config.py

Troubleshooting

  • pymakr was a nightmere to work with for me and resorted to thonny and webrepl (yes one is enough). pymakr 2 seemed to be much better. Although I ran into this problem, the solution there did the trick for me. The thread has some explanation as well.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages