• AVR Freaks

Hot!PIC16F84 (or alternative) Advance Retard ignition system

Author
kenny742
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2021/02/13 06:53:20
  • Location: 0
  • Status: offline
2021/03/07 01:19:49 (permalink)
0

PIC16F84 (or alternative) Advance Retard ignition system

hi there. im new to pic microcontroller. im trying to make ignition system using pic16f84 microcontroller. my bike is 160CC single cylinder. two pulses coming out from the engine to trigger the spark. one pulse is positive 45 degree advance and one is negative and i have connected it to ground. my bike does not have the high voltage generator to charge up the cdi capacitor so i made my own using sg3525 250v dc system. the sg3525 ic has a shutdown pin to turn off the HV dc output cause at ouput there is a IGBT which connects the capacitor to ground, parallel to the coil in order to create spark. if sg3525 ic not shutdown during triggering the sprak then the output high voltage dc also ground which consume extremely high current from line and burns the igbt. i want to add a 2 microsecond delay just after the triggering pulse comes from the engine which will shutdown the sg3525 and then i can ground the capacitor without short circuit the output and also a advance retard feature is required. im attaching a ignition program which can help to understand more. i want max rpm 14000
#1

5 Replies Related Threads

    ric
    Super Member
    • Total Posts : 30223
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC16F84 (or alternative) Advance Retard ignition system 2021/03/08 12:32:56 (permalink)
    0
    kenny742
    hi there. im new to pic microcontroller. im trying to make ignition system using pic16f84 microcontroller.

    Do you really want to use a part that was released in 2001, and has not been updated since 2013?
    (Assuming you mean the PIC16F84A, and not the older PIC16F84)
     

    my bike is 160CC single cylinder. two pulses coming out from the engine to trigger the spark. one pulse is positive 45 degree advance and one is negative and i have connected it to ground. my bike does not have the high voltage generator to charge up the cdi capacitor so i made my own using sg3525 250v dc system. the sg3525 ic has a shutdown pin to turn off the HV dc output cause at ouput there is a IGBT which connects the capacitor to ground, parallel to the coil in order to create spark. if sg3525 ic not shutdown during triggering the sprak then the output high voltage dc also ground which consume extremely high current from line and burns the igbt. i want to add a 2 microsecond delay just after the triggering pulse comes from the engine which will shutdown the sg3525 and then i can ground the capacitor without short circuit the output and also a advance retard feature is required. im attaching a ignition program which can help to understand more. i want max rpm 14000

    Do you have any programming experience?
    This appears to be a PIC16C54 program from 1994 that someone has updated to PIC16F84A in 2004, then someone else adapted for model engines in 2005.
    Are you hoping to tweak this code without really understanding it, or write your own based on this?
     
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    blue_led
    New Users
    • Total Posts : 143
    • Reward points : 0
    • Status: offline
    Re: PIC16F84 (or alternative) Advance Retard ignition system 2021/03/08 13:17:21 (permalink)
    0
    Why you don't put an inductor between 250 Dc and IGBT. It prevent frying the igbt and energy will be recovered by charging capacitor. See SEPIC.

    post edited by blue_led - 2021/03/08 13:19:05

    Attached Image(s)

    #3
    teenix
    Senior Member
    • Total Posts : 97
    • Reward points : 0
    • Joined: 2017/12/21 13:47:21
    • Location: Australia, Melbourne
    • Status: offline
    Re: PIC16F84 (or alternative) Advance Retard ignition system 2021/03/09 00:16:07 (permalink)
    +3 (3)
    ric
     
    This appears to be a PIC16C54 program from 1994 that someone has updated to PIC16F84A in 2004, then someone else adapted for model engines in 2005.
    Are you hoping to tweak this code without really understanding it, or write your own based on this?
     



    I wonder if that was the program I wrote way back then. It had 2 programmable timing sets for 1 - 8 cylinders, 3x4 keyboard and single 7 seg display. It was quite popular in the day and not bad functionality from a 1K device. I had to play it down when some folks wanted to use it for ultralight aircraft though.
     
    cheers
     
    Tony
    #4
    mpgmike
    Super Member
    • Total Posts : 542
    • Reward points : 0
    • Joined: 2014/01/23 17:27:06
    • Location: NJ
    • Status: offline
    Re: PIC16F84 (or alternative) Advance Retard ignition system 2021/03/09 20:01:53 (permalink)
    +2 (2)
    May I suggest you look at AN1980; an Application Note on an Ignition Timing Controller using the Angular Timer peripheral found on the PIC16F161x parts.  Even if you choose another approach, the AN should offer insight.

    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.
    #5
    blue_led
    New Users
    • Total Posts : 143
    • Reward points : 0
    • Status: offline
    Re: PIC16F84 (or alternative) Advance Retard ignition system 2021/03/10 01:10:07 (permalink)
    0
    kenny742
    ........my bike is 160CC single cylinder. two pulses coming out from the engine to trigger the spark. one pulse is positive 45 degree advance and one is negative and i have connected it to ground. my bike does not have the high voltage generator to charge up the cdi capacitor .............. i want max rpm 14000



    Your 160 cc is not top racing bike and for sure it won't reach 14000 with any CDI.
    #6
    Jump to:
    © 2021 APG vNext Commercial Version 4.5