AI-powered circuit analysis and design: A game-changer with ChatGPT?
ฝัง
- เผยแพร่เมื่อ 19 ธ.ค. 2024
- Welcome to my latest video where I explore the cutting-edge technology of using AI and ChatGPT to analyse and design electrical circuits. In this video, you will learn how ChatGPT, a powerful language model, can revolutionize the way we approach circuit analysis and design.
I will demonstrate how ChatGPT can automate the circuit analysis, making it faster, more efficient, and (sometimes) more accurate. You will see how ChatGPT can generate a SPICE netlist which can be simulated or even used to create a schematic from a written description of a circuit!! I'll also show you how ChatGPT can be used to design a simple RC filter, although the results aren't what you might expect!
This video is a must-watch for anyone interested in the intersection of AI and circuit design, and for anyone looking to stay ahead of the curve in this rapidly advancing field. So sit back, relax and let's dive into the world of ChatGPT and AI-assisted circuit design.
The schematic builder application can be found here:
ltwiki.org/file...
Wow this actualy works. Impressed!
I can even describe the circuit in my own language and it works Perfect for helping with my university assignments! Thanks😁
That's great!
Thank you for the video, im excited to šee how the tech grows in future!
Me too!! Thanks for watching…👍
This is awesome!! I signed up to chatgpt straight away to give it a try, looks really cool.
Will let you know how it goes when I’ve played around a little! Thanks for the heads up👍👍👍
It’s pretty amazing, but you gotta be careful… I wouldn’t trust it, need to double check everything. Let us know how you get on!
You’re right, tried it a bit more and spotted a few mistakes! It’s almost like it knows the process but can’t do the math!
hi... thanks for the video. For some reason however, I can't find the schematic builder for LTspice. Could you please post the link in the description? Thanks again
No problem… I used the LTSpice schematic builder (took a lot of googling to find). Here’s the link to the LTwiki page explaining how it works:
ltwiki.org/index.php?title=LTspice_Tools_and_Applications
And here’s the link to the actual application:
ltwiki.org/files/SchBuilder.zip
Thanks for watching!
Wow! The language comprehension is incredible. I designed one of the early Natural Language to code alg's. This is light years ahead. Did you get a chance to play with Microcap? It used to cost thousands and is now free.
It seems very sensitive to how the prompt is written, two very similar sounding sentences about a circuit can produce very different results!
I downloaded Microcap and had a play, it’s very comprehensive, much more so than LTSpice! It will take some getting used to though…
@@thecircuithelper Remember to update the components in the update box. It's very comprehensive!
how can I feed AI in term of accessibility technical diagrams charts in white papers and application notes that are usually available in html or pdf format?
This is a good question and I have tried to do it every time chatgpt updates. I paid for the subscription that allows documents/images to be uploaded, but the results are very poor... it can recognise that a circuit has been uploaded, but it cannot solve the circuit yet. I will keep trying and make a video as soon as I find something that works! Thanks for watching!
@@thecircuithelper try prompt tuning with a soft prompt. I would experiment preparing a soft prompt "vector embedding" with spice modules and 3d modules from Navitas semiconductor webpage product section. Datasheets are in pdf which is a bummer. I am looking to create a prototype for a cutting edge product and I am at your disposal if you would like to discuss it further
@@ramidaoud3776 good luck with the product
That is pretty cool! However, it definitely is far too limited. What do you think would be good enough for an AI that is decent at circuit analysis? Maybe just a large language model that is good at doing calculations like the one you asked + one that answers questions about circuits with great knowledge + generates accurate SPICE netlists? You think that would be a good one? Or would it need more features to be actually usable for decent circuit analysis (e.g. you can upload a circuit and it can analyze it)?
Interesting questions… for AI to be truly useful it would need to do more than just analyse a circuit. As experienced electrical engineer can look at a circuit and intuitively know what it does and what’s critical. For example, looking at a real audio amplifier circuit there might be hundreds of components, most have a very minor impact on performance, an experienced engineer can recognise this and focus their analysis on the key parts of the circuit. An AI would need this level of intuition, if not it would simply calculate all the currents and voltages in all the components (i.e decoupling capacitors etc) and you’d be bombarded with information, most of which is not useful.
AI might be better at creating circuit designs by adapting existing circuits. For example it could be trained on 100 different amplifier circuits and then you could provide a specific set of operating parameters and it would design an excellent circuit. It shouldn’t be too difficult to achieve this, but it would only ever be able to design circuits it had been trained on. I’m
Generating spice netlists is useful, but it would be great if it could make a proper circuit diagram. I’ve tried a few times to get it to do this but it’s basically a joke… just gives a random collection of components stuck together!
@thecircuithelper That makes sense. I would think circuit analysis would be useful as well because AI essentially helps do calculations for non-experienced people with electronics. For example, someone who is learning electronics as a hobby can use AI to help them by asking it questions before it makes a circuit for their needs. The AI can maybe help them with calculations as well.
I would assume the best AI for everyone would be one that can analyze and discuss a circuit (for beginners) and then create circuits based on parameters (for engineers). It would do this via netlists.
As for the schematics, yes AI is notorious for being hard to develop for analyzing images. There is actually a subdivision of AI called Computer Vision which usually requires PhD and extensive experience needed to develop AI models that can analyze images and understand them. Generating images is a whole new world of difficulty as well, especially circuits. That's why making the AI generate accurate diagrams would be a lot heavier task than just netlists.
Hy, there are any tools that can understand a giving electronic circuit and telling his usefulness ?
Hmm, not in an easy way! It’s nearly always possible to draw the circuit into SPICE and see how it behaves but this can take quite some time and spice models don’t exist for every component. Even drawing the circuit in spice takes a long time, it would be great if there was a simple app that could just convert the drawing into a circuit that spice could simulate! Thanks for watching!
How long before it is capable to design novel circuits that work, but which are not easily understood?
Im a little skeptical if it will ever be able to generate novel circuits that actually work. As far as I understand the tech, it essentially works by predicting the most likely response for a given question based on a massive library of data. To make a working circuit it would need to actually calculate component values to meet the specification, rather than pick the most likely value based on its analysis of many previous circuits. I guess 90% of the time a predicted component value might be ok, it’s basically what I do in the lab for non-critical components (e.g stick a 1uF decoupling cap in, based on nothing more than past experience), but sometimes that approach simply isn’t going to cut it.
Certainly GPT3 was poor, asking it to make a spice net list for anything more complicated than a few resistors didn’t really work. I’m interested to see what GPT4 can do when it can analyse/produce images.
@@thecircuithelper it probably will not do worse. Wait and see.
it actually fuckin give some short circuit calculations too hahahaha for transformer secondary and i just gave it an transformer 50kva 3 phase with %z of 0.05 lolol
🤣
If it could only draw them,, it is basically doing math
I know…. After every update I try to see if it will draw them and it never works, the best you can get is some kind of Disney-esq cartoon that doesn’t show proper components etc. I’d be happy if it could even analyse a circuit diagram, but that doesn’t even work! You can upload a circuit and it ‘analyses’ it, sometimes spitting out an answer, but always it’s totally incorrect. Basically, it doesn’t seem to do maths, it just gives you the most likely answer based on your prompt.
What about using the recently released Chat gp4 to perform circuit analysis ? They say it's the new turbo charged version of AI that takes everything up four notches higher.
My feeling is that if they can't get AI to perform everyday tasks and analysis then people will lose interest in this technology.
Where's Elon Musk , I thought he was gonna make all this stuff work and captivate our imagination ?
Very interesting point, I’ve seen a few videos on GPT4 and it looks amazing, not sure if all the features are available yet though. The big problem with GPT3 was it being limited to text input… it’s easy enough to describe a simple circuit with words, but when there are multiple sources and loops etc it’s almost impossible to describe it in a way that can be accurately interpreted (I tried several times for this video).
I’ve seen a video on GPT4 where they used an image as an input, if this could be a circuit diagram it would be a game changer! Even better if it could generate a circuit diagram to meet a set of design criteria.
I still don’t think it’s going to do away with electrical engineers though, the internet is awash with circuits, but actually understanding them enough to build and fault-find when they don’t work is the real skill and it isn’t going to be replaced any time soon (I hope 🤣).