Stránka 3 z 3

Re: Teploměr

Napsal: 17 lis 2021, 13:49
od Ceiro
I když teploměr odpojím anebo zapojím obráceně tak je to to samé

Re: Teploměr

Napsal: 17 lis 2021, 13:53
od AstroMiK
... Tak dál už nevím.

Re: Teploměr

Napsal: 20 lis 2021, 15:04
od Ceiro
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?
Screenshot_20211120-145904_Gallery.jpg
Screenshot_20211120-145910_Gallery.jpg

Re: Teploměr

Napsal: 20 lis 2021, 15:14
od jankop
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

Napsal: 20 lis 2021, 15:30
od Ceiro
omlouvám se, psal jsem přes mobil proto jsem to fotil

Re: Teploměr

Napsal: 20 lis 2021, 15:31
od Ceiro

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

Napsal: 20 lis 2021, 15:32
od Ceiro

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);
}

Re: Teploměr

Napsal: 20 lis 2021, 16:53
od jankop
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

Napsal: 20 lis 2021, 17:16
od Ceiro
stejný výsledek, na sériovém monitoru aktuální teplotu, na displeji nulu