New CDI - opensource project JMJ and Bigboat
#1376
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Hi Nyemi..
I have done as you mentioned. It generated a hex file for me but I don't know which timer board it will run on? Old timer board without resonator or new with resonator.. tried it on old without resonator and nothing happens. Any help appreciated. Maybe you could post a hex file in zip file format for us to download.
John
I have done as you mentioned. It generated a hex file for me but I don't know which timer board it will run on? Old timer board without resonator or new with resonator.. tried it on old without resonator and nothing happens. Any help appreciated. Maybe you could post a hex file in zip file format for us to download.
John
#1377
Senior Member
Join Date: Feb 2010
Location: szarvas, HUNGARY
Posts: 133
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
I will show. Program should be changed.
Write to the DATA side. 3F70 or 3F50. Depends on the use MCLR pin.
Write to the DATA side. 3F70 or 3F50. Depends on the use MCLR pin.
#1378
Senior Member
RE: New CDI - opensource project JMJ and Bigboat
Hi Nyemi,
Thanks for the code and all the help. I loaded your code into a pic and was testing it on a development board and I don't get any output until after I toggle the input several times.Also how do I change the curve in the spreadsheet? Thanks again.
Charlie
Thanks for the code and all the help. I loaded your code into a pic and was testing it on a development board and I don't get any output until after I toggle the input several times.Also how do I change the curve in the spreadsheet? Thanks again.
Charlie
#1379
Senior Member
Join Date: Feb 2010
Location: szarvas, HUNGARY
Posts: 133
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Many people ask, what difference the old code.The low speed (RPM) treatment.
452 rpm lower rpm, no spark. But the program change.
Between 452-917 rpm. Defined spark advance.(15° But the program change. Help Excel table.
917-468750 rpm of the table defines vary spark advance. But the program change. Help Excel table.
I present pictures.
452 rpm lower rpm, no spark. But the program change.
Between 452-917 rpm. Defined spark advance.(15° But the program change. Help Excel table.
917-468750 rpm of the table defines vary spark advance. But the program change. Help Excel table.
I present pictures.
#1380
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Hi Nyemi...
Well, I just programmed the first successful chip with the edited lines in the ASM source code you provided. I believe we have a winner!!!! I tested the timer board with my test bed setup and the timing advance is excellent! I still have to run the test motor with it but it works perfect so far!
Thank you for all your hard work!
Finally we have good code for the old timer board with the internal oscillator in the PIC chip !!!!! You are a genius!
John
Well, I just programmed the first successful chip with the edited lines in the ASM source code you provided. I believe we have a winner!!!! I tested the timer board with my test bed setup and the timing advance is excellent! I still have to run the test motor with it but it works perfect so far!
Thank you for all your hard work!
Finally we have good code for the old timer board with the internal oscillator in the PIC chip !!!!! You are a genius!
John
#1381
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Hi Charlie...
I just programmed a 16f628A with the new hex file from Nyemi, and we finally have success!!!
I'll post the hex file shortly. I made the low rpm <458 change and also the mclr change in the last few lines of the program and assembled it with MPLAB-ASM. Works perfectly!
I would say you should try it for yourself and try it on the old timer board I sent you. Works like a charm here.
I used the 16F628A pic. Program source will have to be changed for the 16f628 to be used though.
John
I just programmed a 16f628A with the new hex file from Nyemi, and we finally have success!!!
I'll post the hex file shortly. I made the low rpm <458 change and also the mclr change in the last few lines of the program and assembled it with MPLAB-ASM. Works perfectly!
I would say you should try it for yourself and try it on the old timer board I sent you. Works like a charm here.
I used the 16F628A pic. Program source will have to be changed for the 16f628 to be used though.
John
#1382
Senior Member
RE: New CDI - opensource project JMJ and Bigboat
Well this is good to hear. John, did you go with the default curve? I am having problems getting the code to assemble. Thanks for the info.
#1383
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Hi Charlie,
Yes it is good news!
I used the default curve because it's so hard to change the excel sheet.
When I test run my plane today I want to do a video of it and then try to post it for all to see.
If we can change the curve, I have my curve to replace it with that worked so well before with the old code.
John
Yes it is good news!
I used the default curve because it's so hard to change the excel sheet.
When I test run my plane today I want to do a video of it and then try to post it for all to see.
If we can change the curve, I have my curve to replace it with that worked so well before with the old code.
John
#1385
My Feedback: (11)
RE: New CDI - opensource project JMJ and Bigboat
John,
Ihave a suggestion, Open the HEX with notepad, save it as .txt. Then when downloaded, open back again in text, copy the content...EXACTLY, open a old hex file with notepad, clear all inside, paste the content from the downloaded file and close.
Another option will be to add at the end of the file. TXT, after download on your computer delete the .TXT extension. It my ask you some " are you sure you wnat to change format file or extension" say Yes.
Ithink it should work.
John you will be able to try this option, do this on local computer, change the extension to .txt, email it to your self, then revert the .TXT and try to reload the PIC. If it works ...then post it here and will now it works.
Thank You
Adrian Ciulei
Ihave a suggestion, Open the HEX with notepad, save it as .txt. Then when downloaded, open back again in text, copy the content...EXACTLY, open a old hex file with notepad, clear all inside, paste the content from the downloaded file and close.
Another option will be to add at the end of the file. TXT, after download on your computer delete the .TXT extension. It my ask you some " are you sure you wnat to change format file or extension" say Yes.
Ithink it should work.
John you will be able to try this option, do this on local computer, change the extension to .txt, email it to your self, then revert the .TXT and try to reload the PIC. If it works ...then post it here and will now it works.
Thank You
Adrian Ciulei
#1387
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Yes, I have it assembled and working great here.
My problem is posting the hex file on here. I'll have to just send it to you in email as an attachment.
John
My problem is posting the hex file on here. I'll have to just send it to you in email as an attachment.
John
#1389
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
I have the old spreadsheet file for you Charlie.. I'll send you another email with it attached. Just sent you the hex file of the new code but it only works on a 16f628A chip. While assembling it with the MPlab program, it asked for a target chip number. I only had 16f628a chips sitting here and wanted to try it out so that's what it was assembled for. I'll do another one for us with the 16f628 chip as a target and send that to you also. When I can, I'll try posting both hex files on here for everyone to download that's interested.
I use Picprog4u to write to the chips and it gave me a warning when I tried the 628 instead of the 628a..needless to say it didn't work when programmed cause it had the chip internal info for the 628a in the hex file. Oh well live and learn I guess.. Have to erase that one and try again with the right code.
John
I use Picprog4u to write to the chips and it gave me a warning when I tried the 628 instead of the 628a..needless to say it didn't work when programmed cause it had the chip internal info for the 628a in the hex file. Oh well live and learn I guess.. Have to erase that one and try again with the right code.
John
#1390
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Charlie.. We had this happen before.. What do you mean code tags? Is it a symbol I type or what? never did it.
John
John
#1392
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Ok Charlie...not a problem. I'll check my mail.
Oh, by the way, I just ran my airplane with the ignition & timer..Works like a charm! So I hooked up the strobelight to see what the timing was doing, and it advances perfectly! I just have to tinker with my static timing a tad...not at exactly the right position for starting yet but it started right up and ran great! I was starting a video when the thunderstorm came and ruined my video! Oh well..tomorrow's another day.
John
Oh, by the way, I just ran my airplane with the ignition & timer..Works like a charm! So I hooked up the strobelight to see what the timing was doing, and it advances perfectly! I just have to tinker with my static timing a tad...not at exactly the right position for starting yet but it started right up and ran great! I was starting a video when the thunderstorm came and ruined my video! Oh well..tomorrow's another day.
John
#1394
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
trying the code tags...if it works, here's the hex file for a 16f628A I'm running in my timer on my plane.
John
John
Code:
:020000001929BC :08000800F000030E8301F1007A :10001000A70A0B119501710E8300F00E700E0900F6 :100020000000003400340034003400340034003464 :10003000013401340234023402340334033404340E :1000400004340534053406340634063407340734E2 :1000500007340734073407340734073407340734C8 :1000600007340734073407340734063406340634BB :1000700006340734073407340734073407340734A9 :100080000734073409340934093409340A340A348A :100090000A340A340B340B340B340B340B340B346A :1000A0000B340B340D340D340D340D340E340E344A :1000B0000F340F341034103411341134123412341C :1000C00012341234143414341534153416341634EE :1000D000173417341834183419341A341A341A34BB :1000E0001A341C341D341D341E341E341F34203485 :1000F000203421342234223423342334243425344C :100100002534263427342834283428342A342A3411 :100110002B342C342D342D342E342F3430343034D1 :100120003134323433343334343435343634373490 :100130003734383438343A343B343C343C343D344E :100140003E343F3440344134423443344334443405 :10015000453446344734483449344A344B344C34BB :100160004D344E344F34503451345234533454346B :10017000543456345734583459345A345B345C341C :100180005D345E345F3460346134623463346434CB :1001900065346634673469346A346B346C346D3476 :1001A0006E346F347034723473347434743476341F :1001B000773479347A347B347C347D347F348034C2 :1001C00081348234833485348634873488348A3465 :1001D0008B348C348E348F34903491349334943403 :1001E00095349734983499349B349C349D349F349F :1001F000A034A134A334A434A534A634A634A7343F :10020000A834A834A934AA34AB34AB34AC34AC34FD :10021000AC34AE34AF34B034B034B134B234B234C0 :10022000B33408000313831222088A0021088200D5 :1002300008000313831225309F0003138316263012 :100240008500C8309F0002308600073081002430CE :10025000920003138312850120308600910104303F :100260009200123095000C309700A401A701810183 :10027000A0308B009F1B9501861841290130A400F6 :100280003A29A40803193A298B0195010108A50010 :100290008101013027020319502903187E295C29A6 :1002A00000000000000000000000A50803195A2902 :1002B000A5035029FF30A5002508ED3E031C8C291D :1002C0002508113EA10000300318013EA2000A08D3 :1002D000A0001221A30020088A00A30803197E2988 :1002E000000000000000000000000000000000000E :1002F0000000000000000000A30B702931308606CA :100300003230A600000000000000A60B8229313028 :100310008606910112309500A401A701A0308B0040 :040320003A29192934 :02400E00503F21 :00000001FF
#1395
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Charlie, it worked..thanks alot for showing me what I should have known a long time ago.
Ok everyone interested.. there's the hex file that Nyemi's new code produced for a 16F628A pic chip in the older timer with the 2 chips on it, pic and optocoupler, so there's no confusion. Working great in my timer and with my CDI board. Project completed.
John
Ok everyone interested.. there's the hex file that Nyemi's new code produced for a 16F628A pic chip in the older timer with the 2 chips on it, pic and optocoupler, so there's no confusion. Working great in my timer and with my CDI board. Project completed.
John
#1396
Senior Member
RE: New CDI - opensource project JMJ and Bigboat
HI John,
I did get the hex. Thanks. I was able to assemble the code. Would it be possible to post a schmatic for the timer board that this code works for? Do you have a design that you are using?
I did get the hex. Thanks. I was able to assemble the code. Would it be possible to post a schmatic for the timer board that this code works for? Do you have a design that you are using?
#1399
Senior Member
Join Date: Nov 2005
Location: Hamburg,
PA
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Hi Nyemi...
How do we change the curve in the excel sheet and then get it into the assembly source code?
John
How do we change the curve in the excel sheet and then get it into the assembly source code?
John
#1400
Senior Member
Join Date: Feb 2010
Location: szarvas, HUNGARY
Posts: 133
Likes: 0
Received 0 Likes
on
0 Posts
RE: New CDI - opensource project JMJ and Bigboat
Hi gr8flyer55
You need to copy ASM code. The red band (retlw values).
Excel does not generate ASM code.
Do you have ignition curve? I produced ASM code. To you.
You need to copy ASM code. The red band (retlw values).
Excel does not generate ASM code.
Do you have ignition curve? I produced ASM code. To you.