n0ne Posted December 8, 2005 Report Share Posted December 8, 2005 Hi guys,I already asked this in another topic in the MIOS forum, but didn't get an asnwer, so I hope that this is the right place to ask...in midiox I notice that my non detented encoder (ALPS EC11E1830401) only sends its original 36 pulses, in the mios specification it says something about making the resolution higher with the software. Why isn't this working? am I missing something? Hope someone has an answer since I didn't find it in the forum.Greets, Jeroen. Quote Link to comment Share on other sites More sharing options...
TK. Posted December 8, 2005 Report Share Posted December 8, 2005 Hi Jeroen,it depends on the encoder type you've selected in mios_tables.inc, see alsohttp://www.ucapps.de/mios/mios_encoder_modes.gifSo, only with a non-detented encoder a quadrupled resolution can be achievedBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 8, 2005 Author Report Share Posted December 8, 2005 Thanks, for the quick reply, I've got this:MIOS_ENC_PIN_TABLE ;; encoders 1-16 ;; SR Pin Mode ENC_ENTRY 2, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 1 ENC_ENTRY 2, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 2That's correct right?Jeroen. Quote Link to comment Share on other sites More sharing options...
raphael Posted December 8, 2005 Report Share Posted December 8, 2005 Yes. Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 8, 2005 Author Report Share Posted December 8, 2005 then do you have any clue why it is nog working :s Quote Link to comment Share on other sites More sharing options...
raphael Posted December 8, 2005 Report Share Posted December 8, 2005 Do you have connected them to the right SR?According to your setup you're using SR2 and have connected the encs to pins 4+5 and 6+7. Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 8, 2005 Author Report Share Posted December 8, 2005 well they do work correctly, only the resolution is not quadroubled :s... so I guess they're connected correct.:(, thanks though, Jeroen. Quote Link to comment Share on other sites More sharing options...
raphael Posted December 8, 2005 Report Share Posted December 8, 2005 Hmm, I don't know. According to the datashet (http://www.spelektroniikka.fi/kuvat/ec11.pdf) your encoder sends 18 pulses per turn(not 36). So you should get 72 INCs/DECs per turn... Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 8, 2005 Author Report Share Posted December 8, 2005 That is very weird, I was told they have a resolution of 36, but I'll go and ask again. But it still doesn't explain the 36 pulses I get. Quote Link to comment Share on other sites More sharing options...
TK. Posted December 8, 2005 Report Share Posted December 8, 2005 You could upload the MIDIO128 application and count the number of MIDI events per revolution.Each Note On/Off has to be counted as one pulseBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 9, 2005 Author Report Share Posted December 9, 2005 Hi,With the MIDIO128 I get 72 lines in one turn, so that means 36 pulses. (and those are 18 from C and 18 from C#). So I could conclude that my encoders do send 36 pulses, but there's something going wrong at the firmware side. Does anyone know what might be going wrong?thanks, Jeroen. Quote Link to comment Share on other sites More sharing options...
TK. Posted December 9, 2005 Report Share Posted December 9, 2005 Hi,either you've selected a certain speed mode which slows down the encoder (which application are you using?), or after the changes in mios_tables.inc you forgot to re-build the application?Do you notice any change with different encoder types?Btw.: you could use the debug window of MIOS-Studio in order to change the Speed mode on-the-fly (but not the encoder type...) - the appr. function is called http://www.ucapps.de/mios_fun.html#MIOS_ENC_SpeedSetBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
kokoon Posted December 9, 2005 Report Share Posted December 9, 2005 just a second... if your encoder really is 18 detents then 4x18 = 72 and that means it's okay it's quadropled. Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 9, 2005 Author Report Share Posted December 9, 2005 either you've selected a certain speed mode which slows down the encoder (which application are you using?),64e, with 32 pots, 60 buttons and 2 encoders.or after the changes in mios_tables.inc you forgot to re-build the application?I'm sure I did not, I've made other changes too. (but also tried it with a clean copy of midibox64e)Do you notice any change with different encoder types?If you mean modes, no. And if not, I only have one kind of encoder.If I change my speed setting via the menu buttons to fast I get an increasement of 3 per pulse, I'll have to check what happends when I set it to slow...Btw.: you could use the debug window of MIOS-Studio in order to change the Speed mode on-the-fly (but not the encoder type...) - the appr. function is called http://www.ucapps.de/mios_fun.html#MIOS_ENC_SpeedSetWill try...just a second... if your encoder really is 18 detents then 4x18 = 72 and that means it's okay it's quadropled.I got 72 lines with the MIDIIO128, when reading the encoder as buttons, when it's read as an encoder I get 36 lines.Another thing that has got me confused is when I look at the picture: http://www.ucapps.de/mios/mios_encoder_modes.gif, I see that the NON_DETENTED type uses the on AND off of both pin's, so this is the same as what I see while monitoring the output of MIDIO128. Since I got 72 lines there, and the NON_DETENTED picture as a quadrubled resolution I would think that indeed my encoder has a resolution of 18 instead of 36, TK are you sure that every on/off coulpe is one pulse? I hope it's clear what I mean :s.Jeroen. Quote Link to comment Share on other sites More sharing options...
TK. Posted December 9, 2005 Report Share Posted December 9, 2005 Another thing that has got me confused is when I look at the picture: http://www.ucapps.de/mios/mios_encoder_modes.gif, I see that the NON_DETENTED type uses the on AND off of both pin's, so this is the same as what I see while monitoring the output of MIDIO128. Since I got 72 lines there, and the NON_DETENTED picture as a quadrubled resolution I would think that indeed my encoder has a resolution of 18 instead of 36, TK are you sure that every on/off coulpe is one pulse? I hope it's clear what I mean :s.I'm very sure that the algorithm I've developed works correctly, but it depends on the hardware (encoder) if it's possible to quadruple the resolution or not. So, before we continue the discussion, it would be useful to know, if your encoder always sends a single MIDI event on a "tick" (use the MIDIO128 application to determine this), or if it can happen that two MIDI events are sent at the same time. If this is the case, then the quadrature encoded waveforms of your encoder are not like in the mios_encoder_modes.gif, and this means that there is no way for the software to make 4 steps of 1Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 9, 2005 Author Report Share Posted December 9, 2005 Yes, that is what happends! Argh that's a bummer. Would it be possible to double it then? Because these are the same encoders Luis uses on the KDJ and he mailed me that he get's a resolution of 72 with software. Would it be sufficient to change the mode to DETENTED (1)? Or will I have to do some additional programming.Thanks a lot... it's not a happy answer but at least I know what the problem is. Maybe I'll just get other encoders.Jeroen. Quote Link to comment Share on other sites More sharing options...
TK. Posted December 9, 2005 Report Share Posted December 9, 2005 Could you please ask him, how he did this? (Can he also turn water into wine? ;-)I've no idea how it is possible to create 4 ticks from 3 (or less) transientsWould it be sufficient to change the mode to DETENTED (1)?this would just only left out some ticks (see the .gif file)Or will I have to do some additional programming.If KDJ tells you how he realized this?If he has just only used an acceleration detection, then you can do the same by configuring MIOS_ENC_SpeedSet in fast modeBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
n0ne Posted December 9, 2005 Author Report Share Posted December 9, 2005 he doesn't get it quadroubled but doubled, would you know how that would be possible? Quote Link to comment Share on other sites More sharing options...
TK. Posted December 9, 2005 Report Share Posted December 9, 2005 Everything which is possible concerning encoder sampling is already part of MIOS, I really don't know what else could be optimized...How does he achieve 72 pulses with this encoder?What does he understand under doubling? (I want to see the waveforms...)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.