Hi Samuel,
I would recommend using a suitable heatsink, but I also changed the firmware temporarily.
* The compile and install process is described in radioberry_install.sh
static void *rb_measure_thread(void *arg) {
// temperature == (((T*.01)+.5)/3.26)*4096 if pa temperature > 50C (=1256) switch pa off! (pa_temp_ok)
int measured_temp_ok_count = 0;
while(1) {
sem_wait(&i2c_meas);
if (i2c_measure_module_active) read_I2C_measure(&pa_current, &pa_temp);
if (pa_temp_ok && (pa_temp >= 1256)) {
fprintf(stderr, "ALERT: temperature of PA is higher than 50ºC; PA will be switched off! \n");
pa_temp_ok = 0;
}
// PA recovery after high temperature; switch PA on again if PA temp is in range for 10 seconds.
if (!pa_temp_ok && (pa_temp < 1256)) measured_temp_ok_count++;
if (measured_temp_ok_count == 100) {
measured_temp_ok_count = 0;
pa_temp_ok = 1;
fprintf(stderr, "PA temperature is ok; PA can be used! \n");
}
}
fprintf(stderr,"rb_measure_thread: exiting\n");
return NULL;
}
hope this helps
Yado-san, jg1twp
2024年11月5日火曜日 8:18:32 UTC+9 Samuel Lourenço: