loading
6Comments

Tell us about yourself!

Complete Your Profile
  • jmamcCAIADO. commented on KaeptnBalu's instructable DIY Arduino Battery Spot Welder5 months ago
    DIY Arduino Battery Spot Welder

    Here's the updated code with the first pulse fix:void DoppelImpuls(){ pulse_time = analogRead(sensorPin)/51.15; float pulse_short = pulse_time; // use a float to handle fractionspulse_short = (pulse_short/8)*1000; // Impuls with 1/8 of the time of pulse_timeif (pulse_short < 1) //makes the short pulse to be at least one milli second pulse_short = 1; digitalWrite(ledPin, HIGH);digitalWrite(mosfetPin, HIGH);delayMicroseconds(pulse_short); digitalWrite(mosfetPin, LOW);delayMicroseconds(pulse_short); digitalWrite(mosfetPin, HIGH);delay(pulse_time); digitalWrite(mosfetPin, LOW);delay(100);digitalWrite(ledPin, LOW);}[delete]Feature Comment

    Here's the updated code with the first pulse fix:void DoppelImpuls(){ pulse_time = analogRead(sensorPin)/51.15; float pulse_short = pulse_time; // use a float to handle fractions pulse_short = (pulse_short/8)*1000; // Impuls with 1/8 of the time of pulse_time if (pulse_short < 1) //makes the short pulse to be at least one milli second pulse_short = 1; digitalWrite(ledPin, HIGH); digitalWrite(mosfetPin, HIGH); delayMicroseconds(pulse_short); digitalWrite(mosfetPin, LOW); delayMicroseconds(pulse_short); digitalWrite(mosfetPin, HIGH); delay(pulse_time); digitalWrite(mosfetPin, LOW); delay(100); digitalWrite(ledPin, LOW); }

    View Instructable »
  • jmamcCAIADO. commented on KaeptnBalu's instructable DIY Arduino Battery Spot Welder6 months ago
    DIY Arduino Battery Spot Welder

    Hi. Thanks for your great and useful project.I'm planing to use the 12V straight from the lead acid Battery also. But not sure if that's a good idea. The battery is in fact short circuited for a small fraction of time. Can that damage the Spot Welder components??

    The short_pulse variable must be a Float otherwise you'll get inconrrect first pulse time. Spot that with oscilloscope.

    Hi, the first pulse should use the command delayMicroseconds() (times 1000) otherwise the first pulse time is incorrect (for time fractions in milliseconds)Found this bug with my oscilloscope

    The short_pulse variable must be a Float

    View Instructable »