Hi,
I have this project where I need to keep a small heating pad (10x10cm) at 37° Celsius.
I have set up a DS18B20 to check ambient temperature and an NTC temperature sensor to check the heating pad temperature.
Chatgpt tried helping me but I havent been successful with the temperature regulation, it turns on and increases temperature steadily but never regulates or goes down. My idea is to control the heating pad with a mosfet P55NF06L, turning the heat off once it reaches 37.5 and turn it on at 36.
I have 2 power sources, a barrel jack in my breadboard providing 12v to heating pad and 5v from arduino for temp sensors.
In general you connect the thermistor in a potential divider, and read the analog value. There are several ways to convert to temperature: use a lookup table, use the beta formula, or for a more accurate result use the Steinhart-Hart formula. You may also want to compensate for self-heating. Whatever method, it is a good to idea to calibrate the result against known temperature points.
Probably to start I would use the beta formula. You may find a simple off-on approach does not provide good regulation, typically you will get swings around the set up. A more precise approach would use PWM control and a PID controller.
Post your code here (inside "<CODE/>" tags please) and add a schematic diagram for helping us understand what's going on (even a photo of a pen and paper schematic would be helpful).
Hi! Thank you for your help. Yes, I'm using an NTC thermistor. I cant get the mosfet to turn off the heating pad, no matter what I try.
Here is the circuit:
What does the serial output show? Can you post a relevant snip in code tags. Relevant would be the condition that should turn the heating pad off, because you say it never turns off.
[Edit. Which mosfet are you really using? ...]