Go Back   Home > Forums > > >

Twisted Pear Superior quality electronic kits

Reply
 
Thread Tools
Old 26th February 2021, 11:23 PM   #1
fernfrost is offline fernfrost  Sweden
diyAudio Member
 
Join Date: Sep 2015
Default External controller for Buffalo-IIIsePro38 - i2c problems

Hi everyone

Im setting up an Arduino Due as external controller for my Buffalo-IIIsePro38 and I cannot get the i2c working.

Using the Wire library example scanner, I find a single device at address 0x20. I expected to find 0x48 or 0x90.
Turning off the BIII board results in no devices found so I know it is finding something on the BIII.

Writing directly to address 0x48 just gives result code 2 - NACK.

Code:
Wire.beginTransmission(DAC_ADDR);
Wire.write(7);
Wire.write(0);
byte res = Wire.endTransmission();
Serial.println(res);
What am I doing wrong here?
  Reply With Quote
Old 27th February 2021, 10:20 AM   #2
fernfrost is offline fernfrost  Sweden
diyAudio Member
 
Join Date: Sep 2015
As an experiment I hooked up my OLD BuffaloIIIse (es9018) the exact same way and ran the i2c scanner. It found devices at 0x20, 0x48.

I have tried different variations of the RESET pin:
- permanently low
- pulling high for a second
- permanently high
... and everything inbetween.

Completely stuck.

Last edited by fernfrost; 27th February 2021 at 10:35 AM.
  Reply With Quote
Old 24th March 2021, 04:45 AM   #3
francolargo is offline francolargo  United States
diyAudio Member
 
Join Date: Mar 2007
Location: Twin Cities, MN
When all supply voltages are stable and MCLK is active, you should reset the DAC by pulling the reset pin low temporarily, then operate with reset pulled high.

I use the linux commands 'i2cdetect' and 'i2cdump' to detect the DAC and read it's register contents. You will want to check the needed bus number, etc.

For an RPi or BBB:

Code:
root@DietPi:/# i2cdetect -y 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --
Code:
root@DietPi:/# i2cdump -y 1 0x48
No size specified (using byte-data access)
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 00 0c 3c 00 00 68 4a 60 88 88 00 00 1a 20 8a 0f    .?<..hJ`??..? ??
10: 00 00 00 00 00 00 00 00 ff ff ff 7f 00 00 00 00    ...........Q....
20: 00 00 00 00 00 00 10 32 54 76 00 00 00 00 00 e0    ......?2Tv.....?
30: 03 00 04 00 04 00 f0 00 00 ff ff ff ff 4f 00 06    ?.?.?.?......O.?
40: a1 07 ff ff 7f 00 00 00 00 00 00 00 00 00 00 00    ??..?...........
50: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 35    ...............5
60: c7 fc f4 00 02 36 36 36 36 36 36 36 36 00 00 00    ???.?66666666...
70: 80 00 00 80 XX XX XX XX XX XX XX XX XX XX XX XX    ?..?XXXXXXXXXXXX
80: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
90: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
a0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
b0: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX    XXXXXXXXXXXXXXXX
c0: a1 07 01 00 80 00 00 00 00 00 00 00 00 00 00 00    ???.?...........
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 25    ...............%
e0: ef 6f 84 00 02 78 70 78 70 78 70 78 70 00 00 00    ?o?.?xpxpxpxp...
f0: 80 00 00 80 XX X

Last edited by francolargo; 24th March 2021 at 05:15 AM.
  Reply With Quote
Old 24th March 2021, 06:38 PM   #4
johnmarkp is offline johnmarkp  United States
diyAudio Member
 
Join Date: Apr 2004
Location: Wisconsin
The Arduino Due has always had problems with I2C. My guess is that it has not been fixed. Check out Arduino Due forum on the Arduino site for possible solutions.
Have you tried a different type of Arduino.

Last edited by johnmarkp; 24th March 2021 at 06:49 PM.
  Reply to this post

Reply


External controller for Buffalo-IIIsePro38 - i2c problemsHide this!Advertise here!
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with BBB-Hermes-Cronus for Buffalo-IIIsePro38 build. stefanhgm Twisted Pear 14 28th February 2020 04:00 PM
ES9018 I2C controller Corpius Digital Line Level 275 10th February 2019 03:10 PM
FS: R-2R attenuator, source selector and I2C controller PCBs OlegSh Swap Meet 28 16th October 2017 12:36 PM
I2C controller for Audio DSP elnec Digital Source 6 15th February 2008 10:58 AM
I2C Controller rehanabid Digital Source 1 21st October 2004 10:02 AM


New To Site? Need Help?

All times are GMT. The time now is 08:26 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.79%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.
Copyright ©1999-2021 diyAudio
Wiki