Soldering station


Closed Thread
Results 1 to 38 of 38

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: Soldering station

    Hi Fratello,
    You REALLY like those Nokia graphic LCD . . .
    I think they're pretty cool too, Now as for USEFUL comments . . . According to the engineer from France who writes the Dark Side column in Circuit Cellar, . . Robert La Coste ? his suggestion is to use a PID loop to give you some Hysteresis to your temperature to prevent overshoot and undershoot of tip temp. Search the forum there is a pretty good one or more in circulation.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Soldering station

    Thanks for advice !
    I found this : incPID_mc.pbp Author : Henrik Olsson. GREAT WORK !
    Unfortunately the code don't fit in my small 12F675 ; it's a solution to upgrade to a bigger PIC (18F2550 ?) but... for my small device it's another way ?!
    ...and yes, I like this display : it's verry cheap (about 1 euro) and easy to use. One 2x16 LCD display it's 6 euro and don't look so nice .

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    968


    Did you find this post helpful? Yes | No

    Default Re: Soldering station

    I can assume you're almost at the limits of the code space with your current code. The best option, I reckon, to get reasonably good control with your existing setup would be to try PI control. As it is, you are using the PWM function. Just compute the proportional output to get a smoother control.
    Modify your check routine so that the PWM function outputs 255 when far lower than the setpoint, 0 when at it. Now, to compensate the offset of the temperature, you add the integral correction over time. This can be achieved quite easily with integer math alone.

    A typical P controller pseudo code
    Band con 10 ' this decides the band around SetPoint in which you want proportional control

    if Temp < SetPoint-Band then
    PWMout = 255 ' full heat
    else
    if Temp > Setpoint+Band then
    PWMout = 0 ' full off
    else
    ' within band, do Proportional heating
    Error = SetPoint+Band-Temp ' you want to get the bigger numbers for temp < sv
    PWMout = (Error*255)/(2*Band) ' get an output from 255 to 0 over the band from SV-Band to SV+Band, 50% at SV
    endif
    endif

    Adding integral is relatively easy too. You just need a variable to adjust the error over time. Or use a button to snapshot the error and add it as an offset.

    IntErr var byte

    IntErr = IntErr+(Error/IntTime) ' integrate the error over time

    PWMout = PWMout + IntErr
    if PWMout > 255 then PWMout = 255 ' limit to usable PWM range

    PWM Mosfet, PWMout, 300 ' transfer to the mosfet

    Just some ideas.

  4. #4
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Soldering station

    Thank You so much ! I try and I post the results.

  5. #5
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Soldering station

    I cannot run my simulation ( AMD Athlon64 X2 DualCore 4200+, 2 GB RAM ?!) ...
    It's this code OK ? Thanks !
    Code:
    hyst            CON  2
    check:
    if mode >= 1 then
        if w1 < calibra-hyst     then pwm mosfet, 255, 300
        if w1 > calibra+hyst     then low mosfet
        if w1 = calibra+hyst-w1 then pwm mosfet,(w1*255)/(2*hyst), 300
    endif
    return

  6. #6
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    968


    Did you find this post helpful? Yes | No

    Default Re: Soldering station

    Looks good to me except I would make the first line this
    if w1 < calibra-hyst then high mosfet

  7. #7
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    582


    Did you find this post helpful? Yes | No

    Default Re: Soldering station

    Because of "structure" of my code (see memo subroutine) , this procedure don't work ... I don't have anymore acces to "memory"... I must try a different way, but I have such little space.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts