HMC6352

Digital Fiber, Photoelectric, Laser Range, Optical, Temperature, Rotary Encoder, Ultrasonic, Gas, Gyro, Accelerometer, FlexiBend, Flexiforce, Compass......

HMC6352

Postby tyron_maxx » Thu Sep 03, 2009 3:43 pm

CAN THE ELECTRONIC COMPASS INTErface WITH IFC?
tyron_maxx
Greenhorn
 
Posts: 2
Joined: Thu Sep 03, 2009 3:34 pm

Re: HMC6352

Postby sich » Fri Sep 04, 2009 12:08 pm

Currently IFC doesn't have this module. You may use the IFC main board (IFC-MB00) by connecting the PIC's I2C pins to this digital compass. You need to develop the I2C interface program for the main board to communicate with this sensor.
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm

Re: HMC6352

Postby tyron_maxx » Sat Sep 05, 2009 8:09 am

ooo...if i use SK40B with PIC18F877A..and I interface it with the IFC through DI card...it can communicate or not?.
tyron_maxx
Greenhorn
 
Posts: 2
Joined: Thu Sep 03, 2009 3:34 pm

Re: HMC6352

Postby ober » Sat Dec 26, 2009 10:19 am

If you need IFC to interface with the digital compass, you have several method to do it. Of course, what you have suggested can be done with an extra PIC, which in your case is PIC16F877A.

From IFC ---- UART ----- PIC16F877A ----- I2C ------ Digital Compass. But you need to develop the program to communicate with all these device.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: HMC6352

Postby micheal_kl » Sun Apr 04, 2010 11:46 pm

I would like to know if I supply 5V to HMC6352, but not 3.3V. Do I need to change any setting in programming, in order to get baud rate=100kHz? I'm using PIC16F877A and connect 4.7kohms at SDA and SCL pin also.
SSPADD = 0x32; //baud rate = 100KHz
micheal_kl
Greenhorn
 
Posts: 2
Joined: Sun Apr 04, 2010 11:01 pm

Re: HMC6352

Postby ober » Mon Apr 05, 2010 9:16 am

It should be fine.
micheal_kl WROTE:SSPADD = 0x32; //baud rate = 100KHz


The speed depend on your PIC crystal too, you need to calculate according to the formula given in data sheet of PIC.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm

Re: HMC6352

Postby micheal_kl » Mon Apr 05, 2010 10:04 am

I'm using 20Mhz crystal osc. I read through the datasheet, but dint find the formula. Could u pls guide me? Thanks.
micheal_kl
Greenhorn
 
Posts: 2
Joined: Sun Apr 04, 2010 11:01 pm


Return to Sensor

Who is online

Users browsing this forum: No registered users and 13 guests

cron