Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
1,019 Views

About I2C Sensors

Jump to solution

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

Accepted Solutions
Highlighted
Community Manager
10 Views

Hi TH,

 

 

Thank you for creating another thread, I posted a response to your question on another thread but we can continue the support here. 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 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

 

Let me know if this answers your question.

 

 

Regards,

 

Jesus

 

 

View solution in original post

0 Kudos
7 Replies
Highlighted
Community Manager
11 Views

Hi TH,

 

 

Thank you for creating another thread, I posted a response to your question on another thread but we can continue the support here. 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 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

 

Let me know if this answers your question.

 

 

Regards,

 

Jesus

 

 

View solution in original post

0 Kudos
Highlighted
Novice
10 Views

Hi Jesus,

I have successfully built the BARO_generic sample and deployed it to the RTF. Thanks very much for the instructions.

I do have some issues now, and the error message is:

Scheduler: failed to set scheduling parameters: operation not permitted.

1) what should i do on the RTF to fix this issue ?? it is related to sched_setscheduler.

Thanks,

TH

0 Kudos
Highlighted
Community Manager
10 Views

Hi TH,

 

 

When is the error message shown? When you run the ./BARO_generic or during another operation?

 

 

Regards,

 

Jesus
0 Kudos
Highlighted
Novice
10 Views

Hi Jesus,

The error message showed up when i tried to run the application on the RTF, on the command line. is it the right way to deploy an application on the RTF ?? am i missing anything here ?? what should i do ??

Thanks,

 

TH
0 Kudos
Highlighted
Community Manager
10 Views

TH,

 

 

Let me re-test the sample code on my Aero RTF drone and get back to you. To be on the same page, are you using the latest software release? If you can please provide me the output of get_aero_version.py.

 

 

If you have not updated the software, please follow the instructions on the wiki:

 

https://github.com/intel-aero/meta-intel-aero/wiki/02-Initial-Setup

 

 

Regards,

 

Jesus
0 Kudos
Highlighted
Novice
10 Views

Hi Jesus,

The output the command 'get_aero_version.py' is displayed below:

BIOS_VERSION = Aero-01.00.13

OS_VERSION = Poky Aero (Intel Aero Linux Distro) 1.5.1 (pyro)''

AIRMAP_VERSION = 1.8

FPGA_VERSION = 0xc1

Thanks,

TH

0 Kudos
Highlighted
Community Manager
10 Views

Hi TH,

 

 

Try running the following command then executing the binary again.sysctl -w kernel.sched_rt_runtime_us=-1

 

./BARO_generic

 

Regards,

 

Jesus
0 Kudos