How Accurate Is Microstepping Really?

Stepper motors divide a full rotation into hundreds of discrete steps, which makes them ideal to precisely control movements, be it in cars, robots, 3D printers or CNC machines. Most stepper motors you’ll encounter in DIY projects, 3D printers, and small CNC machines are bi-polar, 2-phase hybrid stepper motors, either with 200 or — in the high-res variant — with 400 steps per revolution. This results in a step angle of 1.8 °, respectively 0.9 °.

Can you increase the resolution of this stepper motor?

In a way, steps are the pixels of motion, and oftentimes, the given, physical resolution isn’t enough. Hard-switching a stepper motor’s coils in full-step mode (wave-drive) causes the motor to jump from one step position to the next, resulting in overshoot, torque ripple, and vibrations. Also, we want to increase the resolution of a stepper motor for more accurate positioning. Modern stepper motor drivers feature microstepping, a driving technique that squeezes arbitrary numbers of microsteps into every single full-step of a stepper motor, which noticeably reduces vibrations and (supposedly) increases the stepper motor’s resolution and accuracy.

On the one hand, microsteps are really steps that a stepper motor can physically execute, even under load. On the other hand, they usually don’t add to the stepper motor’s positioning accuracy. Microstepping is bound to cause confusion. This article is dedicated to clearing that up a bit and — since it’s a very driver dependent matter — I’ll also compare the microstepping capabilities of the commonly used A4988, DRV8825 and TB6560AHQ motor drivers.

Continue reading “How Accurate Is Microstepping Really?”

Seeed Studio’s ReSpeaker Speaks All The Voice Recognition Languages

Seeed Studio recently launched its third Kickstarter campaign: ReSpeaker, an open hardware voice interface. After their previous Kickstarted IoT hardware, such as the RePhone, mostly focused on connectivity, the electronics manufacturer from Shenzhen now tackles another highly contested area of IoT: Voice recognition.

The ReSpeaker Core is a capable development board based on Mediatek’s MT7688 WiFi module and runs OpenWrt. Onboard is a WM8960 stereo audio codec with integrated 1W speaker/headphone driver, a microphone, an ATMega32U4 coprocessor, 12 addressable RGB LEDs and 8 touch sensors. There are also two expansion headers with GPIOs, I2S, I2C, analog audio and USB 2.0 and an onboard microSD card slot.

The latter is especially useful to feed the ReSpeaker’s integrated speech recognition engine PocketSphinx with a vocabulary and audio file library, enabling it to respond to keywords and commands even when it’s not hooked up to the internet. Once it’s online, ReSpeaker also supports most of the available cloud based cognitive speech recognition services, such as Microsoft Cognitive Service, Amazon Alexa Voice Service, Google Speech API, Wit.ai and Houndify. It also comes with an SDK and Python API, supports JavaScript, Lua and C/C++, and it looks like the coprocessor features an Arduino-compatible bootloader.

The expansion header accepts shield-like hardware add-ons. Some of them are also available through the campaign. The most important one is the circular, far-field microphone array. Based on 7 XVSM-2000 respeaker_meow2digital microphones, the extension board enhances the device’s hearing with sound localization, beam forming, reverb and noise suppression. A Grove extension board connects the ReSpeaker to the Seeed’s current lineup on ready-to-use sensors, actuators and other peripherals.

Seeed also cooperates with the Meow King Audio Electronic Company to develop a nice tower-shaped enclosure with built-in speaker, 5W amplifier and battery. As a portable speaker, the Meow King Drive Unit (shown on the right) certainly doesn’t knock your socks off, but it practically turns the ReSpeaker into an open source version of the Amazon Echo — including the ability to run offline instead of piping everything you say to Big Brother.

According to Seeed, the freshly baked hardware will ship to backers in November 2016, and they do have a track-record of on-schedule shipped Kickstarter rewards. At the time of writing, some of the Crazy Early Birds are still available for $39. Enjoy the campaign video below and let us know what you think of think hardware in the comments!

Realize The Truth… There Is No Word Clock

Do you always look at it encoded? – Well you have to. The image translators work for the construct program.

Word clocks are supposed to de-encode time into a more readable format. Luckily [Xose Pérez] managed to recover the encoded time signal of the simulation we are all living in with his word clock that displays time using a stylish Matrix code animation.

[Xose] already built his own versions of [Philippe Chrétien’s] Fibonacci Clock and [Jeremy Williams’s] Game Frame, and while doing so he designed a nice little PCB. It’s powered by an ATmega328p, features an RTC with backup battery, an SD-card socket, and it’s ready to drive a bunch of WS2812Bs aka NeoPixels. Since he still had a few spare copies of his design in stock, his new word clock is also driven by this board.

Continue reading “Realize The Truth… There Is No Word Clock”

HoloLens NES Emulator For Augmented Retro Gaming

[Andrew Peterson] was looking for a way to indulge in his retro gaming passions in a more contemporary manner. His 3D NES emulator “N3S” for Windows brings Nintendo classics to the HoloLens, turning pixels into voxels, and Super Mario into an augmented reality gingerbread man.

To run NES games on the HoloLens, [Andrew’s] emulator uses the Nestopia libretro core. Since AR glasses cry for an augmentation of the game itself, the N3S re-emulates the NES’ picture processing unit (PPU), allowing it to interpret a Nintendo game’s graphics in a 3D space. [Andrew] also put together a comprehensive explanation of how the original Nintendo PPU works, and how he re-implemented it for the HoloLens.

The current version of the N3S PPU emulator automatically generates voxels by simply extruding the original pattern data from the game’s ROM, but [Andrew] is thinking about more features. Users could sculpt their own 3D versions of the original graphic elements in an inbuilt editor, and model sets could then be made available in an online database. From there, players would just download 3D mods for their favorite games and play them on the HoloLens.

According to [Andrew], the emulator reaches the limits of what the current pre-production version of the HoloLens can render fluently, so the future of this project may depend on future hardware generations. Nevertheless, the HoloLens screen capture [Andrew] recorded makes us crave for more augmented retro gaming. Enjoy the video!

Hackaday Prize Entry: Printem Is Polaroid For PCBs

We are going to great lengths to turn a quick idea into an electronic prototype, be it PCB milling, home etching or manufacturing services that ship PCBs around the world. Unwilling to accept the complications of PCB fabrication, computer science student [Varun Perumal Chadalavada] came up with an express solution for PCB prototyping: Printem – a Polaroid-like film for instant-PCBs.

Continue reading “Hackaday Prize Entry: Printem Is Polaroid For PCBs”

MagicShifter 3000: An Over-Engineered POV Stick With A 15-Year Journey

3 hackers, 16 LEDs, 15 years of development, one goal: A persistence of vision display stick that fits into your pocket. That’s the magicShifter 3000. When waved, the little, 10 cm (4 inches) long handheld device draws stable images in midair using the persistence of vision effect. Now, the project has reached another milestone: production.

The design has evolved since it started with a green LED bargraph around 2002. The current version features 16 APA102 (aka DotStar) RGB LEDs, an ESP-12E WiFi module, an NXP accelerometer/magnetometer, the mandatory Silabs USB interface, as well as a LiPo battery and charger with an impressive portion of power management. An Arduino-friendly firmware implements image stabilization as well as a React-based web interface for uploading and drawing images.

After experimenting with Seeedstudio for their previous prototypes, the team manufactured 500 units in Bulgaria. Their project took them on a roundtrip through hardware manufacturing. From ironing out minuscule flaws for a rock-solid design, over building test rigs and writing test procedures, to yield management. All magicShifter enclosures are — traditionally — 3D printed, so [Overflo] and [Martin] are working in shifts to start the 500 prints, which take about 50 minutes each to complete. The printers are still buzzing, but assembled units can be obtained in their shop.

Over all the years, the magicShifter has earned fame and funding as the over-engineered open hardware pocket POV stick. If you’re living in Europe, chances are that you either already saw one of the numerous prototype units or ran into [Phillip Tiefenbacher] aka [wizard23] on a random hacker event to be given a brief demo of the magicShifter. The project always documented the status quo of hardware hacking: Every year, it got a bit smaller, better, and reflected what parts happened to be en vogue.

magicshifter-timeline

The firmware and 3D-printable enclosure are still open source and the schematics for the latest design can be found on GitHub. Although, you will search in vain for layout or Gerber files. The risk of manufacturing large batches and then being put out of business by cheap clones put its mark on the project, letting the magicShifter reflect the current, globalized status of hardware hacking once more. Nevertheless, we’re glad the bedrock of POV projects still persists. Check out the catchy explanatory video below.

Continue reading “MagicShifter 3000: An Over-Engineered POV Stick With A 15-Year Journey”

Repairing 14 Tektronix TLA5202 Logic Analyzers

[Matthew D’Asaro] was recently entrusted with an entire classroom fleet of fourteen broken Tektronix TLA5202 logic analyzers — a pile of equipment that once was worth hundreds of thousands of dollars. His task: Fixing them. He fixed them all, and on the way documented a number of common failure points in these old but still great devices.

Continue reading “Repairing 14 Tektronix TLA5202 Logic Analyzers”