×

Please see all COVID-19 updates here as some shipments may be delayed due to CDC safety and staffing guidelines. If you have an order or shipping question please refer to our Customer Support page. For technical questions please check out our Forums. Thank you for your continued support.

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 :(