You just saved my hair! I could not figure out why codes were not working from so many .ino files. Your description about the declarations has just saved me! Thank you so much!
@raydiy83233 ай бұрын
Glad I saved your hair 😅 You're very welcome.
@nicolasfiore5 ай бұрын
Are you Benedict Cumberbatch's long lost brother?
@martinmaters6 ай бұрын
Not clumsy at all, but extremely helpful. I used VSC for other projects, but still used the Arduino IDE for my ESP32 projects. And indeed it is no fun at all to use the Arduino IDE for lager projects... as of today I'll use PlatformIO!!! Now I need to figure out how to configure and use OTA provisioning and I'm ready to go!
@Karkajouzen6 ай бұрын
I have a resin printer, has anyone printed these and if so, what type of resin yielded the best results?
@user-fu1cm9fl6dАй бұрын
I'd like to know as well, I might be trying it soon
@shimono9926 ай бұрын
incredible video! thank you so much for explaining it all really well!
@raydiy83236 ай бұрын
Thank you, Sir!
@user-xh9cj7in3p6 ай бұрын
Thanks for producing a clear, understanable introduction to the Arduino and ESP on the PlatformIO. Many of the videos I've come across either are hard to understand the author, or, to fast, or not enough detail. Your instructional pace is perfect.
@raydiy83236 ай бұрын
Thank you so much!
@KaloyanDobrev7 ай бұрын
How are the example codes from Arduino IDE loaded into PlatformIO project?
@bencollis34217 ай бұрын
Just want to say ow useful these are! Thank you so much for sharing your files. I have printed at least 100 of these already
@raydiy83237 ай бұрын
Wow, that is a lot 😲 Thank you for letting me know, that these clips are useful! ❤
@ibendiben7 ай бұрын
Yeay thanks. Was thinking this must have been done. Nice presentation. Unfortunately only got PLA for now. Bit ill keep this in mind.
@themonkeydrunken8 ай бұрын
Great info, mate. But it's hard to hear your voice. The sound is very heavy in the bass range. The microphone sounds a little muffled.
@Guishan_Lingyou9 ай бұрын
This is very helpful. Looks like you have stopped uploading videos. I will subscribe anyway in case you decide to make a comeback.
@Guishan_Lingyou9 ай бұрын
Thanks for this very informative video for people like me who are looking to get started with microcontrollers and trying to decide to where to begin. (And RE: the comment below that mentions "you missed a few things",...it is quite clear that this video is not an in depth comparison of programming Arduino vs Esp32. The information that comment includes is of course interesting and could be useful but I don't think you "missed" it in this one.)
@user-hv2tg3ii8m10 ай бұрын
love your video, and i learned about ESP32 a lot ,thank you !
@minhlenguyentuong415811 ай бұрын
I'm a beginner and I've got so much information from this video, but I have a problem which is that I can not find any upload port in the "Devices" session. Can you suggest some way that i can fix it? Thank you!!
@martinkuliza11 ай бұрын
9:34 "Programming runs THE SAME WAY as the Arduino" ACTUALLY NO IT DOESN'T IN FAIRNESS TO YOU.... - Get what you were trying to do here - i Get that this is for ABSOLUTE NEWBIES and if you just want to dick around with blinking an LED then.... Sure, it'll work BUT YOU MISSED A FEW VERY VERY IMPORTANT THINGS DUAL CORE - The ESP32 has a Dual Core Processor, As such YOUR SKETCH WILL RUN COMPLETELY DIFFERENTLY and need to be laid out differently what you did in the example was just load void setup () and void loop Functions and again if all you're doing is running basic ARDUINO Sketches and have no consideration for FreeRTOS then go for it but this begs the question WHY THEN ARE YOU USING ESP32 IN THE FIRST PLACE ? Secondly.... delay doesn't work the same way on ESP32 On Arduino, the use of delay(1000); BLOCKS all the code for 1second from running on the ESP32 vTaskDelay(1000); is used AND IT IS NON BLOCKING so 1. Where you would encounter "Blocking code" issues on arduino then you google it and get told to use millis, You don't need to do any of that on ESP32 You can use vTaskDelay(1000); and it doesn't block the entire code Secondly, if you were type in delay(1000); into the sketch, it would convert it to vTaskDelay(); and still not be blocking code Next The use of TASKS or TASK FUNCTIONS so ... go beyond using the FUNCTIONS setup loop Then you move to Inter Task communication and Inter Task Sync for greater control of tasks, to the point where using millis becomes an after thought None of this was covered, and i think IT SHOULD HAVE BEEN MENTIONED ON A VERY BASIC LEVEL Also there are now Arduino's that do support Dual Core and WiFi and Bluetooth In saying that, You can also Install a library directly onto Arduino (Single Core) that will use FREE RTOS as it does in ESP32 Granted i have also heard that people have not had much success with this but yeah, You skipped a whole lot You basically said, Here is a sketch it blinks an LED it can be loaded on ESP32 and Arduino well, Yeah but that's like saying Here is a Toyota Corolla Here is a Lamborghini Murciellago You can do exactly the same thing on both so to prove that let's drive to the shop in both to pick up a litre of milk Yeah sure, but the Lambo has a V12 Engine and the Toyota a 4cyl the Arduino has single core, the ESP32 has 2 cores, Faster Bus Speed and when it comes to TASK's it blows Arduino out of the water
@raydiy832311 ай бұрын
Wow, lots of SHOUTING here. I think most (if not all) of the facts are right. But didactically your are wrong. You cannot overwhelm users who are beginner level or have the idea to change from Arduino to ESP32. And these are the intended target users of this video. Up to a certain level - programming in the Arduino framework is the same on both Microcontrollers. Just like driving a Toyota and a Lambo is the same - up to a certain drivers level.
@martinkuliza11 ай бұрын
@@raydiy8323 Shouting ?? No there's no shouting There may however be... YOU INTERPRETING THAT AS SHOUTING See when i do it, it's not shouting it's PUTTING EMPHASIS on a point. If you interpret that as shouting , that's your own affair. it also doesn't mean that i was actually shouting. so i'll leave you to work that out on your own but fact is.. I'm not shouting Moving forward... RE " I think most (if not all) of the facts are right" What was said was correct, but a lot of critical stuff was left out RE "But didactically your are wrong" well by one definition i am and by another i'm not. and does it need to be didactic ? and i could also argue "didactically" that i am correct. but THE POINT IS NOT whether i'm correct or whether you're wrong the point is THE FACT IS... YOU LEFT A LOT OUT we know this because we know what the ESP32 can do , i also trust by the platforms that you use that you know EXACTLY what i'm talking about so if the point here was - Feature comparison Arduino vs ESP32 - First Steps then why did you not cover the things are most appealing about the ESP32 You just went into the same bullshit that everyone does IoT this and Bluetooth and WiFi that, which then obviously makes the beginner conclude.... Well if i'm not using Internet or Bluetooth, Why do i need it Now, You did get into Memory and Higher CPU Frequency BUT DO THEY UNDERSTAND THAT NO THEY DON'T ? Because they don't understand a stack or Ram or how much allocation is required. Now.. FIRST STEPS, Fair enough But at least go into some detail on it so that it is made clear. RE "You cannot overwhelm users who are beginner level or have the idea to change from Arduino to ESP32." I UNDERSTAND, and you don't have to . but you can give an explanation of RAM and a basic overview of how it might be used, and then explain TASKS and a basic OVERVIEW of MultiTasking and Multi Processing on the ESP32 and how the benefits of that outweigh those of the Arduino. No one is saying confuse them, I however believe you are intelligent enough and have enough RTOS Knowledge to have explained that. RE "And these are the intended target users of this video" EXACTLY.... so why not attract them with just a bit more information. i attend the Arduino forum and believe me , Most newbies that come on Do not have the slightest comprehension of what they need to do with tasks. They come on like everyone else, ASSUMING THEY CAN ONLY DO THE FOLLOWING... ESP32 has WiFi and Bluetooth and that's it ESP32 has dual core so i guess i need to split my program up over the 2 cores I can only use the following functions void setup() { } void loop() { } They have no comprehension of void TASK1() { } void TASK2() { } void TASK3() { } etc etc Now if i can type that up in 5 seconds or so , i trust you could have JUST TOUCHED THE SURFACE OF IT then.. made another video to explain the basic structure of all that and how tasks are created doing so would get them insight into what is possible and would attract them even more and IN MY OPINION YOUR CHANNEL AND THE EXPLANATION WOULD STAND OUT Because all you ever hear is the above bullshit here is another one..... When creating Tasks, You are made to believe you can only create 2 Tasks, 1 Per core Because you are told 1. IT'S DUAL CORE, IT HAS 2 CORES 2. The Example presents you with TASK1 and TASK2 Logically, a beginner therefore draws the conclusion that 1 Task is per core, Which we know is not the case Why can this not be explained to them ? RE " Up to a certain level - programming in the Arduino framework is the same on both Microcontrollers. Just like driving a Toyota and a Lambo is the same - up to a certain drivers level." Ummm Yeah.. sort of but why can't we introduce them at the beginning to things that go beyond the basic "Hello World" bullshit and here is an led , let's blink it AT THE END OF THE DAY The purpose of your video was TO COMPARE right You didn't compare them fairly, You left out so much of the ESP32 features and basically said what ever other channel says. WHY NOT DISTINGUISH YOURSELF FROM THE OTHER CHANNELS there's no need to overload the beginners, but if i had a channel, I would touch on the benefits of Multitasking no need to go too deep, BUT SHOW THEM THE POSSIBILITIES i mean, why not ? Instead of making it look like the only difference is Dual core, Bluetooth and WiFi which is why this other lady on here (The Mum) was confused as to which to buy for her student child
@mystery_110111 ай бұрын
lol
@martinkuliza11 ай бұрын
@@mystery_1101 LOL, You like that huh ? LOL I'm not lying though
@jxsh911 ай бұрын
wtf
@gamehulk Жыл бұрын
Guten Tag! I love the clip idea! Just adding support posts in my project though because my PCB is 80mm x100mm. Will be using your clips for my next project that uses a pro micro and not a bunch of input expanders like I am using.
@robertmurphree7210 Жыл бұрын
Arduino Nano ESP32 s3 $20. both have lots of mcu features, RTC, bluetooth, CAN Bus, new extra hardware debugging (not working yet), New, friendly competition between maker companies like StrawberryPi, Adafruit, Arduino and moving up on bigger industrial mcu manufacturers like Renesas and expressif is really good.
@jessyltr581 Жыл бұрын
I only subscribed because I saw that you answered questions in the comment 10 months after the video came out. Keep up :)
@trevorbelmont4633 Жыл бұрын
is there a 5-pin MIDI shield for ESP32? or can we use arduino ones for ESP32?
@trevorbelmont4633 Жыл бұрын
what IDE are you using now for ESP32?
@BadPractices Жыл бұрын
I can’t believe this was the first video posted to this channel. Really great video.
@hubertlenningrad2252 Жыл бұрын
Man i feel like a sucker for getting an arduino. I started on a spare arduino my uncle had lying around and until now hadn't thought to question it.
@raydiy8323 Жыл бұрын
Well, the Arduino team did a good, and created a nice framework. Today Arduino UNO R3 feels a bit outdated compared to ESP32 but some things are still easier to do with an Arduino board (i.e. interrupts). Let's see what the new Arduino UNO R4 will bring.
@martinkuliza11 ай бұрын
WHY ? If your'e saying that then you don't understand Arduino well enough there is nothing to feel like a sucker about OTHER THAN YOU GOT SUCKED INTO THE MARKETING OF ESP32 I know plenty of guys doing huge projects that are still running Arduino Dev Boards WHY ? Because there is no reason to upgrade Are you sure you understand Arduino and C++ as well as you should ?
@minhluan20307 Жыл бұрын
Thanks!
@jamesedinger4956 Жыл бұрын
Hope to hear more from you...great material and delivery style.
@patrickkeirton6458 Жыл бұрын
Thx!!
@VoeViking Жыл бұрын
You sound like Patrick Stewart.
@beachdancer Жыл бұрын
When I was programming in PHP I found an excellent online reference with each command hyperlinked to related details and other options. I haven't found an accessible version of this for C++. Also, existing C++ docs don't include the Arduino environment so no mention of Serial.print or other Arduino conventions. (Things that Arduino simplifies or works secretly in the background).
@beachdancer Жыл бұрын
Coding in c++ (which many Arduino hobbyists don't know they are doing) I stuggled to find out how to handle strings. I learnt that c++ doesn't have strings as a basic type and that using their library uses reseources that I didn't need. The basic type is char. But how to handle them? Hours of searching for answers to basic questions. I am reminded that most of the reference documentation outside of Arduino is written by experts for experts. Very little is written for the hobbyist. Most experts can't even imagine what questions a hobbyist would ask, so they don't answer them.
@beachdancer Жыл бұрын
Using VSC/PlatformIO I spent hours trying to find out how to put some of the code into a separate tab to remove some of the clutter. It is odd that when coding the "intellisense" support is fantastic, but when trying to do something like open a new tab there is no guidance. More on using VSC & PlatformIO could be useful.
@beachdancer Жыл бұрын
Where I am an Arduino nano clone is the same price as an ESP32. The latter is far more powerful. The only obvious advantage for the Arduino is the amount of help available from existing documentation and experience. Is it easier to setup and code for the Arduino? Or is the era of the Arduino now ending? If there is no other advantage, I would expect that Arduino prices will fall or the ESP32 will rise. Can you think of a reason to use Arduino hardware now other than habit?
@eng3d Жыл бұрын
Arduino operates at 5v (esp32 at 3v) and most "gadgets" created for Arduino work at 5v, so it makes a lot of difference. So, are they compatible? Thanks to the voltage difference the answer is yes for the code but no for the hardware.
@beachdancer Жыл бұрын
When working on an idea I have found that online Arduino simulators are faster than compiling and uploading to an actual microcontroller. My impression of PlatformIO and VSC are that for the new user there is very little easy to find and easy to understand guidance. Same for c++. Basic beginning questions aren't catered for by experts because they don't recognise that these kinds of questions exist. I have found that KZbin videos are a better source for beginners than website reference documents.
@johnnyr1720 Жыл бұрын
Very helpful, thank you. I have a ordered 2 arduino's and 2 ESP32's for my children for Christmas as I didn't really understand the difference (other than the WiFi/BT on the ESP's). I think I will still get both so they can move on from Arduino's when they learnt the basics.
@martinkuliza11 ай бұрын
You didn't need to You just needed to order 2 ESP32's You now may as well ask one of the other parents that has 2 kids to buy the Arduino's off from you it's like having 2 kids and buying them 2 BMX Bikes and 2 Mountain bikes because you didn't know the different what will happen is... they will only ever use 2 of the bikes HERE ARE THE DIFFERENCES FOR YOUR BENEFIT (Differences that he didn't cover) The Arduino is More expensive The ESP32 has a faster processor ( like ... 10 to 13 x Faster) The ESP32 Has a Dual Core Processor THEY BOTH USE THE SAME PROGRAM TO CONTROL THEM (Called AN "IDE" iNTEGRATED DEVELOPMENT ENVIRONMENT) They both use the Language of C++ If you want your kids to get ahead in school and understand this stuff HERE IS A VERY GOOD SHORT COURSE THAT TAKES LIKE 2 HOURS TO DO startingelectronics.org/software/arduino/learn-to-program-course/01-program-structure-flow/ ARDUINO ESP32 PROGRAMMING COURSE Now when they get a handle on that ESP32 Uses an Operating system that is superior to the Arduino , it's called FreeRTOS (i won't bore you with details) Here is the 400 Page Manual that may take them a week to go through BUT WELL WORTH IT ) Your kids will become Little genuises after reading this I have clients that are teachers in schools , They have a little to Basic Understanding of Arduino even though they teach STEM and Engineering and Technology in School This manual is well and way above the teachers pay grade, BUT NOT ABOVE YOUR CHILD'S CURIOSITY , IF THEY ARE INTERESTED IN THIS Go to this link www.freertos.org/Documentation/RTOS_book.html Select MASTERING THE RTOS REAL TIME KERNEL A HANDS ON GUIDE NOTE : If your children decide to go onto the Arduino forum A FEW RULES 1. People are not just going to give them the answers for school projects, People there expect you to put in effort and learn 2. Tell them to ask Questions and explain their problem Instead of DEMANDING AND ANSWER Hey , Kids will be kids, so if tehy want a good outcome teach them this... Yes the ESP32 has Bluetooth and WiFi and everyone goes on about it while forgetting More important things like HOW TO USE TASKS AND MULTI TASKING HOW TO CONTROL PROGRAMS HOW TO COMMUNICATE BETWEEN PROGRAMS Let's put it like this...... An ESP32 can be programmed Fully to control Home Automation and your Entire house from the other side of the world. The Arduino can't do that, Not because it doesn't have WiFi and Bluetooth BECAUSE OF THE ENHANCED ABILITY FOR INTER TASK COMMUNICATION let me know if you have any questions, Happy to help out and explain it for you simply put GET THE ESP32 WROOM32 for your kids and they'll shut up for 5 years
@johnnyr1720 Жыл бұрын
Seriously, it is very easy to watch and listen to you, you seem to have that 'thing' great teachers have. Please consider making more videos realting to Arduino / ESP 32.
@foxtrottone Жыл бұрын
Thanks for this great explanatory video! I can't add esp 32 with your url! Has there been a change? Thanks again and sorry for the English... I use an automatic translator.
@gordsh1 Жыл бұрын
Loved the video. You have a new subscriber. Good Job and thanks very much.
@raydiy8323 Жыл бұрын
❤
@YigalBZ2 жыл бұрын
Thanks for the good video. Any idea how to add a class to the workspace? not to a specific project?
@moinshaikh66842 жыл бұрын
Very nice and honesty explained tips and tricks
@jrapplefan22312 жыл бұрын
Music is often louder than your speech. Other than that, keep up the good work.
@alexchiosso2212 жыл бұрын
Yes you did a good job.... :-) Even for an almost hold man as I am your way to explain technical things is clear. You have now a new subscriber. I hope you are still "alive" for this channel.
@mtraven232 жыл бұрын
i hate the arduino ide, might as well write code in notepad. Not a huge fan of pio either, I have to use it for some 3d printer stuff now...always gives me headaches. I really like sloeber (eclipse), thats still my go to, but I think they've stopped development of it.
@kevinlcarlson Жыл бұрын
Have you checked out the Visual Studio Code IDE?
@mtraven23 Жыл бұрын
@@kevinlcarlson thanks, yes I have--PIO is the extension for VSC. At the time of my posted I REALLY hated it. I'm getting used to it, I still would preferred sloeber. but times are changing, no sense in fighting it.
@wizardy62672 жыл бұрын
Good to know you are using spaces instead of tabs as the indentation :) and Thanks for your nice video. After watching the video, I got few questions: 1. Did you 3d printed a mouse? I am wondering the mouse you using in the video. 2. What is the c++ version platformIO is using, if it uses c++11 is there a way I could upgrade to c++20? Last thing is there is another useful shortcut in VSC, is the Alt+o which allowing you jump between header and cpp files~
@okflyer7772 жыл бұрын
Ha! I also went to PlatformIO (but keptvArduino IDE)… great job!
@MrDiederikDuck2 жыл бұрын
I like platform io, but I see some serious issues too. I tried to import ethernet.h and wifi h. While compiling Platform io started to throw tantrums about not finding underlaying libraries. Did the same with Arduino Ide and presto, it compiled it smoothly.
@codinggalaxy34327 ай бұрын
@@MrDiederikDuckWifi.h is inbuilt in PlatformIO
@Acho0872 жыл бұрын
If you want to view a serial plotter, how would you do it?
@ILUMINATBender2 жыл бұрын
hi, your video helped a lot with arduino uno, but with esp32doit-devkit-v1, I can't figure it out in any way, when connecting it to my mac, it reports /dev/cu.usbserial-0001 after I try to refresh the page with devices and nothing happens if you could somehow tell me what to do, I would be very glad hello from far kazakhstan
@okflyer7772 жыл бұрын
Brilliant ! The clip mounts could even be included directly into the design of an entire 3D printed enclosure. VERY nicely presented video.
@luisfernandolebrando76772 жыл бұрын
thanks, useful indeed. keep it goin.
@4SquareHI2 жыл бұрын
Very good video! I'm struggling trying to find someone to show how to use secrets in platform IO to hide credentials used like for WIFI authentication from the main program. Maybe this could be an idea for a future video.
@bgable77072 жыл бұрын
Double "WOW!!! Awesome", that's what I usually start out with when I really get what I was looking for and needed. Clear, concise, excellent choice of the material covered, I'm good to jump in now.