Pages: [1]   Go Down
Author Topic: Teensy++ and centepede shield  (Read 1494 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to use the Teensy++ 2 to run a chessboard with 64 LEDS and 64 reed switches. The centepede shield: http://docs.macetech.com/doku.php/centipede_shield  seems an ideal solution, especially as you can link two to address 128. it It uses the Wire I2C interface on analog pins 4 and 5 to provide 64 general purpose I/O pins. (x2) so I get massive addressing for only 2 pins with the added bonus that you connect using a ribbon cable and it has built in resistors.

 It is designed to stack on a standard uno type board, however I want to use the Teensy because that can communicate using serial USB and keyboard at the same time.

So my question is, which pins represent the "Wire I2C interface on analog pins 4 and 5 " and can i just solder connections of two centipedes in a daisy chain arrangement?

Any other observations welcome.

Max
.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 217
Posts: 13707
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


from the website
Quote
ADDRESS Jumper

The MCP23017 I2C interface can have up to 8 unique bus addresses. The Centipede Shield uses X00 to X11, where X is the value of the ADDRESS jumper. This allows the Centipede Shield address space to be shifted by four places, either to prevent interference on the I2C bus with another device, or to allow two Centipede Shields to coexist.

so it seems that you can use 2 shield simultaneously and just solder them together as the I2C addressing takes care of selecting the right shield.

(disclaimer: no hands on experience )
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

SF Bay Area
Offline Offline
Edison Member
*
Karma: 11
Posts: 1244
Arduino Ninja
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That's correct. You can string the shields together with a few wires, connect the SDA and SCL in parallel. I don't have a Teensy to test, so there is no Centipede Library for it...but you should be able to get it working quickly, the library is merely convenient.

A chess board is also the perfect layout for a matrix arrangement...you may not really need that many channels. The reed switches could easily be read with 16 pins.
Logged

Unique RGB LED Modules and Arduino shields: http://www.macetech.com/store

Nice, France
Offline Offline
Full Member
***
Karma: 11
Posts: 237
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So my question is, which pins represent the "Wire I2C interface on analog pins 4 and 5 " and can i just solder connections of two centipedes in a daisy chain arrangement?

On the Arduino UNO, A4 is SDA and A5 is SCL (see UNO R3 pinout photo).

On Teensy 2.0++ and Teensy 2.0, D0 is SCL and D1 is SDA (see pin diagram).
Logged

Pages: [1]   Go Up
Jump to: