RCU Forums

RCU Forums (https://www.rcuniverse.com/forum/)
-   Engine Conversions (https://www.rcuniverse.com/forum/engine-conversions-92/)
-   -   CDI gr8flyer55 (https://www.rcuniverse.com/forum/engine-conversions-92/10662258-cdi-gr8flyer55.html)

jakestew 10-11-2012 12:05 PM

RE: CDI gr8flyer55
 

ORIGINAL: jakestew
If you want to change this then change...
Code:

OPTION_REG = 0b00000000; // pullups on, falling edge, Tmr0
 to
 OPTION_REG = 0b01000000; // pullups on, rising edge, Tmr0

Also change...
Code:

else if(INTCONbits.INTF){  // ***** GP2 SENSOR INPUT *****
        if(GPIObits.GP2 == 0){
 to
 else if(INTCONbits.INTF){  // ***** GP2 SENSOR INPUT *****
        if(GPIObits.GP2 == 1){


Remember that the hall switch is active low, so falling edge = magnet approaching and rising edge = magnet leaving.
I'm not sure why people want to trigger as the magnet leaves the sensor. When the magnet triggers the sensor we know the RPM and the position, that's all we need to know to calculate the delay before firing the spark.

The only thing I can see this change doing is wasting a couple degrees worth of time. If you want to use your existing sensor placement without moving anything it's easy enough to just change the Hall degree setting in the spreadsheet.

It's also not difficult to change the code if you want to trigger with the magnet leaving the sensor. If people really want the option I can write a setting to change this into the code.

The only problem is that in order to keep the timing the same I need to compile in as many variable options as I can, so I use defines to do this and the preprocessor figures out some of the settings at compile time. Because of this, I can't make the spreadsheet produce the hex for some settings because they're compiled in. I want to avoid making the spreadsheet too large and complicated because I have to change and test it for every code revision. Adding multiple hex files and code changing options is sure to result in more work, more errors, or probably both.

I just need to know what the reasoning is behind passing up the first opportunity (magnet triggering the hall) to time the spark in favor of the 2nd opportunity (magnet leaving hall)? It just doesn't seem to make sense to me.


-Jake

Gompy 10-11-2012 01:03 PM

RE: CDI gr8flyer55
 
It's for safety, you know when the magnet leave the hallsensor.
You don't know and not want a puls if a magneticfeeld activate the hallsensor.
It (have to) act like a set / reset funtion.
The magnet activate the sensor, set ready ignition, leave hallsensor is ignition.

COM 10-11-2012 01:49 PM

RE: CDI gr8flyer55
 
Hi Jake For Me its a matter of personal preference. The commercial units work this way. Its not a big deal.

Gompy 10-11-2012 02:06 PM

RE: CDI gr8flyer55
 
Be carfull Charlie, if the prop flips back you get also a spark, even if the prop don't goes true the TDC and the engine can be run reverse !

COM 10-12-2012 02:03 AM

RE: CDI gr8flyer55
 

The commercial units work this way

Well Not exactly. Looking with a scope at a few different boards what happens is at startup the pic is triggered at the rising edge if the input. at about 4 or 500 rpm the pic is then triggered at the falling edge of the input. I am not quite sure how this is done, but it works very well.

nyemi 10-12-2012 05:40 AM

RE: CDI gr8flyer55
 
1 Attachment(s)


ORIGINAL: COM


The commercial units work this way

Well Not exactly. Looking with a scope at a few different boards what happens is at startup the pic is triggered at the rising edge if the input. at about 4 or 500 rpm the pic is then triggered at the falling edge of the input. I am not quite sure how this is done, but it works very well.
Hi COM

Yes!
<span lang="en" id="result_box"><span class="hps atn">High-</span><span>speed</span> <span class="hps atn">fixed-</span><span>time</span> <span class="hps">of the algorithm</span><span>.</span>
<span class="hps">The</span> <span class="hps">rising edge</span><span>,</span> <span class="hps">falling edge</span> <span class="hps">time lapse between</span><span>.</span>
<span class="hps">Ignition</span> <span class="hps">RCexl</span> <span class="hps">me</span> <span class="hps">this was</span> <span class="hps">my experience.</span></span>


jakestew 10-12-2012 07:16 AM

RE: CDI gr8flyer55
 
I don't think we can count on the magnet leaving as being a safety feature.

If a stray magnet goes by it will trigger the spark no matter what we do. Rising edge, falling edge, or even both will end up with the same effect. The only way to prevent accidental firing would be measuring the length of the activation and only firing if it fell within the proper range.

I don't think even that would work because transient magnetic fields would still set it off since they would likely be very short and fall within the timing range. If I can figure how to make the unit safer I certainly will. With the new 1840 chip we'll have the processing power to make more measurements and handle things in a smarter way.


-Jake

jakestew 10-12-2012 11:44 AM

RE: CDI gr8flyer55
 
I just posted Eagle schematics of the timer board and HV board to the website. There's no board files yet, I haven't laid anything out for the board files.

I went straight from the pictures when punching this in. The only thing I changed was organizing the connectors. +5V should always be in the center, GND on one side, and signal on the other.


-Jake

gr8flyer55 10-12-2012 09:13 PM

RE: CDI gr8flyer55
 
1 Attachment(s)
Jake,I'm trying to post a revision of the CDI HV board schematic which should be used in the kit version. It's a revision of what Nyemi posted from RCCDI RC Ignition. I think it finally worked. I built 10 more today, tested and all spark great. I also tested the kill feature on the timer board with a servo operated switch, no RFI interferrence, even using an old 72 MHz. radio ! I used the throttle servo with a micro lever switch, and worked perfect.

Rob, this is the circuit you'll be building and testing with the rest of us. I included a few of the kits in your box.

Seems Murphy's law prevails! Got ahead of myself yesterday and uploaded a picture before I checked it out! Disregard the photo on the left! Use the one on the right which has an added resistor, 680 ohm to the signal coupling to the SCR. Sorry to confuse everyone again..Maybe this one is correct. Let me know if I made any errors, since we want this to be what we are all going to be using.


John

COM 10-13-2012 06:07 AM

RE: CDI gr8flyer55
 
OK I did some testing on my engine and I see some things that I think need fixing. I have (in the spreadsheet) the multi spark turned off or at least set to 1 spark. I still multiple sparks at startup. I notice also that if the magnet stops at the hall sensor I get a continuous spark until I move the magnet off the HES. That could really hurt someone. The spark needs to be a one shot deal. Anyway these are just some things I have seen and I am just trying to help.

gr8flyer55 10-13-2012 06:42 AM

RE: CDI gr8flyer55
 
Mine also started doing this same thing but still runs the engine fine.

John

gr8flyer55 10-13-2012 09:50 AM

RE: CDI gr8flyer55
 
Charlie, I have the multispark feature enabled and it still does a steady fire at the plug, but not every time! Getting stuck in the loop somewhere when it recieves a signal to fire, definitly needs fixing!! It does a nice ignition spark test though! LOL

John

Gompy 10-13-2012 10:20 AM

RE: CDI gr8flyer55
 
1 Attachment(s)
Try it with the diode I drawing.
I think the SCR isn't closed after firing.
I'm also missing the SCR protection, 22nF/ 600V and 22R/0.5W

BTW, the Bosch schematic is only for inspiration.

COM 10-13-2012 12:12 PM

RE: CDI gr8flyer55
 
Hello Everyone,
I am not sure who has tested the software on a actual engine, but I made some adjustments to mine and the software works super. Other then the constant sparking when the magnet is on the HES everything else perfect. Good Job Jake.

Gompy 10-13-2012 12:18 PM

RE: CDI gr8flyer55
 
And now you have all stop to with testing untill I can test too [>:] !!

gr8flyer55 10-13-2012 12:20 PM

RE: CDI gr8flyer55
 
Just as a test, I let it continue firing for about 15 seconds to see what damage it would do, well it heated up the transistor on the HV board and destroyed it!
This bug needs to be fixed for sure now. can't have things being destroyed that were working perfectly before.

John

gr8flyer55 10-13-2012 03:10 PM

RE: CDI gr8flyer55
 
Rob, I hope you get your box soon! It should be going thru customs right now. Lots of good stuff in the box. I can't wait till you see everything I sent.

John

Gompy 10-13-2012 03:27 PM

RE: CDI gr8flyer55
 
The Homy is ready for it, the garden not.....I missing a roof and it will be winter now.
I hope my son wil help me to welding the frame, it's also a winterplace for his (and mine) bike.
I buy a new prop 16x6 and the Homy is run now ~6000 rpm (28ccm)
For now I need a startrope, I hope it's over with the new CDI.
BTW, can / wil you test the CDI with the diode who I draw into the schematic ?
I think the SCR didn't close and open again if the voltage is enough to create a new spark.
A SCR is only closed if the Voltage is going true zero, reverse the HV-coil wil do this normaly.

The flaslight with xenontube is allmost ready, I just damage my last SCR.....broken lead.
Monday I can buy a new one and can test with my electronic engine ignition tetser:eek:

bluejets 10-13-2012 05:28 PM

RE: CDI gr8flyer55
 


ORIGINAL: COM

OK I did some testing on my engine and I see some things that I think need fixing. I have (in the spreadsheet) the multi spark turned off or at least set to 1 spark. I still multiple sparks at startup. I notice also that if the magnet stops at the hall sensor I get a continuous spark until I move the magnet off the HES. That could really hurt someone. The spark needs to be a one shot deal. Anyway these are just some things I have seen and I am just trying to help.
A small cap in the hall signal before the R1,R3 junction should give you just one pulse.

gr8flyer55 10-13-2012 06:04 PM

RE: CDI gr8flyer55
 
Rob, just tried your 3 added parts and it still does the continous sparking. It's coming from the pic in the software.

Jeff, also tried the small cap at that juncton, also a no go. So it is in the software. Stuck somewhere in a loop until it sees a change of the hall signal because if you move the magnet away from the sensor, it then stops. Somewhere in that control loop lies the problem.
I replaced the burned out transistor and all is well with the HV board again. Ran the engine and it's fine. Just can't stop the magnet under the sensor or you get a buzz of sparks and the transistor heats up cause it is supplying too much current to the oscillator circuit.
Somewhere there's a problem with it, Maybe Jake can find it.


John

bluejets 10-13-2012 06:11 PM

RE: CDI gr8flyer55
 
I meant for you to place the cap in series with the incoming hall signal between there and the R1,R3 junction, not from junction to ground.

gr8flyer55 10-13-2012 06:22 PM

RE: CDI gr8flyer55
 
Jeff, I placed it inline and same thing, so it is getting a signal to fire multiple times until you remove the magnet and that stops the signal.. What a mess, thought we had it nailed, otherwise it works great as Charlie said. Both switches work fine, good starting and handling characteristics otherwise. One last glitch...


John

bluejets 10-13-2012 06:55 PM

RE: CDI gr8flyer55
 
mmm...ok...just sent you an email with a mod for the input you can try. Should give you one, and only one , pulse as the magnet approaches the hall switch.

If it works like I think it should, I'll poke it in here.

gr8flyer55 10-13-2012 07:36 PM

RE: CDI gr8flyer55
 
Looks like it may work as a debounce circuit Jeff.
Will try in the morning and let you know. Going to play the slots tomorrow morning and hope to win something....never know.


John

bluejets 10-13-2012 08:38 PM

RE: CDI gr8flyer55
 
The way it works is, the cap normally has both ends at positive rail. When hall switch turns on, it pulls the one end of the cap to ground.

It gives a negative going pulse at R1,R3 junction as the cap begins it's charge, and then after tou time, the pulse at R1,R3 junction goes high.

It will stay in this state until another high to low transition of the hall switch.

Just have to select correct values of RC so that it doesn't interfere with other timing in the system. i.e. with 0.01uF and 4K7 should give approx. 32uSec.(if I'm not mistaken)


All times are GMT -8. The time now is 12:33 PM.


Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.