Arduino OOP [40-Minute Crash Course]

  Рет қаралды 21,688

Robotics Back-End

Robotics Back-End

Күн бұрын

Пікірлер: 32
@RoboticsBackEnd
@RoboticsBackEnd 8 ай бұрын
Thank you for watching! 🔥 To go further with Arduino and OOP, check out this complete and step-by-step course 👉 rbcknd.com/learn-arduino-oop
@tseckwr3783
@tseckwr3783 3 ай бұрын
Thanks for taking the time to present this information.
@maresolaris
@maresolaris Ай бұрын
This OOP-intro is very helpful and excellently presented. Thank you for taking your time creating this crash course! 👍
@grzegorzkoslacz3859
@grzegorzkoslacz3859 Жыл бұрын
Useful. Thanks. What helps to understand classes is to treat it mentally as integrated circuits.
@capitainubermorgen5599
@capitainubermorgen5599 11 ай бұрын
Thanks for this excellent tutorial! Cheers from Cologne, Germany
@TheBaronNight
@TheBaronNight 2 ай бұрын
Thank!!! very very very useful to me!!!
@sami_2119
@sami_2119 Жыл бұрын
I learn a lot. Thanks sir
@leythecg
@leythecg Жыл бұрын
Excellent tutorial! Both the content and the presentation! Thank you very much!
@EsraaAl-khatib-y8u
@EsraaAl-khatib-y8u Жыл бұрын
Love it, you are the best!
@larrybud
@larrybud Жыл бұрын
Good basic intro to classes. Then use a real IDE and then you're really cooking!
@anordeng
@anordeng Жыл бұрын
Your videos are super clear and awesome.
@phmiii
@phmiii Жыл бұрын
I think I must enjoy your Arduino OOP class on Udemy!
@gurselturkeri
@gurselturkeri Жыл бұрын
Can you share video about Arduino and ROS2 communication?
@RoboticsBackEnd
@RoboticsBackEnd Жыл бұрын
Will do! thanks for the feedback. That's on my todo list, just need to find the time to do it :)
@paulklasmann1218
@paulklasmann1218 Жыл бұрын
That was excellent, thank you.
@7alfatech860
@7alfatech860 Жыл бұрын
Thanks for a clear explanation of the use of constructors and of "this". I wonder if an advantage of using "_" or "m_" before the variable name is that it makes it clear that it is a private variable that we are using, and we should not expect to be able to access it otherwise.
@RoboticsBackEnd
@RoboticsBackEnd Жыл бұрын
This really is a matter of preference, all options are valid (although if you just add an underscore, maybe better to add it to the end. So you'd have "pin", or "m_pin", or "pin_") One thing is: try to be consistent, and if you join an existing project/job/etc, then use the same convention as they do :)
@vinothn4228
@vinothn4228 Жыл бұрын
❤Thanks a lot tutor🎉... This is exactly, what I want to learn for improvement in my carrier as Embedd Firmware developer ....! Finally, i found a treasure like channel accidentally. 😊 🎉 🎉🎉 🎉🎉🎉 Greetings .....!
@havehalkow
@havehalkow Жыл бұрын
What if I already have an object created, using an available library, but I need to make some additional methods for it? May I ask for hints on how to do that, please!
@DanielEscasa
@DanielEscasa 4 ай бұрын
Offhand, I think you can extend the class by using the _duplicate_ keyword
@BearFulmer
@BearFulmer Жыл бұрын
Im also intetested in learning about using an existing library to make functions to control things, say for instance using a fastled or neopixel library to make some of my own displays and save them, im not sure how to declare libraries inside the cpp and h files. i get multiple definitions sometimes and others its not defined.
@janedoe6182
@janedoe6182 11 ай бұрын
Should I create class for class, and another class for class creation?
@dioutoroo
@dioutoroo Жыл бұрын
Hi, thanks for the lesson. I tried to try it but I always get the no such file or directory error. I had put the header and the cpp files in the same folder. Could you help?
@1968LuckyStriker
@1968LuckyStriker 11 ай бұрын
It's very confused. You used 'pin' and 'pin'. Ok, you use the 'this->', but even that makes it difficult.
@wsmith9932
@wsmith9932 Жыл бұрын
Why did you not use 'this->pin' rather than just 'pin' in the 'on' and 'off' methods?
@RoboticsBackEnd
@RoboticsBackEnd 11 ай бұрын
Just to make it extra clear in the code, but it's not mandatory.
@DanielEscasa
@DanielEscasa 4 ай бұрын
⁠Not to mention that you have to type fewer characters 😊
@oscareriksson9414
@oscareriksson9414 11 ай бұрын
Ok just have to say it. So to call 3 different functions, you wrote 2 files, both of which with more lines of code than the example. All to replace 3 lines in the example. Also there is more space allocated with the object. This is the problem with "oop" and it only becomes more difficult to follow the code and takes up more space in real programs. This is bad in embedded programming. I used to be very much into oop and all that Clean Code stuff and it can be kind of good to know it in the beginning, but understanding the hardware is better in the long run if you want to make more complex things. Knowing oop clean code principals will not help you understanding why your arduino stops working because of too many spikes in your circuit, why the timing of some thing is off etc etc..
@RoboticsBackEnd
@RoboticsBackEnd 11 ай бұрын
Yes, definitely OOP is not suitable for embedded system programming, especially if you are going deeper with STM32 etc. But here with Arduino, the Arduino library is already a huge overhead, so adding OOP won't make much difference. I use OOP only with Arduino because programming Arduino (using Arduino libraries) is more like accessing the hardware as a software developer, not an embedded system developer. In the course I give more explanations about that. Then, for the example I use, yes I agree it's a lot of code for not much. But in all my tutorials/courses, my way to teach is to remove everything that is not about the concept, so we just focus on the concept. Thus, instead of starting from a 500 lines code, I start from the most basic example. Just so we can focus on OOP and not spend 20 minutes explaining what the code is about :)
@alejandroperez5368
@alejandroperez5368 10 ай бұрын
You missed the whole point, buddy!
@mezzofresh3521
@mezzofresh3521 2 ай бұрын
You made things overly complicated for no reason
@RoboticsBackEnd
@RoboticsBackEnd 2 ай бұрын
100% agree, please don't buy my course
#BB11 Create an Arduino Library😨 - A Real World Example (Easy)
25:54
How many people are in the changing room? #devil #lilith #funny #shorts
00:39
SIZE DOESN’T MATTER @benjaminjiujitsu
00:46
Natan por Aí
Рет қаралды 8 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 6 МЛН
Intro to Object Oriented Programming - Crash Course
30:18
freeCodeCamp.org
Рет қаралды 979 М.
Optimizing Arduino Code: no setup(), no loop() ⛔
9:27
Wokwi
Рет қаралды 210 М.
Good Arduino Coding Practices & Variable Scope
6:38
Circuit Crush
Рет қаралды 1,1 М.
Forbidden C++
33:07
javidx9
Рет қаралды 1 МЛН
«Осень». Самая большая загадка Windows XP
14:36
Девять десятых
Рет қаралды 1,4 МЛН
Using EEPROM with Arduino - Internal & External
31:54
DroneBot Workshop
Рет қаралды 199 М.
Let's Create a Compiler (Pt.1)
1:11:03
Pixeled
Рет қаралды 563 М.
Precht trifft Robert Menasse: Was Trump für Europa bedeutet
43:38
ZDFheute Nachrichten
Рет қаралды 123 М.