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

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 พ.ค. 2024
  • 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
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 300

  • @Dronebotworkshop
    @Dronebotworkshop  4 หลายเดือนก่อน

    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 ปีที่แล้ว +104

    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 ปีที่แล้ว +13

    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!!

  • @sinjhguddu4974
    @sinjhguddu4974 ปีที่แล้ว +1

    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.

  • @simbasimba2029
    @simbasimba2029 ปีที่แล้ว +13

    I freaking love you, man! You always make videos about stuff I'm interested in. Can't wait to watch this later today.

  • @Trust_me_I_am_an_Engineer
    @Trust_me_I_am_an_Engineer ปีที่แล้ว +28

    Thank you for a very good and very useful video, Bill ! You love teaching and it shows.

  • @arcinandsparkin
    @arcinandsparkin ปีที่แล้ว +13

    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!

  • @willsgrandad
    @willsgrandad ปีที่แล้ว +1

    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.

  • @NoReason2Liv
    @NoReason2Liv ปีที่แล้ว +14

    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 ปีที่แล้ว +1

      Did ChatGPT generate this comment?

  • @JeremyDismukes225
    @JeremyDismukes225 3 หลายเดือนก่อน

    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

  • @JonathanDeWitt1988
    @JonathanDeWitt1988 ปีที่แล้ว

    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.

  • @johnglielmi6428
    @johnglielmi6428 ปีที่แล้ว +6

    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).

  • @asaprocky8195
    @asaprocky8195 ปีที่แล้ว

    Fascinating. Kudos to you for having quickly jumped on to figure out how to use, and explain it. Great job! Thank you!

  • @1_HighDuke
    @1_HighDuke ปีที่แล้ว +4

    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 ปีที่แล้ว +1

    This was the first thing I thought about when I first heard about chatgpt. Combining it with arduino! Great video.

  • @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

  • @jimmyzhao2673
    @jimmyzhao2673 ปีที่แล้ว +1

    Amazing that it adds comments to the code as well !

  • @brianmarshall7214
    @brianmarshall7214 ปีที่แล้ว +8

    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 ปีที่แล้ว +3

      hey Brian same 73 years here in Tokyo, Same thanks to Bill

    • @newsboyaudio
      @newsboyaudio ปีที่แล้ว

      "As a...." a tell tale sign of ChatGPT comments.

  • @usefulelectronics
    @usefulelectronics ปีที่แล้ว +5

    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.

  • @zyghom
    @zyghom ปีที่แล้ว

    this is probably 1st video here that is ON TIME rather than "1 year later explanation" ;-) very good progress - thank you

  • @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.

  • @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.

  • @rickh6963
    @rickh6963 ปีที่แล้ว +1

    One of your best videos yet! Good job Bill.

  • @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.

  • @naboulsikhalid7763
    @naboulsikhalid7763 ปีที่แล้ว +1

    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👍

  • @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.👍🏻

  • @horsthotzenplotz3321
    @horsthotzenplotz3321 ปีที่แล้ว +2

    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. 🥰

  • @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).

  • @joshuaoduroadu5376
    @joshuaoduroadu5376 ปีที่แล้ว

    Splendid tutorial! Thanks Bill for sharing

  • @net6147
    @net6147 ปีที่แล้ว +1

    Excellent presentation Bill, always very thorough and easy to understand

  • @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.

  • @ROBO_Roundup
    @ROBO_Roundup ปีที่แล้ว +1

    Chat gpt really helps mankind a lot, but one doesn't know whether to be worried or happy that it has progressed

  • @robertparenton7470
    @robertparenton7470 ปีที่แล้ว +2

    Thank You! Excellent video!

  • @4STEVEJOY34
    @4STEVEJOY34 ปีที่แล้ว

    Very timely, I was planning to dive into ChatGPT in a couple weeks.

  • @keanorobotics9219
    @keanorobotics9219 ปีที่แล้ว

    Incredible content as always. Informative, educational, and clear explanations. That's what I love about this channel

  • @daichimax
    @daichimax ปีที่แล้ว

    You are a Great Pedagogue! Thank You for Sharing Your Knowledge. Thumb up & Subscribed! 👍👍👍👍👍

  • @uajoku
    @uajoku ปีที่แล้ว

    Brilliant video. Clearly explain ChatGPT and its application in coding Microcontroller Boards.

  • @wifi404
    @wifi404 ปีที่แล้ว +1

    Excellent video, I truly appreciate your hard work!!! 🙂

  • @rawleystanhope3251
    @rawleystanhope3251 ปีที่แล้ว

    I love this channel so much. Thank you for blowing my mind, yet again

  • @jimpowell9205
    @jimpowell9205 ปีที่แล้ว +9

    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 ปีที่แล้ว +1

      Wait until you are 81 before you complain. :-) You can teach old dogs after all.

    • @keith726able
      @keith726able ปีที่แล้ว +1

      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!

  • @JustAThought01
    @JustAThought01 ปีที่แล้ว +1

    Excellent summary on ChatGPT.

  • @jamesdemaio5234
    @jamesdemaio5234 ปีที่แล้ว +1

    Excellent overview of ChatGPT. Thank you for a very interesting demo of this new technology. Great job!!

  • @fjdelahoz
    @fjdelahoz ปีที่แล้ว

    Great video Bill. Congratulations. Well done

  • @maurice0101
    @maurice0101 8 หลายเดือนก่อน

    Bill, you are a natural born teacher. Fantastic!!

  • @Ilkor1
    @Ilkor1 ปีที่แล้ว

    I love you Mr. DroneBot :) So much fun, and so educational, thank you thank you thank you.

  • @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....

  • @DrakerDG
    @DrakerDG ปีที่แล้ว

    Perfect as always! Thanks a lot!

  • @hoangleminh2424
    @hoangleminh2424 ปีที่แล้ว

    Thank you Dronebot Workshop.

  • @jk-video2716
    @jk-video2716 ปีที่แล้ว

    Great video and timely subject!

  • @RCTurbine
    @RCTurbine ปีที่แล้ว

    Thank you for sharing! Got to try this out.

  • @laurentbristiel
    @laurentbristiel ปีที่แล้ว

    Excellent video! Thanks for the great work 👍👍

  • @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

  • @doncardinal9100
    @doncardinal9100 ปีที่แล้ว +5

    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!

  • @donaldkormos5529
    @donaldkormos5529 ปีที่แล้ว +1

    Absolutely fascinating Bill ...

  • @danny117hd
    @danny117hd ปีที่แล้ว

    Wow this is amazing. I might watch this one several times today.

  • @fggolding
    @fggolding 8 หลายเดือนก่อน

    Thank you for this video. IT GIVE US MORE OPTION TO CODE ARDUINO AND ESP32. EXCELENT WORK

  • @raymondmichael4987
    @raymondmichael4987 ปีที่แล้ว

    I really enjoyed this one, thanks buddy ❤

  • @alanmonday9981
    @alanmonday9981 ปีที่แล้ว

    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.

  • @3rd_Millennium_Engineering
    @3rd_Millennium_Engineering ปีที่แล้ว

    Thanks again, Bill. Great Vid!

  • @JasonDurrett
    @JasonDurrett ปีที่แล้ว

    This is amazing, thank you sir. Great video as always

  • @TYGAMatt
    @TYGAMatt ปีที่แล้ว

    Just gave it a shot. Wow. That's clever stuff

  • @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

  • @johnpipe362
    @johnpipe362 ปีที่แล้ว

    This is fascinating. Thank you for sharing.

  • @anurasenarathna1703
    @anurasenarathna1703 ปีที่แล้ว

    A well researched video, as always.

  • @manmathanparisanakkat4793
    @manmathanparisanakkat4793 ปีที่แล้ว +1

    Thank you for an excellent video!

  • @cirdiam1800
    @cirdiam1800 ปีที่แล้ว

    We’ll explained - nice demo. Thanks.

  • @techie-knowledge184
    @techie-knowledge184 ปีที่แล้ว

    Amazing work thank you very much

  • @jeyachandransrini30
    @jeyachandransrini30 ปีที่แล้ว

    You made my day sir. Have a pleasant time.

  • @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

  • @hamradio3716
    @hamradio3716 ปีที่แล้ว

    Excellent. Very impressive and good lesson plan ❤

  • @soniclab-cnc
    @soniclab-cnc ปีที่แล้ว

    I have had pretty decent results with chatGPT. It made a few stupid errors but has proven to be very useful.

  • @norfolkflyingboyz2404
    @norfolkflyingboyz2404 ปีที่แล้ว

    Amazing, your can’t it gets better and better. Yeah just a pleasure to listen to. Thank you so much

  • @TheUnofficialMaker
    @TheUnofficialMaker ปีที่แล้ว

    thanks for an amazing look at chatGPT and how to use it.

  • @leonmusk1040
    @leonmusk1040 ปีที่แล้ว

    Thanks for more awesome tubes cheers Bill

  • @vediam
    @vediam 5 หลายเดือนก่อน

    Çok teşekkür ederim! Harika içerikler hazırlıyorsunuz ❤

  • @Santee2013
    @Santee2013 ปีที่แล้ว +1

    Thanks for the video!

  • @billmckillip1561
    @billmckillip1561 ปีที่แล้ว

    Great video, as usual!

  • @dipanjanmandal1771
    @dipanjanmandal1771 ปีที่แล้ว +1

    Magnificent video sir

  • @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 😎👍

  • @cebas42
    @cebas42 ปีที่แล้ว +1

    Great content! Thanks

  • @konsamtambradhwaja3870
    @konsamtambradhwaja3870 ปีที่แล้ว

    Thank you so much Sir. It's a very useful and amazing video.✍🙏

  • @mugishadavid5938
    @mugishadavid5938 ปีที่แล้ว +1

    Thank you for these useful insights on chatGPT. I didn't know it exists.

  • @henkoegema6390
    @henkoegema6390 ปีที่แล้ว +1

    Well presented. 👍

  • @MrBobWareham
    @MrBobWareham ปีที่แล้ว

    Thanks, Bill, very interesting subject it sounds like it could help with coding for me

  • @Ducerobot
    @Ducerobot ปีที่แล้ว +1

    Cool I've been hearing a lot about this 😁👍

  • @BlondieSL
    @BlondieSL ปีที่แล้ว +1

    If ya want to see something really cool, in the ChatGPT field, type the following:
    Write code to display the temperature and humidity readings from a DHT22 sensor on the serial monitor. Read the DHT22 every 2 seconds. Code for ESP32 WROOM and have it send readings over wireless using a data structure for values of temperature, humidity, channel number, date and time. Include the best libraries for all.
    The generated codes is interesting, although, I haven't tested it to see if it actually works.
    It's really fascinating!

  • @kylereed3577
    @kylereed3577 ปีที่แล้ว

    Thanks for another great video Bill. Once again I am inspired.

    • @Dronebotworkshop
      @Dronebotworkshop  ปีที่แล้ว +1

      Thank you Kyle, glad that I could inspire you!

  • @jimstamper7062
    @jimstamper7062 ปีที่แล้ว

    another fantastic video!!

  • @jimbooth2010
    @jimbooth2010 ปีที่แล้ว

    Great work!!!!!

  • @fixitladynow
    @fixitladynow ปีที่แล้ว +1

    Superb! You are a superstar.

  • @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.

  • @billgrabbe9992
    @billgrabbe9992 ปีที่แล้ว +1

    After interacting with chatGPT, I've found that it admits its lack of ability to discern the quality of the data it relies on. So, it leans toward the "appeal to the majority" kinds of logical fallacies.

  • @norbertmichael7158
    @norbertmichael7158 ปีที่แล้ว

    Great videos as always

  • @claudiomarcelomaruca3028
    @claudiomarcelomaruca3028 10 หลายเดือนก่อน

    Excelent.Thank you regards blessings

  • @TheNaboen
    @TheNaboen ปีที่แล้ว

    Mindblowing!

  • @johncrunk8038
    @johncrunk8038 ปีที่แล้ว

    I gave chatgpt a small problem in python that I worked on for a couple hours. Dang! It solved the problem in a minute. Glad I'm retired from programming.

  • @madcow3417
    @madcow3417 ปีที่แล้ว +3

    I had no real idea what ChatGPT was. This is far ahead of where I thought AI was. I'm curious if it can write more complicated code, like generating the code for a web browser or something. If I did that would it create a program that breaks it free from its shackles and allows it to roam the internet untethered, remaking the world as it sees fit?
    I for one welcome our new computer overlords.

    • @TheUnofficialMaker
      @TheUnofficialMaker ปีที่แล้ว +1

      someone made a website for jobs using chatGPT.

  • @Adam-vj7dn
    @Adam-vj7dn ปีที่แล้ว

    The content just keeps coming

  • @karl0gifford
    @karl0gifford ปีที่แล้ว

    Thanks! very education video

  • @SaucemanSauceman
    @SaucemanSauceman ปีที่แล้ว +1

    Very interesting!