The Teensy platform is very popular with hackers — and rightly so. Teensys are available in 8-bit and 32-bit versions, the hardware has a bread-board friendly footprint, there are a ton of Teensy libraries available, and they can also run standard Arduino libraries. Want to blink a lot of LED’s? At very fast update rates? How about MIDI? Or USB-HID devices? The Teensy can handle just about anything you throw at it. Driving motors is easy using the standard Arduino libraries such as Stepper, AccelStepper or Arduino Stepper Library.
But if you want to move multiple motors at high micro-stepping speeds, either independently or synchronously and without step loss, these standard libraries become bottlenecks. [Lutz Niggl]’s new TeensyStep fast stepper control library offers a great improvement in performance when driving steppers at high speed. It works with all of the Teensy 3.x boards, and is able to handle accelerated synchronous and independent moves of multiple motors at the high pulse rates required for micro-stepping drivers.
The library can be used to turn motors at up to 300,000 steps/sec which works out to an incredible 5625 rpm at 1/16 th micro-stepping. In the demo video below, you can see him push two motors at 160,000 steps/sec — that’s 3000 rpm — without the two arms colliding. Motors can be moved either independently or synchronously. Synchronous movement uses Bresenham’s line algorithm to plan motor movements based on start and end positions. While doing a synchronous move, it can also run other motors independently. The TeensyStep library uses two class objects. The Stepper class does not require any system resources other than 56 bytes of memory. The StepControl class requires one IntervallTimer and two channels of a FTM (FlexTimer Module) timer. Since all supported Teensys implement four PIT timers and a FTM0 module with eight timer channels, the usage is limited to four StepControl objects existing at the same time. Check out [Lutz]’s project page for some performance figures.
As a comparison, check out Better Stepping with 8-bit Micros — this approach uses DMA channels as high-speed counters, with each count sending a pulse to the motor.
Thanks to [Paul Stoffregen] for tipping us off about this new library. Continue reading “TeensyStep – Fast Stepper Library for Teensy”
Need to make something quick and dirty out of wooden beams, and want to use elements you know will work together? BeamCNC is a mobile assembly of stepper-controlled rollers and a router that sucks a 2×2 through it and drills the holes in pre-programmed intervals. Currently being developed as part of an Indiegogo campaign currently in preview, its creator [Vladislav Lunachev] has declared it open source hardware. It’s essentially a CNC mill that makes Grid Beam, a classic DIY building set that resembles Meccano, Erector, and other classic sets, only made full-scale for larger projects. While BeamCNC is not affiliated with Grid Beam, it takes the same general idea and automates it.
Continue reading “BeamCNC: Computer-Controlled Construction System Mill”
When the [Director of Legal Evil] at Louisville’s LVL1 Hackerspace decided to demonstrate the uselessness of a 3D printer by printing a fidget spinner, another member at the space’s Tuesday meeting rose to the challenge and built a machine that whose sole purpose is to spin fidget spinners.
[Gary Flispart] used an Arduino clone and what appears to be a motor driver in conjunction with a stepper motor. The motor moves a belt that turns a series of metal scraps serving as a four-bar linkage. The linkage moves the dowel that turns the spinner and then gets out of the way so it doesn’t inhibit the toy’s rotation. The Digital Fidget Digit, as [Gary] calls it, looks like it was built out of scrap metal and random pieces of wood in the glorious tradition of hackerspace projects.
We at Hackaday love crazy projects that come out of hackerspaces, like the iris porthole at i3Detroit, another space’s ultimate fume extractor, and LVL1’s doomcano.
Continue reading “Fidget-Spinning Robot Out-Uselesses Other Useless Machines”
The rabbit hole of features and clever hacks in [chiprobot]’s NEMA17 3D Printed Linear Actuator is pretty deep. Not only can it lift 2kg+ of mass easily, it is mostly 3D printed, and uses commonplace hardware like a NEMA 17 stepper motor and a RAMPS board for motion control.
The main 3D printed leadscrew uses a plug-and-socket design so that the assembly can be extended easily to any length desired without needing to print the leadscrew as a single piece. The tip of the actuator even integrates a force sensor made from conductive foam, which changes resistance as it is compressed, allowing the actuator some degree of feedback. The force sensor is made from a 3M foam earplug which has been saturated with a conductive ink. [chiprobot] doesn’t go into many details about his specific method, but using conductive foam as a force sensor is a fairly well-known and effective hack. To top it all off, [chiprobot] added a web GUI served over WiFi with an ESP32. Watch the whole thing in action in the video embedded below.
Continue reading “Hackaday Prize Entry: 3D Printed Linear Actuator Does 2kg+”
Stepper motors are a great solution for accurate motion control. You’ll see them on many 3D printer designs since they can precisely move each axis. Steppers find uses in many robotics projects since they provide high torque at low speeds.
Since steppers are used commonly used for multi-axis control systems, it’s nice to be able to wire multiple motors back to a single controller. We’ve seen a few stepper control modules in the past that take care of the control details and accept commands over SPI, I2C, and UART. The AnanasStepper 2.0 is a new stepper controller that uses CAN bus for communication, and an entry into the 2017 Hackaday Prize.
A CAN bus has some benefits in this application. Multiple motors can be connected to one controller via a single bus. At low bit rates, it can work on kilometer long busses. The wiring is simple and cheap: two wires twisted together with no shielding requirements. It’s also designed to be reliable in high noise environments such as cars and trucks.
The project aims to implement an API that will allow control from many types of controllers including Arduino, Linux CNC, several 3D printer controllers, and desktop operating systems. With a few AnanasSteppers one of these controllers, you’d be all set up for moving things on multiple axes.
Modern 16:9 aspect ratio monitors may be great for watching a widescreen movie on Netflix, but for most PDFs, Word documents, and certain web pages, landscape just won’t do. But if you’re not writing the next great American novel and aren’t willing to commit to portrait mode, don’t — build an auto-rotating monitor to switch your aspect ratio on the fly.
Like many of us, [Bob] finds certain content less than suitable for the cinematic format that’s become the standard for monitors. His fix is simple in concept, but a little challenging to engineer. Using a lazy susan as a giant bearing, [Bob] built a swivel that can be powered by a NEMA 23 stepper and a 3D-printed sector of a ring gear. Due to the narrow clearance between the top and bottom of the lazy susan, [Bob] had to do considerable finagling to get through holes for the mounting hardware located, but in the end the whole thing worked great.
Our only quibble would be welding galvanized pipe for the stand, which always gives us the willies. But we will admit the tube notching turned out great with just a paper template. We doubt it would have been much better if he used an amped-up plasma-powered tubing notcher.
Continue reading “Landscape to Portrait at the Click of a Mouse”
We feature a lot of clocks here on Hackaday, and lately most of them seem to be Nixie clocks. Not that there’s anything wrong with that, but every once in a while it’s nice to see something different. And this electromechanical rack and pinion clock is certainly different.
[JON-A-TRON] calls his clock a “perpetual clock,” perhaps in a nod to perpetual calendars. But in our opinion, all clocks are perpetual, so we’ll stick with “linear clock.” Whatever you call it, it’s pretty neat. The hour and minute indicators are laser cut and engraved plywood, each riding on a rack and pinion. Two steppers advance each rack incrementally, so the resolution of the clock is five minutes. [JON-A-TRON] hints that this was a design decision, in part to slow the perceived pace of time, an idea we can get behind. But as a practical matter, it greatly simplified the gear train; it would have taken a horologist like [Chris] at ClickSpring to figure out how to gear this with only one prime mover.
In the end, we really like the look of this clock, and the selection of materials adds to the aesthetic. And if you’re going to do a Nixie clock build, do us a favor and at least make it levitate.
Continue reading “Linear Clock Slows the Fugit of the Tempus”