اطلاعیه

Collapse
No announcement yet.

کالیبره کردن CMPS03

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    کالیبره کردن CMPS03

    سلام ببخشید چه طور می توان این کامپس را کالیبره کرد من با AVR کار می کنم و I2C از استفاده می کنم .
    باد می وزد ...
    میتوانی در مقابلش هم دیوار بسازی ، هم آسیاب بادی
    تصمیم با تو است ...

    #2
    پاسخ : کالیبره کردن CMPS03

    دوست عزیز اینو که تو سایت سازنده این ماژول توضیح داده

    این لینکش:
    http://www.robot-electronics.co.uk/htm/cmps3tech.htm

    اینم متن مورد نظر:
    کد:
    To calibrate using the I2C bus, you only have to write 255 (0xff) to register 15, once for each of the four major compass points North, East, South and West. The 255 is cleared internally automatically after each point is calibrated. The compass points can be set in any order, but all four points must be calibrated. For example 
    1. Set the compass module flat, pointing North. Write 255 to register 15, Calibrating pin (pin5) goes low.
    2. Set the compass module flat, pointing East. Write 255 to register 15,
    3. Set the compass module flat, pointing South. Write 255 to register 15,
    4. Set the compass module flat, pointing West. Write 255 to register 15, Calibrating pin (pin5) goes high.
    That's it.

    دیدگاه

    لطفا صبر کنید...
    X