The Three Cent Motor Controller

If you follow the world of small microcontrollers you will certainly be familiar with the usual fare of Atmel, ARM Cortex, PIC, and others. But these aren’t the smallest or cheapest devices, below them is an entire category of grain-of-dust microcontrollers with minimal capabilities and at rock bottom prices. Maybe the most well known are the Padauk series of chips, whose PIC12-like architecture can be had for literal pennies. These are the famous 3 cent microcontrollers, but despite their fame they have a bit of a reputation in our community for being difficult to work with. [Ben Lim] dispels some of those ideas, by Padauk-enabling a motor and encoder from a printer to make a three cent motor controller.

The Padauk doesn’t have on-chip peripherals such as SPI, instead its IDE provides bit-banging code to do the job. This and some PID motor controller code makes for a straightforward task on the little chip, and with the help of a probably considerably more expensive MAX14870 it can drive the motor. For the curious, the code can be found in a Git Hub repository. There may be more accomplished motor controllers to be found, but we doubt you’ll find one with a cheaper microcontroller.

Want to know what the fuss is about with the Padauk? Our colleague [Maya Posch] has you covered.

How To Improve A Smart Motor? Make It Bigger!

Brushless motors can offer impressive torque-to-size ratios, and when combined with complex drive control and sensor feedback, exciting things become possible that expand the usual ideas of what motors can accomplish. For example, to use a DC motor in a robot leg, one might expect to need a gearbox, a motor driver, plus an encoder for position sensing. If smooth, organic motion is desired, some sort of compliant mechanical design would be involved as well. But motors like the IQ Vertiq 6806 offered by [IQ Motion Control] challenge those assumptions. By combining a high-torque brushless DC motor, advanced controller, and position sensing into an integrated device, things like improved drone performance and direct-drive robotic legs like those of the Mini Cheetah become possible.

IQ Vertiq 6806 brushless DC motor with integrated controller, driver, and position sensing.

First, the bad news: these are not cheap motors. The IQ Vertiq 6806 costs $399 USD each through the Crowd Supply pre-order ($1499 for four), but they aren’t overpriced for what they are. The cost compares favorably with other motors and controllers of the same class. A little further than halfway down the Crowd Supply page, [IQ Motion Control] makes a pretty good case for itself by comparing features with other solutions. Still, these are not likely to be anyone’s weekend impulse purchase.

So how do these smart motors work? They have two basic operating modes: Speed and Position, each of which requires different firmware, and which one to use depends on the intended application.

The “Speed” firmware is designed with driving propeller loads in mind, and works a lot like any other brushless DC motor with an ESC (electronic speed control) on something like a drone or other UAV. But while the unit can be given throttle or speed control signals like any other motor, it can also do things like accept commands in terms of thrust. In other words, an aircraft’s flight controller can communicate to motors directly in thrust units, instead of a speed control signal whose actual effect is subject to variances like motor voltage level.

The “Position” mode has the motor function like a servo with adjustable torque, which is perfect for direct drive applications like robotic legs. The position sensing also allows for a few neat tricks, like the ability to use the motors as inputs. Embedded below are two short videos showcasing both of these features, so check them out.

Continue reading “How To Improve A Smart Motor? Make It Bigger!”

Retrotechtacular: Synchros Go To War (and Peace)

Rotation. Motors rotate. Potentiometers and variable capacitors often rotate. It is a common task to have to rotate something remotely or measure the rotation of something. If I asked you today to rotate a volume control remotely, for example, you might offer up an open loop stepper motor or an RC-style servo. If you wanted to measure a rotation, you’d likely use some sort of optical or mechanical encoder. However, there’s a much older way to do those same tasks and one that still sees use in some equipment: a synchro.

The synchro dates back to the early 1900s when the Panama Canal used them to read and control valves and gates. These devices were very common in World War II equipment, too. In particular, they were often part of the mechanisms that set and read gun azimuth and elevation or — like the picture to the left — a position indication of a radar antenna. Even movie cameras used these devices for many years. Today, with more options, you don’t see them as much except in applications where their simplicity and ruggedness is necessary.

Continue reading “Retrotechtacular: Synchros Go To War (and Peace)”

Friday Hack Chat: A Design Slam Challenge

Every Friday, the Hackaday.io community gathers ’round the fireplace and discusses the challenges facing the world. This is the Hack Chat, and in previous incarnations, we’ve talked about custom silicon, Arduinos, PCB fabrication, old technologies, and hardware manufacturing.

For this week’s Hack Chat, we’re opening up a design challenge. We’re asking the community for help on developing a wireless position sensor. This is a Design Slam Hack Chat, and we’re looking for contributors.

Our guest for this week’s Hack Chat will be [Naveen Nair], technology leader for GE Fuse. We’ll be discussing position sensors during this Hack Chat. If you’ve ever used a mouse, you’re using a position sensor, but for this Hack Chat we’re designing something a little more challenging. The Fuse group is attempting to build a low-cost, wireless position sensor with hand-held ultrasonic inspection units. Why is GE interested in this technology? Our guess is inspecting jet turbines, or something like that. That doesn’t mean low-cost wireless position sensors wouldn’t have other applications, though. Just imagine what a quadcopter could do if it could sense its position with 1mm resolution.

Won’t be able to make the Hack Chat? Don’t worry, we’ll be putting a transcript up here sometime after the event.

Here’s How To Take Part:

join-hack-chatOur Hack Chats are live community events on the Hackaday.io Hack Chat group messaging. This Hack Chat will take place at noon Pacific time on Friday, July 7th. Confused about where and when ‘noon’ is? Here’s a time and date converter!

Log into Hackaday.io, visit that page, and look for the ‘Join this Project’ Button. Once you’re part of the project, the button will change to ‘Team Messaging’, which takes you directly to the Hack Chat.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

I’ll See Your Launchpad Controlled Arm And Raise You Arduino Controlled Autonomy

This OWI robot arm has been hacked to add position sensors and Arduino control. [Chris Anderson] took one look at the Launchpad controlled OWI from earlier today and said “wait a minute, I’ve already posted my own version of that project”. Well, that will teach him not to tip us off about his hacks!

The position control is a really nice addition. Potentiometers added to each of the joints (shoulder, elbow, and wrist) can be read by the ADC pins on the Arduino. Just a bit of calibration will let the microcontroller board know the position of the arm at any given time. The control technique is the same as the Launchpad hack, with one glaring drawback. [Chris] is using the Adafruit motor driver shield. It uses L293D H-bridge chips, but it only has four channels. There are five motors on this arm, so the video after the break shows it moving around without any outside instruction, but you won’t see it grab onto anything since the Arduino can’t move the gripper!

Still, the position feedback makes the case for this version. Just remember to order an extra chip if you want full control.

Continue reading “I’ll See Your Launchpad Controlled Arm And Raise You Arduino Controlled Autonomy”