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

  Переглядів 317,862

DroneBot Workshop

DroneBot Workshop

День тому

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

КОМЕНТАРІ: 301
@Dronebotworkshop
@Dronebotworkshop 3 місяці тому
Hi everyone - It's come to my attention that there has been someone masquerading as myself, responding to some comments here with a link to a Telegram chat to win a prize from me. THIS IS A SCAM, I am not holding a contest, nor do I have a Telegram account. PLEASE DO NOT RESPOND TO THESE MESSAGES!! It's happening on a lot of my videos, I'm taking steps to remove them manually, but as I have 162 videos, it will take some time. If you do run across a suspicious comment, I would appreciate you letting me know at info@dronebotworkshop.com. Thanks! Bill (The real one!)
@recs1111
@recs1111 Рік тому
This channel offers truly amazing content on Arduino. Each video includes detailed and clear explanations, and the sample projects are practical and usable in real life. Additionally, the channel owner is also very talented in terms of the quality of images and audio. A must-watch resource for anyone interested in Arduino. Thank you very much Bill.
@mickeyfilmer5551
@mickeyfilmer5551 Рік тому
My Goodness Bill... This is FANTASTIC!! I'm in my mid 60's and am new to Arduinos- I have been following you for about 3 years- I have read books, tried Tutorials but just cannot get my head around programming- so This is just a Paradigm Shift for me-Thank you ever so much for showing us how to use this new tech !! You're the best Man!!
@arcinandsparkin
@arcinandsparkin Рік тому
While I have seen a lot in the news regarding ChatGPT, it was in the context of generating essays or papers. This is the first video I have seen for it's application to code development. Outstanding!
@JonathanDeWitt1988
@JonathanDeWitt1988 11 місяців тому
Another great video Bill. Thank you for the introduction. Now I'm looking forward to using ChatGPT in my projects and know what all the hype is about. Thank you for making getting an introduction to topics such as this an easy and enjoyable experience. You save so many people a lot of struggles. It's why I recommend your videos often when people have questions about certain topics in Arduino forums.
@asaprocky8195
@asaprocky8195 Рік тому
Fascinating. Kudos to you for having quickly jumped on to figure out how to use, and explain it. Great job! Thank you!
@throwaway9069
@throwaway9069 Рік тому
I’m at an beginning-intermediate level into coding and computer stuff, I’m starting late in life but I appreciate your video because you put things into a comprehensive, easy-to-digest format and you are a natural instructor. Thank you
@Trust_me_I_am_an_Engineer
@Trust_me_I_am_an_Engineer Рік тому
Thank you for a very good and very useful video, Bill ! You love teaching and it shows.
@NoReason2Liv
@NoReason2Liv Рік тому
Best Intro/DEMO of ChatGPT that I've seen on YT. Amazing! As a coder myself, it's so awesome to see the future of this profession mature in my lifetime. Coding is a hurdle for many creatives that may soon be overcome. Thank you for presenting all of this in such an easy to digest manner.
@newsboyaudio
@newsboyaudio Рік тому
Did ChatGPT generate this comment?
@JeremyDismukes225
@JeremyDismukes225 2 місяці тому
I absolutely love how informative your videos are. I've been watching your content for the last week to familiarize myself with the Arduino IDE and ESP32
@johnglielmi6428
@johnglielmi6428 Рік тому
Hey Bill, Love each and everyone of your videos. You always manage to educate the viewers with new and fresh ideas. Like how to get all the various little micro controllers up and running on various projects. Great job and thank you again for taking time to do so. Also just wanted to let you know of a slight typo in your description of this video. You mention that ChatGPT was release on November 30th of 2023. we all have suffered from as I call it, (the dreaded Fat finger syndrome).
@willsgrandad
@willsgrandad Рік тому
Tried this. Amazing. Seems ok on small projects, and did forget some coding when I asked to modify coding. Tried a display all ok , then added IR detectors, with leds. Noticed that it had added “IR sensor detected “ to the display as well as lighting leds. Didn’t ask for that, also didn’t clear screen before adding another message. That could have been me not telling it to clear screen after each message. So far impressed.
@zyghom
@zyghom Рік тому
this is probably 1st video here that is ON TIME rather than "1 year later explanation" ;-) very good progress - thank you
@1_HighDuke
@1_HighDuke Рік тому
Excellent video as usual! Thank you for your great work, Bill! I feel like this tech will open the doors to more and more beginners.
@geef0813
@geef0813 Рік тому
This was the first thing I thought about when I first heard about chatgpt. Combining it with arduino! Great video.
@simbasimba2029
@simbasimba2029 Рік тому
I freaking love you, man! You always make videos about stuff I'm interested in. Can't wait to watch this later today.
@lincolnschoolpreservation3574
@lincolnschoolpreservation3574 Рік тому
lmao, I also have feelings for Bill love may be a step too far imo, I've learned much from this channel, more than the CCNA course in college. n ChatGPT n the other divisions under that umbrella like Descript r just as fascinating.
@shaider1982
@shaider1982 Рік тому
I tried instructing it to making python code to send data to an arduino and it even made rhe arduino side code. I haven't tested it but it definitely will help speed up my projects. Thanks for the info.👍🏻
@terryboyle
@terryboyle Рік тому
I am a begiiner to the Arduino aand Raspberry Pi coding. This was an absolutely terrific introduction to the AI world. I cannot thank you enough. Liked, Subscribed and Shared (via an rmail) with my friends. Please keep up the great work, thank you.
@silverback3633
@silverback3633 Рік тому
First Thanks Dronebot for this video. I have seen ChatGPT in the news and had in my mind to search for it but you have done it ahead and explained it well. Amazing, finally see some automation in coding. My introduction to programming is in 1980 with PL1 with punch cards. I was very good at programming but completed my technology education with hardware. In the 1990s I asked my brother who is a programmer about any automation in coding, and his answer was C++. Now I see my kids playing with the Scratch and figured out they need to be introduced to real coding instead of superficial Scratch. I don't know anything about the recent development in AI but knew AI is the step to automate coding. After experiencing Google Assistance, dreamed of Ada, a coding assistant whom you would tell to create building blocks all done verbally commanding the assistance. Now I see it happening and I have shown this video to my teenage children about where the future is heading.
@sinjhguddu4974
@sinjhguddu4974 Рік тому
I have have been ignoring Adrian Twarog's channel's thumbnail simply because it had chat in CHATGPT. Now I know better. Thank you Sir, for always steering me in the right direction, ever so gently. Stay well.
@naboulsikhalid7763
@naboulsikhalid7763 Рік тому
So generous from you. The best content in term of quality and quantity. I am your fun from years, since your beginning, and I am blessed with you tutorials. Thank you thousand times👍
@horsthotzenplotz3321
@horsthotzenplotz3321 Рік тому
Ha! A new workshop video! 😃 I‘m in heaven - a friendly place where you can learn stuff so easily, because Bill takes a lot of care and love on his videos and the website. I wish I had such a good teacher when I was in school. 🥰
@brianmarshall7214
@brianmarshall7214 Рік тому
Mate, as always you deliver fantastic content! Thank you so much for sharing your vast knowledge with us. As a 73 year old who knows very little about micro controllers, I find this mind boggling! Thanks again, please keep up the great work
@larrywashburn9435
@larrywashburn9435 Рік тому
hey Brian same 73 years here in Tokyo, Same thanks to Bill
@newsboyaudio
@newsboyaudio Рік тому
"As a...." a tell tale sign of ChatGPT comments.
@doncardinal9100
@doncardinal9100 Рік тому
You're amazing, Bill. You always make things easier to understand. Thanks so much for your continued efforts in building our individual and joint capacities!
@rickh6963
@rickh6963 Рік тому
One of your best videos yet! Good job Bill.
@joshuaoduroadu5376
@joshuaoduroadu5376 Рік тому
Splendid tutorial! Thanks Bill for sharing
@jimmyzhao2673
@jimmyzhao2673 Рік тому
Amazing that it adds comments to the code as well !
@maurice0101
@maurice0101 7 місяців тому
Bill, you are a natural born teacher. Fantastic!!
@uajoku
@uajoku Рік тому
Brilliant video. Clearly explain ChatGPT and its application in coding Microcontroller Boards.
@bunnykiller
@bunnykiller Рік тому
Whooaa, this is going to be awesome, all of those projects I put on hold due to coding issues ( my lack of knowledge) can be brought back to life....
@jamesdemaio5234
@jamesdemaio5234 Рік тому
Excellent overview of ChatGPT. Thank you for a very interesting demo of this new technology. Great job!!
@gearscodeandfire
@gearscodeandfire Рік тому
So glad you covered this- everything I know about JavaScript and CSS (at least since I last used it in 2002), is from chatGPT
@bronzedbrews
@bronzedbrews Рік тому
An Excellent presentation I found it most useful. I have been trying ChatGPT for diagnosing code and getting ideas to solve coding problems, and now I will have a go at a complete program. As I consider the specification of the question to be crucial, my suggestion would be that a presentation around correctly describing the system requirements in a question to ChatGPT Cheers
@fggolding
@fggolding 8 місяців тому
Thank you for this video. IT GIVE US MORE OPTION TO CODE ARDUINO AND ESP32. EXCELENT WORK
@4STEVEJOY34
@4STEVEJOY34 Рік тому
Very timely, I was planning to dive into ChatGPT in a couple weeks.
@hoangleminh2424
@hoangleminh2424 Рік тому
Thank you Dronebot Workshop.
@RCTurbine
@RCTurbine Рік тому
Thank you for sharing! Got to try this out.
@keanorobotics9219
@keanorobotics9219 Рік тому
Incredible content as always. Informative, educational, and clear explanations. That's what I love about this channel
@net6147
@net6147 Рік тому
Excellent presentation Bill, always very thorough and easy to understand
@robertparenton7470
@robertparenton7470 Рік тому
Thank You! Excellent video!
@daichimax
@daichimax Рік тому
You are a Great Pedagogue! Thank You for Sharing Your Knowledge. Thumb up & Subscribed! 👍👍👍👍👍
@rawleystanhope3251
@rawleystanhope3251 Рік тому
I love this channel so much. Thank you for blowing my mind, yet again
@wifi404
@wifi404 Рік тому
Excellent video, I truly appreciate your hard work!!! 🙂
@danny117hd
@danny117hd Рік тому
Wow this is amazing. I might watch this one several times today.
@usefulelectronics
@usefulelectronics Рік тому
Great work. I have already started using ChatGBT to help me get ideas on how to write code for specific functions. I don't think that AI is a threat to anybody. I think about it as a helper tool that wee need to make use of it !
@DutchStar
@DutchStar Рік тому
AI is an obvious threat as it has no morals or integrity and any reason to have it. It has no reward system to do the “right thing”. Simple questions like how to save the world could be interpreted to kill all lifeforms to save the ball of rock.
@TheUnofficialMaker
@TheUnofficialMaker Рік тому
thanks for an amazing look at chatGPT and how to use it.
@TYGAMatt
@TYGAMatt Рік тому
Just gave it a shot. Wow. That's clever stuff
@jimpowell9205
@jimpowell9205 Рік тому
This is the ‘combo’, I’ve been looking for! I’ve done PLC programming, but I just love the Arduino capabilities. Yet, the de-bugging is a huge time killer. This is the way around that problem ! Can’t wait to try it. Of course, being 74, doesn’t make it easier…….
@TheUnofficialMaker
@TheUnofficialMaker Рік тому
have you tried any plc code from it? great idea.
@jimpowell9205
@jimpowell9205 Рік тому
@@TheUnofficialMaker no, not yet. However, it should work as well….
@3rd_Millennium_Engineering
@3rd_Millennium_Engineering Рік тому
74??? Hey, congrats. I thought I was old at 65. But hey, we're still at it, right?
@williamjohnson1657
@williamjohnson1657 Рік тому
Wait until you are 81 before you complain. :-) You can teach old dogs after all.
@keith726able
@keith726able Рік тому
I'm 72, still having fun with Arduino. Sure beats assembling TTL chips on a board! This AI is beyond believable!! Writing code from a suggestion!
@johnpipe362
@johnpipe362 Рік тому
This is fascinating. Thank you for sharing.
@JustAThought01
@JustAThought01 Рік тому
Excellent summary on ChatGPT.
@laurentbristiel
@laurentbristiel Рік тому
Excellent video! Thanks for the great work 👍👍
@3rd_Millennium_Engineering
@3rd_Millennium_Engineering Рік тому
Thanks again, Bill. Great Vid!
@JasonDurrett
@JasonDurrett Рік тому
This is amazing, thank you sir. Great video as always
@DrakerDG
@DrakerDG Рік тому
Perfect as always! Thanks a lot!
@techtinkerin
@techtinkerin Рік тому
I had a mate ask gpt to make a GPS Speedo with 7 segment display and I was quite impressed because it did it almost exactly like I'd done it myself. I suppose it's just sheer logic but still impressive 😎👍
@jk-video2716
@jk-video2716 Рік тому
Great video and timely subject!
@raymondmichael4987
@raymondmichael4987 Рік тому
I really enjoyed this one, thanks buddy ❤
@fjdelahoz
@fjdelahoz Рік тому
Great video Bill. Congratulations. Well done
@lucianbetke
@lucianbetke Рік тому
I'm sitting here and I can't believe it. If I dream a little more about what I just saw, soon you won't have to be able to program anymore. The joy is infinitely great, because then there is still more time left to realize dreams. (I hope the translator didn't make any mistakes).
@donaldkormos5529
@donaldkormos5529 Рік тому
Absolutely fascinating Bill ...
@vediam
@vediam 4 місяці тому
Çok teşekkür ederim! Harika içerikler hazırlıyorsunuz ❤
@manmathanparisanakkat4793
@manmathanparisanakkat4793 Рік тому
Thank you for an excellent video!
@TheSlyMouse
@TheSlyMouse Рік тому
I have heard people writing malicious code with this but you can also use it to analyze for malicious code. Or even explain code you paste in. It is a great tool if you know enough to spot the mistakes
@anurasenarathna1703
@anurasenarathna1703 Рік тому
A well researched video, as always.
@norfolkflyingboyz2404
@norfolkflyingboyz2404 Рік тому
Amazing, your can’t it gets better and better. Yeah just a pleasure to listen to. Thank you so much
@Ilkor1
@Ilkor1 Рік тому
I love you Mr. DroneBot :) So much fun, and so educational, thank you thank you thank you.
@cirdiam1800
@cirdiam1800 Рік тому
We’ll explained - nice demo. Thanks.
@Santee2013
@Santee2013 Рік тому
Thanks for the video!
@MarcelHuguenin
@MarcelHuguenin Рік тому
Thanks for your very clear explanation Bill. I created my chatgpt first chat while listening to you. Now I will start using it for coding!
@MrBobWareham
@MrBobWareham Рік тому
Thanks, Bill, very interesting subject it sounds like it could help with coding for me
@techie-knowledge184
@techie-knowledge184 Рік тому
Amazing work thank you very much
@hamradio3716
@hamradio3716 Рік тому
Excellent. Very impressive and good lesson plan ❤
@TheNaboen
@TheNaboen Рік тому
Mindblowing!
@konsamtambradhwaja3870
@konsamtambradhwaja3870 Рік тому
Thank you so much Sir. It's a very useful and amazing video.✍🙏
@henkoegema6390
@henkoegema6390 Рік тому
Well presented. 👍
@koaasst
@koaasst Рік тому
that ai helped me creat an app for my phone from scratch. im impressed, just glad it isnt as sophisticated as people think. it falls flat on too much, overload it like a child asking 100 questions, and it gets lost in continuity.
@claudiomarcelomaruca3028
@claudiomarcelomaruca3028 10 місяців тому
Excelent.Thank you regards blessings
@cebas42
@cebas42 Рік тому
Great content! Thanks
@abdulmajeed098
@abdulmajeed098 Рік тому
Your video was fantastic! Keep ahead of the technology with the "Ultimate Gpt Toolbar" Chrome extension, featuring voice control for GPT, the option to export to Word and PDF, and over 200 prompts. It's already a success, receiving 10,000 downloads in one day.
@qzorn4440
@qzorn4440 Рік тому
Soo interesting and I love the esp32 because of the cheap Bluetooth. 🥳 I just ordered the power-house Orange Pi-5. Would you please make one of your cool videos on it? 😎 Thank you. Another thing I like about this ChatGPT is it is being tested in creating logical PLC industrial factory code for Siemens S7-300 for one example to run motors and switches, etc. and there are articles such as: 2012, ByteDance, TikTokers getting huge followings by blowing people’s minds about A.I. and ChatGPT
@leonmusk1040
@leonmusk1040 Рік тому
Thanks for more awesome tubes cheers Bill
@mugishadavid5938
@mugishadavid5938 Рік тому
Thank you for these useful insights on chatGPT. I didn't know it exists.
@motionsick
@motionsick Рік тому
i don't know how to code but i can copy and merge code a tweak it to make stuff. I was so excited when this came out i can make code so much easier its like the best tutor of all time. I can make code for my simple projects in hours where it would takes me days before. for example I made a stepper motor hand controller that uses a incremental encoder to control step and direction output single to a stepper drive. it has a reverse switch and adjustable acceleration.
@jeyachandransrini30
@jeyachandransrini30 Рік тому
You made my day sir. Have a pleasant time.
@ThisWorks4Me
@ThisWorks4Me Рік тому
Great Video. I like to see how it does with with ESP32's and MQTT.
@billmckillip1561
@billmckillip1561 Рік тому
Great video, as usual!
@alanmonday9981
@alanmonday9981 11 місяців тому
I love this feature of ChatGPT and stumbled on in quite by accident. I was chatting with Chat, and he offered a code snip. Wow! You can do that?? I'm really liking CircuitPython for this. So compact.
@Ducerobot
@Ducerobot Рік тому
Cool I've been hearing a lot about this 😁👍
@jimbooth2010
@jimbooth2010 Рік тому
Great work!!!!!
@dipanjanmandal1771
@dipanjanmandal1771 Рік тому
Magnificent video sir
@fixitladynow
@fixitladynow Рік тому
Superb! You are a superstar.
@arvinmistry9744
@arvinmistry9744 Рік тому
It is great learning presentation, if background screen and font size is changed than we can see properly Thank you.
@kylereed3577
@kylereed3577 Рік тому
Thanks for another great video Bill. Once again I am inspired.
@Dronebotworkshop
@Dronebotworkshop Рік тому
Thank you Kyle, glad that I could inspire you!
@jimstamper7062
@jimstamper7062 Рік тому
another fantastic video!!
@bradleighboshoff4016
@bradleighboshoff4016 Рік тому
Hello Bill , thank you for all your work . Simple question , how would we know the ChatGPT is actually creating new code , maybe it just has thousands of examples and just has a database , or because the system is not linked to the internet , we are saying it cannot access a DB
@norbertmichael7158
@norbertmichael7158 Рік тому
Great videos as always
@Adam-vj7dn
@Adam-vj7dn Рік тому
The content just keeps coming
@karljay7473
@karljay7473 Рік тому
I just bought some new things (ESP32, Hall Effect sensors, AD620 Amplifier and a few other toys) I'm going to be using ChatGPT for this. It looks like this is going to be a great help. Sometimes it's such a climb to learn a few new things. Looks like it's 100X better than Reddit :D
@jblo6822
@jblo6822 Рік тому
I wish I had the knowledge to build a 4 or 6 digit logic circuit to use to open a garage door opener. If you could someday make a video about this, I would really appreciate it. Thanks. Jerry
@SaucemanSauceman
@SaucemanSauceman Рік тому
Very interesting!
Arduino GIGA WiFi - First Look
1:01:54
DroneBot Workshop
Переглядів 179 тис.
ESP32 Guide 2024 | Choosing and Using an ESP32 Board
41:06
DroneBot Workshop
Переглядів 202 тис.
Артем Пивоваров х Klavdia Petrivna - Барабан
03:16
Artem Pivovarov
Переглядів 5 млн
IR Remotes & Microcontrollers - Arduino & ESP32
1:31:50
DroneBot Workshop
Переглядів 141 тис.
I Made 200 Python Projects...Here Are My 5 FAVORITES
11:23
Tech With Tim
Переглядів 107 тис.
Build ENTIRE Frontends With ONE Prompt - OpenUI Tutorial
8:59
Matthew Berman
Переглядів 46 тис.
Driving DC Motors with Microcontrollers
1:04:32
DroneBot Workshop
Переглядів 568 тис.
Introduction to ESP32 - Getting Started
47:57
DroneBot Workshop
Переглядів 1,5 млн
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Переглядів 261 тис.
Build a Developer's Linux Workstation - Complete Guide
1:28:11
DroneBot Workshop
Переглядів 437 тис.
5 IMPRESSIVE Python Resume Projects (You Can Finish in A Weekend)
12:20
Internet Made Coder
Переглядів 174 тис.
YOU can Learn the ESP32 in 15 Minutes:  Hello World!
22:52
Dave's Garage
Переглядів 277 тис.
Наушники для улучшения вашего слуха
0:17
WB КОПАТЕЛЬ 2.0
Переглядів 12 млн
Якщо сподобалось, підпишись, буде ще🫶
0:27
На нашу собаку напали клещи
1:00
RICARDO
Переглядів 2,1 млн