Need MOSFET help please (AMP type not switching)
floodhound
Posts: 45
Overview: I am designing a temperature controlled device with a basic stamp using a PID. This involves heating a device that is 13V / 4Amps. I am able to read the temperature (LM235) and drive a MOSFET accordingly. However; I wanted to drive the MOSFET in an amplifier type of way vs. switching it on and off rapidly. I was considering PWM out of a pin on the basic stamp, through a 220Ω resistor in parallel with a capacitor into the MOSFET to make it an analog value. This is described in the Basic stamp book and makes perfect since to me. Where I get lost and need help in is how can I arrange the MOSFET so that is becomes an AMP? I will assume the stamp is going to be putting out around 1.7Volts – 5Volts, because I will be using PWM
·
(sample code = ·PWM 6, 255, 255 gives 5 volts and PWM 6, 20, 20 gives less depending on stamp) ·
·
I want to amplify these voltages from a MOSFET to 0-4 Amps. Can some one help or point me in the right direction? I am using an IRF540 or something similar. If any thing can I get some numbers to crunch for amplifying this thing.
·
(sample code = ·PWM 6, 255, 255 gives 5 volts and PWM 6, 20, 20 gives less depending on stamp) ·
·
I want to amplify these voltages from a MOSFET to 0-4 Amps. Can some one help or point me in the right direction? I am using an IRF540 or something similar. If any thing can I get some numbers to crunch for amplifying this thing.
Comments
When a PWM signal is filtered through a resistor and capacitor, what happens mathmatically is the capacitor integrates the voltage so the output voltage seen is near constant, but then feeding that voltage into a non-linear mosfet, you get a non-linear repsonse. If you instead switch the MOSFET with the pure PWM, the heat generated by the coil is the integral of the current flowing through it or a near constant heat output with a linear relationship to the duty cycle of the PWM signal.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
S1 is the output of my stamp. R2 is the heating element ( ceramic plate ) also the 5V is really 13V on the circuit. I thought that I could just run the MOSFET in a Amp fashion. Let me know what you think.
By keeping track of the sequence of zeros and ones you send to the heater each time, you can compute what the next value should be given your PID result.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Lower than 500 ms cycle times is really pointless on a heating element.