RE: CDI gr8flyer55    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: CDI gr8flyer55
Page: <<   < prev  14 15 [16] 17 18 19 20 21 22 23   next >   >>  

Tower Hobbies Get Coupon Codes Brands  
Login
Message << Older Topic   Newer Topic >>
RE: CDI gr8flyer55 - 9/23/2012 11:36 AM   
COM


 

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



how much would be entailed in writing a small program say for 12F683 that could take inputs from the hall effect and the existing micro output, take the time difference and with rpm as a reference, output degrees delay on an LCD display






A 12F683 by itself won't work for writing to a lcd. you need a pic with more pins or use a serial lcd.

But that would be a neat little device.

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to BobbyMcGee)
       Post #: 376

RE: CDI gr8flyer55 - 9/23/2012 11:51 AM   
bluejets


 

Posts: 234
Score: 205
Joined: 3/25/2009
Last Login: 4/15/2013
From: xnot applicable, AUSTRALIA
Status: offline
Hi Com,
I found this circuit here that uses a 75HC595 shift register that only require 3 lines from the micro.
Might end up not being quick enough though.

http://www.electronics-lab.com/projects/mcu/015/index.html

Hide Signatures

(in reply to COM)
       Post #: 377

RE: CDI gr8flyer55 - 9/23/2012 12:42 PM   
COM


 

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

Yea I know about those,but why use a pic and a shift register when you can just one 18 pin pic?

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to bluejets)
       Post #: 378

RE: CDI gr8flyer55 - 9/23/2012 12:58 PM   
jpanhalt


 

Posts: 168
Score: 115
Joined: 10/4/2005
Last Login: 5/9/2013
From: Parma Heights, OH, USA
Status: offline
quote:

ORIGINAL: COM

quote:


how much would be entailed in writing a small program say for 12F683 that could take inputs from the hall effect and the existing micro output, take the time difference and with rpm as a reference, output degrees delay on an LCD display


A 12F683 by itself won't work for writing to a lcd. you need a pic with more pins or use a serial lcd.

But that would be a neat little device.


I wrote a little program (Assembly) last Winter for a 12F683 to take the PWM from a Memsic accelerometer, convert it to angle inclination and transmit that angle to a 2X16 serial LCD. The input was just the PWM. Times for the start, stop, and total period of the PWM cycle were detected and measured at about 200 Hz. The inputs you are talking about would be very similar. Obviously, it is not a plug-in, ready to go program for this application, but it is quite similar. I won't have time to work on it until later this Winter and after I finish extension of the project to a GLCD. If someone wants the code to work on, I can send it to you, but it is quite rough. I am just a novice at programming.

It is a neat idea, and I mention the above only to illustrate that it is doable maybe as a future refinement.

John

Hide Signatures

(in reply to COM)
       Post #: 379

RE: CDI gr8flyer55 - 9/23/2012 1:07 PM   
COM


 

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


I am just a novice at programming



Hi jpanhalt,

That sounds interesting. If you are doing it in asm then you are more than a novice programmer.... at least in my opinion. I might take a stab at doing it. I will have to think on it a little more though.

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to jpanhalt)
       Post #: 380

RE: CDI gr8flyer55 - 9/23/2012 1:13 PM   
bluejets


 

Posts: 234
Score: 205
Joined: 3/25/2009
Last Login: 4/15/2013
From: xnot applicable, AUSTRALIA
Status: offline
John,
I've been trying to self-educate on assembly for the last 6 months or so. I can manage so far to dig my way through existing code and try to make sense of it all but it is a long hard haul.
Would appreciate a copy.



Hide Signatures

(in reply to jpanhalt)
       Post #: 381

RE: CDI gr8flyer55 - 9/23/2012 1:24 PM   
COM


 

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



I'm headed to a bar for a drink and to hit on women



Bobby, 5:18am seems a little early or late for the bar

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to bluejets)
       Post #: 382

RE: CDI gr8flyer55 - 9/23/2012 1:53 PM   
Gompy



Posts: 402
Score: 460
Joined: 7/3/2010
Last Login: 6/16/2013
From: Alkmaar, NETHERLANDS
Status: offline
If the bar is open, it's never to early or to late

_____________________________

CU, Rob
http://www.electronics.gompy.net

Hide Signatures

(in reply to COM)
       Post #: 383

RE: CDI gr8flyer55 - 9/23/2012 1:55 PM   
bluejets


 

Posts: 234
Score: 205
Joined: 3/25/2009
Last Login: 4/15/2013
From: xnot applicable, AUSTRALIA
Status: offline
As they say, it's always 5 o'clock somewhere.

Hide Signatures

(in reply to Gompy)
       Post #: 384

RE: CDI gr8flyer55 - 9/23/2012 9:07 PM   
jakestew


 

Posts: 144
Score: 180
Joined: 8/13/2011
Last Login: 6/4/2013
From: Moscow, ID, USA
Status: offline

quote:

ORIGINAL: BobbyMcGee
I'm outta here. Talk like this never made anyone the hit of the party or got them a woman. I'm headed to a bar for a drink and to hit on women.


LOL Some day you'll be looking for an excuse to get away from your woman so you can work on your CDI.


I don't see all that much more that can be done with the current processor. It doesn't have a UART for serial communications, and in any case we only have one spare pin left and it's currently tied to ground.

We're pretty limited by our low pin count at the moment. With the 12F1840 we can play around with things more by moving features to control via the serial port. Any device that can read serial output will be able to display different things.


-Jake

_____________________________

http://www.electrofunnel.com/CDI-2012/index.htm

Hide Signatures

(in reply to BobbyMcGee)
       Post #: 385

RE: CDI gr8flyer55 - 9/23/2012 11:36 PM   
bluejets


 

Posts: 234
Score: 205
Joined: 3/25/2009
Last Login: 4/15/2013
From: xnot applicable, AUSTRALIA
Status: offline

quote:

ORIGINAL: jpanhalt

If someone wants the code to work on, I can send it to you, but it is quite rough. I am just a novice at programming.

It is a neat idea, and I mention the above only to illustrate that it is doable maybe as a future refinement.

John


Received code ok....thanks

Jake,
Idea was as a stand-alone device.
I'll see how far I can get, might take me a while though, fairly new at assy. and although there are many sources for information, it's difficult to narrow down particular enquiries. Thanks again....Jeff

Hide Signatures

(in reply to jpanhalt)
       Post #: 386

RE: CDI gr8flyer55 - 9/24/2012 5:58 AM   
jakestew


 

Posts: 144
Score: 180
Joined: 8/13/2011
Last Login: 6/4/2013
From: Moscow, ID, USA
Status: offline
I would probably not be too difficult to output a PWM signal in relation to the RPM. All the hardware is still unused, all I use in the program is Timer1 and the GP2 interrupt.

You could also use the voltage reference output to put out a voltage in reference to the RPM (on GP1/pin 6). That's a fairly common technique. You can then read it with just a volt meter, or interface it with some other sort of readout.

In any case you'll save yourself a world of pain by just learning C. Assembly is terribly unpopular and just not that well suited for programming anything complex. C is every serious programmer's first language and everything after that is relatively easy. Learning assembly is kind of like learning how to hand stitch when you want to be a clothing designer. Sure, you need to know the basics of sewing, but in the real world most clothing is made with sewing machines. It's interesting to know the mechanics of how each kind of stitch is done step-by-step, but you could also just flip a switch on the machine and start learning how garments are made.

I just kind of find that assembly is tedious and non-portable, and it distracts from the big picture of the whole program. With today's optimizing compilers you'll usually end up spending twice as much time writing something in assembly, but unless you're very, very good the C compiler will usually produce better code in the end.

Check out...
http://www.gooligum.com.au/tut_midrange.html

These guys have excellent tutorials on PIC programming. They teach everything in assembly first, then they have the same lessons in C. For every example they compare the lines of code, size, and speed for assembly vs. C. I referred to these tutorials quite a bit when writing the CDI program.


-Jake

_____________________________

http://www.electrofunnel.com/CDI-2012/index.htm

Hide Signatures

(in reply to bluejets)
       Post #: 387

RE: CDI gr8flyer55 - 9/24/2012 9:30 AM   
bluejets


 

Posts: 234
Score: 205
Joined: 3/25/2009
Last Login: 4/15/2013
From: xnot applicable, AUSTRALIA
Status: offline
Thanks for the advice Jake, much appreciated.

The pic lessons you refer to are the ones I'm using at present.(Gooligums)

I asked many places and some advised that learning the assy would be an asset which-ever way you go so that's pretty much why I chose that route.

Always like to have a full understanding of what is happening and why.

Left over from the early days of learning electronics I guess.

I do have all the other lessons though.

Hide Signatures

(in reply to jakestew)
       Post #: 388

RE: CDI gr8flyer55 - 9/24/2012 11:48 AM   
jpanhalt


 

Posts: 168
Score: 115
Joined: 10/4/2005
Last Login: 5/9/2013
From: Parma Heights, OH, USA
Status: offline
Assembly versus C discussions for newbies (I include myself as a newbie) are like discussing which is "better" Metric or Imperial measures. They never end. Each has its place. The arguments supporting C versus Assembly can be used to support using other HLL's instead of C. If you write relocatable Assembly and use assembler directives, it even starts to look like C, minus the formatting characters. Some serious programmers still use Assembly. Check out the Microchip forums and search on Olin Lathrop for examples. You will find others who also use Assembly.

Anyway, I am sorry to have unintentionally started that discussion. C is a great programming language to use for some microcontrollers. I use Assembly, because that is all I know even a little of, and its full featured compiler is included in MPLAB free. I also have not ventured beyond the mid-range PIC's (i.e., 10F, 12F and 16F series). Note, other compilers and simulators are available that have a more graphical feel to them.

Now for tutorials, I find Gooligum excellent, but like many tutorials, it will sometimes introduce something without fully explaining it at the newbie level first. Here is a list of some other tutorials and resources I have used:

http://www.amqrp.org/elmer160/lessons/
http://www.mstracey.btinternet.co.uk/index.htm
http://winpicprog.co.uk/pic_tutorial.htm
http://www.gooligum.com.au/tutorials.html
http://www.mikroe.com/en/books/picbook/0_Uvod.htm

For the Art of Assembly Language:

http://webster.cs.ucr.edu/AoA/Windows/HTML/AoATOC.html

For code examples, math routines, radix conversions, serial communication, etc:

http://www.piclist.com/techref/piclist/index.htm

When I first started Assembly, Gooligum was not around, and I had the first three options listed. I tried to use all three, but found that was confusing. I settled on Elmer160. Now that I have written a few programs, I rarely go back to those first three tutorials and either go to Gooligum, PicList, or the Art of Assembly. I usually hit PicList first if I am looking for code examples and Gooligum if I am missing a concept.

Edit: Winpicprog have also been converted to C language tutorials. See: http://www.electro-tech-online.com/

John

Hide Signatures

(in reply to bluejets)
       Post #: 389

RE: CDI gr8flyer55 - 9/24/2012 11:56 AM   
Gompy



Posts: 402
Score: 460
Joined: 7/3/2010
Last Login: 6/16/2013
From: Alkmaar, NETHERLANDS
Status: offline
http://www.picbasic.nl/indexes_uk.htm

_____________________________

CU, Rob
http://www.electronics.gompy.net

Hide Signatures

(in reply to jpanhalt)
       Post #: 390

RE: CDI gr8flyer55 - 9/24/2012 3:42 PM   
bluejets


 

Posts: 234
Score: 205
Joined: 3/25/2009
Last Login: 4/15/2013
From: xnot applicable, AUSTRALIA
Status: offline
Thanks so much to everyone for the programming links and advice.

Many approaches to consider.

John,
I have also found it difficult to understand some explanations in certain tutorials and tend to jump over to another like Mikro to get some grasp of what they mean.

Started to think it was just my brain getting older and unable to suck in the info like it used to do.

Gompy,
Had a quick look at the site in UK ...getting a bit late here so look more tomorrow..

Thanks again.......


Hide Signatures

(in reply to Gompy)
       Post #: 391

RE: CDI gr8flyer55 - 9/24/2012 3:51 PM   
Gompy



Posts: 402
Score: 460
Joined: 7/3/2010
Last Login: 6/16/2013
From: Alkmaar, NETHERLANDS
Status: offline
Nice / cheap program and hardware to learn programming.
http://www.hackinglab.org/pinguino/index_pinguino.html

_____________________________

CU, Rob
http://www.electronics.gompy.net

Hide Signatures

(in reply to bluejets)
       Post #: 392

RE: CDI gr8flyer55 - 9/24/2012 5:20 PM   
jakestew


 

Posts: 144
Score: 180
Joined: 8/13/2011
Last Login: 6/4/2013
From: Moscow, ID, USA
Status: offline
It's way too easy to get sucked into debates! Before I started here I hadn't used PICs before or seen assembly in a very long time. PIC programmers seem to be one of the few assembly holdouts left.
I've always had a strange combination of respect, pity, and disdain for assembly programmers. On the one hand it's a tribute to their skills that they have the brains to think like a computer, on the other hand things are so much easier in C so they either spend a lot more time or are simply a lot better than me. By the same token, it often seems so arrogant for them to think that they can directly manipulate the hardware in a better way than the C compiler writers.

But there's really not much of a debate over the two. Assembly is not a real programming language, it's simply directly manipulating the hardware. I know that I don't want to have to learn each instruction of every processor, and that even if I did, 9 times out of 10 I'm not going to come up with a better way to make the hardware implement an "if" statment, "for" loop, or do basic math.
I commented every line of code in Nyemi's program, looking up lot's of the instructions, and I still don't think I really fully understood exactly what it was doing at all times.

My program seemed to work out great though. Nyemi and I both seem to have the same 51 uS algorithm correction value, so apparently our code is exactly equally efficient. I run at twice the speed (8 MHz), but I'm also loading 16-bit table values, using 16-bit timer values, and doing dividing and rounding on the revolution timer values.

In any case, the main reason for us to use C in an open source community project is because C is much more readable, portable, and it's 90% of programmers' first language. I'd love to have more devs onboard, and I'm willing to put this project on Github or Google Code so we could all work on it simultaneously. If anyone sees anything in the code they don't understand 100%, please ask me about it. Fresh eyes and beginners not understanding something and asking about it is the best way I know of to find better ways to do something. My math skills are pretty weak, as far as programmers go, so I'd love to have some math experts helping out.

I also haven't written much for Windows/GUI programs in the past. So it would be great if someone could help me write an interface program. I'm not looking forward to doing that all that much. If anyone knows a good way to easily turn a spreadsheet into a standalone program that the source code can still be worked on that would be pretty nice. Let me know!


In other news... I'm working on loading the user settings into the tables so they will also switch with the table switch. That should be handy for tweaking startup settings. I'm also working on having the spreadsheet directly generate the hex file so that people don't have to install and use the compiler for each change.


-Jake

_____________________________

http://www.electrofunnel.com/CDI-2012/index.htm

Hide Signatures

(in reply to jpanhalt)
       Post #: 393

RE: CDI gr8flyer55 - 9/24/2012 7:21 PM   
jakestew


 

Posts: 144
Score: 180
Joined: 8/13/2011
Last Login: 6/4/2013
From: Moscow, ID, USA
Status: offline
Thanks for the tutorial links jphanalt. I had a fairly hard time finding PIC tutorials and examples for C when I started.

I liked the Googlium tutorials so well I made an offline version and removed the PDF security so I could cut and paste from them. If anyone wants a copy of those, just email me.


-Jake

_____________________________

http://www.electrofunnel.com/CDI-2012/index.htm

Hide Signatures

(in reply to jpanhalt)
       Post #: 394

RE: CDI gr8flyer55 - 9/25/2012 1:36 PM   
Gompy



Posts: 402
Score: 460
Joined: 7/3/2010
Last Login: 6/16/2013
From: Alkmaar, NETHERLANDS
Status: offline
@Nyemi, why don't you awnser mail or PB's ?

PS, hi iura

_____________________________

CU, Rob
http://www.electronics.gompy.net

Hide Signatures

(in reply to jakestew)
       Post #: 395

RE: CDI gr8flyer55 - 9/28/2012 1:40 AM   
COM


 

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

Nyemi does answer my emails either. I guess he is busy.

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to Gompy)
       Post #: 396

RE: CDI gr8flyer55 - 9/28/2012 3:37 AM   
gr8flyer55


 

Posts: 800
Score: 600
Joined: 11/30/2005
Last Login: 6/19/2013
From: Hamburg, PA, USA
Status: offline
Hi guys.
Having a great time on my cruise!
Bermuda was great this time. Had lots of fun, but miss the work on the project too.
Making the changes for the switches on my board drawing and will post a PDF for etching soon as it's completed. Next part will be even more fun with the user settings and the ability to make the hex file in the spreadsheet. Can't wait to see that Jake! Great addition to an even greater project!

John



Hide Signatures

(in reply to COM)
       Post #: 397

RE: CDI gr8flyer55 - 9/28/2012 3:15 PM   
Gompy



Posts: 402
Score: 460
Joined: 7/3/2010
Last Login: 6/16/2013
From: Alkmaar, NETHERLANDS
Status: offline
quote:

ORIGINAL: COM

Hi Rob,

Nyemi does answer my emails either. I guess he is busy.


Between my emails he was active on the forum....

Btw, buy myself a homelite for test cdi's I want a real good working cdi on my bike (Aprilia Classic 125cc)
I hope Jake can make a change for me, I have a booster valve at high rpm (8000) this must be open for extra power.

< Message edited by Gompy -- 9/28/2012 3:43 PM >


_____________________________

CU, Rob
http://www.electronics.gompy.net

Hide Signatures

(in reply to COM)
       Post #: 398

RE: CDI gr8flyer55 - 9/28/2012 4:28 PM   
jakestew


 

Posts: 144
Score: 180
Joined: 8/13/2011
Last Login: 6/4/2013
From: Moscow, ID, USA
Status: offline
I noticed a bug in the code. LowRPMAdvance is actually working as a delay instad of the advance. It should be: SensorDigiDeg - LowRPMAdvance = correct LowRPMAdvance.

Hopefully this hasn't caused any problems. It should only affect 121-915 RPM operation. That's probably just a spark or two at startup.

It will be fixed in the next version. I should have an engine with a prop running by then so I can test things out more thoroughly.


-Jake

_____________________________

http://www.electrofunnel.com/CDI-2012/index.htm

Hide Signatures

(in reply to COM)
       Post #: 399

RE: CDI gr8flyer55 - 9/29/2012 12:53 AM   
COM


 

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

What are you using as a hub for the magnet? If you need one I can machine one for you. So I take it that hub size does not affect operation?

_____________________________

Regards
Charlie M.

Hide Signatures

(in reply to jakestew)
       Post #: 400

Page:   <<   < prev  14 15 [16] 17 18 19 20 21 22 23   next >   >>  
All Forums >> Glow Engines, Gas Engines, Fuel &amp; Mfg Support Forums >> Engine Conversions >> RE: CDI gr8flyer55
Page: <<   < prev  14 15 [16] 17 18 19 20 21 22 23   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.109RCU1