Since this device does not have lots of power it would perform poorly if you try to turn the temperature down using open loop control. eg.: it would not turn the power on when tip gets cold due to fact that you are trying to solder big thermal mass.
I guess the tip of this cheap iron CHANGES RESISTANCE WITH TEMPERATURE… What about powering it off for fraction of second and using attiny to measure that resistance, so we can have real feedback for CLOSED LOOP pid temperature control. Maybe we can just use shunt to measure current thru tip, while measuring voltage, so we can calculate the resistance and therefore temperature of the tip. We can even manage to calibrate the thing using that power transistor as a inprecise current sensing shunt. I think i saw some battery protection circuits doing just that.
Since this device does not have lots of power it would perform poorly if you try to turn the temperature down using open loop control. eg.: it would not turn the power on when tip gets cold due to fact that you are trying to solder big thermal mass.
I guess the tip of this cheap iron CHANGES RESISTANCE WITH TEMPERATURE… What about powering it off for fraction of second and using attiny to measure that resistance, so we can have real feedback for CLOSED LOOP pid temperature control. Maybe we can just use shunt to measure current thru tip, while measuring voltage, so we can calculate the resistance and therefore temperature of the tip. We can even manage to calibrate the thing using that power transistor as a inprecise current sensing shunt. I think i saw some battery protection circuits doing just that.