905 points · by malerba118 · 3y ago · 259 comments
Breadboards are for prototyping small low-speed circuits.
Veroboard is for prototyping larger medium-speed circuits.
Gerbers & a PCB are for production and for prototyping large or high-speed circuits.
If the tool could automatically make a 3D breadboard view from a schematic, it'd be pretty neat for beginners. If the tool warned you when the normal parasitic capacitance between breadboard rows would cause problems with a part you're using, that'd be amazing for teaching.
No doubt the parasitics and other nasties still come into play, but it's still amazing how much faster we can go before they start to bite.
I've made some retrocomputing boards (<= 50 MHz) (8051, 286, 68010, 68030, etc.) and haven't had much of a problem. No idea what the EMI looks like though. Greatest goof I had so far was an old part who's datasheet didn't mention that the signal output was open collector so I had to bodge a resistor in. Mostly just followed advice I found on the internet -> 4 layer boards can be had for very cheap these days (JLCPCB does 10 for $30 w/ ENIG boards up to 10cm x 10cm), so I followed the "just do yourself a favor and get the 4 layers boards so you can make ground and power planes" advice. Used a tool to compute minimum trace spacing to stay under a certain capacitance for a specific copper weight, board thickness, dielectric type, etc.
Probably my crowning achievement at this point is making an 1.8V LVDS to TMDS level shifter board so I can get HDMI 1.2a (4x 1.65 Gbps lanes + sidebands) out of an FPGA board I repurposed from some cryptomining hardware I bought on eBay. Had to learn how to do soldering using a stencil, paste, hot air station, and a hotplate because no one is hand soldering 0.4mm QFN packages. 0402 are the smallest thing I can do by hand.
Next thing I want to try is breaking out a small BGA. Managed to get a few Lattice iCE40HX8K's in the CT256 package (256 balls @ 0.8mm pitch BGA).
What hurts is how patent/royalty/industry interest group encumbered that nearly everything modern is. Want to do PCIe? Join PCIe SIG. Want to do USB? Join USB-IF. Want to support SD cards? Pay a bunch to SDA. Actually their patents expired so maybe you can do native SD mode now without much fear. HDMI is awful, DisplayPort requires you to join VESA, MIPI for CSI and DSI devices, etc.
As someone who works for a large silicon vendor I can tell you that even with access to those industry groups the documentation still sucks!!!! I look at the amazing documentation available surrounding various software initiatives (OpenCV, machine learning, linux drivers, programming languages, etc...) with envy. It's all right there and out in the open with multiple blogs and forums and pages explaining shit. And actually I did try to learn PCIe. I gave up. 1000+ reference specs, about 3 random web pages and a half dozen marketing youtube video's. There's a reason why some guys manage to build niche careers around these HW topics!
In general, you should avoid power planes on 4 layer boards if you can. They tend to cause a lot of trouble with return currents when signals jump from the top layer to the bottom layer through a via. Prefer using ground planes for both inner layers and make sure you have ground return vias near every signal via.
https://youtu.be/kdCJxdR7L_I goes into more detail.
Cannot confirm from my experience though, I don't practice EE, I just dabbble in electronics and never actually characterized SI and EMI in my creations.
Imagine all the peripherals baked into your uc were separate DIPs, and you had to worry about high speed signals going everywhere.
And yeah, all the parts were less robust and hadn’t evolved to be tolerant of less than perfect conditions.
That's not just capacitances! At speed the resistance of a long trace or the inductance to a neighbor are big deals. Meanwhile the internal PCB planes of Power/Gnd are necessary low impedance bypass that no packaged cap could provide.
Reminds me: https://www.youtube.com/watch?v=yR9TweWf3w8 Sine oscillator (no ICs), 10K load, 24+GHz on a breadboard.
Schematics SHOULD help readers to understand what a circuit does.
Especially in, let's say, "prosumer" boards (like boards designed by small companies for hobbyists) I keep seeing schematics that are designed to make it easy for the dev to get them done and NOT to communicate the circuit theory.
It's exactly like writing code without any formatting or comments. As far as I'm concerned connecting components by net name is as bad or worse than a GOTO.
\rant
It’s interesting too that there are all sorts of mistakes that become a bit more obvious when you look at it in 3D than in the 2D view.
James Cameron would like a word with you. Seriously though, 3D can show off some things that just might not be realized without it. Not sure of Fritzing's design abilities with layered PCBs, but I could imagine trying to design a layered board and forgetting how tall a component is. Seeing a component "through" the second layer could be useful
[0] https://blog.fritzing.org/2022/06/27/Simulating-Circuits-wit...
Teaching is much easier when the students can connect the abstract representation to something they can experience.
Reddit on the other hand went to being completely unusable. So much so, that I don't understand who and what motivates it to be the way it is. It's having on due to "old.reddit", but that too is a pain to use on mobile.
Of course all of these would be solvable in a "retro" design as well.
Translating non breadboard circuit schematics to a breadboard is definitely something some people struggle with, It would be useful to have a tool that could do that for you.
My workflow is a complicated combination of LTSpice, KiCAD, prototyping from the schematic and then ordering PCBs. It’s a little painful, but the tools are fast to use. I wish KiCAD’s SPICE integration was as natural as LTSpice and I could maintain 1 library of parts.
Breadboards are getting too painful for me to use. Too much time dealing with bad connections or noise from jumper wires being little antennas. It’s more of an issue with audio circuits than digital.
I guess my dream is if you could easily get a symbol, footprint, SPICE model, and 3D model of parts from vendors that all dropped into 1 toolchain.
Maybe a commercial offering is more like that. I’ve never really looked.
1. was OpenSource
2. would *please* switch to modern conventions for Load/Save/Cut/Paste/Undo/Redo/Exit keyboard shortcuts
3. would have a larger, *online*, library of standard parts instead of having to download every missing ones every time from random obscure places on the internet
4. had a setting for switching off showing the names of *all* the new components on the circuit
5. had a vaguely sane way to keep all the .asy and .sym files used by a .asc in the same directory
6. had a central repo of example circuits / standard circuits
7. had an API to its spice engine
It'd be the perfect tool.But in the meantime, and in spite of its old age, it's still light-years ahead of the web-based thing from 2022
ironically maybe it's also feedback that our share feedback button is too hidden
edit: Also I feel terrible that my negative comment has any weight in this thread. I don't want to be a detractor. It's just that this is not for me.
People work hard to make things and you can't please everybody. You definitely can't please curmudgeons like me sometimes.
One major advantage of web based tools is shareability and we hope to see content creators writing articles with embedded diode projects so that tutorials can include inline interactive examples.
This is already common in the software world with tools like codesandbox and stackblitz, but not so much in the hardware world. Hardware tutorials often include fritzing diagrams, but we think the next step is interactive simulations anywhere and everywhere.
I get what people are saying, but for people trying to dip their toes into electronics (and who maybe can’t afford the equipment just yet), this might be just the thing! I don’t mean to restrict the use cases, I just think a both/and world is just fine. And this is some excellent hacking.
I tip my mouse to you.
I'd probably pay if it was just simple to import 3rd party models, even if they're encrypted. Every time I have to screw around with some encrypted model I worry about whether it's going to end up accurate.
Here's one of mine.[1] I built that, and it works pretty much the same as the simulation does. Except for the depletion-mode FET current limiter. The resistor that sets the current limit had to be adjusted after building to get the same current limit as the simulation.
LTSpice doesn't help with layout. I had to follow the layout instructions in the switcher control data sheet to get it to work. Some of those paths have to be very short.
[1] https://github.com/John-Nagle/ttyloopdriver/tree/master/circ...
It was much better than the simulator shown on this thread.
I think a modern 2D UI (i.e. with nice looking fonts, swipe gestures, hamburger icons, generous margins and space) would be nice.
Also I do agree that 2D interface is probably important to add at some point too!
I think right now the skeuomorphism is nice for folks wanting to get their hands dirty with circuit projects but don't have all the materials/supplies available for whatever reason (cost/space/etc)
Just take 20 minutes to customize a settings file and reuse for every new project after, iterating as you go and you'll get yourself pretty realistic outputs long term.
Sometimes in tech we don’t do a good job of recognizing that a problem is essentially “solved” and further “innovation” isn’t helping. The reason why stuff looked like “it was made in 2003” was because that essentially solved the problem. All the extra iterations on top of that arguably didn’t help.
A lot could be said of many forms of web design too. The basic designs of the late 90s and early 2000s were very functional. A lot of the junk out there today looks flashy but is borderline terrible at actually communicating easily navigable information. There are good exceptions today, and to my point those are broadly things that didn’t try and reinvent the wheel through unnecessary “innovation” in “design.”
With old software, you have a lot of experimental ideas that make it into prod. Want properties on this item? Sorry, right click rotates the component. Click the component and press P instead.
Today, at least in the professional software world, UIs are better than they’ve ever been and the programs are capable of infinitely more. And in 20 years we’ll be looking back on this era the same way: “What do you mean you can’t see an AR preview of this component you’re working on?“ “You had to label each wire of the I3C bus by hand??”
"here's an interactive simulation to illustrate my point <embed src="diode-url" />"
instead of:
"to see my point please download these files, download this version of ltspice, and then give it a run"
We thrive on novelty, especially people drawn to tech. With the pace of change in the early years of modern tech, making things constantly change appearance was natural and unavoidable, so we've come to expect it, but some things are eventually good enough. Chairs, sinks, toilets, plates-- there may be edge cases of radical divergences from their settled forms, but for the most part, they're stable and consistent.
That should inform us of the real value of a lifelike 3D UI, separately from the effects of the jankiness that normally accompany them.
* If you look at the black/red wires going to the Arduino, they kind of overlap
* If you swap the black/red wires (so that one of them has a shorter distance to cover), you get visual artifacts
* It is trivial to make a wire unconnected while moving it to another hole (and instead just touching the plastic parts of the breadboard)
* Making even the most trivial modifications (eg. putting 5V directly through the diode) requires a lot of dragging, rotating, panning, and zooming to get it done (but hey, at least there’s smoke if you actually do that)
* There are many things that can go wrong, because the developers didn’t think about it; for example, the bottom power rails of the breadboard don’t actually work
* Making a modification to a running circuit is impossible, and switching between design and simulation modes takes time and does not always remember the camera position
All of those aren’t a problem in a 2D simulator. Some of them because the 2D simulator abstracts some things away better (eg. power sources or wires), some of them because the developers could invest more effort in the simulation logic, and some of them because the 3D simulator does a bad job at the real-life parts of it (eg. overlapping wires or putting the connector inside the hole).
LTspice for example.
Edit: worth nothing there is a native macOS port of LTspice now.
But it worked great!
"When you include the time to earn the money for a car, driving can be no faster than walking." (~Mumford)
It's still missing a comprehensive component library like LTspice does though, contributions are welcome.
KiCad can also simulate circuits through NGSpice, but it's missing a library and suffers from a lot of quirks.
This. NI Multisim is one of my [proprietary] favorites too.
https://www.falstad.com/circuit/
Maybe a similar sort of visualization could be used for this project?
It is neat that it can simulate arduino uno code to pulse IO, as an in-simulation workbench.
it doesn't look ancient to me
The photoresistor is just controlled by the slider in the side-bar. It doesn't respond to lights in the circuit. There is an "optocoupler" under "active building blocks" that does connect optically.
I've seen a few requests to add feedback that occurs outside the electrical domain - light is one, but also for mechanical movement (motors that turn generators). But, I pesonally think it's hard to know how to model all these non-electrical interactions in a way that is visually clear and effective.
Ten years later, just the other day I was using it to prototype some filter and resonator circuits.
It's actually really useful, fast, educational. Highly recommended.
I also wish someone would revitalize falstad circuit sim (http://falstad.com/circuit/), which is still I think the best tool for experimentation with analog electronics. Just a little bit better interface and user friendliness and it would be amazing!
A somewhat more robust numerical backend (that can give error guarantees) would also be nice, you kind of have to tinker with time steps in some cases.
I haven't contributed for a couple of years, but Paul still actively maintains it.
Do you have specific ideas on what would be changed to "revitalize" it? I agree the UI is kind of basic (it could do with a pallet of common components), but I still like the productivity of it.
I had a look back at it and see many great new features.
(1) I think it's awesome that you can program javascript inputs (and there's AVR8js). But it's not really user friendly: maybe there could be some editor window or something you could program js in with syntax highlighting
I think that's what would be most significant contribution for me, because there are quite a few prototypes where you want to mix analog/digital and that's currently difficult.
(2) If you want to get really fancy, look at editor.p5.js interface (although in terms of self-documentation[1], I think circuitjs is better!). The cloud save functionality could be really useful (although I'd understand if you find it out of scope).
(3) Maybe the time step could adjust automatically as an option? (Something like: auto step -- simulate at half speed and check the difference between the two simulations; if significant, improve accuracy until it reaches maximum; I'm sure there could be better approaches though like trying to find maximum resonance frequencies)
(4) An easy way to run it offline? I think since it's already a web app and it's very light, an electron app distribution would be nice (although HN notoriously cringes at electron :P ).
[1] I define self-documentation as the ability to find functionality and documentation within a user interface. That's easier done with GUIs where commands and references should be a few clicks away, though it can also be done in text interfaces with help commands and such.
One thing wokwi doesn't do however is analog simulation so we're hoping to combine spice simulations with arduino, rpi, esp32, etc.
In any case, I always encourage trying to be as open as you can with the software, this encourages collaboration/cooperation (and of course is just better for everyone, in most cases!).
I think (like others here) any slightly more advanced user would be more comfortable/productive in a 2D interface most of the time. But the option of having 3D for blinkenlights is sure nice :)
(also a great accessibility for people who can't afford to buy hardware for learning and experimentation but have access to a computer)
But it is fair that e.g. LTspice has a terrible GUI. I always thought QUCS had the best UI of all the free options:
https://qucs.sourceforge.net/screenshots.html
Unfortunately it's not the most popular project.
a) You want to check that your components won't physically bash into something else you care about
b) You are designing something that operates at RF to mm-wave frequencies and need to worry (a lot) about the spatial location of the high-frequency components and nearby conductors / ground planes
c) You want to get an idea about airflow and heat dissipation on power electronics and/or modules (such as power amplifiers) that come with their own heatsinks (some SIPs do!)
Kicad and other bits of more hobby-orientated software that do a 3D render (such as diptrace) tend to do it for reasons (a) and (c). Software that does (b) properly costs hundreds of thousands of €$£ per year to rent and tends to have a UI that makes you scream with frustration at every possible moment.
or at least software that gives you an error message when it fails instead of a blank white page
Going from a schematic to a breadboard, going from a breadboard to a stripboard or from a schematic to the actual PCB/IC is hard if you never have done it. It is like showing someone who has never seen written language a book and trying to make them understand that the signs map to spoken language somehow.
Groking that takes some time.
For that matter I think choosing the breadboarded representation of a circuit (in 3D!) for a simulation program is not really a good choice. For beginners it might seem like a good choice, but it prevents them from becoming accustomed to the schematics they will encounter everywhere. For more advanced people it is too clunky (schematics just are superiour for reasoning about circuits).
So far the best and most usable simulator I have come across is circuit.js by Paul Falstad. It has some circuits where the simulated circuit does not match reality at all (e.g. a CMOS-Inverter based relaxation oscillator), but it is extremely usable.
I believe that Elenco continues to make a version of it: https://shop.elenco.com/consumers/electronic-playground-130....
I would always recommend this as a start for young children before then going back to some theory and "why did this circuit behave this way"
I've noodled around with it and I like it, but I actually find working with pencil, paper, and the actual components to be more efficient than panning and zooming around a 3d environment. It's not always an option so these simulators are very useful, but I've come to realize I'm far better off by planning not to use these tools, I guess.
thanks for the plug!
We are working on making our schematic editor so good...you'll never go back to paper :)
I’m glad to hear good things are coming! I’ll definitely keep checking in. Apologies for being dismissive of the hard work your team does, especially after seeing the kinds of technical challenges you take on and working with similar technologies myself these days.
High performance, user-friendly collaborative tools in the browser are not a free lunch, and what flux does today is already impressive.
And it looks modern enough for me.
CircuitJS: https://www.falstad.com/circuit/circuitjs.html
I couldn't compare to OP because it timed out loading on my slow internet.
Looks great if you're trying to impress some of your beginner friends, though.
Thanks for sharing!
the aesthetics and clarity of the schematics of a tektronix oscilloscope manual from 01963 plus the instant responsivity of the actual 01963 tektronix oscilloscope; but married with the flexibility, generality, reproducibility, and monte carlo capabilities you can get out of modern teraflops desktop hardware, with the scriptability of emacs and the breadth of simulation models you can get in ltspice, and of course not limited to 10 megahertz
i guess it's true that this simulator doesn't look like it was made in 02003 because, after taking several minutes to load, it just displays a blank white page with buttons that don't do anything
circuit simulators almost never did that in 02003, though i guess berkeley spice sort of does until you read its man page
apparently from the other comments it's supposed to be a thing with some kind of 3-d model of a breadboard though? why would you want that? the reason we usually draw schematics before putting together breadboards, and we show each other schematics instead of breadboards, is because breadboards are a terrible user interface for circuits; schematics are much easier to understand because you can organize your components logically instead of being constrained by how things are packaged, and also you can tell what the components are by looking at them
let me recommend a circuit simulator which, though lacking in some ways (especially realistic component simulation and integration with spice and kicad), takes advantage of the possibilities of computers to do better than paper schematics instead of worse: http://falstad.com/circuit/circuitjs.html
with two, as per your suggestion, we might never see any followup comments that are actually about how to make a better circuit simulator
so far we're at zero for two
I use http://www.circuitlab.com and find it to be quite good for laying down parts and doing simulation including time-dependence and with parameters. Very reasonably priced IMO.
I started from scratch and managed to build a simple blinking LED using a 555 but found the general process far more fiddly than need be. Took me almost 10 minutes to do what should have been seconds. Took me longer to do than it would have with a real breadboard in real life, which makes this thing a miss.
Placing components correctly and in particular rotating components is very difficult. Running wires one end and at a time rather than just a click and drag felt very fiddly.
Thing feels like a tech demo, not something I would hand a learner.
Both clashlang: https://clash-lang.org/
And Hardcaml: https://github.com/janestreet/hardcaml
have personally fueled my interest in hardware.
Dan Luu speaks eloquently and at length about how better options are needed for logic design. I would recommend both of the above to the enthusiastic novice.
You now, left (primary) click for select, click-hold-and-move to move, right (secondary) click for context menu, this kind of stuff.
Many PCB/Schematics/Simulation packages uses their own old conventions, which are alien to modern users, like "you must have to choose move tool, click on symbol, move, click to drop in new place" and so on.
3D, skeuomorphism, etc., looks nice in tutorials with 3-10 parts but are unusable after that.
And then when you decide to sign up/sign in it will restore the changes you made while you were signed out and you can pick up where you left off.
Is that still not enough?
Also, it's completely free and we have no plans to do anything with your data.
For real, i have no clue how to make it any easier/more enticing for you...
This has been 3 months of painstaking work and you can't even be bothered to try it for free?
Pretty insulting honestly and pretty hard to be an app developer these days as this mentality is becoming quite pervasive.
Diode: Build, program, and simulate hardware projects in the browser - https://news.ycombinator.com/item?id=33396792 (26 comments)
> Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
unless you're violating the ngspice license? or the documentation and/or other materials are just hard to find?
parts of ngspice are also licensed under gplv2, cc-by-sa-4.0, lgpl-2.1+, or gpl2+, but maybe you aren't using those parts
Other than the UI, this looks closer to 2003 than 2022.
In terms of usability, the value I see is from being able to immediately recognize the various physical parts that one might find in their Arduino starter toolbox. For actual editing, I would prefer a different interface however.
I didn't find it to be ancient at all, and when I put it on a breadboard it worked exactly as the simulator ran it. Very helpful.
The problem is that we cannot have usable GUI because GUI designers just cannot stop trying new things inflicting on everyone constant churn.
Or even earlier for that matter.
When this can do what LTSpice can do and show a nice 3D simulation with all the voltages in realtime at each node if one wants to see said simulation instead of traces, then yeah it'll be an improvement.
I'd love to see a schematic exported or even shown as you press simulate (you clearly have it the components and links in memory somewhere to do the simulation). This would be great for debugging.
For instance, it's currently consuming 70% of a 2.7GHz i7 core while idling with the demo project loaded; that would have MELTED a machine in 2003! :P
A 2D simulator + an actual hardware would have taught me a lot more for lot less time.
Smoke starts coming out of the battery. I wondered what it would do, nice it does that.
Application error: a client-side exception has occurred (see the browser console for more information).
This got to a point that Bob Pease of legendary analogue design fame, chucked a computer off a roof https://www.youtube.com/watch?v=vrZ_fMqd8k8
Case in point: https://www.tinkercad.com/circuits