Go to Post The best revenge is living well. - gblake [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-05-2009, 14:16
werozi werozi is offline
Registered User
no team
 
Join Date: May 2009
Location: malaysia
Posts: 5
werozi is on a distinguished road
more help

can anybody show to me
how to make wiring Hitachi® HM55B Compass Module to pic
and i use pic 16f877a
Hitachi® HM55B Compass Module is a analog or digital component?
  #2   Spotlight this post!  
Unread 14-05-2009, 14:34
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: more help

please don't double post, you posted once, if you posted on the incorrect forum your post will be move to the correct one.
__________________
Is now an engineer thanks to FIRST.
  #3   Spotlight this post!  
Unread 14-05-2009, 14:48
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: more help

He actually posted in the programming forum regarding programming the device and in the electrical forum regarding wiring the device. While his concerns probably could have been addressed in a single post, I don't think it's that bad to try and separate it out.


This document should help explain the operation of the compass:
http://www.parallax.com/Portals/0/Do...55BModDocs.pdf

The device uses a synchronous serial interface which means there are either 3 pins that will need to be connected to Digital IO pins on the PIC.

With regards to the programming, the ease of programming this device will likely depend on your familiarity with C programming in general and specifically programming for the PIC you are using. The software does not look overly complex and it should be possible to write what you need. You will learn a lot more from this then from just taking code from somewhere.

EDIT: Looks like from your other post that you are using a language called PICBasic. I don't know anything about that language, but it will likely be much closer to the BASICStamp code in the linked document than anything else. If your software is the PICBasic Compiler PRO you will be able to actually compile the BasicStamp files directly to your PIC.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 14-05-2009 at 14:54.
  #4   Spotlight this post!  
Unread 14-05-2009, 21:48
werozi werozi is offline
Registered User
no team
 
Join Date: May 2009
Location: malaysia
Posts: 5
werozi is on a distinguished road
Re: more help

XXShadowXX other post in programming
i ask for programming
and this post ing technical for wiring
i think i do for the right thing and put my post in the right one
..........................
i just confius forr this component
like encoder we just cant use pin a4 for pic16877a cause its analog component
and pin a4 is a special pin
but for this component i dont understand
which pin should i use
pin analog or digital
  #5   Spotlight this post!  
Unread 14-05-2009, 21:57
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: more help

This component requires 3 digital pins. 1 for Clock, 1 for Enable and 1 for Digital In/Digital Out
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
  #6   Spotlight this post!  
Unread 15-05-2009, 15:10
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: more help

I would point you to this page that I found while doing a simple google search. While they use a pic 18f252, from what I can figure out, it should work for your pic 16f877a as well. Includes wiring diagrams, code sample, and basic explanation of the compass module.

To figure out which pins correspond to which data lines on your microcontroller, I would point you to the Microchip website, specifically the data sheet for your particular uP. Make sure you look at the correct pin diagram, as that datasheet is for the whole family of PICs.

I've done next to nothing with PIC Basic, but I did notice that the code sample uses some of the Pro extensions to the langauge. Since it looks like you're not using the Pro version, you may be missing some of the commands. The key commands are SHIFTIN and SHIFTOUT. In case your version of PIC Basic doesn't include these, there appear to be "home made" versions of the commands on this webpage.

Let us know if you run into any problems.

Good luck,
--Ryan
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #7   Spotlight this post!  
Unread 18-05-2009, 10:41
werozi werozi is offline
Registered User
no team
 
Join Date: May 2009
Location: malaysia
Posts: 5
werozi is on a distinguished road
Re: more help

thanks for the information
i will do for my best
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
More Digital I/O Help RedOctober Programming 1 28-01-2006 17:32
More Digital I/O Help RedOctober Technical Discussion 1 28-01-2006 17:32
More automonous help:ending stuff Robohawk-master Programming 18 01-04-2004 21:29
More Programming Help! KWalsh Programming 3 25-02-2004 12:17
more help with Inventor ahecht Inventor 8 28-01-2002 22:32


All times are GMT -5. The time now is 07:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi