intosite Posted May 19, 2004 Report Share Posted May 19, 2004 Hi,Am trying to build a controller for this vj software. Problem is I require 136 digital input buttons and only 8 analog ones. Is there anyway to make use of the analog inputs to act as digital ones? Cause don't think i want to build another core for another 8 buttons.Cheers Quote Link to comment Share on other sites More sharing options...
Pearl Posted May 19, 2004 Report Share Posted May 19, 2004 Hi ...take a look to http://www.ucapps.de/index.html Download-Section. There, you will find code-examples for using analog-inputs as switch.Good Luck :)Bye Pearl Quote Link to comment Share on other sites More sharing options...
TK. Posted May 19, 2004 Report Share Posted May 19, 2004 But the J5 examples only demonstrate how to use the complete analog port (8 pins) of the PIC as digital in- or outputs. In this configuration no pots or faders can be stuffed at the same time.So, it's better just to connect the buttons to the AINs. One contact of the button has to be connected to +5V, the other to the analog input. Additionally a 1k pulldown has to be added to the analog input for a defined signal if the button is not pressed.Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted May 20, 2004 Report Share Posted May 20, 2004 If using J5 as a DIN instead of an AIN, can the inputs be multiplexed like with a DIN module? This would allow up to 256 Digital Ins, but obviously no analog ins... I'd really like that! Quote Link to comment Share on other sites More sharing options...
intosite Posted May 20, 2004 Author Report Share Posted May 20, 2004 Hi TK,Thanks for your tip.So do i hook it up like that? Don't get what you mean by 1K pull down and where to put it.Is this right?Cheers Quote Link to comment Share on other sites More sharing options...
TK. Posted May 20, 2004 Report Share Posted May 20, 2004 If using J5 as a DIN instead of an AIN, can the inputs be multiplexed like with a DIN module? This would allow up to 256 Digital Ins, but obviously no analog ins... I'd really like that!by using a clever multiplex algorithm for the shift register chain, you could multiplex up to 1024 buttons - the scan matrix driver will make this clear. But there are also disadvantages of this method: each button needs an additional diode, higher latency or higher CPU load, higher RAM consumption, and the driver itself is very individual - it depends on your hardware and on the application, and therefore requires some technical as well as programming skills. Therefore this solution is not supported as "standard" by myself, because the guidance would cost a lot of my sparetime.So, I will provide unsupported example programs.Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
TK. Posted May 20, 2004 Report Share Posted May 20, 2004 So do i hook it up like that? Don't get what you mean by 1K pull down and where to put it.Is this right?yes, thats right. You see, it isn't so difficult ;-)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
intosite Posted May 20, 2004 Author Report Share Posted May 20, 2004 Thanks for the help. :) Quote Link to comment Share on other sites More sharing options...
stryd_one Posted May 21, 2004 Report Share Posted May 21, 2004 /me does a little danceGo Thorsten! Go Thorsten! ;) Quote Link to comment Share on other sites More sharing options...
intosite Posted June 21, 2004 Author Report Share Posted June 21, 2004 Thanks for the help,But once i hook up the bts to the AIN, how do i set it up on the MIOS so they trigger the note on/off?Am using the :Test Applications ain64_din128_dout128_v1_3.zip - MIOS configured for 64 pots, 128 buttons, 128 LEDsfrom the mios download page. Also am using 6 multiplexers. What changes must i do to the MIOS?Cheers :) Quote Link to comment Share on other sites More sharing options...
TK. Posted June 22, 2004 Report Share Posted June 22, 2004 Hi,in this example application you have to change the events in mios_tables.incBest 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.