Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Login


Options
View
Go to last post Go to first unread
bigpanda  
#1 Posted : Sunday, June 10, 2012 12:21:57 PM(UTC)
bigpanda

Rank: Member

Groups: Member
Joined: 5/22/2012(UTC)
Posts: 24
Hong Kong

Thanks: 2 times
I am using Arduino Mega2560, connect digital pin 20 to BIII SDA and pin 21 to BIII SCL and GRN to GRN with simple 10K-10K voltage divider. I found that there is always 3.3V at BIII SDA & SCL pins and signals from Arduino are pulled high. Have I done anything wrong?
Corpius  
#2 Posted : Sunday, June 10, 2012 12:43:30 PM(UTC)
Corpius

Rank: Member

Groups: Member
Joined: 2/1/2012(UTC)
Posts: 332
Location: The Netherlands

Thanks: 4 times
Was thanked: 18 time(s) in 18 post(s)
are you using the Hifiduino code? If so, then it should be connected like this:

I2C connection and level converter hookup
bigpanda  
#3 Posted : Sunday, June 10, 2012 1:54:12 PM(UTC)
bigpanda

Rank: Member

Groups: Member
Joined: 5/22/2012(UTC)
Posts: 24
Hong Kong

Thanks: 2 times
Thanks Corpius

I remember Brian mentioned in Diyaudio that a simple resistor divider will do the job, not necessary to use the level convertor. The problem is why there is 3.3V present on the two pins (SDA & SCL) on BIII.
Russ White  
#4 Posted : Sunday, June 10, 2012 5:39:33 PM(UTC)
Russ White

Rank: Administration

Groups: Administration, Customer
Joined: 10/24/2006(UTC)
Posts: 3,979
Location: Nashville, TN

Thanks: 25 times
Was thanked: 89 time(s) in 83 post(s)
No you would not use a voltage divider here. That advice was not related to I2C.

You need to read up on I2C, the 3.3V is normal state for an idle bus.

The level shifter for I2C is a good idea, though it's necessity depends on the bus master implementation. Open drain types won''t need it.
thanks 1 user thanked Russ White for this useful post.
bigpanda on 6/11/2012(UTC)
Bemused  
#5 Posted : Wednesday, June 13, 2012 11:29:29 AM(UTC)
Bemused

Rank: Member

Groups: Member
Joined: 5/10/2012(UTC)
Posts: 10
United Kingdom

I have an Arduino Uno r3 connected via I2C to a Buffalo-III using Hifiduino code without the level converter.
Al seems fine.

Tony
bigpanda  
#6 Posted : Thursday, June 14, 2012 7:12:27 AM(UTC)
bigpanda

Rank: Member

Groups: Member
Joined: 5/22/2012(UTC)
Posts: 24
Hong Kong

Thanks: 2 times
I bought a level convertor from China and it works fine. Problem solved.
Rss Feed  Atom Feed
Users browsing this topic
GuestUser (8)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.