+ Reply to Thread
Page 1 of 2
1 2 Last
Results 1 to 15 of 25

Thread: need help making a duel signal generator

  1. #1
    ramadiaz Newbie
    Join Date
    Jul 2009
    Posts
    11

    need help making a duel signal generator

    Ok this may be easy or very complex. First up go easy on the tech stuff as i only have a basic understanding of circuit function but im capable of making most things and have no problem understanding components etc.

    what i need is a simple square wave generator and i have found many using 555 gate etc or even 2 transistors, but what i also need is a separate secondary wave that is set at a multiple frequency of the primary, none of the circuits i found have component values and i dont know how to calculate the exact signals i require

    ok here are the specs: primary signal (a) wants to be about 16Hz and very short duty cycle like 2% and the secondary signal (b) needs to be exactly 24x(a)Hz with duty cycle around 30% and about 6-9v for both would be fine and the wave shape is not critical

    I know the counting thing will be the killer and ideally they would be stable and accurately counted but not synchronised. i know this is asking a lot so if its too complex we can compromise and just make the secondary signal tuneable with strategically placed variable resistor and I can set it up with a 2 channel scope etc.

    Ok explanation WHY!

    i play with aftermarket ECU's and i often need dummy engine signals to simulate the engine running while i scope the ECU outputs and set up and zero in multi coil ignitions etc. most engines have a multi tooth trigger on the crank and a single tooth trigger on the camshaft, so this will simulate these signals, if i have a 24&1 signal i can set up the ECU for any 4, 6 or 8cyl engine


  2. #2
    Banned millwood Good millwood Good
    Join Date
    Jun 2009
    Posts
    191

    the easiest for me would be use PIC device (12F675 for example) driving a couple opto coupler to output the signal. But that requires a little bit upfront investment / learning curve.

    otherwise, try 555's. they are pretty reliable and it shouldn't be that difficult to wire them up.

  3. #3
    Chippie Excellent Chippie Excellent Chippie Excellent Chippie Excellent Chippie Excellent
    Join Date
    Mar 2003
    Location
    Good 'ole England
    Posts
    939

    Set the 1st 555 to run at the frequency you need, the use that to trigger a 2nd 555 running at the frequency you need and adjust the timing components for the duty cycle..

    Attached is a zipped spreadsheet that may help
    Attached Files
    Eccentric millionaire financed by 'er indoors

  4. #4
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    The best way to do this is to make the 384Hz oscillator first (probably using a 555), and then use a divide-by-24 digital counter using CMOS logic to create the 16Hz signal. I dont have time right now, but later today I will come up with a schematic if this will work for you.

  5. #5
    crutschow Excellent crutschow Excellent crutschow Excellent crutschow Excellent crutschow Excellent crutschow Excellent
    Join Date
    Mar 2008
    Location
    USA
    Posts
    2,838

    I'm with Mike. The divide-by-24 digital counter is the way to go. It's stable and no tweaking required except, perhaps, to adjust the 384Hz frequency.
    Carl
    Curmudgeon Elektroniker

  6. #6
    Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent Hero999 Excellent
    Join Date
    Apr 2006
    Location
    England
    Posts
    11,828

    How accurate?

    For 16Hz a 32768Hz watch crystal oscillator followed by a 2^11 divider.

    I do not answer private messages asking for help because no one else can: benefit from advice I may give or correct me if I'm wrong.

    Please ask on the open forum if you have a question and I'll be happy to help,
    if I know the answer.

  7. #7
    ramadiaz Newbie
    Join Date
    Jul 2009
    Posts
    11

    Quote Originally Posted by Chippie View Post
    Set the 1st 555 to run at the frequency you need, the use that to trigger a 2nd 555 running at the frequency you need and adjust the timing components for the duty cycle..

    Attached is a zipped spreadsheet that may help

    cheers, this looks looks the most simple and capable for me. can you help me with a little more plain detail.... ie exact circuit sketches with component values i know your zip file has most of the information but like i say im a bit sketchy on the technical stuff

    the fast signal needs to stay reasonably consistant, will i just need to finely adjust the frequency with a scope to phase them corectly so the trigger point wont upset the signal at every reset.

    We can bring the low frequency down to 6-8hz this will be better anyway, like the engine is idling and make it less sensitive to set up

  8. #8
    ramadiaz Newbie
    Join Date
    Jul 2009
    Posts
    11

    Quote Originally Posted by MikeMl View Post
    The best way to do this is to make the 384Hz oscillator first (probably using a 555), and then use a divide-by-24 digital counter using CMOS logic to create the 16Hz signal. I dont have time right now, but later today I will come up with a schematic if this will work for you.
    this does sound interesting but sounds complex, will it be difficult to design and build??? i need exact circuit diagrams with all component values to build anything

  9. #9
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    Quote Originally Posted by ramadiaz View Post
    this does sound interesting but sounds complex, will it be difficult to design and build??? i need exact circuit diagrams with all component values to build anything
    Stare at this. 555s and 4017 counters are readily available.
    Attached Images

  10. #10
    ramadiaz Newbie
    Join Date
    Jul 2009
    Posts
    11

    Quote Originally Posted by MikeMl View Post
    Stare at this. 555s and 4017 counters are readily available.
    hey thanks this looks awsome! and i recon i can build it no problem, will it run on 12v?

    thinking further about it, the whole thing needs to be slowed down to about half or even less 160 - 190Hz is perfect, the camshaft turns at half engine speed so the syncronising puls is only read at every second engine rev

    what variations will this require and can we make it adjustable with a variable resistor without upsetting anything?

    lastly can i get different divider intervals by simply using different pins from the 4017 counters? again without upsetting anything, this would be handy for engines with different numbers of trigger teeth.

    cheers

  11. #11
    ramadiaz Newbie
    Join Date
    Jul 2009
    Posts
    11

    Just a further thought looking at how those counter/dividers work, can we do away with the second 555 circuit? the duty cycle is not critical so can we reduce the primary duty to about 20% and then just use that output straight from the counter for the secondary output?? and will it have the same duty time as the primary signal but every 24th puls as required??.... am i making sense???

  12. #12
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    Quote Originally Posted by ramadiaz View Post
    hey thanks this looks awsome! and i recon i can build it no problem, will it run on 12v?
    Yes, it will run on voltages up to 15V, but I would not go higher than the resting voltage of a lead acid battery, say 12.6V.

    Quote Originally Posted by ramadiaz View Post
    thinking further about it, the whole thing needs to be slowed down to about half or even less 160 - 190Hz is perfect, the camshaft turns at half engine speed so the syncronising puls is only read at every second engine rev
    The left 555 determines the running rate. Making C2 47nF will slow it down by a factor of 22/47= 0.46, so you will get about 180 Hz, while still preserving the 30% duty cycle. If you vary only R1 or R3, the frequency will change, but so will the duty cycle. If you want to preserve the 30% duty cycle at each new frequency, either change the capacitor, or you will have to change R1 and R3 at the same time.

    Quote Originally Posted by ramadiaz View Post
    what variations will this require and can we make it adjustable with a variable resistor without upsetting anything?
    Unfortunately, to get a 30% duty cycle out of a 555, you need the funky second resistor/diode in the 555 timing network, which means varying two resistors simultaneously. A ganged dual-pot would work, or adding a new divide by 3 counter (just to get a digitally derived 33% duty cycle) and running the 555 at 3X the frequency would work.

    Quote Originally Posted by ramadiaz View Post
    lastly can i get different divider intervals by simply using different pins from the 4017 counters? again without upsetting anything, this would be handy for engines with different numbers of trigger teeth.
    Yes, the first divider can be strapped to divide by 1, 2, 3, 4, ..., 10, and so can the second divider, just by moving the feed back tap that goes to the R (reset) input. This means you can get any total divide ratio which can be expressed as the product of two integers from 1 to 10. For example it the first divided by 7 and the second by 5, you would get a total divide of 35...

  13. #13
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    Quote Originally Posted by ramadiaz View Post
    Just a further thought looking at how those counter/dividers work, can we do away with the second 555 circuit? the duty cycle is not critical so can we reduce the primary duty to about 20% and then just use that output straight from the counter for the secondary output?? and will it have the same duty time as the primary signal but every 24th puls as required??.... am i making sense???
    The natural output duty cycle of the divide by 6 counter is 1/6=16.6%. If that will work, you can eliminate the second 555. However, the CMOS output of the counter will not drive much of an external load, so depending on what the 16Hz pulse is connected to, you may need a "buffer" of some sort. The 555 as shown will drive ~ 200mA. The naked CMOS output will only drive ~ 2mA, which would be a 6KΩ resistance or higher.

  14. #14
    ramadiaz Newbie
    Join Date
    Jul 2009
    Posts
    11

    cheers thats excelent explinations, i did a bit of research on the workings of both the 555 and the counters so understand and see what is happening a bit better, the counter stays high untill the next signal not for the duration if the initial input signal so that will bump my duty cycle way up as you say.

    sorry for all the questions but i love finding out how things work and building stuff, this project is getting better all the time, ie rotery switch to change counting settings etc. and speed controll so i can also set up things like boost controllers and shift lights etc.

    for speed controll 50% duty cycle is fine for the primary signal, so can i then use a single variable resistor for that? and lastly can we offset the signals slightly by driving the counters from the falling edge of the primary wave or from the inverse pin 5?? from the first 555, or is this just a low signal or -ve drive? this is because an ecu cant have the two 2 rising edges coinciding, or is there some other way to do this? i can adjust the settings in the ecu so one reads the rising and the other reads the falling to make it work but its much better if i dont have to

    cheers

  15. #15
    MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent MikeMl Excellent
    Join Date
    Mar 2009
    Location
    Utah
    Posts
    2,529

    Quote Originally Posted by ramadiaz View Post
    ...for speed controll 50% duty cycle is fine for the primary signal, so can i then use a single variable resistor for that? and lastly can we offset the signals slightly by driving the counters from the falling edge of the primary wave or from the inverse pin 5?? from the first 555, or is this just a low signal or -ve drive? this is because an ecu cant have the two 2 rising edges coinciding, or is there some other way to do this? i can adjust the settings in the ecu so one reads the rising and the other reads the falling to make it work but its much better if i dont have to

    cheers
    Here is a modified circuit. I removed the 555 oscillator and replaced it with one that has a 50% duty cycle over a wide range of frequencies. See here for an explanation of how it works.

    Since that left a couple of sections of the hex inverter/buffer, I added a pulse delay and a pulse width circuits to the final SingleTooth output so that its edges are not coincident with the MultiTooth signal and so that it was narrow. You can play with the R and C values in this section to move those edges around.

    The 4049 has more output current than a standard CMOS output, so the two outputs should drive your ECU. New circuit and simulations attached, including the close-up of the relative timing between MultiTooth and SingleTooth.
    Attached Images

+ Reply to Thread
Page 1 of 2
1 2 Last

Similar Threads

  1. Need help with pm generator signal
    By buddrow in forum General Electronics Chat
    Replies: 8
    Latest: 24th November 2008, 02:37 AM
  2. making an NTSC signal
    By Hank Fletcher in forum General Electronics Chat
    Replies: 7
    Latest: 5th June 2008, 09:39 PM
  3. 1 to 200 Hz signal generator
    By phyxit in forum Electronic Projects Design/Ideas/Reviews
    Replies: 3
    Latest: 8th December 2007, 10:04 PM
  4. RF signal generator
    By meetkushal_c2004 in forum Electronic Projects Design/Ideas/Reviews
    Replies: 3
    Latest: 12th August 2004, 12:12 PM
  5. signal generator
    By andy257 in forum General Electronics Chat
    Replies: 1
    Latest: 23rd March 2004, 11:07 PM

Tags for this Thread