New CDI - opensource project JMJ and Bigboat
#526

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
the other side of the jumper in the picture shows the lead going to ground
http://www.modelbouw.gompy.net/newcdi/cdi-a.jpg
http://www.modelbouw.gompy.net/newcdi/cdi-a.jpg
#527
Senior Member
I must be going blind. I don't see anything going to ground. All I see are the two pins that say test and nothing else. I can't be that dense.
#528

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
To much banking bro......haha
Hay i cant convert C-code to hex so your all good
here is a picture for you
http://yfrog.com/jwjumpersj
Hay i cant convert C-code to hex so your all good
here is a picture for you
http://yfrog.com/jwjumpersj
#529
Senior Member
OK that makes sense. The schmatic on line does not show that.What troubles are you having? generating the hex is quite easy.What are you doing?
#530
Senior Member
#532

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
yep i understand the jumpers are not super clear and the wording needs changing for simple people like myself
Charlie i use the Exel file to make my c-code then copy that to "MicroC 2009 "and change the options to suit
the pic we use
Now when i go to the Build button it does not even make a hex file in the directory/but before it did BUT to small to use
Ive tried of two differnt computers with no luck
I got the circuit from the link above that Bigboat posted
Brett
Charlie i use the Exel file to make my c-code then copy that to "MicroC 2009 "and change the options to suit
the pic we use
Now when i go to the Build button it does not even make a hex file in the directory/but before it did BUT to small to use
Ive tried of two differnt computers with no luck
I got the circuit from the link above that Bigboat posted
Brett
#535

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
yes i get errors....before when i hex file was there there were no errors but hex file was to small
im stuffed if i know what im doing wrong.....i need a kid to show me haha
im stuffed if i know what im doing wrong.....i need a kid to show me haha
#536
Senior Member
What are the errors? copy and paste them here. There were some errors on the code I have sense fixed mine and Rob has sent me a updated version. I can email it to you if you want.PM me your email.
#537
Senior Member
Hi Rob,
Brett got me straight. I have another question. in the latest version of excel sheet the POP is 36 degrees. What if my engine has the hall set at 28 degrees? how do I compensate for that? can I change the POP ?
Brett got me straight. I have another question. in the latest version of excel sheet the POP is 36 degrees. What if my engine has the hall set at 28 degrees? how do I compensate for that? can I change the POP ?
#538
Senior Member
Joined: Nov 2005
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
From: Hamburg,
PA
Brett, If these pictures made it here, take a look at the pencil pointing to where you'd drill your hole for the magnet.
Just an example of what part of the flywheel to drill for the magnet..not at that exact spot..you'd have to determine that by TDC and measure of course..just an example. I've done it and it worked..you have to figure out if you have the room and how to place the hall facing that spot..hope this helps.
John
Just an example of what part of the flywheel to drill for the magnet..not at that exact spot..you'd have to determine that by TDC and measure of course..just an example. I've done it and it worked..you have to figure out if you have the room and how to place the hall facing that spot..hope this helps.
John
#539

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
John i like that idea..... so i just tested where i need the magnet and its right where the other magnet is (south pole) plus
with the hall pick up on the inside of the flywheel it still picks up the first north pole magnet and fires the spark
if i could get Rob to adjust the xcel file my life would be simpler
my pickup is 122mm BTDC that is 90 degrees on a 85mm diameter flywheel
3.14 x 85mm (Diameter)
266.9 / 360 = .741mm
.741 mm per degree
brett
with the hall pick up on the inside of the flywheel it still picks up the first north pole magnet and fires the spark
if i could get Rob to adjust the xcel file my life would be simpler
my pickup is 122mm BTDC that is 90 degrees on a 85mm diameter flywheel
3.14 x 85mm (Diameter)
266.9 / 360 = .741mm
.741 mm per degree
brett
#540
Senior Member
Joined: Nov 2005
Posts: 805
Likes: 0
Received 0 Likes
on
0 Posts
From: Hamburg,
PA
Life would be no challenge if it weren't for built in problems... I know how you feel right now.. it is upsetting for sure. The other way could end up the best for your problem..edit the excel sheet..
I am fortunate that my hall effect mounts are with a rotating clamp or a moveable magnet ring on the crank..I had the forsight to make it very adjustable for this very reason..not to worry..Rob will come thru for you..He's dedicated as a problem solver for all of us..
I downloaded MPLAB from Microchip and hope to learn enough to be able to use it for C-code and directly program the pic chips. Right now I use the RCD serial programmer version 2.3 and it works great for me. I built it from the schematic and then I use PicProg4u software..simple enough to do the job..something strange though..put a 20mhz chip in it and it still used the 4mhz setup...it worked.. who knows..might make the chip last longer running slower.
I think there may be a way to add code to the program for another function..reading the PDF file for 16f628 is giving me ideas...
John
I am fortunate that my hall effect mounts are with a rotating clamp or a moveable magnet ring on the crank..I had the forsight to make it very adjustable for this very reason..not to worry..Rob will come thru for you..He's dedicated as a problem solver for all of us..
I downloaded MPLAB from Microchip and hope to learn enough to be able to use it for C-code and directly program the pic chips. Right now I use the RCD serial programmer version 2.3 and it works great for me. I built it from the schematic and then I use PicProg4u software..simple enough to do the job..something strange though..put a 20mhz chip in it and it still used the 4mhz setup...it worked.. who knows..might make the chip last longer running slower.
I think there may be a way to add code to the program for another function..reading the PDF file for 16f628 is giving me ideas...
John
#541
Thread Starter
Senior Member
Joined: Dec 2005
Posts: 548
Likes: 0
Received 0 Likes
on
0 Posts
From: Alkmaar, NETHERLANDS
You have to place the magnet exact TDC of the engine.
The program calculate backwards from TDC to BTDC.
@Charlie, I was making a joke.....I can't be dissapointed to anyone who build the CDI !
My problem, I can't write like I think becourse English isn't my first language.
I can see Brett help me to translate babelfish to real english, thx
@Brett, I hope this is the problem I understand you have ?
The diameter of the flywheel doesn't matter.
The distance between every degrees is of every flywheel the same, also the time !
If you pick a point near the centre or 20cm from the centre, it takes the same time to spin around.
The program calculate backwards from TDC to BTDC.
@Charlie, I was making a joke.....I can't be dissapointed to anyone who build the CDI !
My problem, I can't write like I think becourse English isn't my first language.
I can see Brett help me to translate babelfish to real english, thx
@Brett, I hope this is the problem I understand you have ?
The diameter of the flywheel doesn't matter.
The distance between every degrees is of every flywheel the same, also the time !
If you pick a point near the centre or 20cm from the centre, it takes the same time to spin around.
#542

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
Oh yes i see it your way,
i just find it hard to mount the pickup anyway else than where it is,
which is 122mm from TDC
or 90 degrees
Rob is there any way to make the exel program change the pickup point if chosen to be say......90 degree
or insert a minus number into the exel sheet like -65 degree
i just find it hard to mount the pickup anyway else than where it is,
which is 122mm from TDC
or 90 degrees
Rob is there any way to make the exel program change the pickup point if chosen to be say......90 degree

or insert a minus number into the exel sheet like -65 degree
#543
Thread Starter
Senior Member
Joined: Dec 2005
Posts: 548
Likes: 0
Received 0 Likes
on
0 Posts
From: Alkmaar, NETHERLANDS
I hope to explain it better where to place magnet and hallsensor.
Set the engine in TDC and mark the boddy and the shaft.
Any place on the body or the shaft is TDC !
Pick a point anywhere where you want to place the magnet.
AND NOW HERE IT COMES.......tatatataaaaaaa.
Calculate 40 degrees backwards from the point you where you have place the magnet and you have found the place for your hallsensor.
Set the engine in TDC and mark the boddy and the shaft.
Any place on the body or the shaft is TDC !
Pick a point anywhere where you want to place the magnet.
AND NOW HERE IT COMES.......tatatataaaaaaa.
Calculate 40 degrees backwards from the point you where you have place the magnet and you have found the place for your hallsensor.
#544

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
Yes i understand that the hall sensor should be 40 degrees behind the magnet,
i made another mistake, it is a heat wave in NZ at the momment 20C and 83% <span>Humidity at 12 midnight
</span><span>
my hall sensor is at 50 degrees btdc and i want to leave it there
is there a way to change the exel file to work for me with my 50 degrees instead of 40 etc
brett
</span>
i made another mistake, it is a heat wave in NZ at the momment 20C and 83% <span>Humidity at 12 midnight
</span><span>
my hall sensor is at 50 degrees btdc and i want to leave it there
is there a way to change the exel file to work for me with my 50 degrees instead of 40 etc
brett
</span>
#545
Thread Starter
Senior Member
Joined: Dec 2005
Posts: 548
Likes: 0
Received 0 Likes
on
0 Posts
From: Alkmaar, NETHERLANDS
In the Netherlands we have snow, huminity 12%, -1.5C and it's 12 AM
The sheet calculate the timetable for the pic, and the pic calculate with the table the sheet makes.
Into the pic there are also timers and prescalers who calculate with the sheettable.
If I change only the sheet, the pic will be lost his calculation.
This is one of those things I want to have to change in a new code.
BUT, I'm not a real programmer and I can't write a real program todo this.
The sheet calculate the timetable for the pic, and the pic calculate with the table the sheet makes.
Into the pic there are also timers and prescalers who calculate with the sheettable.
If I change only the sheet, the pic will be lost his calculation.
This is one of those things I want to have to change in a new code.
BUT, I'm not a real programmer and I can't write a real program todo this.
#546

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
Nice and cold there.........
Ok what about putting a minus number into the exel sheet ????
[img]file:///C:/DOCUME~1/Desky-2/LOCALS~1/Temp/moz-screenshot.png[/img]
Ok what about putting a minus number into the exel sheet ????
[img]file:///C:/DOCUME~1/Desky-2/LOCALS~1/Temp/moz-screenshot.png[/img]
#547
Thread Starter
Senior Member
Joined: Dec 2005
Posts: 548
Likes: 0
Received 0 Likes
on
0 Posts
From: Alkmaar, NETHERLANDS
You are still using the old Exelsheet........and this sheet produce wrong tables !
If your using this old sheet, yopu have to calculate backwards.
36 degrees delay is calculate from 40 degrees wqtih this old sheet.
Please use the new sheet.
If your using this old sheet, yopu have to calculate backwards.
36 degrees delay is calculate from 40 degrees wqtih this old sheet.
Please use the new sheet.
#549

Joined: Nov 2009
Posts: 109
Likes: 0
Received 0 Likes
on
0 Posts
From: AK, NEW ZEALAND
which ever one i am using do you think i can input ( - ) minus numbers to make it work ???
the new exel sheet will not let me put - minus numbers into it but the old one will
the new exel sheet will not let me put - minus numbers into it but the old one will


