lm393 simulator

Discussion in 'The Projects Forum' started by nadrah, Jan 24, 2014.

  1. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    hello.

    what software can we use to simulate lm393?
    i already use proteus 7 but it doesnt support lm393.

    tq :)
     
  2. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    LTSpice. The LTSpice Users group on Yahoo has the model in its files section.
     
  3. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    tq :)



    i need to build a 4 voltage comparator by using lm393.

    i attached the schematic that ive used.
    i already do it on a bredbord (1 set) and it works.
    but when i try to combine it and make it as 4 voltage comparator, (2 sets os circuit) it doesnt work.

    1- is it possible to combine 2 ic of lm393 and make it as 4 voltage comparator?

    really need help here. your help is so much appreciated :)
     
  4. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    this is the schematic of lm393 that i used
     
  5. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    i already join the ltspice group at yahoo and click the file section.
    which one do i need to click to donwload LTspice?
     
    • qqq.PNG
      qqq.PNG
      File size:
      200.4 KB
      Views:
      36
  6. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    Your circuit is strange. The two comparitors have identical inputs, so will switch on the LEDs at the same setting of the two pots. Are you expecting that the LEDs will not turn on together?
     
  7. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    yes. i already done it by using bredbord.
    and it works like this:

    when i set the R1 pot as reference value (4.5V)
    then when i set R2 pot less than 4.5 V , one of the LED will be off.

    that is how it works :)
    i googled it and i try do it on a bredboard.
     
  8. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    when i set R2 pot more than 4.5V, the LED that just now off will be on and the other LED will be off.

    just one LED will be on at a time.
     
  9. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    The simulator software download is at linear.com

    The comparitor model is in Files/lib/comparitor...
     
  10. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    Oh, I see the crossed inputs for the two comparators now. Yes, the behavior is correct. Why do you need to simulate it?
     
  11. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    okay got it tq :)

    can you help with the circuit ?
    do you think its possible to make it as 4 voltage comparator?
     
  12. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    okay got it tq



    i want to use 2 sets of this circuit and make it as 4 voltage comparator.

    i make two sets of the circuit.
    circuit A and B.

    i take the output of the ON LED of the circuit A and make it as a reference voltage.
    i connect it to pin 2 and 5 of the circuit B.

    and it doesnt work. that is why i want to simulate it.


    can you help with the circuit ?
    do you think its possible to make it as 4 voltage comparator?
     
  13. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    Do you mean that you want to have one input which is compared to four different fixed voltages, so that as the input voltage changes, the comparitors progressively turn on?

    btw- This would be equivalent to using a LM3914 and using the first four outputs. (see here)
     
  14. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    hurm. no.

    actually i want to design a circuit which can compare voltage.

    4 voltage.
    V1 , V2 , V3 , V4

    V1 is on , V2 is off.
    when V1 less than V2 , V1 will off and V2 will on.

    V2 on, V3 off.
    then V2 will compare with V3.
    when V2 less than V3 , V2 will off and V3 will on.

    V3 on , V4 off.
    V3 less than V4 , V3 off V4 on.


    by using LM393 ,
    the VR1 less than VR2 , LED 1 will off and LED2 on.

    now i want to continue it for V3 and V4.

    is it possible by connect the output of circuit A to the input of circuit B?
     
  15. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    the output of the on LED is connected as input to pin 2 and 5 replacing the pot.
     
  16. assuc

    Member

    Mar 23, 2012
    77
    1
    the scenario u presented seems like u want to test the voltages in sequence which according to my knowledge can only be done while cascading opamps
     
    nadrah likes this.
  17. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    Here is something to get you started with LTSpice.
     
    nadrah likes this.
  18. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    Mr Mike,
    so you mean it is possible to fulfill my scenario by using the circuit that u've attached?


    Mr Assuc,
    thank you for your suggestion , but what is cascading op amps?
     
  19. nadrah

    Thread Starter New Member

    Jan 23, 2014
    14
    0
    btw- ive tried the circuit u'd attached already to a bredbord. and it doesnt work as i wish.
    when i turn on the supply, the 4 leds turn on at a same time and turn off at the same time too.
     
Loading...