Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Status
Not open for further replies.

Ekazeera

New Member
Hi, I am new to LTSpice and currently having a lot of fun learning from the tutorials.
I am currently working on a project that involves creating a model for the RV4145 which is a Low Power Ground Fault Interrupter.
I have attached the datasheet.
It is presented in two schematics;

1. The Functional Block diagram
upload_2018-3-20_17-43-20.png

2.The Actual Schematic based on the transistors.
upload_2018-3-20_17-46-25.png



One of the decisions I had to make was whether to go with the functional block, I decided to go with the transistors schematic.
(Was this is a better decision)?
upload_2018-3-20_17-33-20.png

However, I am now stuck as to whether I should leave the transistors as generic or use modify them ( I realize they are not generic in the picture)

If so how can I do that given the information I have from the datasheet?

Please help me with the direction of this simulation as I am stuck.

Thank you.
 

Attachments

  • RV4145A-D.pdf
    1.1 MB · Views: 302
  • RV4145.asc
    7.5 KB · Views: 283
If I was going to make this part:
Zeners = 6.8V or 6.2V from SPICE. (or you can make a copy of the 6.2V zener, rename it, change the voltage to 6.5) (use a SPICE 6.5 voltage source, if you do that then you will not need a supply on the "+Vs pin".)
The op-amp = (supply > 26V and speed = 1.8mhz) So try LT6013.
Diodes 1N4148.
This will probably be closer than using generic transistors.
upload_2018-3-20_17-43-20-png.111756
 
It would be interesting (to me, at least :) ) if you could build the model both ways and compare their performance.
 
if you could build the model both ways and compare their performance.
We really don't know what transistors are used. Probably 2 or 3 different types. Could easy be something that you can not get from a store. There is no reason for them to use a 2N2222a. They can make what they want.

I would use a 6.5V Zener not a back wards transistor because it might take a while to find good transistor.
When I designed ICs, I could make a op-amp from transistors but .... There is a big book of parts. You just turn to the op-amp chapter, choose a part that is a little faster than a 741. There is R-R options. The point is that you pick a part that works and has been tested in many products. Very likely the "op-amps" are the same as in other products from the same company. Re-invent the wheel. At the end the computer can hand you a transistor level print out of what you built, but who cares. You just want a 1.8mhz amp that is stable and has a certain offset and open loop gain. (and input current) I don't care how many transistors.
 
It would be interesting (to me, at least :) ) if you could build the model both ways and compare their performance.
That is actually what I intend to do. I understand that they are many possibilities. And judging from the ambiguity of the datasheet, my best bate is to start with the functional block diagram type.
 
If I was going to make this part:
Zeners = 6.8V or 6.2V from SPICE. (or you can make a copy of the 6.2V zener, rename it, change the voltage to 6.5) (use a SPICE 6.5 voltage source, if you do that then you will not need a supply on the "+Vs pin".)
The op-amp = (supply > 26V and speed = 1.8mhz) So try LT6013.
Diodes 1N4148.
This will probably be closer than using generic transistors.
upload_2018-3-20_17-43-20-png.111756
How do you know the frequency requirement of the op-amp is 1.8Mhz?
 
How about the two comparators
I think Q15 and Q16 are the two comparators.

Pin 7 is the output of the op-amp and the input to the comparators.
Q17, 18, 19, 20 are the Zeners.
If pin 7 goes too high Q15 turns on. (pulls pin 5 high)
If pin 7 goes too low Q16 turns on. (pulls pin 5 high)
I would use two transistors. (2n2222a, 2n2907)
upload_2018-3-21_20-24-11.png

I erased some parts that do not count in this talk.
 
I can absolutely wait.
I have actually also created the functional schematic but running into issues as to how to incorporate the necessary zener voltages.
 

Attachments

  • RV4145 using function.asc
    1.8 KB · Views: 279
  • RV4145 using transistors.asc
    7.5 KB · Views: 284
I can absolutely wait.
I have actually also created the functional schematic but running into issues as to how to incorporate the necessary zener voltages.

See Attached Functional Schematic.

I didn't test completely. I'll leave that up to you. ;-)
Remember that this is a representative model so can't expect it to work the same way as the actual part.

RV4145FunctionalBlk.png


Regarding the Transistor version. There is one being tested and available for download at the LTspice Yahoo Group.

eT
 

Attachments

  • RV4145 using function-2.asc
    3.1 KB · Views: 287
Last edited:
I removed U2, U3.
Two op-amps will not be happy with their outputs shorted together.
Used two transistors just like in the IC.
U1 added R5 450 ohms to make the output more like the IC.
Added 200 ohms to the voltage source. Should not direct drive a Zener with a voltage source.
I did not try it. Did not look close.
upload_2018-3-23_18-59-45.png
 

Attachments

  • RV4145 using function-2ron.asc
    3.3 KB · Views: 297
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top