Schlagwort: rotary encoder

  • Control your volume with a wireless rotary encoder, as you deserve

    Control your volume with a wireless rotary encoder, as you deserve

    Reading Time: 2 minutes

    Every decent stereo sold since the invention of sound has included a knob on the front for adjusting volume. There are influencers and entire communities dedicated to evaluating the feel of those wonderful knobs. So why would you settle for the mushy volume buttons on a remote? Eric Tischer didn’t think he should have to, so he built his own wireless rotary encoder device for controlling his DAC’s volume.

    A digital-to-analog converter (DAC) is an important part of modern digital audio systems. Tischer’s DAC/preamp takes the digital signal from a TV or other device, turns it into an analog signal, and then pushes that out to an amplifier. The DAC has a rotary encoder on the device itself for adjusting volume, but the remote just has the standard buttons. Tischer measured that remote and found that it takes 25 seconds to go from zero to full volume. That’s almost as annoying as the horribly unsatisfying buttons.

    Tisher’s solution was to construct a new wireless remote with only one job: controlling volume. It has a big CNC jog-wheel style rotary encoder that reportedly has a very nice feel, with 100 total detent “clicks” per revolution. That matches perfectly with the number of volume levels.

    An Arduino Nano ESP32 board monitors the remote rotary encoder and communicates the detected position (via pulse-counting) to another ESP32 board by the DAC. That second board attaches to the DAC’s built-in rotary encoder pins and simulates pulses that match the remote. So as far as the DAC knows, Tischer is rotating the built-in encoder. In reality, he’s sitting comfortably on the couch spinning that handheld knob instead of pushing buttons dozens of times per commercial break.

    [youtube https://www.youtube.com/watch?v=UF-4i1yZT8A?feature=oembed&w=500&h=281]

    The post Control your volume with a wireless rotary encoder, as you deserve appeared first on Arduino Blog.

    Website: LINK

  • Stepper motor utilized as a rotary encoder with Arduino

    Stepper motor utilized as a rotary encoder with Arduino

    Reading Time: < 1 minute

    Stepper motor utilized as a rotary encoder with Arduino

    Arduino TeamJuly 16th, 2018

    Stepper motors work by alternating a series of magnets in order to rotate its shaft by a certain angle. When the shaft is manually twisted, these magnets produce an electrical signal in a predictable pattern, which as shown in the video below, can be used as an encoder with the help of an Arduino Uno.

    More information, including a circuit diagram and the Arduino code used for the stepper-NeoPixel and stepper-stepper examples can be found here. While the write-up notes that this stepper-encoder won’t work reliably if turned too slowly, it seems to work quite well at the fairly low speed shown in the demonstrations.

    I want to tell you how to make incremental encoder from stepper motor. When we turning shaft of stepper motor it works like generator. It generates certain impulses on its coils. After some signal processing, we get same impulses as incremental encoder. This encoder has one problem, it can drop steps if you turning very slowly. But for many applications, it doesn’t matter.

    [youtube https://www.youtube.com/watch?v=fQ19661UGx8?feature=oembed&w=500&h=281]

    Website: LINK