Second HM55B Compass
I posted a couple weeks ago the HM55B I had worked, and then stopped. I never got a response, so I bought another, and tried it. The new HM55B again never gives a valid ready status, and leaves me again without results.
Before I hooked this module up, I check the wiring twice, and it matches the package insert document. Since the module failed, I also tried the four wire hookup instead of the three, but still no luck.
I used the same code that was provided in the package insert (see attached). The only change I made to the code was to update the directive to read BS2p from BS2. After it failed to provide a reading, I added some debug statements. I can see that this module always has the status of 0000, and I never get a 1100 that I'm need to retrieve the reading.
This is very frustrating.![jumpin.gif](http://forums.parallax.com/images/smilies/jumpin.gif)
What can I check. I mean, are there certain voltages I should see at certain times, at certain test points?
All help is welcome. Thanks!
Before I hooked this module up, I check the wiring twice, and it matches the package insert document. Since the module failed, I also tried the four wire hookup instead of the three, but still no luck.
I used the same code that was provided in the package insert (see attached). The only change I made to the code was to update the directive to read BS2p from BS2. After it failed to provide a reading, I added some debug statements. I can see that this module always has the status of 0000, and I never get a 1100 that I'm need to retrieve the reading.
This is very frustrating.
![jumpin.gif](http://forums.parallax.com/images/smilies/jumpin.gif)
What can I check. I mean, are there certain voltages I should see at certain times, at certain test points?
All help is welcome. Thanks!
Comments
Do you have pin 3 of the compass module tied back to the Stamp ground?
What are you using to power the Stamp, and this module? What is the MEASURED voltage of that/those voltage source(s)?
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
The Stamp (and Compass) are on a BS2P24/40 prototype board, which is plugged into the wall. The Compass Pin 6 is tied to Vdd. When I measure Vdd to Vss it comes in at around 4.92 V.
This was the same way I had the other HM55B setup also. I'm thinking of going out and trying the Devantech compass, but I like to stick with one company if I can.
Any more thoughts?
Tell you what I'll do. If we (collectively) can't figure out what's wrong I'll BUY BOTH compasses from you! How's that?
That just shows you how much I believe in Parallax products AND the power of this Stamp Forum. Why am I so sure? Ten years of experience on this Stamp List, should speak volumes!
Don't jump ship quite yet - PLEASE
Please describe the power supply, and include manufacturer, catalog number, voltage, ampacity, etc if you can. Although 4.92 should be okay under ordinary circumstances, with so littlw load on it, if it's a 5.0 VDC power supply, it's a bit short of "poop" IMHO. A bit more load, and you'll drop below the REQUIRED 4.8 VDC of the HM55-B module.
Other than the Stamp and the compass module, please describe any other loads on this same power supply.
Hang in there!
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks Bruce, but I won't hold you to the purchase of my two compasses. But I will take all the support you (and whoever else is willing to give me). I am interested in what you mentioned regarding voltages.
The power adapter is an A/C to D/C 7.5V converter from Radio Shack, I'm not sure what Amp it is rated at, when I get home I can get it.
At today's runtime I had the HM55B and a SiRF GPS module conected to Stamp's Vdd. I have a 7805 5V regulator at home, I could try giving the HM55B its own power source.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Thanks, if you find out anything, please let me know.
·· Speed isn't an issue...First I connected a BS2 to test things...Oddly it didn't work...I re-check of my wiring showed that I had pin 5 on the compass to P5 and pin 4 to P4.· that's backward and I couldn't figure how I did it, but for some reason a quick glance at the quick connect diagram played a trick on my eyes.· Once I reversed those connections it came alive.· I then switched in the BS2p and re-ran the code.· It works.· So timing is not an issue...This is on a module I went and pulled right from stock.· I would triple-check your wiring.· If I can make a mistake...
Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I did have it wired correctly, but I did have some bad pins. I don't know what I could have done to destroy 9 pins, but I only have 7 I/O pins that currently work.
Chris, is it easy to lose a pin, or could I possibly just have a bad chip?
Again thanks for the help.
Stephen
It's REAL EASY to blow out pins if you DON'T use protection resistors whenever you hook the pins to external devices. The protection resistors limit the amount of CURRENT that can exist in any circuit to which it's connected. Thus, even f you overload a pin, the Stamp pin ports won't be harmed. The other thing that will kill pins and the entire Stamp itself, is static discharge. This is NOT unique to Stamps, but any CMOS electronic device. This is why static straps are often used when handling any CMOS device, or any chip for that matter.
Inre voltage - you realize you can't power the HM55-B from that power supply directly? The published voltage limits are: 4.8 ==> 5.2 VDC. Please beware of any voltage limits your GPS may have as well.
Next step - ampacity of the power adapter, or the Radio Shack Catalog Number from which we can determine the ampacity.
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
What version of the BS2p were you using? the 40pin version?
The BS2P40 has a 2 sets of I/O pins. The first 16 are addressed normally (like with the BS2) but the 2nd set are addressed differently (using the AUXIO command).
CAn you clarify?!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
I am using a BS2P24 along with the BS2p24/40 demo board, which now leads me to believe that pins 8-15 work (or at least I will have to recheck). I had been trying to access P8-P15 via the main header. I will try the AUX header when I get home this evening.
Bruce, thanks for mentioning possible static dammage, but I have an ESD strap and I wear it. With regards to Protection resistors, what should the resistance be? Or, will resistance be dependent upon the circuit?
Thanks again,
Stephen
·· That's it!· The P8 through P15 are not on the main header, as these are for the BS2p40 main P8 through P15.· You will need AUX P8 through AUX P15 on a BS2p24 to get those pins to work.· Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Glad you've got it sorted out. It seemed like it should be something fairly simple that was being overlooked. You'll not have that happen again anytme soon I'm sure.
Next time you're buying passives, just grab a handful of low wattage 220 ohm resistors for protection use, and you should be fine. If you get involved with motors, relays or solenoids, also grab a few low voltage (say) 500 mA-1A diodes to use for fly-back protection as well. Small diodes and low wattage resistors are cheap enough to let the magic blue smoke out every once in a while, in lieu of having the Stamp pins do it
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->
I didn't quite understand your comment regarding the voltage. I was under the impression that if I hooked 9VDC to a 7805 regulator to get 5 VDC, that I could then use that to power HM55-B (or anything else that could use 5 VDC). Was I mistaken as to what you were trying to tell me?
Thanks,
Stephen
I TRY to be as clear as I can be when I write, so let's please review what I said:
"Inre voltage - you realize you can't power the HM55-B from that power supply directly?"
Please note the word DIRECTLY. If you are using a 7805 after the wall wart, then your're NOT using the wall wart DIRECTLY - right?
OTOH, perhaps I should have SAID wall wart rather than the less specfic "power supply", or said "packaged power supply" meaning the wall wart. Wall wart is such an UGLY word
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
<!--StartFragment -->