RE: New CDI - opensource project JMJ and Bigboat    Gallery
View related threads: (in this forum | in all forums)

Logged in as Guest



Users viewing this topic: none
    Search This Thread  
 
Printable Version


TurboHeader Muffler
Seller:  RC Specialties
Details:   $69.95   |  4/28/2013   |  Classified Ad
We will rotate YOUR AD in this spot if you select "Forum Featured" when placing or editing your ad!

All Forums >> Glow Engines, Gas Engines, Fuel & Mfg Support Forums >> Engine Conversions >> RE: New CDI - opensource project JMJ and Bigboat
Page: <<   < prev  48 49 [50] 51 52 53 54 55 56 57   next >   >>  

Tower Hobbies Get Coupon Codes Brands  
Login
Message << Older Topic   Newer Topic >>
RE: New CDI - opensource project JMJ and Bigboat - 5/12/2010 12:22 AM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline
Laptop inverters are to slow in frequentie and don't have the power to load the C.

_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to fernandez)
       Post #: 1226

RE: New CDI - opensource project JMJ and Bigboat - 5/12/2010 6:50 AM   
captinjohn


 

Posts: 12092
Score: 247
Joined: 1/25/2002
Last Login: 5/25/2013
From: Hesperia Michigan, MI, USA
Status: offline
HI....I read the following in a prior posting...about max RPM a CD will work good.  Is this the bottom line?
 


_____________________________

I never met a engine I did not like !

Hide Signatures

(in reply to fernandez)
       Post #: 1227

RE: New CDI - opensource project JMJ and Bigboat - 5/12/2010 12:10 PM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline
Most CDI's for modelengines can handle ~10,000rpm, not more.
The modelengines we use, weedeathers - jigsaws - aso, aren't make for high rpm and have a low powerband.
If you buy a race engine like Zenoah, they run more then 15,000rpm and have there own CDI.
This CDI's are not programmable, they use the wonders of nature magnetism to delay the spark.


_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to captinjohn)
       Post #: 1228

RE: New CDI - opensource project JMJ and Bigboat - 5/13/2010 8:28 PM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline
@Charlie,

Wat code is this ?

OSCCON = 0b01100111; // internal OSC set to 4MHZ

I can't find anything about this code into the datasheet.

bit 7 Unimplemented: Read as ‘0’
bit 6-4 IRCF<2:0>: Internal Oscillator Frequency Select bits
111 = 8MHz
110 = 4 MHz (default)
101 = 2MHz
100 = 1MHz
011 = 500kHz
010 = 250kHz
001 = 125kHz
000 = 31 kHz (LFINTOSC)
bit 3 OSTS: Oscillator Start-up Time-out Status bit(1)
1 = Device is running from the external clock defined by FOSC<2:0> of the Configuration Word register
0 = Device is running from the internal oscillator (HFINTOSC or LFINTOSC)
bit 2 HTS: HFINTOSC Status bit (High Frequency – 8 MHz to 125 kHz)
1 = HFINTOSC is stable
0 = HFINTOSC is not stable
bit 1 LTS: LFINTOSC Stable bit (Low Frequency – 31 kHz)
1 = LFINTOSC is stable
0 = LFINTOSC is not stable
bit 0 SCS: System Clock Select bit
1 = Internal oscillator is used for system clock
0 = Clock source defined by FOSC<2:0> of the Configuration Word register


BTW, if we use this pins as programmed we can't use rs232 communication in the future and for now no incircuit programming.

_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to Bigboat)
       Post #: 1229

RE: New CDI - opensource project JMJ and Bigboat - 5/14/2010 2:30 AM   
COM


 

Posts: 396
Score: 100
Joined: 6/5/2009
Last Login: 3/13/2013
From: Ga, GA, USA
Status: offline

Hi Rob,

0b tell the compiler the the number is binary and the rest of that line is in the datasheet.


01100111 The upper nibble selects the osc speed the lower nibble selects rc osc and a few other things.


_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to Bigboat)
       Post #: 1230

RE: New CDI - opensource project JMJ and Bigboat - 5/14/2010 2:39 AM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline
quote:

ORIGINAL: COM


Hi Rob,

0b tell the compiler the the number is binary and the rest of that line is in the datasheet.


01100111 The upper nibble selects the osc speed the lower nibble selects rc osc and a few other things.



Oeps, to fast....

_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to COM)
       Post #: 1231

RE: New CDI - opensource project JMJ and Bigboat - 5/14/2010 3:11 AM   
COM


 

Posts: 396
Score: 100
Joined: 6/5/2009
Last Login: 3/13/2013
From: Ga, GA, USA
Status: offline

Rob here is the modified code. RA4 and RA5 are output and RA2 is input. Whats too fast?


quote:



void main()
{

const char tspark[]={ 0, 1, 2, 2, 3, 4, 4, 5, 6, 6, 7, 8, 8, 9, 10, 10, 11, 11, 12, 13, 13, 14, 15, 15, 16, 16, 17, 18, 18, 19, 19, 20, 21, 21, 22, 22, 23, 23, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 30, 31, 31, 32, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37, 38, 38, 38, 39, 39, 40, 40, 41, 41, 42, 42, 43, 43, 43, 44, 44, 45, 45, 46, 46, 46, 47, 47, 48, 48, 49, 49, 49, 50, 50, 50, 51, 51, 52, 52, 52, 53, 53, 53, 54, 54, 54, 55, 55, 55, 56, 56, 56, 57, 57, 57, 58, 58, 58, 59, 59, 59, 60, 60, 60, 60, 61, 61, 61, 62, 62, 62, 62, 63, 63, 63, 63, 64,
64, 64, 65, 65, 63, 63, 64, 64, 64, 65, 65, 66, 66, 67, 67, 68, 68, 68, 69, 69, 70, 70, 71, 71, 71, 72, 72, 73, 73, 74, 74, 75, 75, 76, 76, 76, 77, 77, 78, 78, 79, 79, 80, 80, 80, 81, 81, 82, 82, 83, 83, 83, 84, 84, 85, 85, 86, 86, 87, 87, 87, 88, 88, 89, 89, 90, 90, 91, 91, 92, 92, 92, 93, 93, 94, 94, 95, 95, 96, 96, 96, 97, 97, 98, 98, 99, 99, 100, 100, 100, 101, 101, 102, 102, 103, 103, 104, 104, 104, 105, 105, 106, 106, 107, 107, 107, 108, 108, 109, 109, 110, 110, 111, 111, 112, 112, 112, 113, 113};

char tspk,spark, t0;
OSCCON = 0b01100111; // internal OSC set to 4MHZ
ANSEL = 0; // Disable Analog channels
CMCON0 = 0x07; // Disable Comparitors
TRISIO = 0x0C; // set GPIO1 for input, all others for output
GPIO = 0x00; // set output to SCR low
OPTION_REG = 0x07; // set to 07=256 RE - tmr0 SOURCE INT CLOCK, 06=1:128 PRESCALER
TMR2 = 0;
PR2 = 255;
T2CON = 0x07; // start TMR2 counter 1:16
INTCON = 0; // clear INTCON


// Following table is based on 360 degree timing arc & 40 deg starting arc (South pole of magnet triggers Hall switch)
// table based on a polynomial and limits the min delay to 15 TMR2 cycles
// the spark flag is a one shot to prevent continuous sparking on a Hall low signal

while(1) // loop forever
{
while( GPIO.F2 ^ 1) // wait for high pulse on Hall switch

{
spark = 1;
} // North pole of magnet has passed
while(spark)
{
t0 = TMR0;
TMR0 = 0; // start new rev count
if(INTCON&4) tspk=255; // <<<< ADD THIS LINE TO YOUR CODE!!! 917> RPM 255x16uS=4,080mS
else tspk = tspark[t0]; // use table lookup for spark delay
T2CON = 0x07; // start TMR2 counter 1:16
TMR2= 0; // clear spark timer
while(TMR2 < tspk); // loop until timeout to send spark
GPIO ^= 0x30; // take ground off the SCR Pin GPIO4 and 6
delay_us(50); // 23 us delay
GPIO ^= 0x30; // sends a ground to the SCR gate
spark = 0;
INTCON = 0; // clear INTCON
} // end while spark loop
} // end loop forever
} // end of program

////Notes
//
// ; At a engine speed of 1200 RPM;
// ;
// ; 1200 / 60 = 20 revs per second
// ; 1 / 20 = 50mS per rev
// ; 1 rev = 360 degrees
// ;
// ; 36 degrees at 1200 RPM = (36 / 360) X 50 = 5mS
// ;
// ; 100uS loop time
// ; 4MHz clock / 4 = 1MHz instruction cycle
// ; cycle time = 1/1MHz = 100uS
// ; 100uS/100uS = 100 cycles
// ; prescaler set to divide by 4
// ; preset TMR0 = 231, when = 0 = 100uS
// ; 231 to 255 = 25 x 4(prescaler) = 100


// -O-
// VDD o o RA GND
// SCR RA5 o o RA0
// Strobelight RA4 o o RA1
// MCLR RA3 o o RA2 Hall input
//






_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to Bigboat)
       Post #: 1232

RE: New CDI - opensource project JMJ and Bigboat - 5/14/2010 12:25 PM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline
The question was , why not the hex-format 67 ?

OSCCON = 0x67

But if this works, why change it ?

_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to COM)
       Post #: 1233

RE: New CDI - opensource project JMJ and Bigboat - 5/15/2010 4:45 PM   
Evert1969


 

Posts: 34
Score: 100
Joined: 9/18/2006
Last Login: 10/31/2010
From: Steenwijkerwold, NETHERLANDS
Status: offline
During programming using the rcd programmer with Winpic i get the following error:

Resultaat van LoadHex: LastProgAdr=0x000242 LastDataAdr=0x0020FF (D:\Modelvliegen Evert\Saito benzine\CDI\CDI1.hex)
Programmeren...
Wissen ("bulk" of "Chip")
Wis chipgebruik algorithm "ERASE_16F62xA" .
Programmeren CODE, 0x000000..0x000242
Programmering 0x000000..0x000242, algo="16Fxx", CanRead=0 .
Vergelijk 0x000000..0x000242
Vergelijk foutr: 000006: lees 000045, benodigd 00008A
Vergelijk foutr: 000007: lees 003FFF, benodigd 000820
Vergelijk foutr: 000008: lees 003FFF, benodigd 000082
Vergelijk foutr: 000009: lees 003FFF, benodigd 000008
meerdere vergelijk fouten, onmogelijk deze alle te tonen (total=573)
Programmeren CONFIG, 0x002000..0x002007
Programmering 0x002000..0x002007, algo="CONFIG_MEM_16xxx", CanRead=0 .
Vergelijk 0x002000..0x002007
FOUT: Programmering Mislukt!

I'm using Winpic fot programming.  If i'm programming with the PIC directly on de RCDprogrammer i don't get the error but then  the CDI 'still isn't working.
Who can tell me wat's wrong?


Hide Signatures

(in reply to Bigboat)
       Post #: 1234

RE: New CDI - opensource project JMJ and Bigboat - 5/15/2010 4:59 PM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline

quote:

ORIGINAL: Evert1969

Who can tell me wat's wrong?


You'r using Winpic.......use Picprog4U


_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to Evert1969)
       Post #: 1235

RE: New CDI - opensource project JMJ and Bigboat - 5/17/2010 5:19 PM   
Evert1969


 

Posts: 34
Score: 100
Joined: 9/18/2006
Last Login: 10/31/2010
From: Steenwijkerwold, NETHERLANDS
Status: offline
Now with picprog4u this message shows after programming the PIC.
[15:14:04] Hex file successfully loaded.
[15:14:27] Programming device was begun.
[15:14:27] Erasing device.
[15:14:27] Erasing Data memory.
[15:14:28] Device was erased.
[15:14:28] Erasing device entirely.
[15:14:29] Device has been erased entirely.
[15:14:29] Writing into program memory.
[15:14:40] Writing into program memory finished.
[15:14:42] Writing configuration word finished.
[15:14:42] Writing into configuration memory finished.
[15:14:42] Writing into data memory.
[15:14:43] Writing into data memory finished.
[15:14:43] Programming device finished.
[15:14:43] Verifying device.
[15:14:48] Verify failed at address 0003h,required:1283, read:3FFF
[15:14:49] Verifying configuration word.
[15:14:49] Verifying failed! There are 577 error(s)!
[15:14:49] Verifying failed!

I'm not getting it to work. Nothing happens power up the cdi.
What's wrong?


Hide Signatures

(in reply to Bigboat)
       Post #: 1236

RE: New CDI - opensource project JMJ and Bigboat - 5/17/2010 8:13 PM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline
Your computer cant generate the programm Voltage of 13 Volt from the com-port.
A small modification must do the job
http://www.circuitsonline.net/schakelingen/142/computer-en-microcontroller/pic-programmer-met-externe-voeding.html

_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to Evert1969)
       Post #: 1237

RE: New CDI - opensource project JMJ and Bigboat - 5/18/2010 4:30 AM   
COM


 

Posts: 396
Score: 100
Joined: 6/5/2009
Last Login: 3/13/2013
From: Ga, GA, USA
Status: offline
Evert1969

Why not just buy a pic programmer.The don't cost that much.

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to Bigboat)
       Post #: 1238

RE: New CDI - opensource project JMJ and Bigboat - 5/18/2010 6:35 AM   
gr8flyer55


 

Posts: 800
Score: 600
Joined: 11/30/2005
Last Login: 5/25/2013
From: Hamburg, PA, USA
Status: offline
Charlie, I built the RCD programmer version # 2.3 and it has an extra capacitor on the board to eliminate the problems he is having.. In fact, before it will program a pic, it says, "charging the capacitor" and then it goes into programming mode.. It hasn't failed me yet.. always provides the 13 volts needed. The programmer works flawlessly.

Have you made a board design yet for the 12f683 chips? I'm getting kinda anxious to build it and test it. Maybe Rob has already made a PCB, I don't know...been offline for awhile and missed all the pm's and posts. Also, have you added the test function back into the program? Haven't heard from Nyemi since he posted his code. I knew he was working on doing it for the 16f628 pic. I am still using his code without the test features.. My engines start easily and run fine with it.

John

Hide Signatures

(in reply to COM)
       Post #: 1239

RE: New CDI - opensource project JMJ and Bigboat - 5/18/2010 2:55 PM   
COM


 

Posts: 396
Score: 100
Joined: 6/5/2009
Last Login: 3/13/2013
From: Ga, GA, USA
Status: offline
Hello John,

I have built a board for the 12F pic but I have a few things I need to iron out. I have not added the test function. I will and post the code. I will keep you posted about the board.

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to gr8flyer55)
       Post #: 1240

RE: New CDI - opensource project JMJ and Bigboat - 5/18/2010 3:03 PM   
Bigboat


 

Posts: 548
Score: 100
Joined: 12/6/2005
Last Login: 12/3/2012
From: Alkmaar, NETHERLANDS
Status: offline
I was allready start to make a pcb, but then there was a nasty virus and distoryed some important files.
Sunday a finish a clean install and now I have to fine tune the computer befor I can install the pcb-program.
I beleve I set the testfunction into the program of Nyemi allready online........somewhere.......if not, tonight I'll doit.

@Charlie, please use pin 6 and/or 7 for testfunction with jumpers placed to ground to test.
No jumpers is normal mode, pullup resitors activate in program !, with jumpers is test mode.

_____________________________

CU, Rob - www.modelbouw.gompy.net

Hide Signatures

(in reply to gr8flyer55)
       Post #: 1241

RE: New CDI - opensource project JMJ and Bigboat - 5/18/2010 3:40 PM   
COM


 

Posts: 396
Score: 100
Joined: 6/5/2009
Last Login: 3/13/2013
From: Ga, GA, USA
Status: offline
Hi Rob,

I will see what I can do. In #49 you posted code that has the test function.

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to Bigboat)
       Post #: 1242

RE: New CDI - opensource project JMJ and Bigboat - 5/18/2010 3:46 PM   
COM


 

Posts: 396
Score: 100
Joined: 6/5/2009
Last Login: 3/13/2013
From: Ga, GA, USA
Status: offline
If you guys want to use a bootloader then we need to switch back to either a 16F628,16F628a or one that the bootloader will work on. I have the bootloader source. the only thing is you need to use a level shifter like a max232 or similer to work. so that is something else to make. I have some soic devices and I am looking at putting it on the timer board.

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to COM)
       Post #: 1243

RE: New CDI - opensource project JMJ and Bigboat - 5/20/2010 11:03 PM   
Evert1969


 

Posts: 34
Score: 100
Joined: 9/18/2006
Last Login: 10/31/2010
From: Steenwijkerwold, NETHERLANDS
Status: offline

quote:

ORIGINAL: COM

Evert1969

Why not just buy a pic programmer.The don't cost that much.



Because i've allready built one. If it works for other guys it should also work for me i guess.  I'm only using it for programming the cdi so i want to keep this inexpensive.

When checking hardware in picprog4u i get 12,7V at pin 4, and 5,5V at pin 12 and 13.
I've used the 100uf capacitor. I'll try the 470uf like in the 2.3 version.

Hide Signatures

(in reply to COM)
       Post #: 1244

RE: New CDI - opensource project JMJ and Bigboat - 5/21/2010 9:33 AM   
gr8flyer55


 

Posts: 800
Score: 600
Joined: 11/30/2005
Last Login: 5/25/2013
From: Hamburg, PA, USA
Status: offline
I use version 2.3 all the time with great results.... If you are programming a 16f628A chip, you must use the adapter socket shown on the RCD site. If you are forgetting to use that adapter socket, you will get the errors you are seeing when programming.
Hope this helps...


John


< Message edited by gr8flyer55 -- 5/21/2010 4:38 PM >


Hide Signatures

(in reply to Evert1969)
       Post #: 1245

RE: New CDI - opensource project JMJ and Bigboat - 5/21/2010 6:41 PM   
Evert1969


 

Posts: 34
Score: 100
Joined: 9/18/2006
Last Login: 10/31/2010
From: Steenwijkerwold, NETHERLANDS
Status: offline
I'm glad a made the CDI with a PIC bracket so i can take the Pic out and put it directly on the rcd programmer. And yes, i'm using the adapter for this. Grrrrrr. After changing the capacitor to 470uf it still doesn't work and getting errors with verifying.

Would it be an idea to adapt the programmer to the 2.3 version and set voltage on mclr at 5V . Then use low voltage programming? Would that  give the programmer more time to program and verify before the capacitor is discharged?

Hide Signatures

(in reply to gr8flyer55)
       Post #: 1246

RE: New CDI - opensource project JMJ and Bigboat - 5/22/2010 3:21 AM   
gr8flyer55


 

Posts: 800
Score: 600
Joined: 11/30/2005
Last Login: 5/25/2013
From: Hamburg, PA, USA
Status: offline
Maybe you should just build the version 2.3 programmer. I had built the version 2.2 and never got it to work right. Then I built the 2.3 and have had no problems since. Some of the pentium computers have an economized mother boardwhere they cut back on available power to the rs-232 ports and will not ever produce the correct voltages..I have one of those computers so I know they won't work right.
If you can update the current board to version 2.3, it should work.

John

Hide Signatures

(in reply to Evert1969)
       Post #: 1247

RE: New CDI - opensource project JMJ and Bigboat - 5/22/2010 3:28 AM   
gr8flyer55


 

Posts: 800
Score: 600
Joined: 11/30/2005
Last Login: 5/25/2013
From: Hamburg, PA, USA
Status: offline
The problem as I saw it was that the voltage available to program does die off on version 2.2 drastically during programming. I measured voltages on the version 2.3 and got 13 volts consistently..due to the pulse charging of the 470Uf cap. It definitly made a difference in programming success for me..

John

Hide Signatures

(in reply to Evert1969)
       Post #: 1248

RE: New CDI - opensource project JMJ and Bigboat - 5/22/2010 11:55 AM   
Evert1969


 

Posts: 34
Score: 100
Joined: 9/18/2006
Last Login: 10/31/2010
From: Steenwijkerwold, NETHERLANDS
Status: offline
Probably mentioned earlier is this topic but how should i adjust the variable resistor R3 on the 2.3 version programmer?
As far as i can see the only difference between 2.2 and 2.3 is the variable resistor R3 and the added resistor R6 between D7 and ground.
Am i wright?

Hide Signatures

(in reply to gr8flyer55)
       Post #: 1249

RE: New CDI - opensource project JMJ and Bigboat - 5/22/2010 3:09 PM   
gr8flyer55


 

Posts: 800
Score: 600
Joined: 11/30/2005
Last Login: 5/25/2013
From: Hamburg, PA, USA
Status: offline
The adjustment should be set at 10k ohms for most if not all the chips you will be programming. I have mine set at 10k and it works perfectly. That setting was mentioned on the RCD site I believe in the questions and answers section in one paragraph, so I followed that suggestion and it has been working.

You are right, the addition of the parts you mentioned are the only differences between 2.2 and 2.3 versions.
I hope this info is of some help to you.


John

Hide Signatures

(in reply to Evert1969)
       Post #: 1250

Page:   <<   < prev  48 49 [50] 51 52 53 54 55 56 57   next >   >>  
All Forums >> Glow Engines, Gas Engines, Fuel &amp; Mfg Support Forums >> Engine Conversions >> RE: New CDI - opensource project JMJ and Bigboat
Page: <<   < prev  48 49 [50] 51 52 53 54 55 56 57   next >   >>  





Jump to:


 
Google 



Search | Marketplace | Event Calendar | Local Clubs | Magazine | Product Ratings | New Products | Discussion Forums

Photo Gallery | Instructor Search | Field|Track|Marina Search

Advertisers | Hobby Vendor Resources | Rate Manufacturers | Sign In/Sign Up

SITE MAP!   : :   FORUM RULES

RC Universe is a service of Internet Brands, Inc. Copyright © 2001-2013.

Charities we support that also need your help
Yorkie Rescue | Humane Society | ASPCA | Crohn's-Colitis America


1.094RCU1