Estimate velocity using quadrature encoder data

quadrature-encoder-velocityMany motors offer a quadrature encoder that give feedback on whether, and in which direction, the motor shaft is moving. But if you’re clever about analyzing the data you can use a quadrature encoder to estimate motor velocity. [Jason Sachs] makes the case that it’s fairly easy to get this wrong. Lucky for us he has carefully laid out his process of extrapolating velocity from the two edge-trigger data sources.

The process starts with reading from the encoder. Many chips have peripherals that will interface with a rotary encoder, but hardware lacking that built-in helper can still be used by monitoring pin-change interrupts. Once connected samples are taken over time and the rest is left to the quality of your algorithm.

What can this velocity data be used for? That’s up to you. But we can think of a couple of projects. It may be useful in a spinning POV display like this FPGA-based beauty. You also find quadrature encoders in exercise equipment. Knowing the velocity will help if you’re building your own computer to replace what came with that Stairmaster.

[via Reddit]

Beauty in Destruction

This is not a hack. In fact it’s a promotional montage for a collection of scientific equipment that few of us could likely afford. But like yesterday’s giant marionettes over Berlin, sometimes even a costly and delicately-orchestrated achievement transcends its own not-a-hack-ness, fulfilling our brains’ lust for wonderment all the same.

Kurzzeit of Germany produces ballistics measurement equipment. The video depicts various combinations of projectiles and targets at up to one million frames per second, revealing unexpected beauty in hitherto unseen phenomena, and is the best damn ten minutes you will waste on the internet all day!

Follow

Get every new post delivered to your Inbox.

Join 96,322 other followers