|
|
|
|
|
|
Joined Dec 2010
5 Posts
|
reading altimeter v4
Hi Bill,
I've got my arduino board reading the altimeter v4 (using code from turnale and nakki5)...but I'm getting odd readings. It outputs a value of 2817, and the value increases as I apply suction, but it goes up only in increments of 256 (e.g. 2817...then to 3073...then to 3324). If I do the math on these values (assuming they're decimeters and setting the initial value to zero), they seem to match the altitude shown on the 7-segment display...but that would indicate an altitude resolution of only 25.6 meters. Seems like I must be doing something wrong here. I looked at what it was outputting for the 2 bytes of data and the first byte is always 1, while the second byte changes with pressure...which makes sense that the output then is close (within 25.6m) of the altitude shown on the 7-segment display. So i can't figure out why the first byte is always "1"... my code (arduino) for reading the values is: // Tell sensor we're going to write to it Wire.beginTransmission(ALT_ADDRESS); Wire.send(I2C_WRITE_BIT); Wire.endTransmission(); // Send the read data command to the sensor (0x07) Wire.beginTransmission(ALT_ADDRESS); Wire.send(0x07); Wire.endTransmission(); // Read the altimeter's response Wire.requestFrom(ALT_ADDRESS,2); if (Wire.available()) { data= Wire.receive(); } if (Wire.available()) { data |=Wire.receive() << 8; } return data; |
|
|
||
|
Joined Sep 2011
1 Posts
|
Using it in NON 3rd party mode, i.e. ET mode
Quote:
In this example it will give 508 km/h, which is a little bit different from the 530 above, but they may have some different assumptions about the air density. To implemented compressibility correction, the equation looks like v = sqrt(2*pdiff/(rho*(1+0.25*Ma^2))) where Ma is the Mach number Ma = v/a (a speed of sound). Of cause, this requires an iterative solution. Hope that helps ![]() Edit: Compressibility correction is only necessary if you fly with more than around 350 km/h ... |
|
|
|
|
|
|
Hello Bill, I have the ALT-V4's 3-party mode working with my uC. The decimeter data is stable, perhaps only 1 bit of short term wandering. I can see smooth elevation changes as I move the ALT-V4 up and down and the data closely mimics my movements. So that part seems to be Ok.
However, there is something odd going on. My data is not zero referenced. Instead, it is offset by about 4080 decimeters at my location (I'm about 200 feet ASL). I tried another ALT-V4 with the same results. Is this normal? The 3rd-party data sheet says that the ALT-V4's data should be zero referenced. But that's not what I am seeing, so the reason for my tap on your shoulder. Thanks, Thomas |
|
|
|
|
||
|
|
Quote:
![]() Pardon if I missed it in the documentation, but what is the ALT-V4's update rate for each new data sample? . |
|
|
|
|
|
Joined Oct 2011
1 Posts
|
Hello, I'm using a Rs232-I2C Adapter to obtain the data from the Altimeter v4.
The data i recive in Hexadecimal when i read 6 bytes (if i read more, the next are always [00]) is like this: [76][00][FF][FD][00][B9] The two bytes that changes in time are [FF][FD], so i suposed that are the two bytes of the sensor data. But in this example the altitude would be: FDFF which in meters doing the convertion mentioned in the manual is 6202. I don't now what i'm doing wrong, any help would be apreciated. Thanks |
|
|
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wanted WTB Eagletree Altitude and Airspeed micro sensors | hcopter | Aircraft - General - Miscellaneous (FS/W) | 0 | Oct 20, 2007 12:02 PM |
| Discussion NOW SHIPPING: Airspeed, Altitude and lots more new sensors for the MicroPower | billpa | Eagle Tree Systems | 41 | Jul 31, 2007 02:02 PM |
| Discussion Eagle Tree announces Airspeed, Altitude and lots more new sensors for the MicroPower | billpa | Batteries and Chargers | 14 | May 28, 2007 07:28 PM |
| Discussion Eagle Tree announces Airspeed, Altitude and lots more new sensors for the MicroPower | billpa | Product Announcements | 4 | May 27, 2007 09:56 PM |
| Alert Caution - Web Page with your info not secure | RCTyp | HobbyKing | 5 | Mar 22, 2007 03:25 PM |