[sdiy] Microchip PIC 5 x 4 matrix
Rick Jansen
rick.jansen at xs4all.nl
Thu Oct 8 10:03:48 CEST 2015
Just as an idea: <http://dropmix.xs4all.nl/rick/Emusic/varia/just_switches.pdf>
32 switches, 32 LEDs (uP controlled). If your switches have built-in LEDs you could have
64 switches here.
PIC16F88 has SDL, SDA signals, and probably an interrupt too.
(With Arduino the sketch/program is dead easy too.)
rick
On 07/10/2015 17:26, Jean-Pierre Desrochers wrote:
> Nice I2C interface chip Rick.
>
> The tradeoff I face here is always the same..
> More PIC code with less IC's or
> Less PIC code with more IC's..
>
> JP
>
>
> <
> Le 2015-10-07 11:21, Rick Jansen a écrit :
>> If you can use an I2C bus the PCF8574 is nice for this too. 2 pins for
>> serial communication, plus an interrupt, if you want to use that. With
>> 3 8574's you can read 24 switches. Each switch just connects to GND,
>> no matrix necessary.
>>
>> rick
>>
>>> On 07 Oct 2015, at 15:52, Jean-Pierre Desrochers <jpdesroc at oricom.ca>
>>> wrote:
>>>
>>> I'm about to build a MIDI foot controller
>>> using around 20 normally open footswitches
>>> with there respective state LEDs.
>>> I have a bunch of PIC16F88 micros and want
>>> to use one for this project using as less pins as possible.
>>> (9 pins for the matrix)
>>> I figured out a way to read and feed all switches
>>> and LEDs this way:
>>>
>>> http://www.arcenson.com/public/PIC16F88_5x4_matrix.JPG
>>>
>>> All the switches and LEDs will be processed one after each other
>>> in an endless loop..
>>> RB5 will send the MIDI data.
>>>
>>> Does anybody see something I forgot in that drawing ?
>>> I'm not home and will try it tonight.
>>>
>>> Thanks. JP
>>> _______________________________________________
>>> Synth-diy mailing list
>>> Synth-diy at dropmix.xs4all.nl
>>> http://dropmix.xs4all.nl/mailman/listinfo/synth-diy
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at dropmix.xs4all.nl
> http://dropmix.xs4all.nl/mailman/listinfo/synth-diy
>
More information about the Synth-diy
mailing list