×

SparkFun Electronics will be closed in observance of memorial day on Monday, May 29th. We will resume normal business hours on Tuesday, May 30th. Any orders placed after 2pm Mountain Time on Friday, May 26th will process and ship out on Tuesday, May 30th.

Member #253803

Member Since: September 23, 2011

Country: United States

  • My accelerometer is showing 1.6v at 0 degree. The voltage goes up turning it one way, and goes downwards the other way. But on 180 degee it shows 1,6v again. Is this correct? How do I know if the accelerometer is 0 degree or 180 degree?

  • I get this error when I try to compile the program using AVR studio for the Atmega328. In the file ic2.h I get this:

    error: ‘F_CPU’ uncleared (First used in this function)

    Code:

        //calculate bitrate division    
    bitrate_div = ((F_CPU/40001)/bitrateKHz);
    if(bitrate_div >= 16)
    bitrate_div = (bitrate_div-16)/2;
    outb(TWBR, bitrate_div);
    

    Any help guys?

No public wish lists :(