hi everybody, its the first time i write in this forum...
im very much of a beginner in everything concers arduino... i hope that u got some patiance for some slow questions...
im trying to build a box wich has 16 buttons and 16 leds... the idea is very simple , i press a button, and a led goes on.. (revolutionery, isnt it?) it suppose to be a kind of step sequencer controller... ive mannaged to multiplex 16 inputs to the arduino and to read it in max/msp, but i have no luck doing the opposite, i mean operating the leds... i could not find any info about the 4051 as demux on the web...woud anybody have any suggstions on how to keep on going? would sombody be kind enough to post am example code, even the simple of the simplest, just to give me an idea?
thanks for replying...yea, i did... unfortunatly, when i try to use the example code of the arduino 4051 tutorial, i get this error:
In function 'void loop()':
error: 'count' was not declared in this scope
and about the other thread with the links, none of them is arduino related... (except of this excelnt little scale blog, which in this case deals with multiplexing, not with de multiplexing...)
thanks, manged to complie... but im a shame to say that i didnt got any further by communicating with the mux thrugh max... but mybe my questions are too slow for this forum....i just dont really know where to start...
Two 74HC595's for 16 out, they daisy chain, you use them with with shift out, they latch so you can flip the latch and the arduino can do something else like run two 74HC165 for 16 digital in chips in a continuous loop looking for a low or high showing a button push. This needs you to learn to use pulse in which is tricky but doable.
thanks! ive ordered the 595ยดs... should take them a week or so... btw, how complicated would it be to combine 2 x 595 as shift in, 2 x 595 for shift out, and 2 x 4051 for analog read? (codewise?)