Hello everyone,
I'm trying to control a soldering iron using PID algorithm on an arduino nano with a logic level mosfet.
A 18.5V power supply provides power on an LM317 wchich is regulating to 12V and powers up the raw pin on the nano.
A dual op-amp get power from the nano's 5V regulator.
I discovered this project but it's not working as expected. If I turn on the heater, the temp data become inconsistent. When I turn off the heater everything looks fine on the screen. The temp starts dropping gradually.
Also if I turn on the heater using "digitalWrite(HEATER, HIGH)"" and not the PID algorithm everything is ok. The temp on the screen increases gradually without overshooting issues.
What could possibly go wrong with the PID and Timer One libraries that affects the temp readings? I tried to add a 100n cap on the op-amp output which helped but the problem is not solved completely.