dusted off my unfinished midibox_ng … so i got all encoders, LEDs and buttons working, but i can’t figure out how to use buttons connected to a ainser64 module as toggle buttons.
(I wanted to use analog pots for the encoders at first, but decided for digi encoders later, so thats why all my buttons ended up on the ainser64 module.)
which does toggle the button on, but doesn’t turn it off again. Tried a couple of other ideas too (conditional events, depending on the buttons state) .. but no matter what i do i don’t get it to toggle on and off.
Is it possible? Just missing something obvious (just starting to get into the config options)?
It supports the new “ain_mode=Switch”, which should work much better:
o added ain_mode=Switch for AIN and AINSER events.
Can be used if buttons are connected to analog inputs. The event will send the
min value if a 30% threshold is reached, and the max value if a 70% threshold
is reached.
Schematic: Ground |----o Button o-----> analog input + 10k Pull-Up resistor to 3.3V (AIN) resp. 5V (AINSER)
Just tried it, but it doesn’t work for me. I guess that’s because i wired the buttons differently.
My Buttons are Vd ----o Button o---- analog input .. and i added a 220 ohm resistor from pin #3 to #8 on the ainser64 4051’s, to get rid of random messages.
No idea what i am doing there, really, just tried things until it worked :o
Will that setup potentially damage my hardware?
I’m considering to rewire the buttons, but it’s some work, and it is actually working pretty nice with the hack for now.
When i set the range very low, something like 0:4 it does work like a standard ‘press’ button, but it doesn’t toggle on/off .. with higher settings it doesn’t trigger at all, or triggers once, but not again.