I was following this (Spanish/Spanglish warning) tutorial to create a DIY soldering station. I created the schematic, PCB and ordered the parts to assembly, used a cheapo 5 V and 24 V AC-DC power supplies to power the Arduino and heating element and everything seemed fine until I turned it on and noticed that my OLED display started to glitch when the 24 V begins to heat the tip.
My first suspect was EMI (which I have no idea on how to deal with) from the supply since I put everything in an old pc power supply enclosure, the PWM stays 100% so the tip heats without control and I have to restart the station. So my question is: What do you think is the cause?, I want general ideas because I know not everyone has time to check everything and I can research further.
I will add a general idea on how the attached Arduino code is working:
- Starts and set up the PID control
- Measures temp of the heating element
- Calculates the PID depending on the set temperature and modifies the PWM signal which controls a MOSFET driving the 24 V for the tip
- Refresh the display
- Repeat 2 - 4
I'm using interrupts for the encoder and u8x8 for the OLED.
Code -> https://github.com/cocampo5/Soldering_iron_pid/blob/master/Soldering%20Iron/src/main.cpp
Ignore the big-a55 resistor. The 24 V supply at the beginning activates the short circuit protection and I thought a resistor as dummy load could help (it just created a ton of heat).