Teploměr
Re: Teploměr
I když teploměr odpojím anebo zapojím obráceně tak je to to samé
Re: Teploměr
... Tak dál už nevím.
Re: Teploměr
Tak menši pokrok, proměřil jsem voltmetrem a davalo to šťávu tal jsem to znovu napojil na UNO, nanovo zadal kód a fungovalo to. Když zadám kód s: Serial.print tak na seriovem monitoru se teploty zobrazí, když zadám kód s: M5.Lcd.print tak na displeji se zobrazuje nula
Nevěděl by prosím někdo něco poradit?
Nevěděl by prosím někdo něco poradit?
-
- Příspěvky: 1030
- Registrován: 06 zář 2017, 20:04
- Reputation: 0
- Bydliště: Brno
- Kontaktovat uživatele:
Re: Teploměr
Promiň, ale běž se vycpat s těma svýma fotkama obrazovky. Existuje několik způsobů, jak normálně prezentovat kód. Pokud nezvládneš ani Copy+ Paste, tak se raději do programování čehokoliv ani nepouštěj.
Re: Teploměr
omlouvám se, psal jsem přes mobil proto jsem to fotil
Re: Teploměr
Kód: Vybrat vše
// this example is public domain. enjoy!
// https://learn.adafruit.com/thermocouple/
#include "max6675.h"
int thermoDO = 19;
int thermoCS = 23;
int thermoCLK = 18;
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
void setup() {
Serial.begin(9600);
Serial.println("MAX6675 test");
// wait for MAX chip to stabilize
delay(500);
}
void loop() {
// basic readout test, just print the current temp
Serial.print("C = ");
Serial.println(thermocouple.readCelsius());
Serial.print("F = ");
Serial.println(thermocouple.readFahrenheit());
// For the MAX6675 to update, you must delay AT LEAST 250ms between reads!
delay(1000);
}
Re: Teploměr
Kód: Vybrat vše
#include <M5Stack.h>
// this example is public domain. enjoy!
// https://learn.adafruit.com/thermocouple/
#include "max6675.h"
int thermoDO = 19;
int thermoCS = 23;
int thermoCLK = 18;
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
void setup() {
M5.begin(9600);
M5.Lcd.println("MAX6675 test");
// wait for MAX chip to stabilize
delay(500);
}
void loop() {
// basic readout test, just print the current temp
M5.Lcd.print("C = ");
M5.Lcd.println(thermocouple.readCelsius());
M5.Lcd.print("F = ");
M5.Lcd.println(thermocouple.readFahrenheit());
// For the MAX6675 to update, you must delay AT LEAST 250ms between reads!
delay(1000);
}
-
- Příspěvky: 1030
- Registrován: 06 zář 2017, 20:04
- Reputation: 0
- Bydliště: Brno
- Kontaktovat uživatele:
Re: Teploměr
Zkus tohle
Kód: Vybrat vše
// this example is public domain. enjoy!
// https://learn.adafruit.com/thermocouple/
#include <M5Stack.h>
#include "max6675.h"
int thermoDO = 19;
int thermoCS = 23;
int thermoCLK = 18;
MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);
void setup() {
M5.begin(9600);
M5.Lcd.println("MAX6675 test");
}
void loop() {
// basic readout test, just print the current temp
delay(1000);
M5.Lcd.print("C = ");
M5.Lcd.println(thermocouple.readCelsius());
delay(1000);
M5.Lcd.print("F = ");
M5.Lcd.println(thermocouple.readFahrenheit());
}
Re: Teploměr
stejný výsledek, na sériovém monitoru aktuální teplotu, na displeji nulu
Kdo je online
Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 49 hostů