Pages: [1]   Go Down
Author Topic: ARDUINO as a RPM limiter  (Read 1031 times)
0 Members and 1 Guest are viewing this topic.
Croatia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

I'm planing to build rpm limiter for my motorcycle. This is the schematics and code that I wrote, and I'm interested would this work:



This is the code:
Code:
const int rpmPin=2;
const int killSwPin=0;

unsigned long lastPulseTime = 0;
unsigned long rpm = 0;

void setup()
{
pinMode(rpmPin,INPUT);
digitalWrite(rpmPin,HIGH);
attachInterrupt(rpmPin,RPMCounter,RISING);

pinMode(killSw,OUTPUT);
}

void loop()
{
if(rpm>=7000)
{
digitalWrite(killSw,HIGH);
}
else
{
digitalWrite(killSw,LOW);
}



}
void RPMCounter()
{

  unsigned long now = micros();
  unsigned long interval = now - lastPulseTime;

  if (interval > 2000)
  {
     rpm = 60000000UL/(interval);
     lastPulseTime = now;
  }  

}

RPM reading is based on this schematics:
www.sportdevices.com/rpm_readings/index.htm

Thanks!
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm not familiar with the symbol you're using for T1 - is it some form of transistor? If so I guess you're planning to override the points by holding the coil -ve to ground. While that will certainly kill the spark, it'll also overheat the coil pretty quickly.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Croatia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That is a SCR.

How should I overheat ignition coil, when all the voltage goes to the ground?
Logged

Croatia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Does anyone know?
Logged

Dubuque, Iowa, USA
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2512
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PeterH is thinking you're using an automotive type coil that receives power from the battery. You're apparently using the type of coil that generates its charge from a magnet on the flywheel. No, there's no risk to the coil for what you're doing.

Logged

Gales Ferry, CT
Offline Offline
Newbie
*
Karma: 0
Posts: 48
Always thinking
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would be interested in this for an automotive application any way to get over the overheating issue?

Lance
Logged

Patience.....

Croatia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PeterH is thinking you're using an automotive type coil that receives power from the battery. You're apparently using the type of coil that generates its charge from a magnet on the flywheel. No, there's no risk to the coil for what you're doing.



Thanks!
Logged

Dubuque, Iowa, USA
Offline Offline
Faraday Member
**
Karma: 47
Posts: 2512
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would be interested in this for an automotive application any way to get over the overheating issue?

You reduce the amount of time that current is flowing through the coil (the "dwell" time). It should only be energized for a very short period before you switch off the current / create the spark. Just take a close look at your distributor and you'll see the the breaker points are only closed momentarily.

There are special purpose IGBTs/mosfets designed for this type of high voltage current switching; a dig around Fairchild Semi's site will list a number of them. Or use the google, etc.
Logged

UK
Offline Offline
Shannon Member
****
Karma: 223
Posts: 12630
-
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PeterH is thinking you're using an automotive type coil that receives power from the battery. You're apparently using the type of coil that generates its charge from a magnet on the flywheel. No, there's no risk to the coil for what you're doing.

Yes, I was thinking this was a conventional automotive car ignition system. On these systems, pulling the coil -ve low would result in a lot of heat being dissipated into the coil and is a good way to burn them out.

If this question is actually about a magneto-based system then all you'd be doing it shorting the magneto output to ground. I don't know whether that would be safe to do - perhaps it is.
Logged

I only provide help via the forum - please do not contact me for private consultancy.

Croatia
Offline Offline
Jr. Member
**
Karma: 0
Posts: 51
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

PeterH is thinking you're using an automotive type coil that receives power from the battery. You're apparently using the type of coil that generates its charge from a magnet on the flywheel. No, there's no risk to the coil for what you're doing.

Yes, I was thinking this was a conventional automotive car ignition system. On these systems, pulling the coil -ve low would result in a lot of heat being dissipated into the coil and is a good way to burn them out.

If this question is actually about a magneto-based system then all you'd be doing it shorting the magneto output to ground. I don't know whether that would be safe to do - perhaps it is.

On that principle, works kill switch on motorcycle, so it would be safe!
Logged

Pages: [1]   Go Up
Jump to: