Raspberry Pi Zero Stepper Driver, First of Many Modules

The Raspberry Pi in general (and the Zero W model in particular) are wonderful pieces of hardware, but they’re not entirely plug-and-play when it comes to embedded applications. The user is on the hook for things like providing a regulated power source, an OS, and being mindful of proper shutdown and ESD precautions. Still, the capabilities make it worth considering and [Alpha le ciel] has a project to make implementation easier with the Raspberry Pi Zero W Stepper Motor Module, which is itself part of a larger project plan to make the Pi Zero W into a robust building block for robotic and CNC applications.

[Alpha le ciel] is building this stepper motor module as the first of many Raspberry Pi hats meant to provide the Raspi with the hardware for robotics applications. This module, in particular, features two A4988 stepper motor drivers, a connector for a power supply or battery providing 7-20V, and a buck converter to bring that power down to the 5V needed by the Pi itself. All the relevant pins are broken out onto the Pi’s GPIO header, making this module the simplest way possible to add a pair of motors to a Pi. What does that mean? Printers or self-balancing robots, really whatever you want.

A stepper driver that conforms to the footprint of the Pi Zero is a good start, and the larger concept of creating additional modules is a worthy entry to the Hackaday Prize.

Optocouplers: Defending Your Microcontroller, MIDI, and a Hot Tip for Speed

Deep in the heart of your latest project lies a little silicon brain. Much like the brain inside your own bone-plated noggin, your microcontroller needs protection from the outside world from time to time. When it comes to isolating your microcontroller’s sensitive little pins from high voltages, ground loops, or general noise, nothing beats an optocoupler. And while simple on-off control of a device through an optocoupler can be as simple as hooking up an LED, they are not perfect digital devices.

But first a step back. What is an optocoupler anyway? The prototype is an LED and a light-sensitive transistor stuck together in a lightproof case. But there are many choices for the receiver side: photodiodes, BJT phototransistors, MOSFETs, photo-triacs, photo-Darlingtons, and more.

So while implementation details vary, the crux is that your microcontroller turns on an LED, and it’s the light from that LED that activates the other side of the circuit. The only connection between the LED side and the transistor side is non-electrical — light across a small gap — and that provides the rock-solid, one-way isolation.

Continue reading “Optocouplers: Defending Your Microcontroller, MIDI, and a Hot Tip for Speed”

Glorious Body of Tracked ‘Mad Mech’ Started as Cardboard

[Dickel] always liked tracked vehicles. Taking inspiration from the ‘Peacemaker’ tracked vehicle in Mad Max: Fury Road, he replicated it as the Mad Mech. The vehicle is remote-controlled and the tank treads are partly from a VEX robotics tank tread kit. Control is via a DIY wireless controller using an Arduino and NRF24L01 modules. The vehicle itself uses an Arduino UNO with an L298N motor driver. Power is from three Li-Po cells.

The real artistic work is in the body. [Dickel] used a papercraft tool called Pepakura (non-free software, but this Blender plugin is an alternative free approach) for the design to make the body out of thin cardboard. The cardboard design was then modified to make it match the body of the Peacemaker as much as possible. It was coated in fiberglass for strength, then the rest of the work was done with body filler and sanding for a smooth finish. After a few more details and a good paint job, it was ready to roll.

There’s a lot of great effort that went into this build, and [Dickel] shows his work and process on his project page and in the videos embedded below. The first video shows the finished Mad Mech being taken for some test drives. The second is a montage showing key parts of the build process.

Continue reading “Glorious Body of Tracked ‘Mad Mech’ Started as Cardboard”

See This Slick RC Strandbeest Zip Around

Bevel gears used to mount motors vertically.

Theo Jansen’s Strandbeest design is a favorite and for good reason; the gliding gait is mesmerizing and this RC version by [tosjduenfs] is wonderful to behold. Back in 2015 the project first appeared on Thingiverse, and was quietly updated last year with a zip file containing the full assembly details.

All Strandbeest projects — especially steerable ones — are notable because building one is never a matter of simply scaling parts up or down. For one thing, the classic Strandbeest design doesn’t provide any means of steering. Also, while motorizing the system is simple in concept it’s less so in practice; there’s no obvious or convenient spot to actually mount a motor in a Strandbeest. In this project bevel gears are used to mount the motors vertically in a central area, and the left and right sides are driven independently like a tank. A motor driver that accepts RC signals allows the use of an off the shelf RC transmitter and receiver to control the unit. There is a wonderful video of the machine zipping around smoothly, embedded below.

Continue reading “See This Slick RC Strandbeest Zip Around”

Improving Cheap Laser Engravers For PCB Fabrication

A few months ago, [Marco] picked up a cheap, cheap, cheap laser engraver from one of the familiar Chinese resellers. It’s a simple affair with aluminum extrusions, a diode laser, and a control board that seems like it was taken from a 3D printer controller designed five years ago. Now, [Marko] is building some upgrades for this engraver and his PCB production skills have gone through the roof.

The laser engraver [Marko] picked up is called the EleksMaker, and lucky for him there are quite a few upgrades available on Thingiverse. He found two 3D printable parts, one that keeps the belt parallel to the aluminum extrusion, and another that provides adjustable x-axis tightness on the belt. With these two mods combined, [Marko] actually has a nice, smooth motion platform that’s more precise and makes better engravings.

These upgrades weren’t all 3D-printable; [Marko] also got his hands on a few Trinamic TMC2130 stepper motor drivers. These stepper drivers are the new hotness in 3D printing and other desktop CNC machines, and looking at the waveform in an oscilloscope, it’s easy to see why. These drivers produce a perfectly smooth waveform via interpreted microstepping, and they’re almost silent in operation. That’s terrible if you want to build a CNC chiptune player, but great if you want smooth engraving on a piece of copper clad board.

This project has come a long way since the last time we took a look at it a few months ago, and the results just keep getting better. [Marko] is making real PCBs with a laser engraver that cost less than $200, and the upgrades he’s already put into it don’t add up to much, either. You can take a look at [Marko]’s progress in the video below.

Thanks [dechemist] for the tip.

Continue reading “Improving Cheap Laser Engravers For PCB Fabrication”

Super-small Robotic Joints Don’t Exist? They Do Now!

[Tim] needed very small, motorized joints for a robot. Unable to find anything to fit the bill, he designed his own tiny, robotic joints. Not only are these articulated and motorized, they are designed to be independent – each containing their own driver and microcontroller.

6mm geared motor next to LEGO [Source: Pololu]
None of the photos or video really give a good sense of just how small [Tim]’s design is. The motor (purple in the 3D render above, and pictured to the left) is a sub-micro planetary geared motor with a D shaped shaft. It is 6mm in diameter and 19mm long. One of these motors is almost entirely encapsulated within the screw it drives (green), forming a type of worm gear. As the motor turns the screw, a threaded ring moves up or down – which in turn moves the articulated shaft attached to the joint. A video is embedded below that shows the joint in action.

[Tim] originally tried 3D printing the pieces on his Lulzbot but it wasn’t up to the task. He’s currently using a Form 2 with white resin, which is able to make the tiny pieces just the way he needs them.

Continue reading “Super-small Robotic Joints Don’t Exist? They Do Now!”

One Man, A Raspberry Pi, and a Formerly Hand Powered Loom

[Fred Hoefler] was challenged to finally do something with that Raspberry Pi he wouldn’t keep quiet about. So he built a machine assist loom for the hand weaver. Many older weavers simply can’t enjoy their art anymore due to the physical strain caused by the repetitive task. Since he had a Pi looking for a purpose, he also had his project.

His biggest requirement was cost. There are lots of assistive looms on the market, but the starting price for those is around ten thousand dollars. So he set the rule that nothing on the device would cost more than the mentioned single board computer. This resulted in a BOM cost for the conversion that came in well under two hundred dollars. Not bad!

The motive parts are simple cheap 12V geared motors off Amazon. He powered them using his own motor driver circuits. They get their commands from the Pi, running Python. To control the loom one can either type in commands into the shell or use the keyboard. There are also some manual switches on the loom itself.

In the end [Fred] met his design goal, and has further convinced his friends that the words Raspberry Pi are somehow involved with trouble.

Continue reading “One Man, A Raspberry Pi, and a Formerly Hand Powered Loom”