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)

captinjohn 08-06-2012 05:00 AM

RE: CDI gr8flyer55
 
I agree multi spark would help starting, but maybe it would help the low end (1000 too 2500 RPM zone) for good rev-up without a hesitation. Then above that RPM be programed out to save battery flight time. Just makes sense too me. Capt,n

captinjohn 08-06-2012 05:23 AM

RE: CDI gr8flyer55
 


ORIGINAL: Gompy

Is this a compliment for all the work I have done the last 8 years ?
Nyemi, now you know wat they thinking about you if there will be a "new" guy in town.

Goodby to all, I quit.
Gompy...SIR...Please do not quit. I know you did a lot of work on ignitions and have read your postings from time too time. I just wanted to kinda "shock you" into working with some of the new Ideas being posted here. Please do not be offended....but instead try to work withnew ideas more andsee what can come from all your efforts and other peoples efforts. You all are working for a common goal Regards Capt,n

nyemi 08-06-2012 05:31 AM

RE: CDI gr8flyer55
 
I'm just watching.
<span lang="en" id="result_box"><span class="hps">Idea</span> <span class="hps">rain</span></span>.
<span lang="en" id="result_box" class="short_text"><span class="hps">Everything</span> <span class="hps">can be solved</span><span>.</span></span>

I love RC Universe forum

bluejets 08-06-2012 06:13 PM

RE: CDI gr8flyer55
 


ORIGINAL: nyemi

I'm just watching.
<span lang=''en'' id=''result_box''><span class=''hps''>Idea</span> <span class=''hps''>rain</span></span>.[img][/img]
<span lang=''en'' class=''short_text'' id=''result_box''><span class=''hps''>Everything</span> <span class=''hps''>can be solved</span><span>.</span></span>

I love RC Universe forum[img][/img]
I like your confidence.[8D]
BTW did you get pm I sent..? Maybe no time yet for reply.

COM 08-07-2012 02:00 AM

RE: CDI gr8flyer55
 

Where is probe 2 attached? Is that the firing signal from the PIC? If so, that does not mean there is a spark for every trigger signal.
That should mean 3 sparks for every trigger signal.;)

Prob 2 is connected to the timer board output signal line. 360Us is too small of a delay for the human eye to see. But you can tell the spark behaves differently then without the pic controlling the timing. So I would say it does have some effect. You can't expect to see 3 distinctive sparks per trigger.

jakestew 08-07-2012 02:27 AM

RE: CDI gr8flyer55
 
<div>I'm trying to simulate the timer circuit in Proteus.  I've run into the problem that the code seems to get stuck waiting for GP2 to go high, even though it is going high from the simulated pulse generator.</div><div>
</div><div>I've tried compiling in MPLAB X with MASM and also tried loading the compiled hex files from Nyemi.</div><div>
</div><div>Anyone have any ideas what could be causing it?  (besides the foolishness of simulating a circuit that I have sitting in front of me DOH!)</div><div>
</div><div>It keeps looping here...</div><div>
</div><div><div>Label_0003  BTFSC   GPIO      , GP2     ;BTFSC = wait for high pulse on Hall switch (-_+).</div><div>            GOTO    Label_0002          ;BTFSS = wait for low pulse on Hall switch (+_-)  Alterable!!</div><div>            MOVLW   0x01</div><div>            MOVWF   0x24</div><div>            GOTO    Label_0003 </div></div>

jpanhalt 08-07-2012 02:39 AM

RE: CDI gr8flyer55
 

ORIGINAL: COM


Where is probe 2 attached? Is that the firing signal from the PIC? If so, that does not mean there is a spark for every trigger signal.
That should mean 3 sparks for every trigger signal.;)
Not quite. If you had the original design without the diode, the PIC could give multiple signals and you would still just get a single spark. The ST-Thomson application note is quite interesting. It is using the back emf/ringing to get additional energy and sparks. That is not really the point I was trying to make, though.


Prob 2 is connected to the timer board output signal line. 360Us is too small of a delay for the human eye to see. But you can tell the spark behaves differently then without the pic controlling the timing. So I would say it does have some effect. You can't expect to see 3 distinctive sparks per trigger.
That is obvious; although, you might be able to hear the difference. What I suggested was to put a scope pickup on the spark plug lead to confirm multiple sparks. I am sure any decent oscilloscope can "see" pulses 360µS apart, which is only about 2.8 KHz. Even o'scopes based on sound cards can do that. BTW, 2.8 KHz is F7 on the piano. :D

John

jakestew 08-07-2012 02:41 AM

RE: CDI gr8flyer55
 
&gt; <span style="font-family: Verdana, Arial; font-size: 13px; background-color: rgb(251, 252, 255); ">You can't expect to see 3 distinctive sparks per trigger.

That got me thinking... There used to be an oldskool way to measure things in physics called a spark timer. It seems they actually still make these devices.

What it does is pull a strip of paper through a spark gap. When a sensor trips it causes a spark, which burns a little hole in the paper. Based on the hole spacing and the speed of the paper you can time very quick events pretty precisely.

Maybe something like this can be used to see if the device is actually producing three sparks?<br type="_moz" /></span>

jpanhalt 08-07-2012 02:48 AM

RE: CDI gr8flyer55
 
That's a great idea. 3 m/s (about 11 Km/hr) should give holes about 1 mm apart. Besides, it would be a fun experiment. John

jakestew 08-07-2012 03:37 AM

RE: CDI gr8flyer55
 
I just tried it with regular paper and it didn't work. I looked around the net a bit and it seems that spark timers use a wax coated or thermal paper and just make marks, but don't actually burn the paper.

So I tried it with a register receipt (thermal printer paper) and it worked! The marks are very tiny and hard to see, but are distinct dots when you look closely. Spark gap seemed to have an effect and I just tried a random receipt I had laying around, so different paper might work better.

You can spot thermal paper because it has a slightly waxy feel and has black print, and doesn't have the distinct dots from a dot matrix impact printer. You can check the paper by applying some heat from a flame. If it turns black it's thermal paper.<br type="_moz" />

jpanhalt 08-07-2012 03:49 AM

RE: CDI gr8flyer55
 
Cool. Not so long ago (I was still in school), we used hot-needle galvanometers to record very fast data, like data from a mass spectrometer; same principle. Besides the instruments being enormous by today's standards, you needed a big floor, because the thermal paper came out very fast.

Do you get three close blips separated by a much larger distance? What rpm are you simulating? I know they will be small, but any chance of a picture just for giggles?

John

bluejets 08-07-2012 05:53 AM

RE: CDI gr8flyer55
 

ORIGINAL: jakestew

<div>I'm trying to simulate the timer circuit in Proteus. I've run into the problem that the code seems to get stuck waiting for GP2 to go high, even though it is going high from the simulated pulse generator.</div><div>
</div><div>I've tried compiling in MPLAB X with MASM and also tried loading the compiled hex files from Nyemi.</div><div>
</div><div>Anyone have any ideas what could be causing it? (besides the foolishness of simulating a circuit that I have sitting in front of me DOH!)</div><div>
</div><div>It keeps looping here...</div><div>
</div><div><div>Label_0003 BTFSC GPIO , GP2 ;BTFSC = wait for high pulse on Hall switch (-_+).</div><div> GOTO Label_0002 ;BTFSS = wait for low pulse on Hall switch (+_-) Alterable!!</div><div> MOVLW 0x01</div><div> MOVWF 0x24</div><div> GOTO Label_0003 </div></div>
Label_0003
BTFSC GPIO , GP2 ;waiting for a high from pin 5=hall effect input
GOTO Label_0002 ;if high, goto Label_0002
MOVLW 0x01 ;
MOVWF 0x24 ;if still low then put 1 into W and add W to hall effect register
GOTO Label_0003 ;and go back to Label_0003


Maybe your pulse generator is not high at the time the code samples GP2.





nyemi 08-07-2012 06:43 AM

RE: CDI gr8flyer55
 
<span lang="en" id="result_box"><span class="hps">Hello to</span> <span class="hps">everyone</span><span>.</span>
<span class="hps">Video</span><span>:[youtube]http://www.youtube.com/watch?v=CYd3FN-bojw&amp;feature=plcp[/youtube]</span>
<span class="hps">The code</span><span>:komlosiszilvia.oromhirek.hu/filemegoszto/download.php
Katt: Let&ouml;lt&eacute;s</span>
<span class="hps">2500</span> <span class="hps">rpm</span><span>,</span> <span class="hps">3</span> <span class="hps">sparks.</span>
<span class="hps">I am</span> <span class="hps">brave</span><span>: time.</span>
<span class="hps">3</span> <span class="hps">spark</span> <span class="hps">length:</span> <span class="hps">5</span> <span class="hps">*</span> <span class="hps">1200uS</span>
<span class="hps">Weak</span> <span class="hps">inverter</span> <span class="hps">is good.</span>
<span class="hps">Thank you for</span> <span class="hps">testing.


(</span></span><span lang="en" class="long_text short_text" id="result_box"><span class="hps">If you</span> <span class="hps">download</span> <span class="hps">problem.</span>
<span class="hps">Please</span> <span class="hps">indicate</span><span>.)</span></span>

jakestew 08-07-2012 03:02 PM

RE: CDI gr8flyer55
 

ORIGINAL: jpanhalt
Do you get three close blips separated by a much larger distance? What rpm are you simulating? I know they will be small, but any chance of a picture just for giggles?
I'm not really setup for much testing right now. Still waiting on my PIC programmer and didn't have the multispark code. I just wanted to validate the concept and was just manually sparking the unit to see if it could indeed be seen on the paper.

The setup Nyemi showed seems pretty darn cool! Definitely three sparks there. That's great, seems like things are moving quickly.

@bluejets: thanks for the code comments, I'm just not sure what's going on with the simulator. I must have something set wrong somewhere. I'm stepping through the code and it shows the pin high, just doesn't seem to work. Maybe it has different default SFRs in the simulator and thinks the pins are setup differently somehow.

I'll see if some simple code will work. I'm sure I'll figure it out eventually.<br type="_moz" />

bluejets 08-07-2012 05:44 PM

RE: CDI gr8flyer55
 


ORIGINAL: jakestew
@bluejets: thanks for the code comments, I'm just not sure what's going on with the simulator. I must have something set wrong somewhere. I'm stepping through the code and it shows the pin high, just doesn't seem to work. Maybe it has different default SFRs in the simulator and thinks the pins are setup differently somehow.

I'll see if some simple code will work. I'm sure I'll figure it out eventually.<br type=''_moz'' />
Just "stepped" through again to be sure but it went to section below no problem.

SUBWF 0x27 , W
BTFSS STATUS , C
GOTO Label_0005


jakestew 08-07-2012 10:07 PM

RE: CDI gr8flyer55
 
1 Attachment(s)
Thanks for the help bluejets. I've figured out the simulator. It is singing away simulating the circuit perfectly as near as I can tell. I had quite a few minor errors due to not knowing the simulator very well. Hopefully it will be useful for trying things out on the electrical side and also debugging and timing the code.

I've attached the Proteus simulator file for the timer board if anyone is interested in playing with it. I'm not sure what limitations the free version has since I'm using my universitiy's license for the pro version.

I'm new to the whole simulator thing, but it seems like it might be a little faster and easier to try things out virtually rather than on a proto board. Hopefully I'll get the whole circuit simulated in the next few weeks. The main limitations I see is that there's not models for every component out there and there's bound to be limitations to the accuracy with which it can replicate real world conditions.

If you want to try the simulator you can get it at...
http://www.labcenter.com/download/prodemo_download.cfm

1. Download the attached file, then rename it to"12F683_Timer.DSN" (or whatever.DSN) and open it in the simulator. You will get a "can't open the .cof file error", that is expected.
2. Now right click on the 12F683 in the schematic and go to "edit properties", now select a .hex or .cof file in the "Program File" box.
If you're using MPLAB X it will produce .cof files from the code. This is an extra debugging file that will allow you to see the code as you step through the simulation. If you use a regular .hex file you'll only see uncommented assembly instructions.
3. Hit the play button at the bottom to start the simulation, then hit the pause button. Now you can step through the instructions by pressing F11.

You can also look at the oscilloscope, play with the settings, and probe various voltages around the circuit. It's pretty fun to play with.


<br type="_moz" />

bluejets 08-07-2012 10:31 PM

RE: CDI gr8flyer55
 
Jake,
I use the Oshon Pic simulator IDE. Maybe no pretty graphics but as far as infomation gathering goes, I think it is hard to beat.
I've been told that Nyemi uses the same.

Send over a pm and I'll email to you if you like.

jakestew 08-07-2012 11:01 PM

RE: CDI gr8flyer55
 
1 Attachment(s)
Looks like a handy program. Seems to have a pretty slick interface for looking at the PIC.
I just chose Proteus because I can use my uni license and it siumulates the whole circuit and you can use virtual instruments to check the output at any location you like. I think the free version does most of the things we need. Looks like the pay version is mainly for the PCB layout part.

Can you check it out and see if my file works right in the free version?

Here's a screenshot with the multispark code loaded and pulses at 1500 RPM...
<br type="_moz" />

bluejets 08-08-2012 12:17 AM

RE: CDI gr8flyer55
 
Sorry...... currently in a part of the world where downloading is very slow to say the least.

COM 08-08-2012 01:44 AM

RE: CDI gr8flyer55
 
Hi Jake,

that's what the scope showed.

COM 08-08-2012 02:04 AM

RE: CDI gr8flyer55
 
Jake,

I am not able to download Your attachment . It just opens a new browser page.

jpanhalt 08-08-2012 02:23 AM

RE: CDI gr8flyer55
 
I use just the simple and free MPLab simulator. Since Proteus is far more powerful, can you model the whole circuit including the inductor and diode, not just the PIC part?

John

jakestew 08-08-2012 06:10 AM

RE: CDI gr8flyer55
 
&gt;<span style="font-family: Verdana, Arial; font-size: 13px; background-color: rgb(251, 252, 255); ">I am not able to download Your attachment . It just opens a new browser page.
</span>
It seems to work for me. I'm using chrome as my browser at the moment. It wants to name the file "Zw69373.txt", but it still gives the right file, you just have to rename it.

&gt; <span style="font-family: Verdana, Arial; font-size: 13px; background-color: rgb(251, 252, 255); ">can you model the whole circuit including the inductor and diode,

Sure, I'm working on it. I just got the timer board working in the sim, but will try to get the rest done tonight or tomorrow. One difficulty is knowing all the components. The schematic I have looks a little different than the board John sent me and I'm trying to sort out the difference (if any).<br type="_moz" /></span><br type="_moz" />

jpanhalt 08-08-2012 01:35 PM

RE: CDI gr8flyer55
 
If I get time, I will try LT Spice. Its problem will be the inductor too, but I will wing it. It will not be until the weekend at least.

John

jakestew 08-14-2012 01:05 AM

RE: CDI gr8flyer55
 
FYI for anyone following along, the simulator in MPLAB X has some major bugs with the eeprom. MPLAB 8 seems to work just fine though.
It really pissed me off for awhile. I just got my programmer, so hopefully work on the program will go a little easier.

The only real improvement I have planned for the 12F683 code is having two curves that can be selected between and storing them in the eeprom so that the program doesn't have to be recompiled for every curve change. I figure two curves will make it easy to test which one is better by switching back and forth.
If anyone has any other features they'd like to see feel free to post them!



All times are GMT -8. The time now is 05:50 AM.


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