×

SparkFun Electronics will be closed on July 3rd, 2015 in observance of Independence Day. Any orders placed after 2:00pm MT on July 2nd will be shipped out after the weekend. Thanks!

Member #52643

Member Since: November 12, 2008

Country: United States

  • This enclosure perfectly fit my Mega2560 and an ethernet shield.

    One issue I’m noticing is that the voltage regulator on the ethernet shield can get kinda toasty. A future revision of this product could benefit from a spot to mount a fan.

  • Thanks for creating this library!! It helped a lot!!

    One thing I would add, is that you need to set the SPI data mode back to MODE0 after using this library if you are also using the SD card and the ethernet shield.

    Also, make sure you aren’t trying to access the clock while you have a file open on the SD card. I check the time, check for HTTP requests, and then serve a file. It seems you can get away with accessing the ethernet chip while files are open, but the RTC doesn’t work that way.

    I use the following functions:

    void set_time()
    
    {
    
    SPI.begin();
    
    RTC.begin();
    
    // RTC.adjust(DateTime(__DATE__, __TIME__));
    
    SPI.setDataMode(SPI_MODE0);
    
    }
    

    DateTime check_time()

    {

    DateTime now = RTC.now();
    
    SPI.setDataMode(SPI_MODE0);
    
    return now;
    

    }

No public wish lists :(