01-Learn Arduino Tutorial Project - Beginner DIY First Steps with an RGB LED - Tiki Fire Umbrella

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • Arduino Project Tutorial for Beginners. Dave uses Visual Studio Code and the Arduino SDK to light an RGB LED, then uses PWM to color cycle it. Follow alongside with the ChipCam so you can see what's happening and work with Dave right in the editor where you can see the code. This episode introduces the ESP32 microcontroller as an Atmel replacement.
    Link to ESP32 hardware module if needed: ezsbc.com/
    Software Prerequisites: Install the following!
    (1) Install the Arduino DESKTOP IDE (not the Web Editor) from www.arduino.cc...
    Even though we will not be actively using their IDE, the Arduino software must be installed on the machine even though we'll be using VS Code. Thus, we install the desktop IDE and then never use it. You may wish to launch it and install the ESP32 platform to make it useful for quick scratch projects, etc.
    (2) Install Visual Studio Code from
    code.visualstu...
    Visual Studio Code will be our editor and IDE.
    (3) Install the PlatformIO IDE
    platformio.org...
    PlatformIO IDE is an "environment" for VSCode that includes the compilers, tools, and everything you need to compile, build, and run projects for many systems. The Arduino ESP32 is but one of those, so we must install the ESP32 platform within PlatformIO:
    (4) Within PlatformIO/VSCode, install the Espressif ESP32 Platform for Arduino
    With those four, you should be able to go to the PlatformIO home page in VSCode and click on "New Project". Enter a project name, select "ESP32 Dev Module" as the board, and Arduino as the framework. You should be greeted with a working, building, deployable project consisting of a single file, main.cpp

Комментарии • 78

  • @silent_tofu7921
    @silent_tofu7921 4 года назад +24

    Thanks for writing Space Cadet pinball, posting this tutorial on Arduino, and being an absolute legend

    • @DavesGarage
      @DavesGarage  4 года назад +11

      Thanks! But to be precise, I only ported Space Cadet pinball to modern 64-bit and RISC platforms, it existed as a game from Maxis before that!

    • @kyfami3129
      @kyfami3129 3 года назад +2

      video on pinball pls❤️

    • @OldePhart
      @OldePhart 3 года назад

      @@DavesGarage Was the secret code your doing or did that come from Maxis too?

  • @delugeia
    @delugeia 3 года назад +6

    I just wanted to drop a note to let you know how much I've appreciated this series. Your step by step instructions and charming personality have given me the confidence to pick up a hobby that I have long wanted to try but always kind of felt too intimidated to explore. I look forward to future videos on the topic if you ever think about doing more of them. (Please?) By the way, the ESP32 board from EZSBC has become my board of choice. THANK YOU SO MUCH!

  • @jenskapmeyer2579
    @jenskapmeyer2579 3 года назад

    I got to know Dave on RUclips a couple of days ago, learned he was the Inventor of windows task manager, then i learned he loves other tech stuff like cars, now I see him programming ESP32 in Arduino IDE ... how cool is that !!

  • @MaxUgly
    @MaxUgly 4 года назад +6

    I love how simple you break everything down! I think I might have to bust out the raspberry pi 3 I bought that has just been collecting dust!!

    • @MilesHart007
      @MilesHart007 3 года назад +1

      I have the respberry and Arduino, and I find the Arduino way more accessible. The pi3 is just to slow to boot and debug IMO, Arduino is instant lightweight, and powerful.

    • @MaxUgly
      @MaxUgly 3 года назад

      @@MilesHart007 Yea, I am sure you are right. I was going to use it as a htpc ( outdated for that use now) but at least i can use it to practice prgramming and make it do cool stuff with alll the I/O

  • @OldePhart
    @OldePhart 3 года назад

    While I am certainly sorry for your neck injury I think you have demonstrated that it was for the greater good. I sure appreciate your delivery and skillset. Looking forward to following this and finally making those christmas lights that my kids always asked me for... And Carl cracks me up.

  • @b0ntr4g3r3
    @b0ntr4g3r3 4 года назад +1

    Is that really the sound of a Mac keyboard?
    I'm so glad I found your channel. I had an old Arduino lying around to as well as an ESP32 and a bunch of bunch of LEDs. Now I have a reason to pull them out again. I grew up in the 80's with a zx81 and a spectrum48. Can't wait to watch more.

    • @DavesGarage
      @DavesGarage  4 года назад +1

      Thanks for the kind words! But no, in this case, it's a Corsair keyboard with MX Blue switches, I think!

  • @bopitt6875
    @bopitt6875 3 года назад

    Love your channel Dave. I discovered the ESP32 a year or so ago. Like you I'm a big fan.

  • @nipsonfernanadis930
    @nipsonfernanadis930 2 года назад

    Great video , From back 1 year I am trying to understand PWM , and now got understand Fully .
    Thanks , lot .

  • @vacationpictures6718
    @vacationpictures6718 4 года назад +2

    This project looks like a fun entry into playing in this hobby. Would you mind listing the full set of hardware and software to be used throughout the project to help me determine if I can add this to my project desk without having to go through the appropriations committee (wife)?
    Also, I assume the chip is being powered directly off your PC/MAC?

  • @JohnWindberg
    @JohnWindberg 3 года назад +3

    Sorry, stumped on step 4. Install a "platform"? Is that different than installing an extension or a library? What is meant by "Within PlatformIO/VSCode"? I searched extensions and found "Espressif IDF", not "Espessif ESP32".
    I have VSCode, and the extension for PlatformIO, which means I have that little house icon. Clicking the little house gets me a nested PIO Home window, and I can search there for libraries, but searching for Espressif results in 4000+ matches, none that seem right.

    • @Nolanja1234
      @Nolanja1234 3 года назад

      Same question, Dave. Can you elaborate? I am getting errors in later episode projects, and I suspect it’s because I skipped step 4.

    • @MarkVanderberg
      @MarkVanderberg 3 года назад

      @@Nolanja1234 I think it is "Espessif 32" in the Platformio tab Platforms and install. I had to restart VSCode.

    • @danman32
      @danman32 2 года назад +1

      I'm getting stuck too. It would have been helpful to go step by step with the application installs in the video.
      If it weren't for the PlatformIO webpage showing with a screenshot and "paint by numbers" when to click where in installing the PlatformIO extension, I would have been stuck there.
      Once having PlatformIO VC extension installed, the next question became, how do I now get into PlatformIO? Answer: click on the alien on the left.
      Go to Platforms in the 2nd left bar, find Expressif 32 (not Expressif ESP32
      After that, I'm a bit lost.
      Supposedly I should be able to go to File -> New Project but File is within the VC shell, and not within the PlatformIO extension. There is a shortcut New Project, but still.
      DroneBot Workshop has a video Getting Started witbh PlatformIO, I think I am going to look at that next.

  • @ernandofranco8448
    @ernandofranco8448 4 года назад +1

    Thank you very much!!!
    I really like playing with leds and their tutorials are specular! I already subscribed to your channel !!!

  • @DavidKing-kj2nb
    @DavidKing-kj2nb 3 года назад +2

    The macbook subscriber joke gave me a good laugh, hahaha. I've subscribed so you should have at least 1 less cycle during compilation

  • @jeffp7776
    @jeffp7776 3 года назад

    Another person requested an "I have two wires and some LED's" sort of video and your response was watch #2 in this series.
    I did that and immediately felt like I need a "I have thumbs and how the heck do you use this blasted thing he is showing here" video.
    Seriously though is there something I should watch or read before even trying to do what you are explaining here?
    My ultimate goal is to creat the fire effect in the windows for a project I'm doing. Thank you. You are clearly providing a wealth of information here I'm just not sure if I missed or required more before I viewed this. Thank you. BTW I subscribed.

    • @DavesGarage
      @DavesGarage  3 года назад +1

      Should be all you need here! It literally does start with two wires and an LED, then goes from there. Watch part 2 and let me know!

  • @LamezLames
    @LamezLames 3 года назад +3

    I don't watch these videos to learn how to make an LED change colors, I watch these videos to learn how you write your organic software.

    • @DavesGarage
      @DavesGarage  3 года назад

      Then Episode 1 might bore but the rest will become increasingly interesting!

    • @goodrabbi7176
      @goodrabbi7176 3 года назад

      I’ve just found your channel in my new crafting journey with rpi and arduino. The way you freestyle your code and show errors is invaluable to me. I have plenty of c# and Java experience, and am currently learning Python to code on Rpi’s, but the method and logic you put on display, allow me to translate(for the most part) your code to work in Python/Circuit Python. I probably should have commented this on a more recent video. But the OP’s post seemed like a good place to share. Thanks again!

  • @journeymagizh-123
    @journeymagizh-123 Месяц назад

    Heartfelt ❤ thanks man....
    love u from tamilnadu,india

  • @jacquewilson5568
    @jacquewilson5568 3 года назад

    You Referenced the Commodore ViC-20! My hero!

  • @iangrindey4822
    @iangrindey4822 3 года назад +1

    I love this type of video, but I would really love a " i have two wires and some led's" sort of video!

    • @DavesGarage
      @DavesGarage  3 года назад +3

      Check out number 2, which covers starting with power, ground, and data. It's three wires, but close!

  • @markkayser426
    @markkayser426 Год назад

    LIVE! No one is perfect and it is nice to know legends can make mistakes too. Plus we can see you trying to figure out where the code went wrong which can be so very frustrating when new to coding. BTW: I now have an ESP32on the way. Next up, LED strip and power so I can follow along.

  • @VeryUsMumblings
    @VeryUsMumblings 2 года назад

    You should put your borrowed code somewhere where people can follow and copy it. I had to go find it and extract the function from code that was for an actual Arduino that used analog outputs instead of digital. Other than that, this was a really good video.

  • @CryPHage
    @CryPHage 4 года назад +1

    Thank you for making Task Manager.

  • @richardsantink
    @richardsantink 2 года назад

    Awesome stuff (as always) Dave! I hope you throw together a book of your favourite ESP32 projects. :)

  • @sakalagamasala19
    @sakalagamasala19 4 года назад +1

    Great stuff...Lots of love from Serbia...

  • @DavidJJJ
    @DavidJJJ 3 года назад

    I agree about the ESP32, they are awesome chips.

  • @krism2746
    @krism2746 3 года назад

    Do you have a video or could you make a video on how to add multiple light patterns and how to change the pattern? For example your fire pattern and the rainbow? Somehow qerw you wouldn't have to re-program the board, just hit a button,, cycle the power? Is it possible? Through Bluetooth or some other means?

  • @sandymustard4185
    @sandymustard4185 2 года назад

    Ever thought of using 8 led strips in parallel and creating a scrolling text message display? Can it be done with a ESP32?

  • @kevinrichards5543
    @kevinrichards5543 4 года назад +1

    Looking forward to the rest. The wife approval factor is high on this one.

  • @ypesh
    @ypesh 4 года назад +1

    great fast tutorial thanks for uploading!

  • @TheRealFrankWizza
    @TheRealFrankWizza 3 года назад +1

    Do you have a website where you post the code?

  • @danman32
    @danman32 2 года назад

    How do you get just PlatformIO to show like you do at 5:46 with none of the VC frame on the left and top, why does your path show My First ESP32 nothing shows after src> in my view, and lastly how did you bring up those list of tasks? I find only two ways to build/upload: PlatformIO:Toolbar icon, or Project Tasks to the left of the code.
    OK, figured part of it out. As long as you have a project open, you can get rid of the middle panel by clicking on the PlatformIO icon on the left bar, the icon that looks like an alien.

  • @jasonPfunk
    @jasonPfunk Год назад

    Hello Dave,
    Will you be doing any bench testing between c++ and circuitpython?
    I made some LEDs light up with circuitpython on a trinket-mo board. It ran pretty slow which could have been a combination of the language and the board.
    Mainly wondering how the two languages compete in a drag race.

  • @batangkalye4535
    @batangkalye4535 4 года назад +1

    Im so amazed.

  • @danielbengtsson9833
    @danielbengtsson9833 3 года назад

    Calling your integer c in a for loop....That made me chuckle. I see what you did there.

  • @Pawankbhat
    @Pawankbhat 4 года назад +1

    Carl is awesome

  • @PapiJack
    @PapiJack 2 года назад

    I keep getting: Arduino.h: No such file or directory
    I'm new to C++ and VSC. It seems to me it can't load this module or something.
    How do I fix it?
    Also, what board model is he using to setup Platformio?

  • @JRPW
    @JRPW 4 года назад +1

    thanks!

  • @Artbyrodwatson
    @Artbyrodwatson 3 года назад

    Thank you for the tutorial. I'm relatively new to the RGB LED's. I'm currently working on a marquee sign for my home theatre. I'm hoping to create a sign that replicates a vintage marquee sign with travelling or chancing lights in a off white to yellow Led's. Having trouble with the coding. I've looked online but can't seem to find anything. Can you point me in the right direction?

    • @DavesGarage
      @DavesGarage  3 года назад +1

      Google for "tweaking4all" and "marquee" and I bet on that page you find some code to do a marquee style effect that you can change to yellows?

  • @danman32
    @danman32 2 года назад

    If you're already subscribed, and logged in as your youtube account that you subscribed with, can there be a method to suppress the subscribe plugs? :)
    OK, I'll at least like.

  • @noweare1
    @noweare1 2 года назад

    Thank you.

  • @tenminutetokyo2643
    @tenminutetokyo2643 3 года назад

    That’s froogin’ nuts!

  • @TheMyname707
    @TheMyname707 2 года назад

    Must be compile faster now, cause I subscribed. ;-)

  • @blue1c3
    @blue1c3 2 года назад

    I learned a lot but I enjoyed much more of the humor.

  • @justincoleman9776
    @justincoleman9776 3 года назад

    I got the urge to subscribe after watching this video 👍

  • @sdstorm
    @sdstorm 4 года назад +1

    Good stuff! The only thing is, it seems you're looking slightly off-camera which makes it weird.

    • @DavesGarage
      @DavesGarage  4 года назад +3

      I've since purchased a teleprompter that puts it directly behind!

    • @DavidJJJ
      @DavidJJJ 3 года назад

      I literally only just noticed that 5:32 after reading your comment.

  • @TheRealStructurer
    @TheRealStructurer Год назад

    Already subscribed since your langue speed tests, so sorry, you have to buy an M2 Mac 😉

    • @DavesGarage
      @DavesGarage  Год назад

      I'm hoping the Mac Pro will be worth waiting for, so holding out!

    • @TheRealStructurer
      @TheRealStructurer Год назад

      @@DavesGarage Fingers crossed 🤞🏻

  • @twobob
    @twobob 3 года назад

    Watches Dave on 1.3 speed. Oh yes. More DAVE FASTER....

  • @danF14
    @danF14 Год назад +1

    What kind of beginners training is this going 1000 mph 😂

  • @RainBoxRed
    @RainBoxRed 3 года назад

    Nice Rotring

  • @marcusdutton1808
    @marcusdutton1808 3 года назад

    Yes, it worked, I subscribed :)

  • @Legantmar
    @Legantmar 4 года назад +1

    like

  • @streamx2
    @streamx2 2 года назад

    My name is Dave a retired ventriloquist

  • @rwehuman
    @rwehuman 3 года назад

    I like to play a small game with new friends who lived north of me. I say black you say white I say up you say down I say tragically you say___

  • @abdo01386
    @abdo01386 Год назад

    Sertenly you feel sory to dont have all thèse facilities in thé golden age of silicone Valley ?do you

  • @MIHMediaInc
    @MIHMediaInc 4 года назад

    Oops I didn't mean to subscribe. It was the slow compile fault :( 😅

  • @deadadam666
    @deadadam666 3 года назад

    il only subscribe if you ditch the mac