Termo relay on arduino i need help




png)

Hello everyone who want to help me i have been trying to de bug my thermo relay im using chinese arduini uno atmega328 core 10 10kom resistors 100kom termistor and 5 vdc relay.
my scheme is working but when im trying to make relay turn off after the temperature reaaches 200 degreee celsium but it doesnt show temperature correctly (i know how to fix that) and when it reaches something around 120~150 degree celsium the arduino uno takes 5~10 sec and that is very anoing i need it to turn off as fast as posible and turn back on when temperature drops 5 degree lover the set temp.

Please read and use this link: How to get the best out of this forum - Projects / General Guidance - Arduino Forum

Your code is checking for 270, not 200.

How is it incorrect and how will you fix that?

5~10 seconds to do what?

There is no test in your code except the 270 test.

Perhaps your English is so full of mistakes because you are very angry and frustrated. If so, please take time to become calm before you post again. If you are calm now, then maybe you should use an on-line translator so that you do not have to write in English.

Please read the forum guide before you post again.

im sorry im only learning english so its not the best
it takes 5 to 10 update the temp data

it is checking for 270 because i reset the thing that make it show right so for now it is 270 but 200 in reality


i swap temp=temp 273.15 to 330 on line 7 and it makes it display 200 degree but it shows incorect temp if it below 180 and more that 240
and i swaped on lin 13 temp from 270 to 200

I asked you to read the forum guide before you replied and it is clear that you have not done that.

Good luck with your project.

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

https://forum.arduino.cc/t/how-to-get-the-best-out-of-this-forum

Please post your full sketch, using code tags when you do

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

It is also helpful to post error messages in code tags as it makes it easier to scroll through them and copy them for examination


the relay on scheme is different but connected the same way

#define RELAY1 9
double Thermister(int data) {
  double temp;
  temp = log(10000.0 * ((1024.0 / data - 1)));
  temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * temp * temp)) * temp);
  temp = temp - 330;
  Serial.println(" ");
  Serial.print(temp);
  Serial.print(" Celcius");
  Serial.println("..................................");
  if (temp >= 200) {
    digitalWrite(RELAY1, LOW);
    Serial.println("heating off");
  } else {
    digitalWrite(RELAY1, HIGH);
    Serial.println("heating on");
  }
}

void setup() {
  Serial.begin(9600);
  pinMode(RELAY1, OUTPUT);
  digitalWrite(RELAY1, LOW);
}
int i;
void loop() {
  i = analogRead(A0);
  Thermister(i);
  delay(1000);
}

im using arduino uno, 10 10kom resistors,breadboard, TONGLING jqc-3ff-s-z relay,100kom thermistor

Which sensor are we talking about.
I think I see some black tube, but I also see clixons (thermal switches).
The string of 10k resistors might be wrong for a 100k thermistor.
We normally use a pull up resistor value of the thermistor value at the temp of interrest.
A 10k pull up resistor could be better suited for a 100k thermistor at those high temps.
Leo..

i didnt have the right resistors i connected 10 10kom resistors to get 100kom

what do you mean?

Post#1 shows a 2-wire sensor, post#10 shows a 3-wire sensor.
So what do you have.

Why 100k.
Using 100k with a 100k thermistor is a bad idea when you need to measure high temps.
Leo..

I have 2 wire sensor which will get replased with different 2wire 100kom

So what should i use then?


I apologize i made a mistake in diagram the termistor was wired wrong way

Did you actually read my replies?
Leo..

Is that the correct temperature formula for the thermister you have or is it just something you copied off the internet?

Hi, @ardduino_noob
Welcome to the forum
Can you please tell us what your native language is?

Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

For the relay, draw a box and label the points that the wire go into it.


A similar box for the UNO.

Please forget about using Fritzy diagrams.

Tom.... :smiley: :+1: :coffee: :australia:

I dont understand what is pull up resistor

Ukrainian
I cant send a picnow im not at home
im using arduino uno, 10 10kom resistors,breadboard, TONGLING jqc-3ff-s-z relay,100kom thermistor

I looked it up and after adapted for my use