I have a Raspberry Pi 4B, a 12 V power supply, a 12 V air pump controlled by a MOSFET, a DS18B20 for feedback and a 47 Ω, 8 W resistor that we should somehow heat. Everything up to actually heating the resistor is done and working.
Essentially, the pump pumps air through a PVC channel inside which is the resistor that should heat up the air to whatever temperature is set in the code, and the reading is done by the DS18B20.
How can I do it on the Pi? I tried searching and it has something to do with a transistor and one of the PWM pins of the Pi, but I couldn't find any schematic.
I did find something for an Arduino, but I'm not sure if it will work exactly the same, since transistors consume current and the GPIOs are heavily limited on that side.
Do you guys know some transistors that would work with this and/or a library with a schematic example? I'm new to PID controlling and transistors.
I tried posting this question on the Raspberry Pi section of the forum and I was told to come here.