Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1,148 Views

i2cdetect doesn't return anything

Hello,

I am trying to follow the instructions at https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-Flight-Controller-and-Compute-Boa... 90 (References) Flight Controller and Compute Board: Sensors GPIOs LEDs CAN bus · intel-aero/meta-intel-aero Wiki · GitH… to access the magnetometer sensor but when I run i2cdetect, it doesn't detect anything.

root@intel-aero:~/aero_sensors# i2cdetect -y -r 2

0 1 2 3 4 5 6 7 8 9 a b c d e f

00: -- -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- -- --

I hope I am missing something obvious but I am not sure that could be! Any clues ? I looked at the bios and don't think I saw anything i2c related that has been disabled or could be related.

TIA,

Bandan

0 Kudos
7 Replies
Highlighted
Community Manager
16 Views

Hi Bandan,

 

 

I have used an Intel Aero Compute board and found the Magnetometer Sensor by executing the command i2cdetect –y –r 2 as it is stated in the guide, as you can see in the image, the sensor is detected, 0x12 address.

 

 

 

It is strange that your board doesn't detect that sensor, are you using the latest OS image, BIOS, and the FPGA? If this is not the case, I recommend you to update your board following these instructions and try again: https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-Setup https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-Setup.

 

 

Regards,

 

-Yermi A.
0 Kudos
Highlighted
Beginner
16 Views

Thanks Yermi, indeed my board was not uptodate. I updated the BIOS//FPGA/OS to latest based on version 1.5.1 dated 8/9/2017 that you linked to. However, my i2cdetect results don't change. My other Aero board does print the same output as yours but not this one. I am wondering if I was unlucky enough to receive a faulty board ?

Thanks,

Bandan

0 Kudos
Highlighted
Community Manager
16 Views

Please let me investigate a little bit more and as soon as I have useful information I'll let you know. I'll appreciate your patience during the meantime.

 

 

Regards,

 

-Yermi A.

 

0 Kudos
Highlighted
Community Manager
16 Views

Hi Bandan,

 

 

Have you compared the output of the get_aero_version.py of your two boards? If they match and your board is still not working, it is possible, it's a faulty board and you should contact the place of purchase.

 

 

Regards,

 

-Yermi A.

 

0 Kudos
Highlighted
Community Manager
16 Views

Hi Bandan,

 

 

I was just wondering if you have any update on this.

 

 

Regards,

 

Diego V.
0 Kudos
Highlighted
Novice
16 Views

Hi there,

Can I ask you a few questions please ??

1) I issued 'i2cdetect –y –r 2' today and detected a sensor at address 0x12, as previously mentioned (i.e. Magnetometer Sensor).

However, I could NOT detect the other sensor (i.e. Pressure Sensor) on this bus. What should I do ??

2) I issued two sets of commands on the terminal today:

while true;

do i2cget -y 2 0x76 0x0;

done;

---> However, I keep getting 0x00 even if I moved the RTF up and down.

while true;

do i2cget -y 2 0x76 0x1;

done;

---> However, I keep getting 0x00 even if I moved the RTF up and down..

Is there any register map (i.e. data sheet) for this module if it even exists for the RTF ??

Thanks,

Have a nice day,

 

TH
0 Kudos
Highlighted
Community Manager
16 Views

Hi TH,

 

 

The pressure sensor does not respond to I2C inquiries. You can try the following to build a working sample and obtain the pressure returned by the sensor.

 

 

Build the example code for the pressure sensor on a Linux host computer:git clone https://github.com/ArduPilot/ardupilot.git

 

cd ardupilot

 

./waf configure --board aero

 

./waf --target examples/BARO_generic

 

Transfer the compiled sample to the Aero board and run with the following command: ./BARO_generic

 

Hope this helps!

 

 

Regards,

 

Jesus

 

0 Kudos