Finally got a repurposed blue pill to connect to the quicko t12, and flashed your firmware davidalfa, after spending hours and hours with a cheap chinese st-link/v2.
Real nice job you have done, so much smoother and easier to navigate than the ofw.
Does have a slight issue tho, not sure what is going on here?!
Do you mean the oscillation? This is still very beta! Lots of adjustments still needed to be released. But that's exactly what we need, people trying and reporting.
Edit: I didn't saw that it almost went to zero. Start with the ADC delay, that it's no PID issue.
But the fact that it goes over 300ºC and still applies power, yes, it's the PID. It should stop more closely to the setpoint.
Try few things:
1:Go into PWM menu and increase the ADC delay. It's set to 100uS by default, but I've found that it's not enough.
Last time I tested I got nice results at ~300uS. Set it to max (900uS). And if it stops doing that, try lower settings, 100uS at a time.
This is because the tips might cause some inductive spikes when switched off, and it will vary between tips.
If the ADC reads too soon, it will catch the spike and think the temp is either too high or too low.
See these wafeforms:
(Taken from
https://github.com/wagiminator/ATmega-Soldering-Station)
2:Open /core/Inc/setup.h and edit the FILTER_N value.
Higher than 4 will cause a high of undershoot in the filter output, so when the filter output reaches the setpoint temp, the real temp already went way higher.
I have set it to 3, it's a nice balance betwen filtering and delay.
You can set it to 2 or 1, it will have less filtering, but smaller delay.
Or you can totally disable the filtering and use only the average of the last reading by commenting USE_FILTER.
If it still oscillates then it's a tip or PID problem.
3:It still has PID values from the PTDdreamer fw. Try the different tips included.
Or try this:
PID menu:
Kp : 40
Ki : 1
Kd: 6
Might someone help with the PID tuning?
I usually set all to 0, rise the Kp until the temp is close, put 1-3 in Ki, and increase Kd until it stops oscillating. But it's totally empiric.
4:Might be a bad thermal conductivity, so when the heater is stopped, there's already plenty of heat traveling till the tip sensor.
Try differents tips. From 6,I had 2 with issues.
Else they didnd't reach the temperature, or went crazy up and down like there was no tomorrow.
You'll have to play a lot with these options!
Post here your findings and I'll add the cal values to the fw. I no longer have T12 tips!
And, stay tuned, I have to push some important changes, as I had some lock outs and I hadn't planned any actions for them.
In my case I didn't had any problem, but in the worst case it might freeze with a high PWM setting and burn the tip.
So I've added the PWM emergency shutdown I already had in case of Hard Fault, on that part. Also added on-screen debugging showing the file and line where the problem came from.
(You must build in debug mode to show this information)
But it didn't fail again so I don't know yet what is it.