Home > General > Hifiduino will be moving over here…

Hifiduino will be moving over here…

It has been a year since I started HIFIDUINO, primarily as a notebook for my own learning. Many users have found it useful and I plan to continue chronicling my own adventures with Arduino and DIY audio. But like anything else in the web, it is good to try something new. So I am moving from Blogger to WordPress. The old blog will continue to be available here: www.hifiduino.blogspot.com

Advertisements
  1. September 13, 2010 at 23:40

    first thanks for your nice website.

    just started playing with my arduino (I’m newbie with it)
    sadly I cannot get the volume control running. with my buffalo 1
    (not 2).

    A few questions:
    about wiring from arduino to buffalo:
    pin 4 to sda
    pin 5 to scl
    connect grounds.
    Do I need to connect Vdd on the buffalo too ?
    on the arduino I have 3.3V and I do not need pull up resistors ?
    right ?

    after that I tried the following test program to attenuate the vol.
    but nothing happens — but the ‘build in LED’ from the arduino is flashing.

    thanks
    would be nice to hear from you…

    gebi

    ————————————————————————————–
    #include

    int ledPin = 13; // led on the arduino
    int vol=0;

    void setup()
    {
    Wire.begin(); // join i2c bus (address optional for master)
    }

    void loop()
    {
    // Do stuff repeatedly

    digitalWrite(ledPin, LOW); // set the LED on
    delay(1000);

    Wire.beginTransmission(0x80); // Address of DAC is hex 80

    Wire.send(0x01); // Address of register 1 is hex 1
    Wire.send(vol); // Value into register 40
    Wire.send(0x02); // Address of register 2 is hex 2
    Wire.send(vol); // Value into register 40
    Wire.send(0x03); // Address of register 3 is hex 3
    Wire.send(vol); // Value into register 40
    Wire.send(0x04); // Address of register 4 is hex4
    Wire.send(vol); // Value into register 40

    Wire.endTransmission();

    digitalWrite(ledPin, HIGH);
    delay(1000);

    vol=vol+8; // 64 steps to 0.5db each. max attenuation=-127db

    if(vol == 64) // if reached 64th position (max)
    {
    vol = 0; // start over from 0db
    }
    }

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s