I would like to be able to scan circuit diagrams into a circuit simulator. While I am aware that symbols are not entirely standardized, is there any software that will do an approximation of this?
-
@Joe - What components do you want to scan in? It might be possible to get netlists, and auto-detect resistors/caps/power/ground, but so many symbols are created by hand, vary from library to library, or edited that I'm not sure that the software could ever do anything really useful. If you want to move the schematic into a simulator, get it in digital format, and write a converter. What (legal) examples can you give where you have paper schematics but not digital ones? – Kevin Vermeer Sep 23 '11 at 17:34
-
4why would it be illegal to scan, say, a circuit diagram from an audio mixing board? These are frequently supplied with the manual and are fairly, if not exhaustively detailed. – Joe Stavitsky Sep 23 '11 at 17:49
-
In fact, aside from proprietary documents and college textbooks, could you give an example of a schematic that would be illegal to scan? I can't see how a college textbook would be illegal, even, if I don't scan the whole thing. – Joe Stavitsky Sep 23 '11 at 17:52
-
2Schematics can be copyrighted... but honestly I can't (right now) think of a schematic someone would show you that they didn't want you to use. If they didn't want you to have the information in the schematic they wouldn't let you see it. There is an interesting question of whether it is simply the printed example of the schematic that is copyrighted or 'derivative works' such as a netlist... or whether a netlist counts as a derivative work. However, if you are doing this to steal circuits you only have on paper with little additional effort... shame on you! – AngryEE Sep 24 '11 at 16:32
-
I believe the relevant term is "patent". However, I have no interest in stealing them, just understanding them. – Joe Stavitsky Sep 26 '11 at 12:47
-
@JoeStavitsky, no, the relevant term is copyright. Most of what is important to use as engineers is patent, but copying someones schematic or code directly is copyright infringement, which is an opt-out process, not opt-in. They have the copyright. – Kortuk Oct 10 '11 at 15:31
-
@Kortuk - correct about patents/copyrights. - and note that copyright protects expression of ideas not underlying information. Writing a net list from a schematic would be extracting facts about the content of the schematic, not copying it. – George White Aug 19 '23 at 01:19
2 Answers
There unfortunately is no such software that I am aware of. It is highly unlikely that anyone will ever bother to (outside of perhaps an academic exercise) because:
- Schematic symbols are completely non-standard, except for vague de-facto standardization for some passive and analog components, and even this isn't always followed well. Digital components are almost always just rectangles. The symbols for connectors and such are even more varied.
- There is no standard schema for where schematics put meta-information about parts' attributes, properties, etc -- instead this often relies on a human "reading between the lines", or falling back on extra information contained in a bill-of-materials or an electronic version.
- Most modern schematics are highly abstract-graphical, deeply hierarchical, and use feature such as split symbols that a scanning tool would not be able to reconstruct in any meaningful way (sometimes humans can barely do it).
- Unlike OCR, one tiny mistake in a scanned schematic can have major consequences to the entire circuit. This means that a human is going to have to manually verify the schematic once imported, which is about the same amount of work as entering a schematic in the first place.
The bottom line is that schematics are a non-standard, hybrid textual-graphical representation that is barely (and sometimes not quite) good enough for a skilled human engineer to do something with.
Here is probably the closest you are going to get:
- Scan in your paper schematic with a scanner to an image file.
- Load up a new schematic in gEDA's gschem.
- Select Add->Picture and pick your file.
- Select the entire schematic page to put the image down as a picture.
- Draw your "real" schematic on top of it, using it as a reference.
Of course, you can do something similar with any decent schematic drawing program, not just gschem.
Alternatives:

- 1,042
- 1
- 8
- 17
-
1excellent response, excellent avatar. I would be happy with something that just puts down the traces. – Joe Stavitsky Oct 10 '11 at 15:19
-
@JoeStavitsky, and this goes for others also, I know Kellenjb did work on attempting to make something like this, you could check his progress or see if he reached any hurdles. He is in chat relatively regularly. – Kortuk Oct 10 '11 at 15:29
I am convinced this is now possible out of the box with LLM's. When bard came out I queried it about this task & it assured me it can do it but alas its not good enough.
Some where today in 2023 somebody is doing this already.
It should be possible simply to show an LLM the circuit diagram as a photo and have it spit out correct spice code for the circuit. No coding or tricks required.
Keep in mind that the recognition of components is a requirement for the most advanced electronics factories there is no way nobody has got this to work currently.

- 117
- 1
-
1I assume you mean a Large Language Model, more broadly an application of AI. I too think it should be possible, just haven’t seen it yet. +1 – hacktastical Aug 19 '23 at 03:29
-
1LLMs claim they can do everything, and people believe they can do everything. All they can really do is produce text that looks somewhat reasonable. The work with words, not photos. They do not even understand the words they work with - they simply chain new words together using the statistics of existing texts. You haven't tried it, but you are sure it would work. Try it. It's easy enough to do - the internet is full of schematics and you seem to have ready access to a chatbot. Try it. If it works, post the results. I expect it will produce crap, though. – JRE Aug 19 '23 at 11:24
-
"it [bard] assured me it can do it but alas its not good enough." Because it can't. It is a chatbot. It "talks." That's all it does. – JRE Aug 19 '23 at 11:27