Twisted Pear Audio Support
»
Product Support
»
Digital
»
Buffalo DAC
»
connect Arduino to BIII through I2C not working
Rank: Member
Groups: Member
Joined: 5/22/2012(UTC) Posts: 24 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?
|
|
|
|
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: |
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/22/2012(UTC) Posts: 24 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.
|
|
|
|
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.
|
1 user thanked Russ White for this useful post.
|
|
|
Rank: Member
Groups: Member
Joined: 5/10/2012(UTC) Posts: 10
|
I have an Arduino Uno r3 connected via I2C to a Buffalo-III using Hifiduino code without the level converter. Al seems fine.
Tony
|
|
|
|
Rank: Member
Groups: Member
Joined: 5/22/2012(UTC) Posts: 24 Thanks: 2 times
|
I bought a level convertor from China and it works fine. Problem solved.
|
|
|
|
Twisted Pear Audio Support
»
Product Support
»
Digital
»
Buffalo DAC
»
connect Arduino to BIII through I2C not working
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.