LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

HMC5883l + Arduino Duemilanove+I2C+ error 5003

Hi guys,

I want to receive data from digital compass via Arduino Duemilanove Atmega328 using labview. I found the example attached below, but it doen't work for me. It gives me error 5003. Please does anyone has a solution for this problem.

Thanks

0 Kudos
Message 1 of 5
(4,150 Views)

Are you sure it's caused by these functions?  What happens when you do a simply digital write pin program (most of the time you would test it with the LED pin but I don't really know anything about that board).

0 Kudos
Message 2 of 5
(3,157 Views)

Thanks for replaying Nathan_B

I have tested it with LED program, it works perfectly and other programs too. But I'm stuck with the I2C protocol, precisely the I2C Read function, cause the error comes from this part. Please if you have any idea just share with me.

Or if you can provide me the same program using LINX, I'll be very grateful.

Thank you very much

0 Kudos
Message 3 of 5
(3,157 Views)

Are you absolutely sure that the I2C write function works? Have you tried

any other I2C devices?

0 Kudos
Message 4 of 5
(3,157 Views)

No I didn't try any I2C devices. I'm not sure 100% that I2C write function works, however the HMC5883 INIT block contains the I2C write function and it doesn't show any error, even the LED TX blink when runing the program.

0 Kudos
Message 5 of 5
(3,157 Views)