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

Поділитися
Вставка
  • Опубліковано 29 тра 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 Рік тому +105

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

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

  • @simbasimba2029
    @simbasimba2029 Рік тому +14

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

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

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

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

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

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

  • @asaprocky8195
    @asaprocky8195 Рік тому

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

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

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

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

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

  • @geef0813
    @geef0813 Рік тому +1

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

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

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

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

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

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

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

  • @joshuaoduroadu5376
    @joshuaoduroadu5376 Рік тому

    Splendid tutorial! Thanks Bill for sharing

  • @zyghom
    @zyghom Рік тому

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

  • @net6147
    @net6147 Рік тому +1

    Excellent presentation Bill, always very thorough and easy to understand

  • @uajoku
    @uajoku Рік тому

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

  • @rickh6963
    @rickh6963 Рік тому +1

    One of your best videos yet! Good job Bill.

  • @wifi404
    @wifi404 Рік тому +1

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

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

  • @jamesdemaio5234
    @jamesdemaio5234 Рік тому +1

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

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

  • @daichimax
    @daichimax Рік тому

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

  • @robertparenton7470
    @robertparenton7470 Рік тому +2

    Thank You! Excellent video!

  • @JustAThought01
    @JustAThought01 Рік тому +1

    Excellent summary on ChatGPT.

  • @jimmyzhao2673
    @jimmyzhao2673 Рік тому +1

    Amazing that it adds comments to the code as well !

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

  • @rawleystanhope3251
    @rawleystanhope3251 Рік тому

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

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

  • @fjdelahoz
    @fjdelahoz Рік тому

    Great video Bill. Congratulations. Well done

  • @jk-video2716
    @jk-video2716 Рік тому

    Great video and timely subject!

  • @RCTurbine
    @RCTurbine Рік тому

    Thank you for sharing! Got to try this out.

  • @danny117hd
    @danny117hd Рік тому

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

  • @TYGAMatt
    @TYGAMatt Рік тому

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

  • @fggolding
    @fggolding 8 місяців тому

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

  • @donaldkormos5529
    @donaldkormos5529 Рік тому +1

    Absolutely fascinating Bill ...

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

  • @JasonDurrett
    @JasonDurrett Рік тому

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

  • @hoangleminh2424
    @hoangleminh2424 Рік тому

    Thank you Dronebot Workshop.

  • @norfolkflyingboyz2404
    @norfolkflyingboyz2404 Рік тому

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

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

  • @raymondmichael4987
    @raymondmichael4987 Рік тому

    I really enjoyed this one, thanks buddy ❤

  • @DrakerDG
    @DrakerDG Рік тому

    Perfect as always! Thanks a lot!

  • @TheUnofficialMaker
    @TheUnofficialMaker Рік тому

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

  • @manmathanparisanakkat4793
    @manmathanparisanakkat4793 Рік тому +1

    Thank you for an excellent video!

  • @hamradio3716
    @hamradio3716 Рік тому

    Excellent. Very impressive and good lesson plan ❤

  • @cirdiam1800
    @cirdiam1800 Рік тому

    We’ll explained - nice demo. Thanks.

  • @johnpipe362
    @johnpipe362 Рік тому

    This is fascinating. Thank you for sharing.

  • @MrBobWareham
    @MrBobWareham Рік тому

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

  • @maurice0101
    @maurice0101 8 місяців тому

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

  • @3rd_Millennium_Engineering
    @3rd_Millennium_Engineering Рік тому

    Thanks again, Bill. Great Vid!

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

  • @mugishadavid5938
    @mugishadavid5938 Рік тому +1

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

  • @konsamtambradhwaja3870
    @konsamtambradhwaja3870 Рік тому

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

  • @techie-knowledge184
    @techie-knowledge184 Рік тому

    Amazing work thank you very much

  • @anurasenarathna1703
    @anurasenarathna1703 Рік тому

    A well researched video, as always.

  • @leonmusk1040
    @leonmusk1040 Рік тому

    Thanks for more awesome tubes cheers Bill

  • @Santee2013
    @Santee2013 Рік тому +1

    Thanks for the video!

  • @kylereed3577
    @kylereed3577 Рік тому

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

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

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

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

  • @Ducerobot
    @Ducerobot Рік тому +1

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

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

  • @jeyachandransrini30
    @jeyachandransrini30 Рік тому

    You made my day sir. Have a pleasant time.

  • @vediam
    @vediam 5 місяців тому

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

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

  • @cebas42
    @cebas42 Рік тому +1

    Great content! Thanks

  • @henkoegema6390
    @henkoegema6390 Рік тому +1

    Well presented. 👍

  • @chrisengland5523
    @chrisengland5523 Рік тому +1

    Another excellent video from Bill. In some ways I'm impressed by ChatGPT, but I'm also sceptical as to whether it could come up with anything useful if asked to write more complex code. (I realise that history is full of folk saying "that will never work" about things that nowadays are part of everyday life, so I'm being careful here.)
    In the last Arduino example (at 30.00), the button needs to be pressed for 2 seconds to switch from Celsius to Fahrenheit and back. Bill explains why and it's clear what's happening. So, how do we get ChatGPT to fix the problem? Simply reducing the 2 second delay time at the end of the main loop to something like 20 ms., fixes the switchover, but messes up the sensor. To do it properly requires a complete restructuring of the software to separate the display with its button from the sensor. As Bill points out, there are a number of ways to code it, but the actual task of even explaining to ChatGPT how you want it done is not trivial. As an experienced coder, I could probably write the code quicker than I could explain how to do it.
    So that leads me to several questions:
    1. Is ChatGPT clever enough to get it right if told: "Modify the code to make the button respond in 20 ms."?
    2. How would you get ChatGPT to code similar problems using sensors it knows nothing about?
    3. Will ChatGPT eventually become better at coding than experienced humans and if so, when?
    4. How do you debug code written by ChatGPT if it's so clever nobody can understand the code?

  • @claudiomarcelomaruca3028
    @claudiomarcelomaruca3028 10 місяців тому

    Excelent.Thank you regards blessings

  • @billmckillip1561
    @billmckillip1561 Рік тому

    Great video, as usual!

  • @qzorn4440
    @qzorn4440 Рік тому +2

    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

  • @dipanjanmandal1771
    @dipanjanmandal1771 Рік тому +1

    Magnificent video sir

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

  • @fixitladynow
    @fixitladynow Рік тому +1

    Superb! You are a superstar.

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

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

  • @ThisWorks4Me
    @ThisWorks4Me Рік тому

    Great Video. I like to see how it does with with ESP32's and MQTT.

  • @jimstamper7062
    @jimstamper7062 Рік тому

    another fantastic video!!

  • @karl0gifford
    @karl0gifford Рік тому

    Thanks! very education video

  • @norbertmichael7158
    @norbertmichael7158 Рік тому

    Great videos as always

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

  • @jimbooth2010
    @jimbooth2010 Рік тому

    Great work!!!!!

  • @SaucemanSauceman
    @SaucemanSauceman Рік тому +1

    Very interesting!

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

  • @TheNaboen
    @TheNaboen Рік тому

    Mindblowing!