intosite Posted May 19, 2004 Report 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
Pearl Posted May 19, 2004 Report 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
TK. Posted May 19, 2004 Report 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.
stryd_one Posted May 20, 2004 Report 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!
intosite Posted May 20, 2004 Author Report 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
TK. Posted May 20, 2004 Report 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.
TK. Posted May 20, 2004 Report 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.
stryd_one Posted May 21, 2004 Report Posted May 21, 2004 /me does a little danceGo Thorsten! Go Thorsten! ;)
intosite Posted June 21, 2004 Author Report 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 :)
TK. Posted June 22, 2004 Report Posted June 22, 2004 Hi,in this example application you have to change the events in mios_tables.incBest Regards, Thorsten.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now