Jump to content

More than 128 digital inputs?


intosite

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 1 month later...

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 LEDs

from the mios download page.

Also am using 6 multiplexers. What changes must i do to the MIOS?

Cheers :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...