<div dir="auto"><div>see: <a href="https://ams.com/as5055a">https://ams.com/as5055a</a></div><div dir="auto"><br></div><div dir="auto">they also offer the magnets for that application.<br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Sat, Jul 25, 2020, 07:00 Ben Bradley <<a href="mailto:ben.pi.bradley@gmail.com">ben.pi.bradley@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I thought up something a few years ago that may be useful for the<br>
currently-discussed sequencer, or really any synth device where you<br>
want to read several controls using high resolution with a<br>
microcontroller. I still haven't made a prototype, but there's no<br>
reason for this not to work.<br>
<br>
Background:<br>
Available rotary encoders are basically two types:<br>
1. cheap detented mechanical (quadrature output, the whole four cycle<br>
output per detent) with 12 to 24 detents. These are used in car radio<br>
volume and tuning controls, and 90s CRT brightness-and-constrast<br>
controls. Often have a putbutton feature but that's not relevant here.<br>
The price on these is good, in the $1 to $2 range.<br>
<br>
2. nice no-detent easy-turning shaft optical quadrature output with a<br>
few hundred counts per revolution. These are used for<br>
higher-resolution needs like (1990s) logic analyzers and digital<br>
oscilloscopes for the "master incremental controller." The prices I've<br>
seen on these are like $30, where you can barely justify one for a<br>
master controller. They give good resolution, but using several would<br>
be too costly to justify.<br>
<br>
My Idea:<br>
Use a couple of linear Hall-effect devices fixed at 90 degrees to each<br>
other, right behind a magnet on the end of the shaft encoder. These<br>
are arranged so that as the knob is turned through one rotation, one<br>
output would output one cycle of a sine wave, and the other would<br>
output one cycle of a cosine wave. Reading these in the A/D input of a<br>
microcontroller and doing the appropriate trig function (basically<br>
atan2) would give the angle of the shaft. You could (with appropriate<br>
multiplexing, etc.) read a large number of such encoders at what would<br>
feel like real time with a modern microcontroller. Even cheap plastic<br>
3d-printable parts should get resolution to a couple degrees. Cost of<br>
parts might be $2 or $3 per encoder (not including microcontroller and<br>
multiplexing, which would be shared among the encoders).<br>
<br>
The parts I got for this a few years ago are TI DRV5053. It just<br>
occurred to me that perhaps similar are available with a digital<br>
interface, and looking on Digikey finds AS5510 with an I2C interface.<br>
These aren't necessarily optimal or the cheapest, just the first I ran<br>
across, but an I2C interface would be easier hardware-wise than<br>
multiplexing analog voltages.<br>
<br>
This doesn't cover displaying the value controlled by each encoder as<br>
it's turned, but that's a "separate function." For the<br>
currently-discussed sequencer you might only need to hear the<br>
oscillator for controlling pitch, and for duration use a two-digit<br>
display.<br>
_______________________________________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org" target="_blank" rel="noreferrer">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer noreferrer" target="_blank">http://synth-diy.org/mailman/listinfo/synth-diy</a><br>
</blockquote></div></div></div>