![]() |
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
|
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. |
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 |
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] BTW did you get pm I sent..? Maybe no time yet for reply. |
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. 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. |
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> |
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. 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. John |
RE: CDI gr8flyer55
> <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> |
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
|
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" /> |
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 |
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> 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. |
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&feature=plcp[/youtube]</span> <span class="hps">The code</span><span>:komlosiszilvia.oromhirek.hu/filemegoszto/download.php Katt: Letölté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> |
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? 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" /> |
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'' /> SUBWF 0x27 , W BTFSS STATUS , C GOTO Label_0005 |
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" /> |
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. |
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" /> |
RE: CDI gr8flyer55
Sorry...... currently in a part of the world where downloading is very slow to say the least.
|
RE: CDI gr8flyer55
Hi Jake,
that's what the scope showed. |
RE: CDI gr8flyer55
Jake,
I am not able to download Your attachment . It just opens a new browser page. |
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 |
RE: CDI gr8flyer55
><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. > <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" /> |
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 |
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.