ChatGPT instant C++ script for programming - Great for Arduino beginners!

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • ChatGPT proves to be a very powerful coding tool with impressive troubleshooting capabilities!
    Order custom PCBs from jlcpcb.com/DYE 5Pcs for as little as $2
    ChatGPT: openai.com/blog/chatgpt/
    TikStation: www.tikstation.com/
    Tools I recommend & use myself (some affiliate links)
    Soldering irons:
    MiniWare TS80P: amzn.to/33fyHfi
    Aixun T3A soldering station: s.click.aliexpress.com/e/_AV3r9u
    JBC CD-2BQF: www.welectron.com/JBC-CD-2BQF...
    Power supplies:
    Riden RD6018 60V 18A: amzn.to/3ta27Xb
    MiniWare MDP-XP: www.banggood.com/custlink/KD3...
    Oscilloscopes:
    MiniWare DS211: s.click.aliexpress.com/e/_AMPD9O
    Siglent SDS1202X-E: amzn.to/3JVGyjh
    Everything else:
    MiniWare MHP30 Reflow hot plate: amzn.to/3JS5Yhy
    Andonstar digital microscope: amzn.to/3G8F8zx
    FY6900 Signal Generator: s.click.aliexpress.com/e/_AsQDmw
    Hakko FG-100B-03 Thermometer: amzn.to/3zEfDDD
    Brymen BM257s multimeter: www.welectron.com/Brymen-BM25...
    GM328 Component tester: amzn.to/3JQPQgd
    Solder Sucker: amzn.to/3gNK5Wx
    Pro’sKit Desoldering station: s.click.aliexpress.com/e/_DEJ...
    0:00 Intro
    0:52 Ad
    1:23 Getting started with ChatGPT
    3:20 Uploading the code to an Uno
    4:51 Testing code 2
    6:04 ChatGPT does troubleshooting for me
    7:45 Testing code 3
    11:33 Results and conclusions
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    I have a whole drawer full of Arduino stuff. I tried to learn programming but it was so difficult. I am so glad for chatgpt and what it can do! Now I can finally build the projects I’ve always wanted to.

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

    This is awesome! As someone who truly doesn’t have the interest in learning coding, but wants to implement simple projects with SBCs this is wonderful news

    • @bcrumbs937
      @bcrumbs937 11 หลายเดือนก่อน

      You and me, both! I am beyond excited! 😁😂

  • @MitzpatrickFitzsimmons
    @MitzpatrickFitzsimmons ปีที่แล้ว +7

    I have been messing with this for a few weeks now on several microcontrollers (Arduinos, Esp8266 etc) and it is PHENOMINAL

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

    Well, i've been a TH-cam addict since TH-cam was created. This particular video is the most useful and profound bit of information I've come across yet. Thank you for posting.

  • @p_mouse8676
    @p_mouse8676 ปีที่แล้ว +11

    I see it on a very different way. If you use it well, nobody needs to be replaced.
    For more complex circuits and programming AI will run into certain problems, but probably will get about 70-90% done just fine.
    So I just see it as a massive time saver, while I can focus on the more complicated and essential details, let the AI run the bulk and boring part of a project.

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

      Exactly who set a computer to control Your economy without being able to interfere or correct it if it's wrong.

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

      Yes, like boilerplate code and stuff. I wouldn't trust it with anything else. And I suppose it's fine for people who try simple things and maybe fail several times and want a solution to see where they went wrong. If I'd use it at all, I'd prefer a different faster interface, not the 'conversation' style, kinda like vscode emmet, though this might be suited for beginners and kids who wanna play with arduinos, better.

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

      Exactly what I was thinking, I could make it set up the basics and fix the errors or do the complex part myself.

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

      I remember seeing this argument back in the 80s when robots were introduced in car plants. Eventually everyone got replaced

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

    Speechless! I have been trying to get my head around the coding rabbit hole for 12 months. WTF….. where were you 12 months ago!!! Awesome video

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

    That's incredible ... Truly ... Thanks for the concise demo!

  • @Suzuki_Hiakura
    @Suzuki_Hiakura 9 หลายเดือนก่อน

    just watched this a few hours ago... asked it to write a script for Unity 3d for a procedural day-night cycle skybox and it delivered... Only found one tutorial prior and it was extremely complex, but much closer to what I would be looking for. By no means is it perfect, and some of the code it generates is rather bugged, broken (some MS-DOS prompts returned unset values that should have been set), or unoptimized. Overall am impressed though as I am more or less able to learn about coding and how it might interact on a more basic level.

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

    Very simple examples of very common things exist on internet everywhere which it derives the code from. A way more complex code that i made on it by very detailed description to make code to balancing unit of an axle and where the imbalancing was and how much material to remove to get it balanced. It did it but at the borderline what it could make and very impressive but I really had to tweak many things to get there but its sill possible to tweak. It also made little different code every time which was both really annoying but sometimes it also included things that I hadn't really thought about to implement like calibrating of sensors and stuff. And for complex code for something else then just simple electronics, like this balancing thing, I noticed that it at the very first code didn't "realized" that the axle had to spin to be able to detect the imbalancing. After I told it that it apologized and completely remade the code to do so, and after that it always did for an rotating axle, like what I said was like a seed for the AI for this. Kinda cool to see. I have had hour long "discussions" with it test different thing in the code.

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

    Thanks for the Tikstation board show off. I hope you can use it in your videos frequently

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

    A very interesting tool indeed. It even knows PICAXE BASIC, which is a bit obscure outside the UK school system. It was able to write me a fairly complex program with two inputs and eleven outputs, internal pullups, interrupts and timing, but it took several iterations to get it right. It made a few mistakes, and had I not known the language already, they would not have been obvious; the program that it wrote would have simply failed to compile.
    If you ask it to write a program of any significant length, it won't be able to display the entire code at once due to message length limits imposed by OpenAI. You can get around this, however, by asking it to display the code in sections. For example, say it starts to display the program and cuts off just after the fifth "if" statement. Just type the following to make it pick up where it left off: "Starting at the 5th "if" statement, display the remainder of the program." Works like a charm!

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

    Spectacular presentation. Thank you for the presentation! 👍👍

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

    i am blown away from the code 2, i didnt think it would get around that

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

    As someone who just cannot get their head around code no matter how hard I try, this could be quite useful. I have so many ideas for things that would benefit from using Arduino's, but just cannot figure out the necessary code, so they just sit in notepads never to be built. This gives someone like me who just can't get their head into code a chance to realise many different ideas and projects.
    With all that said, this is scary af. I really hope they trained it to ignore malicious requests other we could all be well and truly eff'ed

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

      I'm glad you found the information useful. I grew up in an Era when coding was not in the school curriculum like it is today. Learning these talents later in life is a challenge. Hopefully the A.I can help make your ideas into reality 😊

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

      @@Schematix What is that breadboard of your? Cannot find it anywhere. I'd appreciate info a lot. Thx.

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

      And me. Wow even this was and will be useful to me someone with no knowledge of coding.

    • @bcrumbs937
      @bcrumbs937 11 หลายเดือนก่อน

      @@Schematix Exactly! It was only beginning being offered at private colleges when I was there. I had no idea what it was and got left in the dust. lol So, this is like a dream come true. 😂

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

    How cool is that???
    I just played 1-2 days ago with a similar thought to let chatGPT create arduino scripts.
    Thanks for making my research 🙃

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

    You can also ask it to explain how any code works. It's like having a personal tutorial.

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

    Amazing! Great job

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

    Man you make some great videos!!!! I have a quick question. One of your videos I can not find anymore. It's the one where you made the adjustable power supply with MOT from an earlier video. Did that get removed? Next to the kweld build, this is my favorite video.👍👍👍👍👍👍👍

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

    thanks mate, you made me check out more than I could think of.

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

    As a C++ developer, good luck doing anything beyond the basics. It spits out previously designed code. Try some EPROM memory access stuff, or bit twiddling ;). Still kind of neat.

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

    Excellent, scarry, but excellent presentation.

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

    Yes it does the grunt work. Fantastic. But the major part of developing as more complex application is determining what the requirements are. How it is supposed to work. And dealing with edge cases. It is interesting enough that I will be giving it a try. I'm a hardware person and not a coder.
    Edit: Unfortunately it has no more capacity at this time. Hopefully I can get on it at some point.

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

    This is really cool and kinda saves my ass as i suck at coding and this provides the base code that i can actually work with. very interested to test it out further and see what it can do.

  • @5Perf65mm
    @5Perf65mm ปีที่แล้ว

    Excellent video

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

    AI only does the busy work. For loops, easy-to-describe functions, formatting, translating code between language, etc. Anything that doesn't require much thinking. If it's something you're excited about doing though, or having a hard time figuring it out, the AI will try, but it will get it wrong pretty much every single time.

  • @alfa.industries254
    @alfa.industries254 ปีที่แล้ว

    It's amazing 👏 I love it 😀

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

    Useful for the Lay Cee thinkers.

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

    Time to dig out my box of Arduino stuff again!

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

    I am confused! I thought you got your PCBs from the ground near a fence. LOL
    Last week I asked ChatGPT to give me a program with multi header and code files and it did. Each connected part was in a separate file. Like the LCD, Buttons with a menu system for the LCD.

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

    I got several C++ programs that the Chat GPT wrote but I don't know how to run them on the my old Windows XP computer. How do you run them. I have Notepad ++ and Code Lobster.

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

    wow, thank you.

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

    It'd be interesting to see if it can coach someone from absolute zero (never used Arduino IDE, doesn't know what a breadboard is) to put together a working circuit and script.

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

      There are so many courses on ytube that do just that, they will even tell you what a wire is

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

    I hope it will apologize before creating a sentient being.

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

    Serious question please:
    Is there any project that you can code in C++ that I cannot accomplish in C?

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

      Not to my knowledge. C++ adds "classes" which you can duplicate in C with functions. It requires a lot more work, but is doable.

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

    I've found that chatgpt is really good at providing examples of languages like python, but totally fails at arduino code. Maybe it's an issue with my prompts, but I spend a lot of time asking it to correct its errors. I tried to get it to write an example of using shift registers and it simply couldn't do it.

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

    ChatGPT create an Arduino project with a blue JLC printed circuit board with enclosure. 😎 Thank you AI....

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

    Unfortunately, it doesn't always work well. I did a test to get 2 in series coupled 8x32 WS2812b matrix working with also the serial output configured. I wanted to get different text on each matrix display. The examples he gave did not work. Without the serial output it does work. I can't solve this problem myself, which is why I was hoping the AI could point me in the right direction. I described the instructions in different ways, but unfortunately no solution. For simple tasks do it excellent.

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

    The bot is offline ?

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

    Never use delay function since it locks board.

  • @TomT-ds9vn
    @TomT-ds9vn ปีที่แล้ว

    This is awesome! I can't wait to be put out of a job.

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

    Great way to get off the mark if you are a novice coder lacking confidence.

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

    Whaaaaaat? 😯

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

    Is this app really just pilagerzing other coders work that they spent hours coding and debugging?

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

    It's a great tool for seasoned professionals and hobbyists but it's not replacing anyone or anything just yet. I just really hope if Microsoft does buy it out, it remains available and not just an extension of Microsoft Office.

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

    not happy with any website that requires a mobile number to sign up otherwise i would have given it a try

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

    I hope it will apologize when the version that will come up in 10 years takes my job.

  • @5Perf65mm
    @5Perf65mm ปีที่แล้ว

    Looks like i can now earn a second income as a programmer....

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

    You are kidding us, I am sure or the website is kidding us. Unbelievable!

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

    Black magic! Burn it!! LOL

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

    getting stuff done for you is never great for beginners

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

    ChatGPT is cool but 'Paint by numbers' coding and electronics 'black box interfacing' will teach you nothing unfortunately. ChatGPT is a super powerfull tool for experienced programmers/electronics engineers, because they know how to properly specify the task for ChatGPT. This means less debugging.

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

    u using bad language

    • @Schematix
      @Schematix  ปีที่แล้ว +7

      *You're* using bad language.... I'll see myself out the door

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

      @@Schematix on the serious note: everybody is excited about it, but it fail totally when asked to optimise some good old SQL code and then did not want to talk

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

    Not great for beginners, totally disagree, without the basics, beginners have zero understand of what is happening and the forums get flooded with newbies asking how do I join these five pieces of code together?
    As a tutorial chatGPT is not good, ok, as a guide, but I would rate TH-cam better over the life of the first 4-5 real world projects
    But, it is GREAT for passing those uni exams in computer aided design

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

    Coding with this won't make you an expert coder.. you will lack any understanding of what is generated.
    Might be something for newbies, but will they learn anything?

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

      He never states it will. He just says this is an alternative for those who doesn’t bother learning to code. And for us who does, this can save a lot of time.

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

      Actually I disagree, I find that examining code helps me learn what it does. Something that generates code for you is great assistance for learning.

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

      it might be an option for debugging that sketch that has the obvious problem that I can't see because I'm tiered and had my ass handed to me frustrated. I take aspirin sometimes, and still have an eraser on my pencil. So, if this thing works, I might want a little piece of it. I was "Auto" corrected twice on this reply. Lets see where it goes, It's kinda scarry.

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

    good grief. Using ChatGPT to write Arduino scripts takes the learning out of that ecosystem. Sure, it works. But you, the tinkerer, did not make that work. The only upside is that doing this takes the coding out of coding. You can still use your hands to wire together things blindly. And, voila - instant anomie. Thanks, OpenAI.

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

    Wow