asbak Posted February 26, 2006 Report Share Posted February 26, 2006 Apologies for asking dumb and probably obvious questions - midibox attempt 1 is slowly taking shape but there are a few remaining kinks.After eventually succeeding in (hopefully) resolving bad connections on the AIN's and eventually seeing all 64 pots returning expected values the last major hardware problem seems to be one DIN which randomly generates 127 (on) events.Checked the soldering on the connectors, the affected DIN module and the switch itself but all seem OK as far as I could tell. I have a single rotary encoder attached on the same "shift register" as the errant DIN (will have to doublecheck later). It could be that it isn't wired up correctly as there are no markings on the encoder.Questions are:(1) - Would an incorrectly wired encoder cause random DIN events?(2) - In order to get the encoder to work properly, would I need to recompile the MB64_2.4 Hex file from the sources after altering the required values in the mios_tables.inc file and then upload this application to the PIC?RegardsHugo Quote Link to comment Share on other sites More sharing options...
moebius Posted February 26, 2006 Report Share Posted February 26, 2006 (1) - Would an incorrectly wired encoder cause random DIN events?(2) - In order to get the encoder to work properly, would I need to recompile the MB64_2.4 Hex file from the sources after altering the required values in the mios_tables.inc file and then upload this application to the PIC?1. This shouldn't be source of the problem. If the encoder is wired wrong (or it's not matching the type specified in the application code) it just should show erratic behaviour when turned. (Whoops, this might be random triggering of the DIN events if it's connected to pins assigned to buttons)2. Yes - and remember to change:#define DEFAULT_ENC_DATAWHEEL -1to#define DEFAULT_ENC_DATAWHEEL 0in the main.asm too (If you haven't done this already)Moebius Quote Link to comment Share on other sites More sharing options...
asbak Posted February 27, 2006 Author Report Share Posted February 27, 2006 Thanks a lot for the advice Moebius, something to hopefully try out tonight. Guess the first step will be to disconnect the encoder to see if this stops the on events from occurring.Best RegardsHugo Quote Link to comment Share on other sites More sharing options...
Wild_Weasel Posted February 27, 2006 Report Share Posted February 27, 2006 Hi!Get yourself an ohmmeter and check all resistors on the DIN module. Had also random midi events which turned out to be faulty resistors.regardsMichael Quote Link to comment Share on other sites More sharing options...
asbak Posted February 27, 2006 Author Report Share Posted February 27, 2006 Good tip, thank you very much Wild_Weasel! I have a multimeter so will give it a go as well. 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.