Controlling bioloid servos from a pyboard

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
Post Reply
User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Controlling bioloid servos from a pyboard

Post by dhylands » Wed Nov 25, 2015 9:32 am

I've started my library for controlling bioloid devices from MicroPython over here: https://github.com/dhylands/bioloid3

I also put up a short video demonstarting it working
https://www.youtube.com/watch?v=bgiLTaY_OHI

This basically uses the single-wire half-duplex mode of the STM32F4 UARTS. From the pyboard I connected the UART6 TX pin to the signal line on bioloid bus (as well as ground).

The bioloid bus is nominally 5v, but seems to work fine using 3.3v from the pyboard.

I'm planning on adding more features over time, but I figured since I had the basics working, I'd release that.

User avatar
JonHylands
Posts: 69
Joined: Sun Dec 29, 2013 1:33 am

Re: Controlling bioloid servos from a pyboard

Post by JonHylands » Wed Nov 25, 2015 12:31 pm

This is awesome - I can't wait to try it with my bioloid robot Roz. A couple years ago I converted Roz from an Arbotix controller to a Beaglebone Black, so I could control it with python, but having a robot that runs an actual OS is kind of a pain.

Now I should be able to convert it once again to use one of my custom pyboards, and still have it controlled with python.

This is Roz, running autonomously with python code on a Beaglebone Black:

https://www.youtube.com/watch?v=BBNOs9JHqXA

Post Reply