Pensive
Well-known member
Chips which supports multiple 2bit gray code encoders w/ i2c interface (& LED PWM?)
Hi All
I've been searching for a while and come up fairly empty so far;
I'm looking for a chip which would support (at least) 2 rotary encoder inputs with 6 PWM LED outputs, preferably double that on one chip, or even 4 times that in a perfect world.
I can find the MAX7360 from maxim which has the LED outputs but only 1 rotary encoder input.
OR
A chip that is dedicated for encoders, supporting 4 or 8 of them, hang the leds, I can use any one of 10 different LED driver chips over i2c fairly easily.
At the moment, I'm looking at running an atmega328p over wire library and using pin change interrupts, to support up to 4 encoders with an RGB LED output for each:
http://thewanderingengineer.com/2014/08/11/arduino-pin-change-interrupts/
but this seems a little kludgy, not to mention adds another step to a manufacturing process of having to burn chips before they are mounted onto a PCB, plus then the obvious challenges of firmware bugs once soldered.
Plus there's hardware PWM for 6 outputs but not twelve so I'd have to roll my own PWM solution for 2 of the encoders. Reality is i'd be looking at 2 encoders per Atmega328p. (They're only around 90p each so this might be the cheapest solution.)
I could use one max7360 per encoder but what a waste! and a very expensive solution, at £2.30 a pop even in bulk.
Anyone got any ideas? Is there a good place to look for this sort of thing - I'm a bit new to low level IC things - is there a chip that does this anywhere?
Thanks
Jon
Hi All
I've been searching for a while and come up fairly empty so far;
I'm looking for a chip which would support (at least) 2 rotary encoder inputs with 6 PWM LED outputs, preferably double that on one chip, or even 4 times that in a perfect world.
I can find the MAX7360 from maxim which has the LED outputs but only 1 rotary encoder input.
OR
A chip that is dedicated for encoders, supporting 4 or 8 of them, hang the leds, I can use any one of 10 different LED driver chips over i2c fairly easily.
At the moment, I'm looking at running an atmega328p over wire library and using pin change interrupts, to support up to 4 encoders with an RGB LED output for each:
http://thewanderingengineer.com/2014/08/11/arduino-pin-change-interrupts/
but this seems a little kludgy, not to mention adds another step to a manufacturing process of having to burn chips before they are mounted onto a PCB, plus then the obvious challenges of firmware bugs once soldered.
Plus there's hardware PWM for 6 outputs but not twelve so I'd have to roll my own PWM solution for 2 of the encoders. Reality is i'd be looking at 2 encoders per Atmega328p. (They're only around 90p each so this might be the cheapest solution.)
I could use one max7360 per encoder but what a waste! and a very expensive solution, at £2.30 a pop even in bulk.
Anyone got any ideas? Is there a good place to look for this sort of thing - I'm a bit new to low level IC things - is there a chip that does this anywhere?
Thanks
Jon