網誌分類:UAV Building log |
圖片
網誌日期:2009-08-13 21:43
This couple days I was stuck in reading the HMC6352 digital compass data by ARMite. From the time being, I supposed I might write the wrong code of ARMite basic for I2C operation, however, the program structure is so simple and supposed should not be wrong. then I start to worry about the HMC6352 board Malfunction. For this reason, i got a RS232 to I2C module from China and only RMB200. this can help me to check the I2C device function is okay or not.

The I2C adaptor GY7506 is very simple you can find this in http://www.glinker.cn/ . you need not build up your test module to check I2C. Also, a very portable software I2CTool is together with package. You can easily to use it for any I2C checking. Anyway, I2C connection and operation is simple but unlike RS232C so easy to debug and common use in our part time hobby.


This is so easy to set up the connection by breadboard and Junmper wire, during the testing, I found my HMC6352 board 'North' direction silkprinting was wrongly printed.(this was brought from sparkfun 1.5 years ago.) and their new board already corrected this mistake. Refer to their new Photo, I can prove my assumption is correct, and the reading by I2Ctool become okay now. The following is sparkfun new HMC6352 board, and my old one too.


So I understand why the mistake come from and during the operate by I2Ctool, I also learned the read/write operation for I2C master and slave. this can help to avoid any mistake happened. Therefore, Next step I would start again using ARMite to get the HMC6352 data. will post the result soon!
Powered by us.groups.yahoo.com






Sokrates 2009-08-24 18:51
Sokrates 2009-08-15 17:33
Cheers! Vic
homer2009-08-17 15:39
Hi Vic, Actually this kind of gadgets bought long time ago, but even no time to open. Just can do it recently. Oh...How about you recently. Everything fine?