EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

ChatGPT for Embedded Systems Development - Share your Stories Here!

Started by stephaneb 1 year ago7 replieslatest reply 1 year ago649 views

It's only been a couple of months since ChatGPT was launched and the expression 'spreading like a wildfire' isn't strong enough to convey how fast the word is spreading about this new tool.

I decided to finally give it a try this week and I must admit that I am flabbergasted. ChatGPT is immensely powerful. My mind has a hard time grasping & envisioning all the implications that such a tool/system will have on our lives and our society in general.  The least that I can say is that I believe this tool will be an incredibly disruptive force.

Now, I am creating this thread in the hope that you'll use it to share with this community your ChatGPT stories, as they relate to your work with Embedded Systems. 

By sharing your stories and insights, others can learn how to better leverage ChatGPT for their own projects and gain new perspectives on how to effectively use it. Whether it's a unique use case, a particularly challenging problem you solved with ChatGPT, or simply your thoughts on how it has impacted your work, your contributions to this discussion are appreciated.

And in the meantime, if you don't have any story to share yet, maybe have a look, for inspiration, at this recent blog post by Jacob Beningo: "3 Tips for using ChatGPT for Embedded Software".

[ - ]
Reply by igendelMarch 2, 2023

Well, as much as I'm in awe of the thing in general (a machine that takes natural-language descriptive sentences and turns them into code), I couldn't help but laugh at its attempt of my humble request to write an "LED breathe" code for the Arduino. It even agreed with me, later on, that the code won't work as advertised, but was still unable to fix it. Here's the funny part (screenshot):

No alternative text description for this image

[ - ]
Reply by stephanebMarch 2, 2023

Haha, thanks for sharing.  Like Jacob's third tip says: Don’t trust ChatGPT!

[ - ]
Reply by igendelMarch 2, 2023

...later, I asked it to write Python code [unrelated to embedded] to solve a less trivial problem ("a function to sort a list of integers according to their absolute distance from the largest even number in the list"). The result looked really great, "Pythonic" and everything, except for a hidden issue - it didn't handle cases where the list contains no even numbers. When I pointed it out, ChatGPT started to apply "fixes" which only made things worse, each one either introducing a new error or breaking something that already worked. 

I get an eerie feeling when chatting with ChatGPT as an "intelligence". It walks like a duck, it quacks like a duck, but it's not a duck.


[ - ]
Reply by SpiderKennyMarch 2, 2023

I think ChatGPT is better described as ML than AI.

It basically uses a massive reference of work to produce what it thinks is the correct answer to questions. It learns from what it 'reads' just like the rest of us. But it's only as good as it's input. It cannot think forward and come up with the next big thing. You could as it to "come up with a new and more efficeint way of doing X" but it could only uses existing work to do so, it can't do any forward thinking of it's own.

The scary part will come when ML and AI can think forward.

*EDIT* Spelling and grandma.

[ - ]
Reply by ajmartinMarch 2, 2023

It is indeed very impressive, however it really sucks at designing electrical circuits such as Op Amp and Micro-controller interfacing. It had inputs going to outputs and such. When I bought this its attention it admitted it was wrong and redesigned the circuit in a different incorrect configuration. I told it , it did not understand this IC , please redesign with a different IC that you are familiar with. Sure enough it picked a different IC that was actually a good choice, however it the same types of errors. Writes a very nice advert, even songs, letters. Not too good at electronice.

The 2024 Embedded Online Conference