[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Encoders w/128 pulses per turn?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 14
Thread images: 1
File: encoder.jpg (3 KB, 249x202) Image search: [Google]
encoder.jpg
3 KB, 249x202
Some MIDI controllers (like APC40, Behringer BCR2000, Livid Instrumets, etc) have rotary encoders to control virtual knobs that have 128 positions.

Im searching about rotary encoders to make a DIY MIDI controller based on Arduino, but i only find rotary encoders with 20/24 steps per turn, i cant find a "128 steps" encoder.

How can a "20 steps" rotary encoder send 128 pulses per turn? How this MIDI controllers works?

Thanks /g/!
>>
>>>/diy/
>>
>>53726500
I presume the 128 pulses refers to the bit depth of the encoder after going through an ADC. If you have 128 bits of resolution, when sending the 24 stages in rotation there would be 24 different combinations of them, being

x/128 = encoded value, range [0:x:24].

I could be mistaken but this is what I figure after a couple quick google searches.

I also think a resolution of 128 bits would be strange, as that would use 7 pins. That's an odd number to have on an IC. If you figure anything more out let me know, I'm actually curious.
>>
>>53726787

The encoders have 3 pins: https://www.mpcstuff.com/rotary-encoder-for-mpc-2000-xl-renaissance-jog-wheel-post/

The encoders:
http://djlogic.es/wp-content/uploads/akai_apc-40_mk2_encoders_www.djlogic.es_.jpg
>>
>>53726876
Sorry, this is the APC encoder: https://www.mpcstuff.com/rotary-encoder-pot-mpd-mpk-apc-push-in-to-enter/
>>
>>53726927
Looking at that, I think my other suspicion is true: there are just potentiometers. The first one has to be: given the number of pins.

The second link appears to have an extra pin (can't fully tell from the image because of the watermark), though this would be accounted for in the description, as it says that the dial works as a pushbutton as well.

Going back to the original question, I'm confused still as to the 20 steps, as in my (limited) experience with sound boards the dials have always been free rotating without a clickiness.

In the case of what these "encoders" actually do, assuming they are just potentiometers, they cause a greater/lesser voltage drop based upon the position of where the potentiometer is rotated to. This is then sent through an ADC, where this analog voltage output is converted into a bit resolution.

This would make the most sense as to how this would work, as the 128 virtual positions would simply mean that the ADC has a resolution of 128 bits for the entirety of a rotation of the potentiometer.

I'm not sure if an arduino has ADCs built in. If it does, then designing this yourself becomes relatively simple: simply connect a voltage source to the pot and hook then run this into the ADC of the arduino. You will need to check the voltages that the ADC can accept as to not blow it out and choose your voltage source based on that. Doing that with a breadboard as a test model should let you get the knowledge you need to build the dials used. The midi would then be based in software.
>>
>>53727211
This. If there's no "clickiness" and they can't spin all the way around, they're just potentiometers.
>>
>>53727316
not OP but yes I have a few keyboards/synths and I am pretty sure the knobs are just potentiometers.
>>
>>53726876
99% they're just potentiometers hooked up to an ADC. Using an ADC for discretization is pretty common practice when you have an ADC and not so many pins. Even a shitty ADC can get you 5-10 discrete values on a single pin.
>>
Try looking thru digikey or mauser... They are electronic part distibuters who have thousands of parts and won't make you buy drop ship quantities
>>
>>53727397
>single pin out from ADC
>multiple values
Is this ADC using a serial communication now?
>>
>>53727509
I'm assuming a SoC or an ADC with a one wire bus, obviously.
>>
This pdf shows an encoder that has 128 states... Not sure if you can read it with an arduino, but you could use another ic to interface with it check page 5
https://www.google.com/url?sa=t&source=web&rct=j&url=http://www.anglia.com/literature/bourns_encoders.pdf&ved=0ahUKEwjJ04-m0eLLAhVJvoMKHcCWCDUQFghOMA0&usg=AFQjCNHkUGQqQwPTw6RFtkYy2uxlMcC7fw&sig2=gt1Vo4JP3PGgCk6vGr-zww
>>
Same fag. Watch this video op,
https://youtu.be/DREGVc00FY8
Thread replies: 14
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.