Hello,
I have been trying to control my ptc heater (12vdc 10a) for the past few months and i have come across one issue or the other and now another one has come up. i want to interface the heater with my esp32 and control it (preferably with pwm) but nothing seems to be working.
i have tried a 12v 10a relay, didn't work. i tried an irf3205 mosfet that worked but the mosfet started overheating, i also tried a 15a 400w mosfet trigger switch drive module also over heated. tried driving the mosfet with the module, both overheated. would have also tried an irlz44n but i can't find it anywhere close and would have to order it from abroad and i am strapped on time.
now someone suggested a bts7960 motor driver since it is adept at controlling high voltage and amperage devices and i got that but that is not working either. the out positive and negative pins are reading 0v and I'm honestly at my wits end/
Using a motor driver for a heater seems a little weird and over-complicated.
Why not start with the simplest option, the relay. Let's see the schematic and code for that. And a link to the relay module used. It may be active-low, which may have confused you, and may not be able to directly interface with a 3.3V controller.
Schematic looks ok (except that there is no Arduino in it).
Code looks ok, even chatGPT can't screw up something that simple.
So...
time to elaborate. What did you try? What happened? What did you expect/want to happen? Always describe these things and never say "didn't work" because no-one can help you on that basis.
Suggestion, use pin 13 for a test like that - the on board LED should show you the output state at the same time as your LED on the relay, so if it doesn't you know directly you've miswired something.
I did this, using an arduino UNO and pin 13 like camsysca suggested. the onboard LED came on but as i was trying to check what else was working. the jumper wire coming from the 12v+ side caught fire.
As you can see from that data sheet, the 12V relay has a coil resistance of either 90 or 75 Ohms. The current draw will overheat and/or burn out a BC547 transistor.
It the LED doesn't light, the BC547 is either burned out or miswired.