Andres Rodriguez
New Member
I am trying to drive two glow plugs from a model airplane engine. Using a two MOSFETs (IRFZ44N) attached to C.0 and C.2 on a Picaxe 14M2.
I connected the gate of the MOSFET to C.0 and added a 10K pull down resistor. The source connected to ground and the drain to one of the plugs terminals. the other plug terminal is connected to 11.1V. I tried driving only one plug first (see code below)
I tried a wide variety of frequencies and duty values all to no avail. IT DOES NOT WORK. Except when I replace the glow plug with an LED, it will turn on the LED.
I connected the gate of the MOSFET to C.0 and added a 10K pull down resistor. The source connected to ground and the drain to one of the plugs terminals. the other plug terminal is connected to 11.1V. I tried driving only one plug first (see code below)
I tried a wide variety of frequencies and duty values all to no avail. IT DOES NOT WORK. Except when I replace the glow plug with an LED, it will turn on the LED.
Code:
[INDENT=3][COLOR=#0000cd]#Picaxe 14M2
#terminal 4800
Symbol DTYO=W2
Symbol DTY=W1
Symbol ADC=W0
[/COLOR][/INDENT]
[COLOR=#0000cd][INDENT=4]pwmout C.0, 99, 199 ; 10000Hz at 50% @ 4MHz
W0=0[/INDENT]
[/COLOR][INDENT=3][COLOR=#0000cd]MAIN:
Do
[/COLOR][/INDENT]
[INDENT=4][COLOR=#0000ff]readadc10 B.1,W0
Pause 500
Dty=W0*10/26 Min 200 Max 380
pwmduty C.0,Dty
'pwmduty C.2,Dty
DTYO=DTY
sertxd ("ADC ",#W0,","," Duty ",#DTYO,"%", 13,10)
W0=0[/COLOR][/INDENT]
[INDENT=3][COLOR=#0000cd]Loop[/COLOR][/INDENT]
Last edited: