555/556 timer for dual pulse output with 90º phase shift

Discussion in 'Digital Circuit Design' started by Catriona82, Feb 15, 2017.

  1. AlbertHall

    Distinguished Member

    Jun 4, 2014
    3,320
    738
    You need two resistors between the JK's and the transistor bases to set the base current. The transistor base will be about 0.7V when it is turned on (when the JK Q is high). The resistors should allow a base current about one tenth of the expected collector current.
     
  2. Catriona82

    Thread Starter New Member

    Feb 15, 2017
    16
    2
    When you say a couple of resistor do you mean a series resistor between the Q pin of the JK and the base of the transistor?

    I'm going to be connecting this device to either a galvanic barrier which will draw about 8mA when a switch contact is used. The PLC will draw 2.5mA when a switch is closed. I guess then I will need a selector switch on my generator so I can switch between two resistor values depending on which device i'm connecting to.

    What resistor values would I need this this case (and what equation do you use).
     
  3. AlbertHall

    Distinguished Member

    Jun 4, 2014
    3,320
    738
    Yes, series resistors as you describe. You don't need to switch them just use the value appropriate for the higher current. If the logic is being driven from 9V then there will be 8.3V across the resistor (allowing for the 0.7V base emitter voltage). The higher collector current is 8mA so the base current should be about 0.8mA (this is not a critical value). So the resistor should be about 8.3V/0.8mA ≈ 10kΩ
     
    Catriona82 likes this.
  4. ian field

    AAC Fanatic!

    Oct 27, 2012
    5,105
    908
    A commonplace VCEsat is about 0.4V - enough current into the base to saturate the transistor will develop a Vbe of about 0.7V.
     
  5. Bordodynov

    Active Member

    May 20, 2015
    796
    225
    See Draft394.png
     
  6. ScottWang

    Moderator

    Aug 23, 2012
    5,285
    818
    @Bordodynov.
    Could you post the .asc file?
    Thank you.
     
  7. Bordodynov

    Active Member

    May 20, 2015
    796
    225
    See my file and example used HEF4000
     
    ScottWang likes this.
  8. Kjeldgaard

    Member

    Apr 7, 2016
    178
    58
    I have been following this thread, and had an idea that the task could be solved with a few D-Flip/Flop, but I was then in doubt if there were some steps that could lock in invalid sequences.

    The following sketch on a two bits Johnson counter, can generate a quadrature signal from four clock pulses from eg. a 555 oscillator.

    There are several posts with similar solutions, but here there is no additional active or passive components related to the counter circuit. And if we ignore differences in propagation delays between the two D-Flip/Flop, so Q1 will follow exactly 90 degrees after Q0.
    JohnsonCounter2Bit_1.jpg
     
    EM Fields likes this.
  9. Bordodynov

    Active Member

    May 20, 2015
    796
    225
    Two timers: Draft395.png
     
    ScottWang likes this.
  10. ScottWang

    Moderator

    Aug 23, 2012
    5,285
    818
    Is this similar like ambulance sound effect?
    As I remembered that I tried the circuit about 30 years ago during the poor ago, specially I was live in the country side, not that much ee stuffs..
     
  11. Catriona82

    Thread Starter New Member

    Feb 15, 2017
    16
    2
    Ok. I've made my prototype circuit. I have a nice 90deg phase shift and a 50% duty cycle. However I am using the same signal generator circuit using the second channel of a 556 timer for a frequency of around 1Hz but the duty cycle is about 60%.

    I used a 100nF capacitor between the trigger pin and GND, and 7M2 resistance between the output pin and the trigger pin to get the 1Hz frequency.
    does anyone know what could be going on? o_O

    It is not of major importance as the PLC i'll be attaching it to will only be looking for the rising edge but i'd like to know why its not as i'd expect it to be.

    thanks.
     
  12. AlbertHall

    Distinguished Member

    Jun 4, 2014
    3,320
    738
    If you are using NE555 (as opposed to the cmos version) then it is probably the leakage on the threshold and trigger pins that is causing the problem. Try using a lower resistor and bigger capacitor - 10uF, 72k, perhaps
     
  13. Catriona82

    Thread Starter New Member

    Feb 15, 2017
    16
    2
    Albert, thanks, I am using the NE556N so hopefully this is what the issue is. thanks for your help.
     
  14. ian field

    AAC Fanatic!

    Oct 27, 2012
    5,105
    908
    In case you need it; the CMOS version is 7556, there may also be a LMC556 option.
     
  15. Catriona82

    Thread Starter New Member

    Feb 15, 2017
    16
    2
    increasing the capacitor to 10uF didn't make a difference to the duty cycle. Its not important for my application so i will leave it as it is, but it would be nice to know whats going on with it. Do you think its still due to a leakage and if so why would the CMOS version not have this issue?
     
  16. AlbertHall

    Distinguished Member

    Jun 4, 2014
    3,320
    738
    If you are using a much lower resistance that 7.2M then it's not leakage and I don't know what is causing it.
     
  17. ian field

    AAC Fanatic!

    Oct 27, 2012
    5,105
    908
    Was that an aluminium electrolytic? They're known for leakage - its what replenishes the oxide layer dielectric against the caustic electrolyte.

    A tantalum should be better as long as its never seen reverse polarity (even small signal).

    Mylar or polycarbonate metalised film capacitors might do the job without too much leakage error.

    The programmable unijunction transistor was developed to solve the problems where these kind of C/R values are involved.

    A PUT is basically a thyristor with the gate at the wrong end, there are/were SCS devices which are the same basic 4 layer device with a gate at *BOTH* ends. The PUT is getting a bit rare these days, but the complementary asymmetry of the 4 layer device means you can turn the timing circuit upside down and use a common TO92 SCR like the 2N5061 etc.
     
  18. Catriona82

    Thread Starter New Member

    Feb 15, 2017
    16
    2
    Hi all,

    Thanks for your help.

    I got my prototype working on the breadboard then got a PCB fabricated. Here is the PCB bare and populated.
    IMAG1181.jpg
    IMAG1185.jpg

    I've built it into a wee box with an on/off switch, power LED and a DPDT switch to change which signal leads the other. This is simulating a shaft encoder so the switch will simulate the drum changing direction.

    P.S. The company I used to make the PCB was Ragworm/Stickleback in the UK. The single board cost me £21.50 including VAT with 1 week delivery. it would have been cheaper if I had ordered more but the next cheapest quote I got was £80 for 1 and two weeks delivery!
    http://ragworm.eu/.
     
  19. EM Fields

    Member

    Jun 8, 2016
    462
    109
    Very nice. :)
     
Loading...