When working on projects, sometimes it's really useful to be able to track the rotation of an object. Whether that's the shaft of a spinning motor, or a knob that you turn to select an item on a user interface. In this post I'll talk about how encoders work, and how to read them with a microcontroller. I'll even go over a couple of mistakes that I've made that you should avoid. Encoders come in two different varieties. There's the electromechanical kind that have physical switches that open and close inside them. Then there are the contactless kind that usually use magnetic fields or light to detect the rotating shaft.
Bill of materials
Rotary encoder: www.digikey.co...
Limit Switch: www.digikey.co...
Nema 17 Stepper motor: www.digikey.co...
Fluke 117 Multimeter: www.digikey.co...
Resistor Kit: www.digikey.co...
Jumper Wire Kit: www.digikey.co...
Rigol DS1054 Oscilloscope: www.digikey.co...
Geared DC motor with encoder: www.digikey.co...
Arduino Nano Microcontroller: www.digikey.co...
Breadboard: www.digikey.co...
Github project: github.com/byt...
Learn More:
What is Switch Bounce and How to Debounce • What is Switch Bounce ...
Byte Sized Engineer channel - / @bytesizedengineering
Maker.io - www.digikey.co...
DigiKey’s Blog - TheCircuit www.digikey.co...
Connect with DigiKey on Facebook / digikey.electronics
And follow us on X: / digikey
6 окт 2024