Turning a motor into a sensor with the Peppermill

Arduino
Turning a motor into a sensor with the Peppermill

Peppermill

Tom Igoe got his hands on a Peppermill circuit board, and took it out for a spin:

Nicolas Villar sent me a sample of the PepperMill, a new sensor board he and Steve Hodges designed at Microsoft Research in Cambridge, UK. It’s a nifty little board. You attach a DC motor and the board can an output voltage when the motor is turned, and analog signals telling you the direction and speed of the motor. It turns a DC motor into a rotary encoder, of sorts.

Wiring is very simple. The motor connects to the two spring connectors at the top of the board. Direction and Speed pins connect to two analog inputs on your microcontroller. Ground connects to your microcontroller’s ground. The motor generates voltage when you spin it.

Check out Tom’s article for circuit diagrams, source code, and information on obtaining a Peppermill board to experiment with. Using PepperMill to turn a motor into a sensor

(Tom is a member of the Arduino team and the author of Making Things Talk).


Making Things Talk
Our Price: $29.99
Programming microcontrollers used to require an expensive development environment costing thousands of dollars and requiring professional electrical engineering expertise. Open-source physical computing platforms with simple i/o boards and development environments have led to new options for hobbyists, hackers, and makers. This book contains a series of projects that teach you what you need to know to get your creations talking to each other, connecting to the web, and forming networks of smart devices.

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged

I'm a tinkerer and finally reached the point where I fix more things than I break. When I'm not tinkering, I'm probably editing a book for Maker Media.

View more articles by Brian Jepson
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK