Menu

Initializing a parrallax compass

Help
2015-07-30
2015-10-11
<< < 1 2 3 4 > >> (Page 3 of 4)
  • Edward LaBudde

    Edward LaBudde - 2015-09-09

    Sorry I meant PIC18F2455/2550/4455/4550

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-09

    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.

     
  • Anobium

    Anobium - 2015-09-10

    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.

    1. I have clock and data signals in a simulator. The serial line is also running.
    2. Attached two test files. Test GCB and Test .h

    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.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-10

    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.

     
  • Anobium

    Anobium - 2015-09-10

    I would try the 16f88 again, as the attachment I have provided is showing good I2C input/outputs.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-10

    Thanks, Ok now i get clock and data signals, however still have all FF. Where to now?

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-10

    Hi, tried the high bits got X,Y = 65535 Z=65524. They do not change when I rotate the compass?

     
  • Anobium

    Anobium - 2015-09-10

    Try this. I forgot to add the attachment. This driver forces byte handling.

    Add to your include folder.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-10

    Changed a little now get X=65535, Y= 65485, Z= 65524

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-10

    I rebooted and got X=65531, Y= 65535, Z= 65524 No change on rotation. Now what?

     
  • Anobium

    Anobium - 2015-09-10

    Enable the wait in the main DO-LOOP. You may need a 250 ms delay between read operations.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-10

    OK reads X=65535,Y=65485, z=65524. Tried 500 ms same result

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-10

    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.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-11

    Anobium, Do you want me to mail you the compass module or did you order one? Thanks, Ed.

     
    • Anobium

      Anobium - 2015-09-12

      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.

       
  • kent_twt4

    kent_twt4 - 2015-09-11

    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.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-11

    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.

     
  • kent_twt4

    kent_twt4 - 2015-09-11

    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.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-12

    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.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-13

    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.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-20

    Anobium, any news on the compass? thanks, Ed.

     
  • Anobium

    Anobium - 2015-09-21

    Yes. I expect to post some working code the 4th October. This allows for receiving, checking the code and testing etc.

     
  • Edward LaBudde

    Edward LaBudde - 2015-09-21

    Anobium, Thanks, I will be out of town until Oct. 12th So it will later that week before I can test it. Ed.

     
  • Anobium

    Anobium - 2015-10-11

    I have not had chance to look at the driver yet. I got busy on the release. I will have a look now.

     
<< < 1 2 3 4 > >> (Page 3 of 4)

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.