Über der main...
bmp180_calc_t cal;
int temp_tmp;
long temp, press;
int temp_temp;
long press_tmp;
Meine Main (zum Teil...)
Also hier erstmal die Rohdaten :int main(void)
{
/* set DataDirectionRegister(s) as Output */
DDRD |= ((1<<PD1) | (1<<PD4) | (1<<PD5) | (1<<PD6) | (1<<PD7));
DDRC |= (1<<PC0);
DDRB |= ((1<<PB3) | (1<<PB4));
/* set PullUp´s */
PORTC |= ((1<<PC2) | (1<<PC3) | (1<<PC4) | (1<<PC5) | (1<<PC6));
PORTB |= (1<<PB2);
PORTD |= ((1<<PD5));
/* init the Graphic Chip */
ht1632c_init(0xAF);
/* init the I2C unit */
i2c_init();
/* init the pressure sensor */
// BMP180_init();
bmp180_get_cal_param(&cal);
Druck :
// Darf der Rohwert MINUS sein?-22634
Temp :
29232
Umgerechnete Werte :
Temp :
Druck :224
-30418
Die Datentypen sind genau die, die du auch gepostet hast. Ich habe lediglich bei den Musterwerten "gecastet"... Auch ohne "cast" kommt das gleiche raus.
Kann es sein, dass die Kalibrationswerte falsch verrechnet werden?
Lesezeichen