×

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.

FreeGroup

Member Since: October 19, 2008

Country: United States

  • I have read a lot of negative messages in this thread about the OpenServo board.

    Question: Is this board ready to use? (no firmware update, nor compiler,….)

    And in case of “this part is useless”…..is there any alternative out there? Best in combination with OpenEncoder and 360° rotation.

    Grettings

    Andreas

  • ------------------------------------------------
    Arduino Header HMC6343
    ------------------------------------------------
    #ifndef HMC6343_h
    #define HMC6343_h
    /**
     *  analog input 5 - I2C SCL
     *  analog input 4 - I2C SDA
     **/
    class HMC6343
    {
      private:
        // I2C Client Address of the sensor
        const static int i2cAddress= (0x32 >> 1);
        HMC6343(){};
      public:
        static int getAngle();
    };
    #endif
    ------------------------------------------------
    Arduino CPP Code HMC6343
    ------------------------------------------------
    #include "WProgram.h"
    #include
    #include
    #include "HMC6343.h"
    int HMC6343::getAngle()
    {
       byte headingData[6];
       Wire.beginTransmission(HMC6343::i2cAddress);
       Wire.send(0x50);
       Wire.endTransmission();
       delay(2);
       Wire.requestFrom(HMC6343::i2cAddress, 6);
       int i = 0;
       while(Wire.available() && i < 6)
       {
         headingData[i] = Wire.receive();
         i++;
       }
       return (headingData[0]*256 + headingData[1])/10;
    }
    
  • Hi,
    I didn’t find any information about this module like
    - baude rate (4800, 9600,…)
    - timing
    or any C example code. :-(
    Is any example (best for arduino) available?!
    Need help
    Andreas

No public wish lists :(