Logic Level Converter

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Logic Level Converter

Post by rahatmaini »

I am using the Nunchucky and the 4 bit i2c safe Logic Level Converter together. I must have checked the wiring 10 times, and I am almost 100% sure that neither of the products are defective. When I use the Nunchucky with the Arduino alone, there is no problem but I want to use the Converter to make sure my nunchuck is safe from 5v logic. So I followed this forum: http://forums.adafruit.com/viewtopic.ph ... 99#p176699. Did everything according to that. But with the logic level converter, it does not work at all!

Please Please Please help Adafruit! Am I using the logic level converter wrong? :cry:

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: Logic Level Converter

Post by adafruit_support_mike »

Do you have a picture or diagram for your circuit? That will help us spot errors that might be getting past you.

Personally, I have more d'oh! moments than I want to admit, not because I don't know something, but because what I think I know is wrong.

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

Nunchucky.jpg
Nunchucky.jpg (158.48 KiB) Viewed 1979 times
I have followed this exactly. Note that if I just remove the logic converter and connect the Nunchucky regularly, it works fine. (But then again, it is a 3.3v logic device)

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

An important thing to note actually is that I have not soldered the logic level converter to a header strip, I have just press fitted but made sure the pins stay in contact

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

Any help Adafruit? You guys told me that this would work!

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

I just soldered this and still no luck. Thanks for support :(

User avatar
arctic_eddie
 
Posts: 233
Joined: Tue Feb 28, 2012 6:01 pm

Re: Logic Level Converter

Post by arctic_eddie »

A clear photo of your setup will help.

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

WP_000436.jpg
WP_000436.jpg (185.67 KiB) Viewed 1903 times
Please ask if connections are unclear

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: Logic Level Converter

Post by adafruit_support_mike »

That is some fun wiring, but the connections do seem to match the circuit diagram. ;-) The next step is to make sure the connections are actually working. Breadboards are notorious for being wonky.

Do you have a multimeter with a connectivity/diode-test function? If so, touch the probes to the PCB pads at both ends of each wire and you should get a beep if there's a good connection. If not, you can use an ohmmeter and look for resistances of zero ohms (or some low value) between points that are supposed to be connected. Also check the voltages between the VCC and GND pins of both breakout boards, just to be sure power is getting where it's supposed to.

Next, do a basic sanity test on the level-shifting circuits. Disconnect the lead to the 3.3v input, connect the 5v input to GND, and measure the voltage at the 3.3v input pin. It should be GND or something close to it. Disconnect the lead to the 5v input, connect the 3.3v input to GND, and check the 5v side. It should be GND again.

If your multimeter has a frequency counter, get the clock running and check for the right frequency on the B2, A2, and CLK pads on the breakouts.

If all else fails, try tightening up your wiring. I2C clocks run at 100kHz and 400kHz, long looped wires have inductance, and breadboards have a lot of stray capacitance. It's possible that parasitic effects are messing with the signals.

Do solder all your header pins to the breadboards.. you might not notice the effects of a pin making and breaking contact for a few milliseconds, but trust me, the I2C circuits will.

To dig deeper than that you'll need more than just a multimeter.. an oscilloscope or logic analyzer would be ideal, but they're both pricey. If you have a second Arduino, you can fake a logic analyzer by sampling input pins really fast, but that's an adventure we can discuss if you end up needing it.

User avatar
adafruit_support_mike
 
Posts: 67391
Joined: Thu Feb 11, 2010 2:51 pm

Re: Logic Level Converter

Post by adafruit_support_mike »

Ugh, I'm a bit slow tonight..

If you want a good-but-affordable piece of test gear, the Bus Pirate (http://www.adafruit.com/products/237) has built-in I2C sniffing features. It's a sweet little device, and only costs $30.

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

You sir, are amazing. Extremely helpful,now I understand why adafruit is so successful. Its because they have a community with people like you. Thank you. :D

User avatar
arctic_eddie
 
Posts: 233
Joined: Tue Feb 28, 2012 6:01 pm

Re: Logic Level Converter

Post by arctic_eddie »

One thing that helps in diagnosing a wiring problem via a photo is to use particular wire colors. This of course assumes you have a good supply. Adafruit has a good combination of length and male/female connections. Here are some common usages but not absolute. Excess wire length also confuses the issue. Photos can be taken at about 60 degrees above the horizontal. Focus is important when wires plug into adjacent pins on a header or plugboard.

Red - 5V or higher

Black - ground

Orange - 3V3

Yellow - I2C clock ??? May be reversed with green

Green - I2C data ??? May be reversed with yellow

Blue - pulled down logic

White - pulled up logic

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

Soldered both the Nunchucky and the Logic Level Converter. Checked all the connections by plugging in various LEDs and using the Arduino to control them using the holes of the breadboard. Everything is correctly arranged and I have used about 10 different sketches online. I am using an official Nunchuck from Nintendo. What is going on guys? Come on I bought a soldering iron from Adafruit just for this and none of this stuff works.

What do I do now? Adafruit does not even give refunds for this. The forums are so helpful yet the products are low quality. Come on guys. Please :(

User avatar
adafruit_support_rick
 
Posts: 35092
Joined: Tue Mar 15, 2011 11:42 am

Re: Logic Level Converter

Post by adafruit_support_rick »

The picture you posted - was that before or after you soldered the header pins? Because they don't look soldered in that photo...

User avatar
rahatmaini
 
Posts: 176
Joined: Wed Aug 29, 2012 5:15 pm

Re: Logic Level Converter

Post by rahatmaini »

That was looong time back. I recently ordered a soldering iron and soldered the pins. If you do not believe me, I can post pics of the soldered items if you want :)

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”