Hello I was looking to build a overheating circuit using the Arduino, a temprature switch and a relay. Help needed.
Welcome to the forum
What code have you written so far ?
I have not really written any of my own code. Would you maybe be willing to help me
Hello themianer
Provide a list of hardware used.
You will get plenty of help here once you have written some code
- have you looked at and tried the examples in the IDE ?
- exactly what type of temperature probe do you have ?
- can you read the temperature from it ?
- can you print the the temperatures to the Serial monitor ?
- can you turn the relay on and off under control of the Arduino ?
For the moment i just want to test if the arduino can cut out a circuit if tempratures reach a 109 degrees celcius
yes
Is there a way that we can talk on another platform, because I really think my idea has merit and I want to tell you the full story and idea without possible copy cats
It sounds like you want to build a thermostat. If so, then it is hardly revolutionary so why all the secrecy ?
Your first post in this topic described a thermostat
You have had confirmation that an Arduino can read a temperature probe and control a relay based on the temperature
Please give us a clue to what you really want to know
If you are willing to pay for help then this topic can be moved to a more appropriate forum category. Please let me know if you would like me to do this
Okay my idea is to build a car overheating circuit since the Arduino can run on 12 volt and car companies do not have something that can cut out the ignition at 109 degrees celcuis
As I suggested, it is a thermostat and a simple one at that
Okay now will you be willing to help me and if so will you be willing to do it for free or for payment and if so how much
Will you be willing to help me
I, and others here, will certainly help you for free, but that implies some input from you
So, back to my earlier questions
Give my an hour and then I will come back to you
What equipment do you have to do this thing?
MCU?
Temperature probe?
Which Relay?
Do you want help or do you want someone to just do it for you?
Sorry for only coming back to you know I think I know how to build the first prototype.
I want to make the onboard LED on pin 13 go LOW if a potentiometer reaches 5 K. I found a video witch helped me with this code, but I need your help adjusting it:
// C++ code
//
int sensorValue = 0;
void setup()
{
pinMode(A0, INPUT);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
// read the value from the sensor
sensorValue = analogRead(A0);
// turn the led off
digitalWrite(LED_BUILTIN, HIGH);
// pause the program for milliseconds
delay(sensorValue); // Wait for sensorValue millisecond(s)
sensorValue = analogRead(A0);
// turn the led off
digitalWrite(LED_BUILTIN, LOW);
// pause the program for milliseconds
delay(sensorValue); // Wait for sensorValue millisecond(s)
}
Sorry for only coming back to you know I think I know how to build the first prototype.
I want to make the onboard LED on pin 13 go LOW if a potentiometer reaches 5 K. I found a video witch helped me with this code, but I need your help adjusting it:
// C++ code
//
int sensorValue = 0;
void setup()
{
pinMode(A0, INPUT);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
// read the value from the sensor
sensorValue = analogRead(A0);
// turn the led off
digitalWrite(LED_BUILTIN, HIGH);
// pause the program for milliseconds
delay(sensorValue); // Wait for sensorValue millisecond(s)
sensorValue = analogRead(A0);
// turn the led off
digitalWrite(LED_BUILTIN, LOW);
// pause the program for milliseconds
delay(sensorValue); // Wait for sensorValue millisecond(s)
}
Are you unable to use code tags with your postings?
Do you know about IF's?
if ( potValue > IsToHigh )
{
do the thing
}
Even though its perfectly fine in this application to use delay() it might be better for you to get right into millis()
Look at File|Examples|02.Digital|BlinkWithoutDelay to use millis() for timing instead of delay().
// C++ code
//
int sensorValue = 0;
int SomeValue = 1023/2;
void setup()
{
pinMode(A0, INPUT);
pinMode(LED_BUILTIN, OUTPUT);
}
void loop()
{
if ( analogRead(A0) > SomeValue )
{
digitalWrite(LED_BUILTIN, HIGH);
} else {
digitalWrite(LED_BUILTIN, LOW);
}
// read the value from the sensor
//sensorValue = analogRead(A0);
// turn the led off
//digitalWrite(LED_BUILTIN, HIGH);
// pause the program for milliseconds
//delay(sensorValue); // Wait for sensorValue millisecond(s)
//sensorValue = analogRead(A0);
// turn the led off
//digitalWrite(LED_BUILTIN, LOW);
// pause the program for milliseconds
//delay(sensorValue); // Wait for sensorValue millisecond(s)
} //loop()