I tried to use the Adafruit Trellis system with an Arduino Due:
I have connected the 5V contact on the Trellis with the 3.3V pin on the Arduino, in order to avoid 5V signals at the I2C pins. (I have used pin 20 and 21 on the Due.) I got it to work partially after adding "#define _BV(n) (1 << n)" in the Trellis library. However, only some buttons (2, 6 and 7) were working then.
Should Trellis be working correctly with 3.3V, is mine maybe broken?
(Cannot check that with a 5V Arduino, since my Arduino Leonardo seems to be bricked - Windows complains that it doesn't recognize the device, RX and TX LEDs are glowing continuously, but that's another issue.)
Could I connect Trellis to 5V and maybe use a simple voltage divider to get 3.3V signals at SDA? In this case, could I connect SCL without using a voltage divider, since the clock signal should be provided by the Arduino?
Using Adafruit Trellis with Arduino Due
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Franklin97355
- Posts: 23912
- Joined: Mon Apr 21, 2008 2:33 pm
Re: Using Adafruit Trellis with Arduino Due
Could you post clear pictures of your board and the connections to it? You could use a level shifter like This
- zoobroker
- Posts: 7
- Joined: Tue Jul 16, 2013 12:06 pm
Re: Using Adafruit Trellis with Arduino Due
Hey oneudert -- Did you get the trellis working with the due? Wondering if level shifting was all that was needed or not.
Please be positive and constructive with your questions and comments.