ChatGPT with Arduino and ESP32 | C++ and MicroPython coding

See how ChatGPT can write C++ and MicroPython code for an Arduino Uno and an ESP32. You now have an AI-Assisted coder to help you with your projects!

Article with code:
More articles and tutorials:
Join the conversation on the forum:
Subscribe to the newsletter and stay in touch:

On November 30, 2023, OpenAI released ChatGPT, an AI-powered chatbot. The reaction has been phenomenal, and for a good reason – ChatGPT’s human-like responses often seem like the stuff of science fiction.

ChatGPT is so good that it, and other technology based around the same GPT-3.5 Language Model, could seriously jeopardize many people’s jobs.

And that might even include programmers and developers! Because ChatGPT is equally adept at writing code as it is at writing essays.

As a tool, ChatGPT is remarkable, and it really offers a lot of advantages to makers and hobbyists. Imagine having your own personal coding assistant on call 24 hours per day. Well, now you can have that with ChatGPT!

I’ll show you how to use ChatGPT to code in both C++ and MicroPython, using an Arduino Uno and an ESP32 module. We’ll start off small and then move up to building a Temperature & Humidity Meter, a WiFi Scanner, and a MicroPython-based ESP32 Web Server.

Here is the Table of Contents for today’s video:

00:00 – Introduction
01:48 – ChatGPT
09:57 – Getting started with ChatGPT
12:06 – Arduino Uno Hookup
14:34 – Blink
16:31 – PWM LED Dimmer
18:34 – ChatGPT Code Correction
19:58 – ChatGPT “Forgets”!
22:14 – DHT22 Temp & Humid
24:48 – OLED Display
26:38 – Temp & Humid Meter with C/F
31:12 – ESP32 WiFi Scanner
33:47 – ESP32 MicroPython Web Server
36:29 – ChatGPT vs. GitHub Copilot
38:49 – Conclusion

While I don’t think that ChatGPT will be replacing coders too soon, it is a valuable tool that will really assist developers and makers in improving their code and reducing their coding time.

Also, please note that this video (and its accompanying article) were created at the end of January 2023, about 8 weeks after the release of the public beta of ChatGPT. It’s very likely that new features will be added, and ChatGPT Pro will be released soon. Keep that in mind when you watch the video in the future!

Hope you find it useful.



You might be interested in