<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: HMC5843 Magnetometer Library for Arduino</title>
	<atom:link href="http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/feed" rel="self" type="application/rss+xml" />
	<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino</link>
	<description></description>
	<lastBuildDate>Wed, 01 Sep 2010 03:44:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: nrp</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-12834</link>
		<dc:creator>nrp</dc:creator>
		<pubDate>Wed, 04 Aug 2010 08:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-12834</guid>
		<description>I wish I knew that 8 months ago ;)  Thanks for the info.</description>
		<content:encoded><![CDATA[<p>I wish I knew that 8 months ago <img src='http://eclecti.cc/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />   Thanks for the info.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JS</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-12824</link>
		<dc:creator>JS</dc:creator>
		<pubDate>Tue, 03 Aug 2010 15:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-12824</guid>
		<description>I think it is important to notice that the Wire library may actually be used, but you have to use the 7bit address of the HMC5843 which is 0x1E (0x3C &gt;&gt; 1).

void initHMC5843()
{
     Wire.beginTransmission(0x1E);
     Wire.send(0x02);
     Wire.send(0x00);   // continues reading
     Wire.endTransmission();
}

void readxyz()
{
  Wire.beginTransmission(0x1E); 
  Wire.send(0x03);             
  Wire.endTransmission();      
  
  Wire.requestFrom(0x1E, 6);
  if(6 &lt;= Wire.available())    
  {
    int x,y,z;
    x = Wire.receive() &lt;&lt; 8;
    x &#124;= Wire.receive();
    y = Wire.receive() &lt;&lt; 8;
    y &#124;= Wire.receive();
    z = Wire.receive() &lt;&lt; 8;
    z &#124;= Wire.receive();
    // [...] your stuff here (lowpass filter values, transform)
  }
}

HTH</description>
		<content:encoded><![CDATA[<p>I think it is important to notice that the Wire library may actually be used, but you have to use the 7bit address of the HMC5843 which is 0x1E (0x3C &gt;&gt; 1).</p>
<p>void initHMC5843()<br />
{<br />
     Wire.beginTransmission(0x1E);<br />
     Wire.send(0&#215;02);<br />
     Wire.send(0&#215;00);   // continues reading<br />
     Wire.endTransmission();<br />
}</p>
<p>void readxyz()<br />
{<br />
  Wire.beginTransmission(0x1E);<br />
  Wire.send(0&#215;03);<br />
  Wire.endTransmission();      </p>
<p>  Wire.requestFrom(0x1E, 6);<br />
  if(6 &lt;= Wire.available())<br />
  {<br />
    int x,y,z;<br />
    x = Wire.receive() &lt;&lt; 8;<br />
    x |= Wire.receive();<br />
    y = Wire.receive() &lt;&lt; 8;<br />
    y |= Wire.receive();<br />
    z = Wire.receive() &lt;&lt; 8;<br />
    z |= Wire.receive();<br />
    // [...] your stuff here (lowpass filter values, transform)<br />
  }<br />
}</p>
<p>HTH</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asilloo</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-10077</link>
		<dc:creator>asilloo</dc:creator>
		<pubDate>Sat, 27 Feb 2010 16:48:58 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-10077</guid>
		<description>Hi,
I&#039;m going to become crazy with this sensor ;)

I send a email to sparkfun about this  problem , this is the replay;

Hello,I&#039;m very sorry to hear about the trouble this sensor is giving you.  The example code we&#039;ve posted on the product page (http://www.sparkfun.com/commerce/product_info.php?products_id=9371) should work perfectly, and you can load it onto an Arduino with the need of an AVR programmer.  This tutorial: http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=142, in the &#039;Serial bootloading an Arduino board&#039; section describes how you can load the code using WinAVR.

There have been discussions of an incorrect capacitor on the board, but our tests show that the board does work with the current setup.

Hope that helps.  Let me know if you have any further questions or concerns.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m going to become crazy with this sensor <img src='http://eclecti.cc/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I send a email to sparkfun about this  problem , this is the replay;</p>
<p>Hello,I&#8217;m very sorry to hear about the trouble this sensor is giving you.  The example code we&#8217;ve posted on the product page (<a href="http://www.sparkfun.com/commerce/product_info.php?products_id=9371" rel="nofollow">http://www.sparkfun.com/commerce/product_info.php?products_id=9371</a>) should work perfectly, and you can load it onto an Arduino with the need of an AVR programmer.  This tutorial: <a href="http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=142" rel="nofollow">http://www.sparkfun.com/commerce/tutorial_info.php?tutorials_id=142</a>, in the &#8216;Serial bootloading an Arduino board&#8217; section describes how you can load the code using WinAVR.</p>
<p>There have been discussions of an incorrect capacitor on the board, but our tests show that the board does work with the current setup.</p>
<p>Hope that helps.  Let me know if you have any further questions or concerns.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaw</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-10042</link>
		<dc:creator>aaw</dc:creator>
		<pubDate>Thu, 25 Feb 2010 12:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-10042</guid>
		<description>Hi,

This output from HMC5843. If I want to change the settings below to HMC5843 output unit Tesla. How to approach.


x:-374  y:183  z:-1006
x:-1045 y:122  z:-1711
x:-4096 y:-931 z:-4096
x:-1264 y:57   z:-173
x:819   y:-440 z:-4096
x:3     y:357  z:-483</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>This output from HMC5843. If I want to change the settings below to HMC5843 output unit Tesla. How to approach.</p>
<p>x:-374  y:183  z:-1006<br />
x:-1045 y:122  z:-1711<br />
x:-4096 y:-931 z:-4096<br />
x:-1264 y:57   z:-173<br />
x:819   y:-440 z:-4096<br />
x:3     y:357  z:-483</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EJ</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-10020</link>
		<dc:creator>EJ</dc:creator>
		<pubDate>Mon, 22 Feb 2010 09:56:11 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-10020</guid>
		<description>Hi Asilloo,

Still working on it. But we can&#039;t figure out the date we get from the HMC, and how we have to put this in a picture of which way is north ;)
Are you working on it too?</description>
		<content:encoded><![CDATA[<p>Hi Asilloo,</p>
<p>Still working on it. But we can&#8217;t figure out the date we get from the HMC, and how we have to put this in a picture of which way is north <img src='http://eclecti.cc/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Are you working on it too?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asilloo</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-9938</link>
		<dc:creator>asilloo</dc:creator>
		<pubDate>Tue, 16 Feb 2010 16:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-9938</guid>
		<description>Hej,

Is there any one did this sensor work with Arduino, if the answer YES, please upload some videos on youtube so we can see what we have to do. 
Regards,</description>
		<content:encoded><![CDATA[<p>Hej,</p>
<p>Is there any one did this sensor work with Arduino, if the answer YES, please upload some videos on youtube so we can see what we have to do.<br />
Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-9929</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Tue, 16 Feb 2010 02:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-9929</guid>
		<description>I know this isn&#039;t really a reply to this thread but I have been trying to get my HMC5348 working for quite some time without much success. The data sheet for the compass doesn&#039;t go into much detail about how to read from registers other than from the data registers. So my question is, what is the proper way to read the status register from the compass? Would the correct sequence be:

start 0x3c 0x09 restart &#039;receive enable&#039; 0x3d &#039;read byte&#039; stop

or

start 0x3d 0x09 &#039;receive enable&#039; &#039;read byte&#039; stop

The data sheet is not clear about how to read from registers other than the data registers. Given the auto incrementing of the register address for this chip, I&#039;m not sure if you can send an address after issuing a read command (0x3d). 

Any help anyone can offer is greatly appreciated. Thanks in advance.</description>
		<content:encoded><![CDATA[<p>I know this isn&#8217;t really a reply to this thread but I have been trying to get my HMC5348 working for quite some time without much success. The data sheet for the compass doesn&#8217;t go into much detail about how to read from registers other than from the data registers. So my question is, what is the proper way to read the status register from the compass? Would the correct sequence be:</p>
<p>start 0x3c 0&#215;09 restart &#8216;receive enable&#8217; 0x3d &#8216;read byte&#8217; stop</p>
<p>or</p>
<p>start 0x3d 0&#215;09 &#8216;receive enable&#8217; &#8216;read byte&#8217; stop</p>
<p>The data sheet is not clear about how to read from registers other than the data registers. Given the auto incrementing of the register address for this chip, I&#8217;m not sure if you can send an address after issuing a read command (0x3d). </p>
<p>Any help anyone can offer is greatly appreciated. Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: EJ</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-9920</link>
		<dc:creator>EJ</dc:creator>
		<pubDate>Mon, 15 Feb 2010 13:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-9920</guid>
		<description>Does anyone knows what I have to do now? I used the HCM.zip files from above, but it still isn&#039;t working.. 

c:/documents and settings/....../bedrijfs docs/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before &#039;double&#039;

c:/documents and settings/......../bedrijfs docs/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)&#039; before &#039;double&#039;

c:/documents and settings/........../bedrijfs docs/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)&#039; before &#039;double&#039;</description>
		<content:encoded><![CDATA[<p>Does anyone knows what I have to do now? I used the HCM.zip files from above, but it still isn&#8217;t working.. </p>
<p>c:/documents and settings/&#8230;&#8230;/bedrijfs docs/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected unqualified-id before &#8216;double&#8217;</p>
<p>c:/documents and settings/&#8230;&#8230;../bedrijfs docs/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)&#8217; before &#8216;double&#8217;</p>
<p>c:/documents and settings/&#8230;&#8230;&#8230;./bedrijfs docs/arduino/hardware/tools/avr/lib/gcc/../../avr/include/math.h:439: error: expected `)&#8217; before &#8216;double&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nrp</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-9906</link>
		<dc:creator>nrp</dc:creator>
		<pubDate>Mon, 15 Feb 2010 00:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-9906</guid>
		<description>Connect it in parallel to the existing capacitor on the board, or replace the capacitor with the new one.</description>
		<content:encoded><![CDATA[<p>Connect it in parallel to the existing capacitor on the board, or replace the capacitor with the new one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: asilloo</title>
		<link>http://eclecti.cc/hardware/hmc5843-magnetometer-library-for-arduino/comment-page-1#comment-9905</link>
		<dc:creator>asilloo</dc:creator>
		<pubDate>Sun, 14 Feb 2010 23:22:23 +0000</pubDate>
		<guid isPermaLink="false">http://eclecti.cc/?p=344#comment-9905</guid>
		<description>Hej, 
  
 Where and How I have connect the CAPACITOR ? thanks</description>
		<content:encoded><![CDATA[<p>Hej, </p>
<p> Where and How I have connect the CAPACITOR ? thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
