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

DroneBot Workshop January 29, 2023
Video Thumbnail
DroneBot Workshop Logo

DroneBot Workshop

@dronebotworkshop

About

Welcome to the Workshop! The DroneBot Workshop is the place where I work with Arduino, Raspberry Pi, ESP32, and lots of other cool microcontrollers, components, and sensors. This is a channel for learning and understanding. While I do build projects, most episodes focus on showing you HOW things work, so you can use the information to bring your own designs to life. Every video has a corresponding article on my website at https://dronebotworkshop.com , along with the diagrams and code samples you’ll need to build your own creations. You can also participate in discussions on my Forum at https://forum.dronebotworkshop.com. Please note that I no longer do any sponsored videos, enquiries for these will be ignored! If you'd like to know more about me or the DroneBot Workshop you can read the FAQ at https://dronebotworkshop.com/about-dronebot-workshop/faq/ And if you have technical questions please ask them on the Forum. Welcome to the Workshop! I hope you enjoy your stay! Bill

Video Description

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: https://dronebotworkshop.com/chatgpt More articles and tutorials: https://dronebotworkshop.com Join the conversation on the forum: https://forum.dronebotworkshop.com Subscribe to the newsletter and stay in touch: https://dronebotworkshop.com/subscribe/ 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. Bill

Essential Coding & IoT Tools

AI-recommended products based on this video

Loading...
DHT11 modules Digital Temperature and Humidity Temperature Sensor for arduino DIY KIT 5pcs

DHT11 modules Digital Temperature and Humidity Temperature Sensor for arduino DIY KIT 5pcs

(1)
$15.99
FREE delivery Sat, Jun 14 on your first order
Loading...
HAUSOURCE Full Bed Frame with 4 Storage Drawers Bed Frame Full Size with Headboard LED Lights Charging Station Metal Slats Platform Heavy-Duty Support No Box Spring Needed White

HAUSOURCE Full Bed Frame with 4 Storage Drawers Bed Frame Full Size with Headboard LED Lights Charging Station Metal Slats Platform Heavy-Duty Support No Box Spring Needed White

(1,086)
$329.99
Only 5 left in stock.
Loading...
VASAGLE LED Bed Frame Full Size, Storage Headboard and Charging Station, Full Bed Frame with 2 AC Outlets, 1 USB Port, 1 Type-C Port, No Box Spring Needed, Dove Gray and Camel Brown URMB842G01

VASAGLE LED Bed Frame Full Size, Storage Headboard and Charging Station, Full Bed Frame with 2 AC Outlets, 1 USB Port, 1 Type-C Port, No Box Spring Needed, Dove Gray and Camel Brown URMB842G01

(108)
$1,543.78
FREE delivery Jun 20 - Jul 2Only 3 left in stock.
Loading...
VASAGLE LED Bed Frame Queen Size, Storage Headboard and Charging Station, Queen Bed Frame with 2 AC Outlets, 1 USB Port, 1 Type-C Port, No Box Spring Needed, Ink Black and Rustic Brown URMB841B01

VASAGLE LED Bed Frame Queen Size, Storage Headboard and Charging Station, Queen Bed Frame with 2 AC Outlets, 1 USB Port, 1 Type-C Port, No Box Spring Needed, Ink Black and Rustic Brown URMB841B01

(162)
$249.99
FREE delivery Jun 20 - 30
Loading...
USB C Cable 3Pack USB C to USB C Cable 10FT 60W Type C Charger Nylon Braided Compatible with iPhone 17 16 Pro/15 Pro/Plus/Max/iPad/MacBook and More

USB C Cable 3Pack USB C to USB C Cable 10FT 60W Type C Charger Nylon Braided Compatible with iPhone 17 16 Pro/15 Pro/Plus/Max/iPad/MacBook and More

(16)
$13.99
Prime
700+ bought in past month
Loading...
Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset
Best Seller

Syntech Link Cable 16FT for PCVR Compatible with Oculus/Quest 3/Meta Quest 3S, Quest2/Pro/Pico 4/Ultra Accessories and PC/SteamVR, High Speed PC Data Transfer, USB 3.0 to USB C Cable for VR Headset

(19,554)
$24.99
FREE delivery Tue, Jun 17 on your first order
300+ bought in past month
Loading...
USB to USB C Cable for iPhone 16/15 [MFi Certified] Carplay Cable Car Charger Cord 6FT/4Pack Compatible with iPhone 16/16 Plus/16 Pro/16 Pro Max, iPhone 15/15 Plus/15 Pro/15 Pro Max,iPad Air/Mini

USB to USB C Cable for iPhone 16/15 [MFi Certified] Carplay Cable Car Charger Cord 6FT/4Pack Compatible with iPhone 16/16 Plus/16 Pro/16 Pro Max, iPhone 15/15 Plus/15 Pro/15 Pro Max,iPad Air/Mini

(1,176)
$16.97
FREE delivery Sat, Jun 14 on your first order
100+ bought in past month
Loading...
Car Carplay Cable for iPhone 16/16 Pro Max/16 Plus/15 Pro Max Plus, 3.3ft USB to USB C Cable Compatible with Apple Car Play iPhone 16 15 Cord, USB A to USB C Car Charger Cable Cord (Black)

Car Carplay Cable for iPhone 16/16 Pro Max/16 Plus/15 Pro Max Plus, 3.3ft USB to USB C Cable Compatible with Apple Car Play iPhone 16 15 Cord, USB A to USB C Car Charger Cable Cord (Black)

(2)
$8.99
FREE delivery Sun, Jun 15 on your first order
Loading...
Digital Multimeter Voltmeter Battery Voltage Multi Tester AC DC Volt OHM Amp Current Meter Circuit Continuity Resistance Diode Electrical Tester with Test Leads Backlight LCD Display

Digital Multimeter Voltmeter Battery Voltage Multi Tester AC DC Volt OHM Amp Current Meter Circuit Continuity Resistance Diode Electrical Tester with Test Leads Backlight LCD Display

(1,904)
$16.13
FREE delivery Sat, Jan 3 on your first order
1K+ bought in past month
Loading...
AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display
Best Seller

AstroAl Digital Multimeter 2000, Multimeter Tester with Volt Amp Ohm, Multi Meter Measures Voltage, Current, Resistance, Continuity and Diode, Electrical Tester with Test Leads, Backlight LCD Display

(48,000)
$19.54
FREE delivery Mon, Aug 25 on your first order
2K+ bought in past month
Loading...
10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

10.1 Inch Touch Portable Monitor IPS Screen 1366x768P 60Hz 400 Brightness 99% sRGB HDMI USB-C Monitors Switch for Xbox PS3/4/5 Laptop Compatible with Raspberry Pi, Mini Touch Screen

(1)
$99.99
FREE delivery Mon, Aug 11
Loading...
ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

ELECROW 8 Inch Portable Monitor, 1280x800 Mini HD Display with Built-in Speakers, USB Powered, Non-Touch LCD Screen for Raspberry Pi, PC, Laptop, Jetson Nano, Game Consoles

(49)
$117.29$102.21
$6.86 delivery Thu, Aug 14
Loading...
7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

7 Inch Portable Monitor Touchscreen HD 1024x600 LED Display Dual HDMI Port Small Monitor for PC Raspberry Pi Laptop Computer Xbox PS4/5 Switch Built-in Speakers

(61)
$68.99
FREE delivery Tue, Aug 12
Loading...
BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

BrosTrend 1800Mbps WiFi 6 Linux WiFi Adapter for PC and Raspberry Pi 2+, Long Range USB WiFi Dongle Linux for Ubuntu, Mint, Debian, Kubuntu, Lubuntu, Zorin, Windows 11/10, Dual Band Wireless Antenna

(288)
$54.14
FREE delivery Sun, Jun 22