Spark Ignition kill

Arduino projects on the go
Post Reply
bluejets
Posts: 316
Joined: 19 Jun 2019, 04:09

Spark Ignition kill

Post by bluejets »

Dragged out the Citabria from the rafters which I had fitted a Supertigre 3000 to previously.
Remember the Nephew sold out all his prop driven gear and he gave me a near new Evolution 33cc spark engine way back when.
Short story, fitted that but requires and ignition kill operated from the radio.

So made up one with an ATtiny85 module and an opto operated high side mosfet.
Nothing new about it, just thought I'd poke it in here.

Code: Select all

/* ATtiny85 code
    Ignition kill switch run off rc signal
    signal below 1500, opto off ..ignition dead
    signal above 1500, opto ON, LED ON, Ignition ON
    Loss of signal, opto OFF, LED OFF, ignition OFF

*/

int optoPin = 4;
int rcPin = 3;
int ledPin = 2;

void setup() {
  pinMode(optoPin, OUTPUT);
  pinMode(ledPin, OUTPUT);
}

void loop() {
  int signal = pulseIn(rcPin, HIGH, 100000);

  if (signal > 1500 || signal == 0) {
    digitalWrite(optoPin, LOW);
    digitalWrite(ledPin, LOW);
  } else {
    digitalWrite(optoPin, HIGH);
    digitalWrite(ledPin, HIGH);
  }
}
Attachments
KillSw.jpg
IgnKillATtiny85.jpg
Post Reply