CircuitLab simulation


+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,961

    Default CircuitLab simulation

    I just discovered this online tool.

    https://www.circuitlab.com/


    I just completed the first lesson as I was watching the video and I'm really impressed. So far it seems to be free.




    I can't even remember Ohm's Law, so a tool like this is worth gold to a potato-head like me. Just drag and drop the devices, adjust voltages, and BOOM! You get nice graphs to help you chose components.


    ----------------------------------------------------------

    EDIT: Ok, so I found out where they make their money, it's from memberships (I found out when I tried to save a file):

    https://www.circuitlab.com/accounts/upgrade/hobbyist/


    ----------------------------------------------------------

    EDIT: Aaaaaaand BOOM! I just found out how they force you to get a membership. I did just a few simulations and they shut down the feature until I "upgrade".

    Still, $79/year is not a bad price to pay for a tool like this.

    Unless someone has a better tool for less than $79/year, I'm most likely going to sign up (at least at the basic level to test the waters).

    I'm pretty sure I have SPICE in KiCad, but I haven't really looked into it. I'm getting "SPICE errors" on simple circuits.

    I guess I should spend some google time to see if I can get anywhere with SPICE. That tool comes up a lot online, I'm assuming it's pro-level stuff.
    Last edited by Demon; - 5th May 2024 at 07:41.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,980


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Have you tried LTspice? It is totally free and great support either on YouTube or from forums around.

    I admit, it is a bit strange if the component is not in the lib and you have somehow to add it.

    Ioannis

  3. #3
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    657


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    I used Pspice from Orcad back in my school days.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,961


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Quote Originally Posted by Ioannis View Post
    Have you tried LTspice? It is totally free and great support either on YouTube or from forums around.

    I admit, it is a bit strange if the component is not in the lib and you have somehow to add it.

    Ioannis

    Nope, not yet.


    I spent a few minutes last night trying to get SPICE working in KiCad and ended up on google. It turns out they have some generic devices, but you're meant to download the SPICE models from the manufacturers. They mention licensing, which makes sense. They don't want to get into that and let the users download whatever model they need direct from the companies. Now I know why my first attempt at getting a LED to turn on had failed miserably.

    I'm going to spend some time and give SPICE a fair shake cause I already use KiCad for my circuits, and it's free as well. SPICE is integrated in the schematic editor, so it's not like I need to learn "yet another tool". I just have to get the proper models.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,980


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Have not tried the KiCAD yet (as well) but LTSpice, despite its primitive environment, it is easy use, at least for the basics.

    Worth to give it a try.

    Ioannis

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,961


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Just a clarification, KiCad uses ngspice.

    Turns out KiCad has a few "features" that you quickly pick up on when you read about spice:

    - as mentionned previously, you're expected to import models.
    - pin assignments in KiCad are not necessarily the same as the pins in the ngspice engine. You're expected to double-check, and use alternate pin assignments when necessary.

    "KiCad uses different pin assignments for semiconductor components than is expected by the ngspice engine. For example, the standard SPICE pin assignments for a BJT transistor are pin 1 = collector, pin 2 = base, and pin 3 = emitter, whereas KiCad uses 1 = E, 2 = B, and 3 = C. This can cause great confusion for users wondering what the heck is going on. To fix this issue, click on the Pin Assignments tab and swap the collector and emitter pin assignments"

    https://www.woolseyworkshop.com/2019...tion-in-kicad/


    I read somewhere that this might just be leftover "holes" from early versions of KiCad. It's developed by the community, so it's bound to have some gray areas where people weren't sure how things went. So over the years they kept the ability to override stuff. It's not the end of the world.

    Shoot, just look at our community and imagine if we were responsible for the development of PBP.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  7. #7
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,961


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Quote Originally Posted by Ioannis View Post
    Have not tried the KiCAD yet (as well) but LTSpice, despite its primitive environment, it is easy use, at least for the basics.

    Worth to give it a try.

    Ioannis

    I gotta say, I was able to get a simulation running with just a few clicks.

    Name:  LTSpice test 1.png
Views: 152
Size:  49.5 KB
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  8. #8
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,980


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Isn't it amazing?

    Ioannis

  9. #9
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,961


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Yeah ... too good to be true.


    Problems quickly arise when you want to test using parts off amazon or aliexpress. They rarely have manufacturer names, so getting matching spice models is a challenge. These guys build their own models.

    https://www.electro-tech-online.com/...ob-led.157114/


    I wanted to test this COB LED brightness control, but substituting the SC8050 for a 2N2222 (or possibly a logic-level MOSFET if the transistor still heated a lot at the 3/4 mark):




    To control the brightness of a 15 inch section of this COB red LED strip:

    https://www.aliexpress.com/item/1005003307581709.html


    I guess I'm back to breadboards.


    EDIT: This guy has a similar design using a 2N3904:

    Last edited by Demon; - 5th May 2024 at 22:59.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  10. #10
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,980


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Simulating any part is impossible.

    Either you should choose a similar one (search the included lib or other people's lib) or make your own library. There are a few ways but I never tried really do my own. Though there are directions on many sites and forums.

    Ioannis

  11. #11
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    955


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    If you can accomodate some simulation inaccuracies, I suggest you try this circuit simulator. https://falstad.com/circuit/ Extremely frugal on resources.

    This is also downloadable as an offline circuit simulator.exe on the same site. To my knowledge, this is not accurate like LTspice or others, but gives a nice visual representation of the working circuit.

    I suggest this as an option with a very low learning curve.

  12. #12
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,961


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Quote Originally Posted by Jerson View Post
    If you can accomodate some simulation inaccuracies, I suggest you try this circuit simulator. ...
    Thanks, I'll keep that one in mind if I ever try to simulate a circuit again.


    I had tried using that PWM board (FR120N, LR7843, D4184), but it the COB LED wouldn't completely turn off and I was stuck with flicker. I had tried ILD2 and LTV-825 opto-couplers, but I was serious trouble balancing the circuit (I can't remember the exact problems, but I couldn't get it to work as desired - full OFF/ON, 300mA range for COB LED, etc).

    I ended up with a IRFZ44N MOSFET driven by PWM from a PIC, with 1K on the gate; looks bullet-proof, low cost, minimal parts and super simple. Best part, it is driven from a PIC, so it's a snap reproducing the same lighting on the 2nd enclosure. These FETs can take insane voltages/amps (I'm only working with logic circuits).

    Small victory.
    Last edited by Demon; - 9th May 2024 at 07:20.
    My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.

    Not as dumb as yesterday, but stupider than tomorrow!

  13. #13
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,980


    Did you find this post helpful? Yes | No

    Default Re: CircuitLab simulation

    Quote Originally Posted by Demon View Post
    These FETs can take insane voltages/amps (I'm only working with logic circuits).
    Not at the same time though. You have to watch the SOA curve and then you will realize that it is not so impressive as the numbers advertised by the manufacturer...

    Ioannis

Similar Threads

  1. Simulation newbie, any pointers?
    By dsicon in forum PBP3
    Replies: 3
    Last Post: - 21st July 2015, 21:47
  2. PBP Simulation
    By andybarrett1 in forum General
    Replies: 6
    Last Post: - 19th March 2015, 11:01
  3. Proteus Simulation
    By Lectro in forum Forum Requests
    Replies: 0
    Last Post: - 27th August 2007, 00:35
  4. pulse simulation
    By nicolasronan in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 14th August 2006, 18:55
  5. Simulation
    By moby in forum General
    Replies: 4
    Last Post: - 21st January 2005, 19:16

Members who have read this thread : 9

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts