Arduino Based CDI

Mars   /
This single post is part of a larger thread. Start from the top or view this post in context.

I began working on this idea a while back but lost attention over the riding season. Cold weather is coming, so it's time to pick it back up. I mentioned this in another thread and several people seemed interested in learning some Arduino usage as well as using the final product. So, I thought I would start a new thread for this specific topic. Once things are sorted out this will all be wiki'd, but for now we can use this as a place to exchange ideas for the thing.

So far, I have been using an Arduino Uno. It's simple and cheap; ~$25 at the time of writing this. You can even buy them at local places like Radio Shack.

When I initially began development of this, I built a simple CDI circuit which was basically a copy of one that Ryan had posted some time before. Essentially it rectified (converted AC to DC) the current coming off the ignition coil and dumped it in to a capacitor, and when the signal coil 'fired', an SCR (Silicon Controlled Rectifier) acted as a switch which would ground the capacitor, thereby dumping its charge to the high tension coil. Here is the circuit to the best of my recollection (as the image from the original thread has 404'd):

Here is a video of the circuit in use:

Now that I had a simple working circuit, I wanted to basically circumvent the trigger signal going in to that SCR and send it to the Arduino, such that I could programmatically delay the response based on various conditions such as current RPM, temperature, etc.

The problem I ran in to was treating the signal coming from the trigger coil so as to prepare it for input to the Arduino. At about 1000 RPM, the trigger coil on my MVT Millennium was putting out about 4 volts, meaning at 15 thousand RPM (no I don't plan on going to that RPM, but if I'm going to design a system, I want it to be able to handle extremes) it would be putting out a whopping 60 volts. I'm still learning all this stuff as I go along, and despite consulting some EE students here at MIT, I could not come up with a good way of essentially converting that to a binary signal. If I were to resist down the signal such that it's low enough to pipe in to an analog input on the Arduino at 15k RPM, the signal at 1k RPM would be so low that it would no different than the ambient noise.

That catches us up to the present date. A few days ago I was kicking an empty can down a dirt road and realized that all I had to do was just epoxy a Hall Effect sensor on to my stator and I could then simply ignore the stock trigger coil all together. Hall Effect sensors's are magic little switches that turn 'on' when a magnet passes over them, and then turn 'off' when the opposite pole of a magnet passes over again. Because most of our flywheels have four magnets in them, all I had to do was listen to this sensor for on-off-on-off and then I know that a full revolution has occurred.

To test my device I have taken a small centrifuge and turned a custom rotor for it on the lathe in to which I have embedded two small neodymium magnets and screwed a shitty piece of wood in there on which to mound my sensor. Yesterday I finished writing some basic code for this project and tested it out. It simply prints to the serial monitor the current RPM. This centrifuge spins up to 14k RPM, and I'm happy to say that my device was reading it as ~14998 RPM!

(old picture.. that is the pickup coil for a 'Treats CDI' from my initial tests. The Hall Effect sensor is not pictured)

So, the next step is to build another CDI circuit to trigger with a digital output pin on the Arduino. I am currently researching a new circuit so I may run it off of a 12v battery. I don't plan on running a total-loss ignition, but it would be nice to have it as an option and would make testing easier. The problem with the earlier circuit is that when the SCR triggers to ground the capacitor, it will also ground the + lead on the battery for a moment and that is going to eventually break things. (edited)

Arduino_Uno.png
CDI_Schematic.png
IMAG0284.jpg

This single post is part of a larger thread. Start from the top or view this post in context.
Subject Written By Posted
  Arduino Based CDITopic by: Mars   Mars   10/26/12 03:41PM
  Re: Arduino Based CDIRe: Josh G Josh G 10/26/12 03:48PM
  Re: Arduino Based CDIRe: Mars   Mars   10/26/12 03:55PM
  Re: Arduino Based CDIRe: Mars   Mars   10/26/12 04:06PM
  Re: Arduino Based CDIRe: Nele Sudar Nele Sudar 10/26/12 04:17PM
  Re: Arduino Based CDIRe: Thenggregy Cawilan Thenggregy Cawilan 08/06/20 06:45PM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 08/07/20 07:18AM
  Re: Arduino Based CDIRe: Cooper Hennick Cooper Hennick 10/26/12 05:54PM
  Re: Arduino Based CDIRe: Jake Beckman Jake Beckman 10/26/12 06:44PM
  Re: Arduino Based CDIRe: M-Tenn Aaron M-Tenn Aaron 10/26/12 07:00PM
  Re: Arduino Based CDIRe: Nele Sudar Nele Sudar 10/26/12 07:40PM
  Re: Arduino Based CDIRe: Jason Collier Jason Collier 10/27/12 12:26AM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 10/27/12 12:46PM
  Re: Arduino Based CDIRe: Ϫ‡☄ಬ∞ ƀƖḬƝƊ ƤǂƿƎ ∞ಬ☄‡Ϫ - Hoke from Black Pipes Moped Gang Ϫ‡☄ಬ∞ ƀƖḬƝƊ ƤǂƿƎ ∞ಬ☄‡Ϫ - Hoke from Black Pipes Moped Gang 10/29/12 12:43AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 10/27/12 02:40PM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 10/27/12 06:24PM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 10/27/12 03:26PM
  Re: Arduino Based CDIRe: Mars   Mars   10/27/12 03:35PM
  Re: Arduino Based CDIRe: NB0tt aholetechbro NB0tt aholetechbro 10/27/12 03:41PM
  Re: Arduino Based CDIRe: Mars   Mars   10/27/12 03:49PM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 10/27/12 06:36PM
  Re: Arduino Based CDIRe: will warn will warn 10/27/12 08:31PM
  Re: Arduino Based CDIRe: Adam Russell Adam Russell 10/28/12 08:38AM
  Re: Arduino Based CDIRe: Adam Russell Adam Russell 10/28/12 09:10AM
  Re: Arduino Based CDIRe: Mars   Mars   10/28/12 06:56PM
  Re: Arduino Based CDIRe: Mars   Mars   10/28/12 11:50PM
  Re: Arduino Based CDIRe: 1 1 1 1 10/28/12 11:44PM
  Re: Arduino Based CDIRe: Chris B Chris B 10/29/12 10:02AM
  Re: Arduino Based CDIRe: Mars   Mars   10/29/12 10:44AM
  Re: Arduino Based CDIRe: Paul Dehmer Paul Dehmer 10/29/12 08:45PM
  Re: Arduino Based CDIRe: Time Warner Time Warner 10/31/12 07:43PM
  Re: Arduino Based CDIRe: Cooper Hennick Cooper Hennick 11/01/12 11:14AM
  Re: Arduino Based CDIRe: Mars   Mars   11/02/12 12:55AM
  Re: Arduino Based CDIRe: Sickster 6 Sickster 6 11/02/12 01:42PM
  Re: Arduino Based CDIRe: Mars   Mars   11/02/12 01:52PM
  Re: Arduino Based CDIRe: Dill . Dill . 11/03/12 01:12PM
  Re: Arduino Based CDIRe: Time Warner Time Warner 11/02/12 07:57PM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/03/12 02:07PM
  Re: Arduino Based CDIRe: Dill . Dill . 11/06/12 09:46AM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 11/06/12 09:50AM
  Re: Arduino Based CDIRe: Mars   Mars   11/06/12 10:29AM
  Re: Arduino Based CDIRe: Peter Fondue Peter Fondue 11/06/12 01:52PM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 11/14/12 10:27AM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 11/20/12 01:57AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/20/12 09:36AM
  Re: Arduino Based CDIRe: Alejandro Schröeder Alejandro Schröeder 11/21/12 07:19PM
  Re: Arduino Based CDIRe: Mars   Mars   11/22/12 10:53AM
  Re: Arduino Based CDIRe: *.* HONDA *.* HONDA 11/22/12 08:44PM
  Re: Arduino Based CDIRe: Dill . Dill . 11/22/12 01:12PM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 11/24/12 02:44AM
  Re: Arduino Based CDIRe: Mars   Mars   11/30/12 11:22PM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 12/14/12 12:18AM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 12/14/12 12:35AM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 12/14/12 09:05AM
  Re: Arduino Based CDIRe: Mars   Mars   12/14/12 09:54AM
  Re: Arduino Based CDIRe: The Blisster The Blisster 12/14/12 01:08PM
  Re: Arduino Based CDIRe: Mars   Mars   12/16/12 12:44AM
  Re: Arduino Based CDIRe: 1 1 1 1 12/16/12 12:50AM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 12/16/12 02:06AM
  Re: Arduino Based CDIRe: Mars   Mars   12/16/12 02:26PM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 12/16/12 03:28PM
  Re: Arduino Based CDIRe: Mars   Mars   12/16/12 04:23PM
  Re: Arduino Based CDIRe: peter heid peter heid 11/16/14 07:52AM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 12/16/12 04:49PM
  Re: Arduino Based CDIRe: Mars   Mars   12/16/12 05:21PM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 12/16/12 06:00PM
  Re: Arduino Based CDIRe: Ryan Mayer Ryan Mayer 12/16/12 09:11PM
  Re: Arduino Based CDIRe: SABAT! andDestroy SABAT! andDestroy 12/16/12 11:27PM
  Re: Arduino Based CDIRe: Mars   Mars   12/16/12 11:34PM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 12/17/12 12:25AM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 12/17/12 12:51AM
  Re: Arduino Based CDIRe: The Blisster The Blisster 12/18/12 02:15PM
  Re: Arduino Based CDIRe: Mars   Mars   12/18/12 02:22PM
  Re: Arduino Based CDIRe: Ryan Mayer Ryan Mayer 01/15/13 06:38AM
  Re: Arduino Based CDIRe: Mars   Mars   01/15/13 09:19AM
  Re: Arduino Based CDIRe: Dominic Valentino Dominic Valentino 01/15/13 11:37AM
  Re: Arduino Based CDIRe: SABAT! andDestroy SABAT! andDestroy 01/15/13 11:30AM
  Re: Arduino Based CDIRe: Mars   Mars   01/15/13 11:54AM
  Re: Arduino Based CDIRe: Ryan Mayer Ryan Mayer 01/15/13 12:25PM
  Re: Arduino Based CDIRe: Ryan Mayer Ryan Mayer 01/15/13 12:41PM
  Re: Arduino Based CDIRe: Time Warner Time Warner 01/15/13 07:05PM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 01/16/13 04:15PM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 01/22/13 02:44AM
  Re: Arduino Based CDIRe: Time Warner Time Warner 01/23/13 01:21PM
  Re: Arduino Based CDIRe: Mars   Mars   01/23/13 01:29PM
  Re: Arduino Based CDIRe: Ryan Mayer Ryan Mayer 01/23/13 02:09PM
  Re: Arduino Based CDIRe: Mars   Mars   01/23/13 02:57PM
  Re: Arduino Based CDIRe: Emerica   Emerica   01/23/13 08:29PM
  Re: Arduino Based CDIRe: Mars   Mars   01/23/13 08:40PM
  Re: Arduino Based CDIRe: Emerica   Emerica   01/23/13 09:04PM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 01/23/13 11:16PM
  Re: Arduino Based CDIRe: Mars   Mars   01/23/13 11:28PM
  Re: Arduino Based CDIRe: M∆®†Y Køk€š M∆®†Y Køk€š 01/24/13 01:21AM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/14/14 11:24AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/14/14 11:37AM
  Re: Arduino Based CDIRe: ♣Slew Foot♣ ♣Slew Foot♣ 11/15/14 12:37PM
  Re: Arduino Based CDIRe: Thenggregy Cawilan Thenggregy Cawilan 08/13/20 12:50AM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/14/14 12:42PM
  Re: Arduino Based CDIRe: Julie the Wizard Julie the Wizard 11/15/14 02:11AM
  Re: Arduino Based CDIRe: simon zarka simon zarka 11/15/14 05:10AM
  Re: Arduino Based CDIRe: Mars   Mars   11/15/14 09:34AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/15/14 04:47PM
  Re: Arduino Based CDIRe: «tyler » «tyler » 11/15/14 11:11PM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/15/14 11:21PM
  Re: Arduino Based CDIRe: Mars   Mars   11/15/14 11:56PM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/16/14 12:02AM
  Re: Arduino Based CDIRe: Mars   Mars   11/16/14 12:11AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/16/14 06:35AM
  Re: Arduino Based CDIRe: Thenggregy Cawilan Thenggregy Cawilan 08/13/20 12:45AM
  Re: Arduino Based CDIRe: ♣Slew Foot♣ ♣Slew Foot♣ 11/16/14 08:28AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/16/14 02:15PM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/16/14 02:19PM
  Re: Arduino Based CDIRe: Mars   Mars   11/16/14 10:24PM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/17/14 12:18AM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/17/14 11:31AM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/17/14 11:36AM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/17/14 11:38AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/16/14 03:22PM
  Re: Arduino Based CDIRe: Cody H Cody H 11/17/14 12:34PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/17/14 12:40PM
  Re: Arduino Based CDIRe: Cody H Cody H 11/17/14 12:48PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/17/14 12:55PM
  Re: Arduino Based CDIRe: Cody H Cody H 11/17/14 01:00PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/17/14 01:09PM
  Re: Arduino Based CDIRe: Cody H Cody H 11/17/14 01:52PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/17/14 01:59PM
  Re: Arduino Based CDIRe: Cody H Cody H 11/17/14 02:15PM
  Re: Arduino Based CDIRe: Mars   Mars   11/21/14 09:10AM
  Re: Arduino Based CDIRe: peter heid peter heid 11/22/14 01:28PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/21/14 01:35PM
  Re: Arduino Based CDIRe: Mars   Mars   11/21/14 02:14PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/21/14 03:51PM
  Re: Arduino Based CDIRe: Mars   Mars   11/21/14 04:16PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/21/14 06:18PM
  Re: Arduino Based CDIRe: «tyler » «tyler » 11/24/14 09:07AM
  Re: Arduino Based CDIRe: ♣Slew Foot♣ ♣Slew Foot♣ 11/23/14 06:47AM
  Re: Arduino Based CDIRe: Deadped Ryan Deadped Ryan 11/24/14 10:04AM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 11/25/14 11:28AM
  Re: Arduino Based CDIRe: Mike Boyd Mike Boyd 03/04/16 04:17PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 03/11/16 12:52PM
  Re: Arduino Based CDIRe: Andres Pioli Andres Pioli 01/25/18 07:48PM
  Re: Arduino Based CDIRe: Mikey Antonakakis Mikey Antonakakis 01/25/18 10:41PM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 01/26/18 10:42AM
  Re: Arduino Based CDIRe: Mikey Antonakakis Mikey Antonakakis 01/26/18 06:05PM
  Re: Arduino Based CDIRe: Lee Hoffguy Lee Hoffguy 01/26/18 11:40AM
  Re: Arduino Based CDIRe: Jay Rivett Jay Rivett 08/07/20 01:46AM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 08/07/20 07:44AM
  Re: Arduino Based CDIRe: Jay Rivett Jay Rivett 08/07/20 08:48AM
  Re: Arduino Based CDIRe: Aaron Blair Aaron Blair 08/07/20 09:33AM
  Re: Arduino Based CDIRe: Dirty30 Dillon Dirty30 Dillon 08/07/20 09:51AM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 08/07/20 11:04AM
  Re: Arduino Based CDIRe: Brian Ferguson Brian Ferguson 08/11/20 11:18AM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 08/11/20 12:40PM
  Re: Arduino Based CDIRe: Jay Rivett Jay Rivett 08/07/20 03:00PM
  Re: Arduino Based CDIRe: Dirty30 Dillon Dirty30 Dillon 08/11/20 12:49PM
  Re: Arduino Based CDIRe: Dickie Thompson Dickie Thompson 08/11/20 04:12PM
  Re: Arduino Based CDIRe: Aaron Blair Aaron Blair 08/12/20 10:02AM
  Re: Arduino Based CDIRe: Graham Motzing Graham Motzing 08/12/20 11:29AM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 08/12/20 03:51PM
  Re: Arduino Based CDIRe: Jay Rivett Jay Rivett 08/12/20 04:03PM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 08/13/20 11:26PM
  Re: Arduino Based CDIRe: Jay Rivett Jay Rivett 08/14/20 09:15AM
  Re: Arduino Based CDIRe: 🇮🇹💦 Of the Loin 🇮🇹💦 Of the Loin 08/14/20 09:18AM
  Re: Arduino Based CDIRe: Brian Ferguson Brian Ferguson 08/19/20 09:10PM
  Re: Arduino Based CDIRe: Brian Ferguson Brian Ferguson 09/21/20 10:55AM
  Re: Arduino Based CDIRe: Jay Rivett Jay Rivett 09/21/20 12:57PM
  Re: Arduino Based CDIRe: Mars   Mars   10/26/12 04:22PM
  Re: Arduino Based CDIRe: Mars   Mars   10/26/12 04:33PM
  Re: Arduino Based CDIRe: Mars   Mars   10/26/12 08:39PM
  Re: Arduino Based CDIRe: Cole M Cole M 11/15/14 11:26AM

Want to post in this forum? We'd love to have you join the discussion, but first:

Login or Create Account