[Paparazzi-devel] I2C port and Pull-Up Resistors for YAPA2
From:
Helge Walle
Subject:
[Paparazzi-devel] I2C port and Pull-Up Resistors for YAPA2
Date:
Sat, 15 Jun 2013 01:12:56 +0200
You should use it in default mode, which is not 3rd party mode. The messages should appear even if you don't blow into the sensor. If you could get access to a scope you could see if anything is happening on the I2C bus.
Helge.
Den 15. juni 2013 00:53 skrev "Jorge Pantoja" <address@hidden> følgende: > > Hello Helge, >
> No, I'm not getting the AIRSPEED_ETS messages on the log file when I blow the sensor. According to the sensor manual I should set it to third party mode but on the Paparazzi wiki says that I should use it on the default mode. Which one is it?
> > Regards, > Jorge > > > > On 14/06/2013, at 17:30, Helge Walle <address@hidden> wrote: > > This is an example of the messages from the sensor when you use SENSOR_SYNC_SEND-
> > 35.958 7 BMP_STATUS 349718 25970 99597 222 > 36.021 7 AIRSPEED_ETS 1576 1573 3.863097 > 36.041 7 ATTITUDE 0.007594 3.089026 0.008883 > 36.047 7 GPS 0 61869336 669580224 0 75816 0 0 1740 58323250 31 3
> 36.051 7 SVINFO 3 4 12 6 30 26 70 > 36.055 7 ALIVE 33,225,105,215,49,236,3,215,91,28,20,90,106,188,171,253 > 36.075 7 NAVIGATION 0 2 10.4 -5. 0. 132.6 0 0 > 36.122 7 AIRSPEED_ETS 1576 1573 3.772374
> 36.143 7 ATTITUDE 0.007577 3.089344 0.008838 > 36.150 7 DESIRED 0. 0. 0. 0. 0. 120. 0. 15. > 36.152 7 ESTIMATOR 75.81601 2e-06 > 36.156 7 IMU_GYRO 0.008301 0.013184 -0.003418 > 36.158 7 PPRZ_MODE 0 0 0 0 0 17
> 36.174 7 BMP_STATUS 349679 25969 99583 222 > 36.221 7 AIRSPEED_ETS 1576 1573 3.681651 > 36.242 7 ATTITUDE 0.007621 3.089588 0.008804 > > So AIRSPEED_ETS is sent many times each second. Normally you should get immediate response when blowing into the sensor.
> Maybe a logic analyzer would be the next thing to use to check that the values really change on the I2C bus when you blow into the sensor, > > Helge. > > > > 2013/6/14 GalapagosUAV <address@hidden>
>> >> Hello Helge, >> >> Thank you so much for your help. I got the Airspeed sensor working using external Pull-Up resistors (4.7k each). However, I still can't get any readings from it. I configured my airframe file as instructed in the wiki for airspeed measurement only and get the readings on the log file with no results.
>> >> I tried blowing directly into the sensor and I get airspeed readings on the sensor led but I don't get anything on the paparazzi log file. Do I need a continuous airspeed to get readings on the Paparazzi log file?
>> >> Regards, >> Jorge >> >> Sent from my iPad >> On 14/06/2013, at 13:10, Helge Walle <address@hidden> wrote: >>
>> Hi, >> >> According to the manual the ETS Airspeed sensor needs external pullups. From the schematics it seems the YAPA has 10k pullups. >> In my working setup (with TWOG which have 10k resistors) I also have the 4.7k pullups provided on the Sparkfun IMU board.
>> >> So the total resistance on the SDA and SCL lines are10k in parallell with 4.7k, which is working with my TWOG. >> >> Regards, >> Helge. >> >> 2013/6/14 GalapagosUAV <address@hidden>
>>> >>> Hello everyone, >>> >>> I'm trying to connect an Eagle Tree Airspeed sensor to the I2C port of my YAPA2 and I would like to make sure if I need to connect the Pull-Up Resistors in order for the bus to work (http://en.wikipedia.org/wiki/File:I2C.svg). What are the recommended values for this resistors?
>>> >>> Best Regards, >>> Jorge >>> >>> >>> _______________________________________________ >>> Paparazzi-devel mailing list >>> address@hidden
>>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel >>> >> >> _______________________________________________
>> Paparazzi-devel mailing list >> address@hidden >> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> >> _______________________________________________ >> Paparazzi-devel mailing list >> address@hidden >> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>> > > _______________________________________________ > Paparazzi-devel mailing list > address@hidden > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
> > _______________________________________________ > Paparazzi-devel mailing list > address@hidden > https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>