-->
Page 3 of 4

Re: Lcd 1602 commands.

PostPosted: Sun Jul 17, 2016 8:17 am
by martinayotte
forlotto wrote:We have a lack of information on GPIO expansion would be nice to see.


The MCP23017 I2C GPIO Expander is really easy to use, it has 16 GPIOs that can be configured as input or output. It has I2C address lines so 8 devices can be attached on the same bus, providing a total of 128 GPIOs.

Re: Lcd 1602 commands.

PostPosted: Sun Jul 17, 2016 10:29 pm
by forlotto
does each output input support pwm individually out of curiosity or analog write basically? What voltages does it run at errr I am sure I can just look at the data sheet but I am more interested in the discussed expansion that the user is using as I own one currently.

The type of information I am also interested in is getting it running I really need to play with a bit more in depth stuff like getting libraries going and such modifying basic code to fit it is currently out of my knowledge bubble so to speak but I am expanding it a little at a time.


Thanks for that though!

Re: Lcd 1602 commands.

PostPosted: Mon Jul 18, 2016 7:41 am
by martinayotte
MCP23017 doesn't have any PWM, neither PCF8574, since they are GPIO only.

If you need hardware PWM, then, there is the PCA9685, but it is output only, there is no inputs.

Re: Lcd 1602 commands.

PostPosted: Mon Jul 18, 2016 9:25 am
by trackerj
As martinayotte said, you need a dedicated PWM IC, MCP23017 or PCF8574/5 are not suitable for PWM.

PCA9685 16 bit Port PWM Driver is a nice choice. You have a brief description and driver example in the link.