Free Course Image Arduino Programming for Beginners: C and C++

Free online course Arduino Programming for Beginners: C and C++

Duration of the online course: 3 hours and 38 minutes

New

Write your first Arduino Uno sketch and bring buttons, sensors, and LEDs to life in this free online course on C and C++ for beginners.

In this free course, learn about

  • Identify the Arduino Uno's main components and explain how its digital pins work as inputs and outputs.
  • Use Arduino Create and the Arduino IDE to write, verify, and upload sketches.
  • Explain why setup() runs once and loop() runs repeatedly.
  • Declare variables and distinguish between local and global scope.
  • Define and call functions, and explain when their code runs.
  • Use the Serial Monitor to inspect program output and the += operator to update counters.
  • Use if, else if, and else with comparison operators, and use modulo to find remainders.
  • Read button states with digitalRead() and use external pull-up or pull-down resistors to prevent floating inputs.
  • Configure INPUT_PULLUP and interpret why a properly wired button reads LOW when pressed.
  • Count button presses and explain how interrupts can detect presses during long delays.
  • Read analog sensors with analogRead() and scale measured values with map().
  • Control LED brightness with analogWrite() and explain how PWM differs from true analog output.
  • Use Arduino code to set the position of a servo motor.
  • Pair notes and durations in equal-length arrays to play a melody.

About the free online course

Arduino Programming for Beginners: C and C++ is a free online course that shows you how a few lines of code can make an electronic circuit respond to the world around it. Designed for beginners, the course uses the Arduino Uno to connect programming concepts with results you can see, hear, or measure. You start by getting familiar with the board and writing sketches in the Arduino IDE. As you work through the examples, you learn the difference between code that runs once when the board starts and code that keeps running as it waits for an input.

One of the first challenges is getting a button to behave the way you expect. You use the Serial Monitor to see what the board actually reads, then explore why an input pin can give unpredictable readings when a button is not pressed. Once the input is stable, you can make your sketch count button presses and use that count to decide what happens next. The video lessons and short exercises help you reason through each step, so you can predict what a sketch will do and spot where your assumptions differ from what the board reports.

As your sketches become more interactive, you move from reading a button with two states to working with sensors that return a range of values. You see how to translate a sensor reading into a brightness level for an LED and how a sketch can move a servo motor. A musical example shows why the order of values in an array matters: each tone needs to line up with its duration for the sketch to play the tune as intended. By the end, you will have a foundation in C and C++ for Arduino and a way to test your ideas one step at a time as you take on your own electronics or robotics projects.

Course content

  • Video class: 1. Learning to code C/C++ with Arduino: Arduino Uno Board Overview 08m
  • Exercise: How can an Arduino program use digital pins?
  • Video class: 2. Learning to code C/C++ with Arduino: Arduino Create 08m
  • Exercise: Match each Arduino tool or action to its purpose.
  • Video class: 3. Learning to code C/C++ with Arduino: Getting Started Programming in the Arduino IDE 10m
  • Exercise: Identify how Arduino's main functions run.
  • Video class: 4. Learning to code C/C++ with Arduino: Variables 19m
  • Video class: 5. Learning to code C/C++ with Arduino: Serial monitor + Assignment operator 14m
  • Exercise: Use the compound addition assignment operator to increase the counter.
  • Video class: 6. Learning to code C/C++ with Arduino: If-Else statements and Conditionals 15m
  • Exercise: Build a sentence describing how an if statement works.
  • Video class: 7. Learning to code C/C++ with Arduino: Digital Inputs 06m
  • Exercise: Order the steps to read a properly wired button on pin 8 and print its state. Assume Serial is already initialized.
  • Video class: 8. Learning to code C/C++ with Arduino: Pull up and Pull down resistors 06m
  • Exercise: Why use a pull-down resistor with an Arduino button input?
  • Video class: Internal Pullups: Learning to code C/C++ with Arduino, part 9 10m
  • Exercise: Match each Arduino button concept with its function or state.
  • Video class: Functions: Learning to code C/C++ with Arduino, part 10 16m
  • Exercise: Does defining a function execute its code?
  • Video class: Global Variables and Variable Scope: Learning to code C/C++ with Arduino, part 11 08m
  • Exercise: Identify the scope of an Arduino variable.
  • Video class: Comparison and Operator Examples: Learning to code C/C++ with Arduino, part 12 11m
  • Exercise: Build a sentence describing the modulo operator.
  • Video class: If-Else Statements and Counting Button Presses: Learning to code C/C++ with Arduino, part 13 12m
  • Exercise: Order the steps when the first condition is false and the else if condition is true.
  • Video class: Interrupts: Learning to code C/C++ with Arduino, part 14 09m
  • Exercise: Why use an interrupt for a button in an Arduino program with long delays?
  • Video class: Analog Inputs: Learning to code C/C++ with Arduino, part 15 12m
  • Exercise: Match each Arduino code element to its role in controlling an LED with an analog sensor.
  • Video class: AnalogWrite(): Learning to code C/C++ with Arduino, part 16 07m
  • Exercise: Check your understanding of Arduino PWM output.
  • Video class: map() function: Learning to code C/C++ with Arduino, part 17 10m
  • Exercise: Complete the Arduino function call to scale a sensor reading for LED brightness.
  • Video class: Controlling Servo Motors: Learning to code C/C++ with Arduino, part 18 08m
  • Exercise: Build a sentence about controlling an Arduino servo.
  • Video class: Analog Sensors: Learning to code C/C++ with Arduino, part 19 06m
  • Exercise: Order the statements in loop() to read A0, map its measured range to 0–100, and print the result. Assume Serial is already initialized.
  • Video class: Arrays + Creating Songs: Learning to code C/C++ with Arduino, part 20 13m
  • Exercise: Why should the tones and delays arrays have the same number of elements in an Arduino song sketch?

This free course includes:

Icon for learning via the audio course

3 hours and 38 minutes of online video course

Icon for the digital course completion certificate

Digital certificate of course completion (Free)

Icon for exercises to practice what you've learned

Exercises to train your knowledge

Icon for courses that are 100% free from start to finish

100% free, from content to certificate

Why does an Arduino button need a pull-up or pull-down resistor?

It keeps the input at a stable HIGH or LOW state when the button is not pressed.

How can Arduino map a sensor reading to LED brightness?

Use map() to scale the reading to 0–255, then pass it to analogWrite() on a PWM pin.

Why use an interrupt for an Arduino button during long delays?

An interrupt can detect a button press while the main program is delayed.

Ready to get started?Download the app and get started today.

Install the app now

to access the course
Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

QR Code - Download Cursa - Online Courses