Post by phervier on Apr 1, 2016 6:20:02 GMT
the GT2560 board has not a lot of input output available for extension (only two unused pins). It exists unused IOs on the micro-controller but to use it you have to solder a wire directly on it which is a little risky.
So to add new sensors or actuators the only practical solution is to use a specific bus like I2C (TWI). Fortunately the wireds used by I2C are available on the LCD connector. On the other hand they are already used by LCD management so some interference may occur.
The hardware modification needed to use IC2 is quite simple
NEW CONNECTOR :
The ribbon cable given with the LCD is long enough to be used for extension. I just added a new connector in its middle and reserve the existing one to connect the I2C extension board.
the connector may be found here :
IDC female socket
It is very simple to connect as you have just to crimp it on the ribbon cable at the right length. Just be careful to put it in the same direction as existing one.
I2C BOARD :
I made it on a small part of stripboard. I just put two I2C connectors for the moment but i made the board long enough to add much more of them.
here is picture of the board and small scheme of the connections.
As there is no real rules for I2C connector, I used 4 pins JST connectors with wire order that simplify the board conception.
male IDC connector may be found here : male IDC
I found the JST connectors here : JST connectors
I printed also a small case for the extension board to make it cleaner :
and here it is, you may use I2C sensors and actuators (with a few software adds though, i will put new treads with some examples).
So to add new sensors or actuators the only practical solution is to use a specific bus like I2C (TWI). Fortunately the wireds used by I2C are available on the LCD connector. On the other hand they are already used by LCD management so some interference may occur.
The hardware modification needed to use IC2 is quite simple
- add a new connector on the LCD ribbon cable
- builds a simple passive extension board to adapt to I2C needs
NEW CONNECTOR :
The ribbon cable given with the LCD is long enough to be used for extension. I just added a new connector in its middle and reserve the existing one to connect the I2C extension board.
the connector may be found here :
IDC female socket
It is very simple to connect as you have just to crimp it on the ribbon cable at the right length. Just be careful to put it in the same direction as existing one.
I2C BOARD :
I made it on a small part of stripboard. I just put two I2C connectors for the moment but i made the board long enough to add much more of them.
here is picture of the board and small scheme of the connections.
As there is no real rules for I2C connector, I used 4 pins JST connectors with wire order that simplify the board conception.
male IDC connector may be found here : male IDC
I found the JST connectors here : JST connectors
I printed also a small case for the extension board to make it cleaner :
and here it is, you may use I2C sensors and actuators (with a few software adds though, i will put new treads with some examples).