Dave Strength Posted February 14, 2011 Report Share Posted February 14, 2011 I"m having trouble getting the encoder data wheel to work on my midibox CV. I'm using a Bourns PEC16-4220F-S0024 24 2 bit gray code encoder. I've rebuilt and downloaded the application with the changes to setup_j5_enabled.asm including defining the line #define DEFAULT_ENC_DATAWHEEL 0. (Initially i had defined it as 1, but changed to 0). And, I've confirmed the encoder is defined in mios_tables.inc. The Select and Exit buttons work correctly, so I'm guessing that the DINX4 and CORE is working properly. But, I get no repsonse when jogging the wheel. This is my first midibox project so I'm somewhat lost here. Any help would be appreciated. Quote Link to comment Share on other sites More sharing options...
TK. Posted February 15, 2011 Report Share Posted February 15, 2011 Hi, are numbers incremented/decremented when you shortly connect DIN pin 4 and 5 to ground? No: strange! Did you really recompile the project to generate a new .hex file? Yes: the encoder pinning is different - check it. Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Dave Strength Posted February 16, 2011 Author Report Share Posted February 16, 2011 Thanks for the ideas. Indeed I built a new hex file (having deleted the old ones just to make sure) and loaded it via MIOS studio. I performed the test you described in shorting pins 4 and 5 to ground, however this did not produce any results. I think the DIN is working ok since the LCD readoutresponsed to Select and Exit buttons correctly. Also, I think if the changes hadn't been made to the hex file, the Select and Exit functions would be assigned to different pins....as it is now, they are working propely on pins 6 and 7. I've tried changing the IC's on the DIN, changing the encoder defintion,etc. I've confirmed the wiring on the encoder, and ohmed out the encoder with no wires attached. Is there anything else you think I might check? Quote Link to comment Share on other sites More sharing options...
Dave Strength Posted February 20, 2011 Author Report Share Posted February 20, 2011 Figured it out...had a short in the midi cable. MIOS still allowed the upload..though it was very slow, it reported successful. Changed out midi cables, got a good reliable core status check, re-uploaded and everything worked. Thanks again. Quote Link to comment Share on other sites More sharing options...
TK. Posted February 20, 2011 Report Share Posted February 20, 2011 Just yesterday, I had a similar experience: a loose contact in a MIDI cable from Reichelt -> trash can :-/ 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.