Hi, That is a great price I paid $30 at Parralax. It is the correct device. I will test again when you confirm that the chip PIC18F2455 Has the correct module.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I think the best plan is for you to get the hardware and work on it until you get it going. Please use the compasstest003 so I can test it. Regards, Ed.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a device on the way. I have a few hours to investigate late next week.
A thought. Upload a hi-res foto of the device. I searched the web and found some info on missing passive components from this parts - a long shot I know.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry to hear about the ongoing saga with the compass module. I have a very old Devantech CMPS03 compass module that worked just fine, as I recollect, with an old I2C header file of mine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anobium, I looked uder my 10X microscope and saw no missing parts. Attached is the Photo. As a fallback plan I am looking at a honeywell HMC1021S. It is all analog.
I misspoke it is a HMC1022. Attached datasheet. It uses magnetostrictive bridges. It requires a periodic "deguasing" pulse of about 1/5 amp. Honeywell uses the 3 axis version to compete with Parrallax, and uses the same I2C interface. I really would like to use the HMC5883L as it has lower power consumption.
Sorry I meant PIC18F2455/2550/4455/4550
I am not going to put any more time on this until I have the proper chip. I prefer the PIC18F2455
If this does not work I am out of the game.
I will get a sample device - then I can test. http://www.ebay.co.uk/itm/Triple-Axis-Magnetometer-HMC5883L-/221051144950 Can you have a look at the link. Is this the device?
I have looked again at the code and the asm. No clock or data lines! You are correct.
Most of the issues are down the fact I do not have the device here so I am testing blind.
Results, so far today.
Put the GCB in a folder of your choice and the .H in the include folder.
Let me know the result.
I justed tested again... I can see the CLOCK and DATA lines.
Hi, That is a great price I paid $30 at Parralax. It is the correct device. I will test again when you confirm that the chip PIC18F2455 Has the correct module.
I would try the 16f88 again, as the attachment I have provided is showing good I2C input/outputs.
Thanks, Ok now i get clock and data signals, however still have all FF. Where to now?
Hi, tried the high bits got X,Y = 65535 Z=65524. They do not change when I rotate the compass?
Try this. I forgot to add the attachment. This driver forces byte handling.
Add to your include folder.
Changed a little now get X=65535, Y= 65485, Z= 65524
I rebooted and got X=65531, Y= 65535, Z= 65524 No change on rotation. Now what?
Enable the wait in the main DO-LOOP. You may need a 250 ms delay between read operations.
OK reads X=65535,Y=65485, z=65524. Tried 500 ms same result
I think the best plan is for you to get the hardware and work on it until you get it going. Please use the compasstest003 so I can test it. Regards, Ed.
Anobium, Do you want me to mail you the compass module or did you order one? Thanks, Ed.
I thought I had replied but it is not showing.
I have a device on the way. I have a few hours to investigate late next week.
A thought. Upload a hi-res foto of the device. I searched the web and found some info on missing passive components from this parts - a long shot I know.
Sorry to hear about the ongoing saga with the compass module. I have a very old Devantech CMPS03 compass module that worked just fine, as I recollect, with an old I2C header file of mine.
Kent, thanks two problems for me using that device. 1 current draw: 22 mA. Price. Parralax draw is 100 uA and I already have it.
Ed, I agree, the CMPS03 modules are not cheap. The choice at the time was very limited as I recall. Best of luck with your new one.
Anobium, I looked uder my 10X microscope and saw no missing parts. Attached is the Photo. As a fallback plan I am looking at a honeywell HMC1021S. It is all analog.
I misspoke it is a HMC1022. Attached datasheet. It uses magnetostrictive bridges. It requires a periodic "deguasing" pulse of about 1/5 amp. Honeywell uses the 3 axis version to compete with Parrallax, and uses the same I2C interface. I really would like to use the HMC5883L as it has lower power consumption.
Anobium, any news on the compass? thanks, Ed.
Yes. I expect to post some working code the 4th October. This allows for receiving, checking the code and testing etc.
Anobium, Thanks, I will be out of town until Oct. 12th So it will later that week before I can test it. Ed.
I have not had chance to look at the driver yet. I got busy on the release. I will have a look now.