[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself


View post   

File: 28 KB, 700x700, modulo.jpg [View same] [iqdb] [saucenao] [google]
1745939 No.1745939 [Reply] [Original]

so i got this arduino noisemaker thingy that lets you select 10 "patches" with a rotary encoder. you rotate it and then confirm by pushing it. but i only like 3 of the patches so id like to select say just 3, 7 and 9 and avoid the rest. is there a way to achieve this? like with a 3 way rotary mechanical selector?

>> No.1745940

itd be a mechanical rotary and a separate pushbutton to confirm, would this be doable?

>> No.1745945

>>1745939
With a razor blade, cut the traces to the tracks you don't like. Then, short the open traces to the tracks you do like.
Is there like, a chip on the back of that thing?

>> No.1745946

>>1745939

Why not just change the software side of it? These rotary encoders are normally incremental and only communicate direction (turned left or turned right) instead of an absolute position. You could overcomplicate things by having another arduino with a little program that pulses the encoder input to simulate you selecting that preset but cmon...

>> No.1745948

>>1745946
i dont have access to the software. this would be a physical intervention only. yeah, i thought of that, of telling the program "go 5 to the right" with an arduino and sounds cumbersome as fuck. would that be the only solution?

>> No.1746022

aaa

>> No.1746258

>>1745948
small IC would be easiest way to achieve what you want without modifying software. Just get attiny or any other cheap 8pin ic and write a code that would simulate necessary amount of turns or hire someone on fiver for 5bucks to do it for you as its insanely easy for any novice programmer/hobbyist

>> No.1746296

>>1746258

The problem with this technique is that if it picks up (or misses) a spurious pulse from somewhere (touching the case, static discharge, power flux, something bounced, etc.) it will be out-of-sync. Even worse if it had memory of the last encoder setting through power cycling (reset).

>> No.1746344

>>1746296
well desynch might occure but chase of that is rather low, I mean its a rotary encoder not some high frequency pulse and it that case you just have to reset both devices. Tbh without modifying software there isn't really anything else you could do so either that or reverse engineering

>> No.1746405

>>1746344
Low, but quite maddening if it were to happen.

If you assume the patch visual indicator is a 7 segment display you could send the LED drive signals to the GPIO of your µC that is sending the pulses as feedback that it's on the right patch... kind of like a servo.

You might need that guy from fiver a sawbuck though.

>> No.1747272

>>1745939
it'll be the software that's counting the encoder pulses and handling the selection, you probably won't be able to wire up a 3 way selector to replace it. Unless, like another anon says, you wire another microcontroller in place of the encoder and tell that how many pulses to send when you press a button or something.

>> No.1747274

>>1745939
Still can't believe this post is hanging around the top of the catalog. Here's the answer. Get another arduino, and a stepper motor. Connect the stepper motor to this encoder shaft, and 3 buttons to select the selections you want, write arduino code to turn stepper motor appropriately. There, it skips the "bad" selections, and no access to the original software needed, and no fancy figuring out the encoding scheme.