So ı was trying to mix two codes. I checked my codes several times and couldn't find the solution. mycode.ino is my mixed code and the Original Triac Control pot and the original pulse codes are the original codes.
void loop()
{
{
if (int(Thermistor(analogRead(thermpin))) >= cutofftemp) // This prevents any activations if the temperature is too high
{
cooldown();
}
if (digitalRead(menupin) == HIGH) // This changes the menu if the menu button is pressed
{
delay(debouncepause);
menuchange();
}
if (digitalRead(weldbuttonpin) == HIGH) // This begins a weld when the weld button is pressed
{
delay(debouncepause);
weld();
}
valor = map(analogRead(A0), 0, 1024, 10000, 10);
//In my case I've used valor = map(analogRead(A0),0,1024,7200,10); for better results
if (detectado)
{
delayMicroseconds(valor); //This delay controls the power
digitalWrite(3, HIGH);
delayMicroseconds(100);
digitalWrite(3, LOW);
detectado = 0;
}
}
//This is the interruption routine
//----------------------------------------------
ISR(PCINT0_vect) //Input from optocoupler
{
if (PINB & B00000001) //We make an AND with the pin state register, We verify if pin 8 is HIGH???
{
etc, etc
Yeah, I find the solution the problem was in the 144 line but I have a question now ı have an error compiling for Arduino UNO error. Is there a solution for this thanks?
crypteddj:
Yeah, I find the solution the problem was in the 144 line but I have a question now ı have an error compiling for Arduino UNO error. Is there a solution for this thanks?
You need to show the actual error, and the code that caused it.
There was an extra bracket on 144. line ı solved it( My new code ı can't post it on here because of the line rule : CodePile | Easily Share Piles of Code). When ı am trying to verify ı am taking this error message :
exit status 1
Error compiling for board Arduino Uno.