WeatherDuino Forum
WeatherDuino_Pro2_Universal_TX_v3.1_b002 - Printable Version

+- WeatherDuino Forum (https://www.meteocercal.info/forum)
+-- Forum: Weather Stations - WeatherDuino Pro2 Line (https://www.meteocercal.info/forum/forum-4.html)
+--- Forum: General Talking (https://www.meteocercal.info/forum/forum-23.html)
+---- Forum: Suporte Geral em Português (https://www.meteocercal.info/forum/forum-22.html)
+---- Thread: WeatherDuino_Pro2_Universal_TX_v3.1_b002 (/thread-1281.html)



WeatherDuino_Pro2_Universal_TX_v3.1_b002 - Ardummy - 28-10-2017

Hola mi duda es, si entro en la pestaña "DEBUG" en esta parte de programación tiene que estar activado alguna linea de las que marco en rojo, ahora mismo no hay ninguna activada(es decir sin //) uso el sensor UVM-30A.

Gracias.


#if (DebugID4)
// function to serial print DebugID4 data
// ---------------------------------
void printDebugID4()
{
 
  SolarRad = map(avg_SolarRad, 0, 1023, 0, 1400);     // Output always be a integer, between 0 and 1250 W/m2  // Can be usefull to also control fan on/off. On if SolarRad > 600 W/m2 - Not implemenred yet
 
  // --- ADC1 is data from my UV sensor Reyax UV-01
  //  IndiceUV = (avg_IndiceUV * 12.0) / 1024.0;
 
  // --- ADC4 is data from my UV sensor UVM-30A
  //IndiceUV = ((avg_IndiceUV * 17.0) / 1023.0) ;


RE: WeatherDuino_Pro2_Universal_TX_v3.1_b002 - laulau - 28-10-2017

Please post in English language!

Edit: Desculpe, mas é só porque não posso converter para o português sem usar 'Google trad' Confused


RE: WeatherDuino_Pro2_Universal_TX_v3.1_b002 - werk_ag - 28-10-2017

Olá Ardummy

Nas funções debug, nem tudo funciona sem alguma edição do codigo.
Penso que para obteres as leituras do UVM-30A deves tirar as duas barras nesta linha:

// --- ADC4 is data from my UV sensor UVM-30A
IndiceUV = ((avg_IndiceUV * 17.0) / 1023.0) ;

mesmo assim, esta não é exactamente a formula que é usada no software RX para calcular o indice UV, serve apenas para ver se estamos a obter leituras.


PS: Sempre que queiras postar em Castelhano, utiliza a secção portuguesa do forum. Obrigado


RE: WeatherDuino_Pro2_Universal_TX_v3.1_b002 - Ardummy - 28-10-2017

Gracias  Werk_AG por la información y disculpa mi error al colocar el post, lo tendre en cuenta la próxima vez, mi ingles no es muy bueno.

Saludos


RE: WeatherDuino_Pro2_Universal_TX_v3.1_b002 - werk_ag - 28-10-2017

(28-10-2017, 19:19)Ardummy Wrote:  Gracias  Werk_AG por la información y disculpa mi error al colocar el post, lo tendre en cuenta la próxima vez, mi ingles no es muy bueno.

Saludos

Smile sem problema. O meu Inglês tambem não é o melhor.