So, here's the lowdown.
I bought a Lincoln MP210 Welder which is a multi-function Welder, MIG, TIG, And Stick. It MIG's just fine, but I totally suck at TIG. So awhile ago I was at a friend's house, and he had an Everlast TIG Welder that had a pulse feature on it, and because of this, his welds came out really nice, and mine came out decent using his machine.
So, I did some searching online to figure out how i can add this feature to my machine.
I found this on YouTube.
So, after buying all the necessary components, reading alittle on Arduino and how to upload the code to the Arduino, I was ready for this project, so I thought.
It seems the code that was posted on the video is missing some.
Here is the code:
//Vars
int PWM_DutyCycle=0;
int PWM_DutyCycle_Pin=A0;
int PWM_Period=512; //period in ms
int PWM_Period_Pin=A1;
//Scale the time of the period or duty by N*1024 milliseconds.
//e.g. PWM_PeriodScale=5 will allow a maximum PWM period of 5120 milliseconds, or ~.195 Hz
int PWM_PeriodScale = 4;
int PWM_DutyScale = 4;
int PWM_Out_Pin = 9; //31250 base frequency (Timer1)
bool SimpleMode = 1; //NOTE - Other mode is not implemented!
int ADC1Vals[] = {0,0,0};
int ADC2Vals[] = {0,0,0};
unsigned long HighTime=1;
unsigned long LowTime=0;
void setup() {
//Set up PWM output
pinMode(PWM_Out_Pin, OUTPUT);
}
void loop() {
ReadPots();
HighTime = PWM_DutyCycle*PWM_DutyScale;
LowTime = PWM_Period*PWM_PeriodScale;
//turn on the out pin
digitalWrite(PWM_Out_Pin,HIGH);
delay(HighTime);
ReadPots();
HighTime = PWM_DutyCycle*PWM_DutyScale;
LowTime = PWM_Period*PWM_PeriodScale;
//turn pin off
digitalWrite(PWM_Out_Pin,LOW);
delay(LowTime);
}
void ReadPots()
And here is the schematic to how it is wired.
So, as you can see, there is missing code. no more code after line void ReadPots(). you can clearly see in the video, that the scroll bar can go down further, but he does not show it.
I tried hooking this up to the machine. The pots do nothing, but I still have full Pedal Control. But, it just works as normal, no pulsing. It's like the Pots aren't even working (I tried adjusting them as well, to no avail).
So, Anyone have any ideas? What am I doing wrong? How do I tell the Arduino to get the values for the Potentiometers? I'm guessing there was another file library, like ReadPots.h ?
Thanks in Advance for all your help.