I’ve updated yesterday’s wiring because some of the wires didn’t match my year-old code. Here’s the latest. I still think it’s pretty sloppy, but it’s better than the rat’s nest I had in version 1 a year ago.
The board in the bottom left is an Arduino MEGA 2560. The three boards at the top are CANAKIT UK1122 H bridges. Each board has two h bridges. The small breadboard at the bottom right has six 5-pin headers where I attach the Firgelli L12-P linear actuators. The green lines running to the right tell the arduino what the actuator is doing (eg how far out it has moved). The green lines running to the h bridges control the speed of each motor. Speed can’t be a negative value, so the blue lines on either side of the green lines going to the h bridges control the direction. Set both directions at once and you apply the breaks on the motor. So far all the wires I’ve mentioned are running at 5v. The h bridges take the 12v coming in at the very top right of the picture and send it along the very long red and black wires to the correct pins in the bottom right. The remaining tiny wires in the bottom right deal with the sensor on the actuators (positive and negative rails for the potentiometers).
So: the Arduino has a model of the Stewart Platform in it’s memory, including where it is and where it can go. I send a serial message like “G00 Z20 A15”. Arduino knows calculates how long each actuator has to be to move up 20mm and tilt 15 degrees, then sends the correct speed and direction commands to the h bridges, which in turn moves the real platform on my desk. The extra tricky part is that all 6 actuators have to move together at once – if even one tries to go AWOL it could seriously damage the machine. Fortunately I have sensors in the actuators that tell me if the real thing and the model are different. If the difference is too big, emergency stop.
So what’s the point? Stewart platforms are used in microsurgery, flight simulators, and even for docking shuttles to the international space station. They can be used to stabilize platforms on a boat or to control your portal turret. Stack them and you can make an awesome robot elephant trunk. There’s some really interesting math that would keep a high school algebra class awake. Can you think of other uses?
I’d really love to make this a kit in my store but I feel the price for actuators is still too high. With stepper-driven actuators I could lose this wiring and use the RAMPS control board from a 3D printer. Spread the word! I’m searching for a bipolar stepper driven linear actuator with a near limit switch. I’m looking for a hobby quality device up to $30, no more. A universal joint on each end would be extra sweet. Please share this and let me know if you find one.