Hi. I am doing a project where i need to control the spark plug based on a condition. If a pin goes high, then the spark plug should function else it should be disable. I have attached the possible circuits which can be used to interface the spark plug with the Micro-controller.
In circuit 1 , they have configured the transistors as Darlington pair. Is it used to get high current gain?
In circuit 2, only one transistor is used for switching action. Can that transistor alone drive the circuit ?
Also in the programming part. Is enough if i just turn on and off the pin (as shown below) or should i use PWM ?
if(bit_is_set(PINA,0)) //Check high on pin0 of portA
{
PORTC|=(1<<PINC0); //Turn on the pin
delay_ms_(50);
PORTC|=(1<<PINC0); //Turn off the pin
delay_ms_(50);
}
Please help.
Thanks in advance
In circuit 1 , they have configured the transistors as Darlington pair. Is it used to get high current gain?
In circuit 2, only one transistor is used for switching action. Can that transistor alone drive the circuit ?
Also in the programming part. Is enough if i just turn on and off the pin (as shown below) or should i use PWM ?
if(bit_is_set(PINA,0)) //Check high on pin0 of portA
{
PORTC|=(1<<PINC0); //Turn on the pin
delay_ms_(50);
PORTC|=(1<<PINC0); //Turn off the pin
delay_ms_(50);
}
Please help.
Thanks in advance
Attachments
-
45 KB Views: 122
-
37.7 KB Views: 68