Categories
Arduino

ChatGPT and Arduino

Unless you’ve been hiding under a particularly large rock, you must have hear of OpenAI’s chatGPT: a publicly accessible Artificial Intelligence that is surprisingly helpful. How helpful? Well, it can even be used to write Arduino code!

And that’s where the problems begin. For an experienced programmer, chatGPT is amazingly useful: it can produce custom versions of commonly-needed code in seconds. However, for a beginner, or a non-programmer, the downsides may outweigh the benefits. One of the problems with chatGPT-generated Arduino code is that it can be wrong in subtle, or even obvious ways. To someone who writes code for a living (like yours truly), these bugs are easy to find. For a neophyte, it looks fine and it’s not until they try to run it that it fails in mysterious ways. And worst of all, as good as chatGPT is at writing code, it’s terrible at debugging it. So if your Arduino code that chatGPT generated doesn’t work, you’re pretty much out of luck.

I’ve been getting more and more email from people in this particular quandary. They’ve tried using chatGPT to write code for their desperately-needed Arduino system, but it doesn’t work and they can’t figure out why.

Well, that’s why this site is here: we can fix the problem and write professional grade code that you can rely on, and best of all, it works 🙂




If you'd like to subscribe to this blog, please click here.

Leave a Reply

Your email address will not be published. Required fields are marked *