arduino, eletrônica, robotica...
So ta medindo a temperatura e a umidade naõ,alguem pode me ajudar por favor.
void setup(){ pinMode(3,INPUT); //button input m.init(); // module initialize m.setIntensity(15); // dot matix intensity 0-15 Serial.begin(9600); // serial communication initialize Serial.println("DHTxx test!"); dht.begin();}
void loop(){ printStringWithShift(" ARDUINO ", 300); int t = dht.readTemperature(); int h = dht.readHumidity(); char temp[4]; itoa(t,temp,10); Serial.println(temp); Serial.println(Umid); printStringWithShift("temp: ", 100); printStringWithShift(temp, 100); printStringWithShift("C ", 100); printStringWithShift("Umiddade: ", 100); printStringWithShift(Umid, 100); printStringWithShift("% ", 100); delay(300); m.shiftLeft(false, true); }
Tags:
MySpace Tweet Facebook Facebook
Exibições: 134
▶ Responder esta
O motivo é porque teu sketch não sabe de onde vem "Umid"
Tente aprender olhando aqui:
http://blog.filipeflop.com/sensores/monitorando-temperatura-e-umida...
▶ Responder
Caro colega deu certo valeu obrigado pela atenção.
RSS
Bem-vindo aLaboratorio de Garagem (arduino, eletrônica, robotica, hacking)
Registre-seou acesse
Or sign in with:
© 2024 Criado por Marcelo Rodrigues. Ativado por
Badges | Relatar um incidente | Termos de serviço
Verifique as configurações do seu navegador ou contate o administrador do sistema.