LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Read the HMC5883L from sparkfun with Lego NXT

Hi,

 

I want to read the HMC5883L with my lego NXT.

But i cant get it working.

In Arduino it works fine in the attachments you find the code for arduino and my attempent for a labview program.

I use 4.7K ohm pull-up ressistors.

 

 

Someone know how to get it working?

0 Kudos
Message 1 of 3
(6,904 Views)

Not sure, but it looks like you are using the same address to read and write a register? Did you try using 0x3C as the first byte of the first command and 0x3D as the first byte of the second?

0 Kudos
Message 2 of 3
(6,891 Views)

Yes, I tried but i still cant read anything on my labview programma.

I added shift registers for reading measeruments like in my arduino example. (attachements)

But as long i cant read anything they have no use.

0 Kudos
Message 3 of 3
(6,761 Views)