Close

New rotation motor & source on GitHub

A project log for Drumming robot

MIDI drum machine to complement live electronic music

Valeriy NovytskyyValeriy Novytskyy 01/26/2021 at 05:590 Comments

Over the past few weeks I found another, cheaper servo that's still strong enough to rotate the arm:

https://www.gobilda.com/5202-series-yellow-jacket-planetary-gear-motor-188-1-ratio-30-rpm-3-3-5v-encoder/

It has a built-in encoder, 100N of force, and basically works the same in this particular application, except that it's $40 rather than $1300. I really thought the Dynamixel servo would be easier to use and work best for this application, but it ended up being an overkill. I will save that when it comes time to work on walking machines, and perfect response & feedback times really matter.

A few other changes - I got a 5V power supply for Raspberri Pi and connected it with a 5-terminal-to-USB-C cable:

https://www.newark.com/mean-well/rsd-30g-5/dc-dc-converter-5v-6a/dp/44AC7344?CMP=e-email-sys-orderack-GLB

I also ordered a 1000W power supply that should have enough juice to power the whole robot:

https://power.sager.com/hrpg-1000-12-5357680.htm

...and finally, I put all the source code I have so far on GitHub along side the 3D parts.

https://github.com/01binary/drummingrobot

If you haven't tried the new "sparse checkout" future in git (requires latest version) - this lets you track changes and pull only a portion of the whole repository. I built git from source on Raspberri Pi to get the new feature, and it works great. I checked out only the C++ source for the robot and left the large 3D part files on the machine I use for CAD.

In the source, I recently implemented a system that loads joint controllers from Robot Operating System launch parameters (basically a block of YAML inside of XML launch file) and it supports all of the actuators I worked with so far.

It creates each controller dynamically from a simple dependency injection container by type name, and supports full paths (like robot/arm1/forearm/).

This is a shot of it running with everything except the arm rotation servo disabled, because I was testing out that new servo. If in the future I substitute the servo with another one that uses serial protocol I just have to code the new servo and specify a different type name for the "shoulder" actuator to load that new type. The interface is the same for all servos, regardless of how they are controlled and how they track their current position.

For simple PWM servos like those linear actuators, I am going to need to code a feedback system by using hollow shaft potentiometers all coming into the same DAC chip.

Discussions