Learn how to implement OOP programming concept with Arduino in this project-based course
About This Video
Master Arduino OOP (Object-Oriented Programming)
Write a class for any Arduino component or functionality you want
Learn the best practices from the start
In Detail
Do you want to write Arduino code that you can easily read, modify, and share with other Arduino developers? Or do you already know OOP (Object-Oriented Programming) and …
Arduino OOP — Object-Oriented Programming
Video description
Learn how to implement OOP programming concept with Arduino in this project-based course
About This Video
Master Arduino OOP (Object-Oriented Programming)
Write a class for any Arduino component or functionality you want
Learn the best practices from the start
In Detail
Do you want to write Arduino code that you can easily read, modify, and share with other Arduino developers? Or do you already know OOP (Object-Oriented Programming) and you want to know how to apply it to Arduino? Then this course is for you.
In this course, you will learn how to create a first class (for an LED component), then organize the class, and separate the interface from the implementation. Next, it will be your turn to write OOP code for a push button. Later, you will learn how to create a class to make an LED blink (how to use a class inside another class). Finally, you will get a chance to create the final TrafficLight class with high-level logic, while using all the previous classes you have created in this course.
By the end of this course, you will be able to write clean Arduino code with OOP for any hardware component or functionality, rewrite your own projects using OOP, and create a clean and super easy-to-use OOP Arduino library.
Audience
This course is intended for individuals who are familiar with the fundamentals of Arduino time functionality as well as the creation of simple Arduino programs using simple hardware components.
This course can be useful for students, engineers, researchers, teachers, developers, and Arduino developers who want to produce scalable, easy-to-read code, or who want to construct Arduino libraries with a clear user interface.
This course can also be helpful to those who already have a working understanding of OOP and want to learn how to use it with Arduino.
Project Overview and How to Get the Most Out of This Course
Chapter 2 : Your First Arduino Class - LED
Introduction
Create the LED Class Structure
Add Attributes to the LED Class
The LED Class Constructor
Add Methods to the LED Class
Use Your Class in Your Program - Create a LED Object
Chapter 3 : Organize the Class in a Clear Way
Introduction
Create a Header File for the Class
Create a cpp File - Separate the Interface from the Implementation
Recap and How to Use and Read the Interface
Extra: Make Your Class an Arduino Library
Chapter 4 : Circuit for the Course
Build the Circuit Step by Step
Chapter 5 : Your Turn - Push Button Class
Introduction
Create the PushButton Class Header File - Interface
Create the PushButton Class cpp File - Implementation
Create a PushButton Object to Read the Button’s State
Handle Pull Up and Pull Down Resistors in the Class
Add More Abstraction to Know When the Button Is Pressed
Debounce the Button Inside the Class
Combine LEDs and Buttons - Work with Multiple Objects
Chapter 6 : LEDBlinker - Use a Class Inside Another Class
Introduction
Create the LEDBlinker Class and Init the LED Inside
Toggle LED State from LEDBlinker
Make the LED Blink Without Delay - Inside the Class
Add some Getters and Setters
Application Example - Make Three LEDs Blink at Different Rates
Chapter 7 : Your Turn - Traffic Light System
Introduction- Final Project Overview
The Interface and Main Program (Help to Get Started)
Set Up the Traffic Light Class
Add Methods to Init and Toggle Between the LEDs
Add a State Machine Inside the Class
Use Time Functionalities to Wait Between Different States
Create a Class for the Potentiometer
Modify the LEDs Brightness with the Potentiometer
Chapter 8 : Conclusion
Project Conclusion and Improvements
How to Build an Arduino Project with OOP - Best Practices
What to Do Next
Start your Free Trial Self paced Go to the Course We have partnered with providers to bring you collection of courses, When you buy through links on our site, we may earn an affiliate commission from provider.
This site uses cookies. By continuing to use this website, you agree to their use.I Accept