A weaving wonder controlled entirely by Raspberry Pi

When Fred Hoefler sent back a computer-controlled tabletop loom after it stopped working with his MacBook Pro, his wife Gina suggested that he should be able to build one with “one of those Raspberry Pi things of yours.” Fred recalls, “The most reasonable answer I could come up with was: ‘as a matter of fact, I think I can.’” A project was born.

The full article can be found in The MagPi 52 and was written by Phil King.

At the outset, Fred set out some ground rules for building the new four-harness tabletop loom. As well as being controllable by a Raspberry Pi via the Bash console, no part of the hand-built loom was to cost more than the Pi itself. It would also need to be quiet enough to carry on a conversation in the same room with it.

Following a year of work, with many stops and starts, the end result is a working Pi-powered loom that meets all Fred’s goals. “Basically, the Raspberry Pi drives four 12-volt DC motors turning in opposite directions, like a robot that rolls forward and backward,” he explains. “These motors are attached to actuator arms that are in turn attached to a cord that runs through a pulley system to individual loom harnesses.”

 Each 12V motor moves an actuator arm with a cord attached via a pulley to a loom harness

Fortunately, Fred had some previous electronics experience from his earlier career as an aircraft mechanic and electrician. “I was quite used to working with wiring, relays, switches, and motors. Working with aircraft aluminium, making brackets and such is also second nature to me.” The project wasn’t without the odd mishap, however. As Fred discovered the hard way, “A Raspberry Pi cannot directly control common motor power. You must use some kind of motor control circuit. I thought I would try to use a half-bridge MOSFET controller (a TI SN754410) that claimed to be able to handle up to 1 amp, and have all sorts of protection between the power circuit and the GPIO circuit.” After one working motor test cycle, the result was a fried Pi: “We held an appropriate memorial.”

To his surprise, Fred had less trouble programming a Python script (which can be found on his website) to control the loom. “Python works like the old BASIC interpreters we used back in the early 1970s, only easier. There are lots of Python examples out there explaining how to turn on and off GPIO pins… Once I set up how to control one harness with a module, all I had to do was copy-paste a duplicate module and change the calling parameters to control the next harness.”

 Fred opted to build his own motor control units using 12V relays and TIP 120 Darlington transistors.

While Fred admits the loom is too slow to use for production purposes and requires an operator to send the weft threads through the shed by hand, he is looking to improve it by experimenting with different 12V actuators and possibly solar power. “Finally, I found that the manufacturer of the ‘cute little loom’ that started this whole project has halted production due a supplier not being able to produce a reliable control unit. If we could just send him a copy of this article and offer to upgrade the control unit…”

From The MagPi store

Subscribe

Subscribe to the newsletter

Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.