My pots are mounted on a stripboard. Now I want to connect them to the AIN module but I am wondering if I need to connect them in a specific order. has to be the first pot (A0) connected first to J7 (Vs;Vd) and so on?
So long as you don’t use the MIDIbox with a display, the order doesn’t matter, since the pots are free assignable. A changed order could also be irritating when you plan to use Serge’s MIDIbox editor for the configuration of MIDI events
it’s possible to map physical inputs to the pin numbers which are used by the software, it requires a small modification within the USER_AIN_NotifyChange function.
I don’t remember the pot order of the old MB64 hardware, maybe just only one bit needs to be toggled - could you please tell me the order of the first 8 pots?
So long as you don’t use the MIDIbox with a display, the order doesn’t matter, since the pots are free assignable. A changed order could also be irritating when you plan to use Serge’s MIDIbox editor for the configuration of MIDI events
Best Regards, Thorsten.
and how would you arrange if graphic displays were used?
and how would you arrange if graphic displays were used?
Did you follow this diagram for the order of your pots? http://www.ucapps.de/mbhp/mbhp_ainx4.pdf because if you did, you shouldn’t have any problems, as far as I can see.
Thorsten, here is the old order of pots…
pot-0 to pin-12 (of 4051)
pot-1 to pin-13
pot-2 to pin-14
pot-3 to pin-15
pot-4 to pin-1
pot-5 to pin-2
pot-6 to pin-4
pot-7 to pin-5
thanks, from Steve (P.S. if it turns out to be a hassle, don’t worry, the old 16F firmware works fine for what I want to do, I just felt like seeing the new features of the MIOS version!)
thats an easy change, just add following lines below the USER_AIN_NotifyChange label in main.asm:
USER_AIN_NotifyChange
;; reverse order of pin numbers in MIOS_PARAMETER1[2..0]
movlw b'00000111'
xorwf MIOS_PARAMETER1, F
[/code]
(hope it works)
Best Regards, Thorsten.