04-15-2014 11:54 AM - last edited on 02-19-2024 03:10 PM by migration-bot
Hello All,
I am trying to use an NI 9402 module to utilize I2C communication to talk to a compass sensor as it is stated possible here: https://www.ni.com/en/support/downloads/tools-network/download.spi-and-i2c-driver-api.html.
The fpga layer compiles succesfully, but I am recieving no indication that the communication is successful (there are lights that are supposed to blink), and the read returns nothing but 255. I have attached a screenshot from the front panel showing the parameters I am using. Taking an oscilloscope to the scl pin reveals a regular square wave as expected. The SDA line also shows data being actively changed as well (the program is indeed outputting).
The datasheet for the sensor I am using including expected communication results is shown here.
http://www.elechouse.com/elechouse/images/product/GY-26-USART%20Digital%20Compass/gy-26%20manual.pdf
Any help that could be given to get this sensor up and running would be greatly appreciated!
Thanks,
Daniel
04-16-2014 05:40 PM
Could you list your cDAQ chassis as well?
04-18-2014 08:22 AM
04-18-2014 11:31 PM
the ni link you refered is either moved or deleted (msg by ni). can you share the snapshot of your vi both fpga and on rt side to get a clear picture.
01-07-2015 07:18 AM
Hi!
I've tried to compile the example but it had an error. Could you share the bitfile for proving it?
Thanks!
01-07-2015 07:51 AM - last edited on 02-19-2024 03:10 PM by migration-bot
@Tirmizi wrote:
the ni link you refered is either moved or deleted (msg by ni). can you share the snapshot of your vi both fpga and on rt side to get a clear picture.
Or just had an extra period....Here's the proper link: https://www.ni.com/en/support/downloads/tools-network/download.spi-and-i2c-driver-api.html