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
Thanks for writing Space Cadet pinball, posting this tutorial on Arduino, and being an absolute legend
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!
video on pinball pls❤️
@@DavesGarage Was the secret code your doing or did that come from Maxis too?
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!
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 !!
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!!
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.
@@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
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.
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.
Thanks for the kind words! But no, in this case, it's a Corsair keyboard with MX Blue switches, I think!
Love your channel Dave. I discovered the ESP32 a year or so ago. Like you I'm a big fan.
Great video , From back 1 year I am trying to understand PWM , and now got understand Fully .
Thanks , lot .
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?
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.
Same question, Dave. Can you elaborate? I am getting errors in later episode projects, and I suspect it’s because I skipped step 4.
@@Nolanja1234 I think it is "Espessif 32" in the Platformio tab Platforms and install. I had to restart VSCode.
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.
Thank you very much!!!
I really like playing with leds and their tutorials are specular! I already subscribed to your channel !!!
The macbook subscriber joke gave me a good laugh, hahaha. I've subscribed so you should have at least 1 less cycle during compilation
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.
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!
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.
Then Episode 1 might bore but the rest will become increasingly interesting!
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!
Heartfelt ❤ thanks man....
love u from tamilnadu,india
You Referenced the Commodore ViC-20! My hero!
I love this type of video, but I would really love a " i have two wires and some led's" sort of video!
Check out number 2, which covers starting with power, ground, and data. It's three wires, but close!
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.
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.
Thank you for making Task Manager.
Awesome stuff (as always) Dave! I hope you throw together a book of your favourite ESP32 projects. :)
Great stuff...Lots of love from Serbia...
I agree about the ESP32, they are awesome chips.
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?
Ever thought of using 8 led strips in parallel and creating a scrolling text message display? Can it be done with a ESP32?
Looking forward to the rest. The wife approval factor is high on this one.
great fast tutorial thanks for uploading!
Do you have a website where you post the code?
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.
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.
Im so amazed.
Calling your integer c in a for loop....That made me chuckle. I see what you did there.
Carl is awesome
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?
thanks!
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?
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?
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.
Thank you.
That’s froogin’ nuts!
Must be compile faster now, cause I subscribed. ;-)
I learned a lot but I enjoyed much more of the humor.
I got the urge to subscribe after watching this video 👍
Good stuff! The only thing is, it seems you're looking slightly off-camera which makes it weird.
I've since purchased a teleprompter that puts it directly behind!
I literally only just noticed that 5:32 after reading your comment.
Already subscribed since your langue speed tests, so sorry, you have to buy an M2 Mac 😉
I'm hoping the Mac Pro will be worth waiting for, so holding out!
@@DavesGarage Fingers crossed 🤞🏻
Watches Dave on 1.3 speed. Oh yes. More DAVE FASTER....
What kind of beginners training is this going 1000 mph 😂
Nice Rotring
Thanks! Love them.
Yes, it worked, I subscribed :)
like
My name is Dave a retired ventriloquist
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___
Sertenly you feel sory to dont have all thèse facilities in thé golden age of silicone Valley ?do you
Oops I didn't mean to subscribe. It was the slow compile fault :( 😅
il only subscribe if you ditch the mac