ChatGPT absolutely DOMINATES Arduino programming

233,015
0
Published 2022-12-10
Check out my webpage and github, I also have some other cool projects and you can contact me from there!

hanqaqa.com/
github.com/Hanqaqa

=======================

Chapters:
0:00 Intro
0:30 Blinky Example
2:05 Potentiometer Led
4:27 Servo Motor
6:03 OLED Screen
8:03 Accelerometer and OLED
13:00 Buzzer songs
17:15 Recapitulating

All Comments (21)
  • it gives you code that it is very confident about, which often doesnt work, and sometimes it just stops in mid response. a useful tool but it has to be watched very closely- like a junior employee who thinks too much of his abilities.
  • @JoelCook
    One key benefit I think your missing off chat gpt is the ability to have it refine things. So when you are missing a library just say something like "it looks like the library for... was not included" and 9 times out of 10 it will either give you the snippet of code or include the library. Involving chat get in the troubleshooting is half the beauty of it. It knows the exact context of your query so it's usually faster and getting you the correct answer then a Google search... unless it a decides to spout a bunch of nonsense. In which case it is usually still faster to guide it to the correct answer out just use the try again button to have it try something slightly different.
  • @yyyy-uv3po
    The most impressive thing in this video is how powerful and convenient these Arduino libraries are!
  • @DEtchells
    Great video! As a hobbyist, having an “assistant” to deal with all the minutiae of connecting to a new sensor or display, or to just take the tedium out of making a UI frees up so much of my time and brainpower for actually making cool stuff instead of figuring out how to cajole the system into doing what I want. In that context, I don’t feel “obsoleted”, but rather enabled; it’s just a higher level of programming; the programming language has become conversational, iterative English. This is gonna be so great! 👍😃 I bet it would also be very helpful in debugging programs too: Give it the program, explain the problem, and ask it for the solution. That’d be interesting to see a video on as well. (Next step, use the speech-to-text function on your computer to feed it input. I can see a day (very soon) when we can work with it all the way into even hardware debugging, probing a circuit and telling it what we find, so it can suggest the next thing to test in the debug tree :-)
  • @TraderRoWi
    There is a limit for the length of the response. But you can type continue and it will finish the code. Also when you got the ADC DAC overflow, you could explain your issue and it will correct most likely. You can also paste your code and ask for help. In the video you asked for Arduino code, my guess is it would help if you specify the model.
  • @JohnDuthie
    This is amazing! The skill of knowing what to ask is also very important tho I think I'd have trouble describing what I need.
  • @RufusVidS
    The successive refinement is really something. If you generated Blinky, for instance, you can follow it up with: "Change the LED to pin 0" And it knows the prior conversation and improves on the result.
  • @gregortidholm
    Very nicely done video. Straight to the point and the overlay of the code and execution were great to understand what happened! Thank you so much for sharing this
  • @kornydad14
    Cool video! From what I have read, the AI response is limited to 4000 "tokens" which are sort of like words, so asking it to play a song it will try to code the whole song and freeze once it hits its limit. If you ask it to play 10 seconds of a song instead, it will probably produce the code just fine. Very cool that you tried this and it worked! I struggle with Arduino code at times. Especially for the the seldom used modules that do not have a lot of examples online.
  • This is blowing my brain in half.. As someone that just needs to program servos and motors.. it's like talking directly to the machine..
  • @dearjulio
    Great video! Didnt know ChatGPT could do this as well 🤯
  • Wow! This has such huge potential! Especially to derive methods within a program and quickly test theories, which is very time consuming. I have written huge programs that are complex and even filled a mega2560 to the point I had to modify the boot to get that last 4k access, and size is a huge factor so finding compact code is paramount. Looking forward to trying this out! Thanks for the preview!
  • @australianoz
    My God, i just tried it to generate a blink code on and STM32...and it work wonders... i can see how this will speed my coding in the very near future. Thanx Hanqaqa for this.
  • @DrFiero
    I was playing with this last night, and even telling GPT to integrate an Arduino with an automotive transmission (!!) it got it largely right! If nothing, it saved me hours of work by giving me a framework to start from, and I can just tweak it instead of starting from scratch. Boy am I glad I'm retiring shortly and don't have to worry so much about being put out of work by this.
  • @Derek_Read
    I'm blown away by this. I tried this prompt "write a program for arduino for a calculator with 16 buttons and an LCD display" and it created the first part of the program to the point where number buttons basically function with the LCD (and that's it). I prompted it again: "please add buttons for addition, subtraction, division and multiplication" and it tried but came up short (adding some code that multiplies one number by 10. I'd say at least half of it is written though. At this point it seems to be a great shortcut to come up with snippets or examples for specific functionality that I might then include in a larger program. Very cool.
  • @Haldi4803
    The only Thing that absolutely dominates is your talent in writing YouTube titles!
  • @ZukunftBilden
    If it stops mid response you can tell it to kep going. Or go on. Or keep writing. One of those seem to work. Sometimes also pasting in the last few lines of code/text it wrote will help too and it will complete it.
  • @lordkylo
    I'm glad I found a community of people already doing this here on this video because I did this project 3 weeks ago where I had Chad GPT create a website with HTML and make buttons that controlled in Arduino servo motor through a serial connection. I then put the website into an augmented reality environment and now you can use AR to control a microcontroller in the real world. It's literally building the bridge between digital and physical.