Programming Arduino: Getting Started with Sketches
4.7 (11 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
95 students enrolled

Programming Arduino: Getting Started with Sketches

Learn how to program your Arduino
4.7 (11 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
95 students enrolled
Created by Dr Simon Monk
Last updated 5/2020
Current price: $11.99 Original price: $19.99 Discount: 40% off
13 minutes left at this price!
30-Day Money-Back Guarantee
This course includes
  • 3.5 hours on-demand video
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • How to write Arduino C for their Arduino
  • How to use the Serial Monitor
  • How to write code to access digital and analog inputs and outputs
  • How to write their own functions
  • How to use arrays and strings
  • An Arduino Uno and USB cable
  • Optionally a multimeter and wire

This course is intended for the Arduino beginner who wants to learn how to write code for their Arduino. The course concentrates on how to program your Arduino rather than electronics and is based on my best selling book Programming Arduino: Getting Started with Sketches.

The course explains in simple terms what is meant by a program and then leads the participant in a step-by-step manner through the process of writing their first sketch (Arduino program). The course lectures are supplemented with exercises to reinforce the participants understanding.

After completing this course you will be able to write simple programs for your Arduino and will have learnt a fair bit about the C programming language that Arduino uses.

Who this course is for:
  • Beginner Arduino users new to programming
  • Electronics hobbyists wanting to learn how to program a microcontroiller
  • Students and educators interested in embedded software
Course content
Expand all 31 lectures 03:22:30
+ Introduction
2 lectures 05:29

This lecture introduces the presenter and explains the course structure.

Preview 03:06

In this lecture, I will explain what hardware you need to get the most out of this course.

Preview 02:23
+ Getting Started
4 lectures 16:50

This is a short introduction to the lectures in this section.


In this lecture, you will learn how to install the Arduino IDE onto your computer.

Installing the Arduino IDE

Learn how to upload your first program to your Arduino

Connecting and Uploading

This is a guided tour of the various connectors and key components to be found on an Arduino Uno.

A Tour of the Arduino Uno

Test your knowledge of installing the Arduino and uploading your first sketch.

Getting Started
4 questions
+ C Language Basics
6 lectures 52:57

This lecture introduces this section on C Language basics, where you will write your first code for the Arduino.


This lecture explains exactly what a program is and how it makes its way onto your Arduino.

Programming and Compilation

In this lecture, we will revisit the Blink sketch and look at how it works in a bit more detail.

Blink Again

Variables are an important part of programming. In this lecture you will learn how to define and use variables as well as understanding the related concept of constants.

Variables and Constants

The Serial Monitor is a great way of seeing what's going on in your sketch. Here, we explore the use of the Serial Monitor to send messages from an Arduino to a computer over USB.


In this lecture you will learn C's various commands like the if, while and for commands that help make your sketches smarter.


Test your knowledge of the basics of C programming.

C Language Basics
7 questions
+ Functions
5 lectures 36:59

C programs are structured into blocks of code called Functions. This lecture looks  both built-in functions and functions that you write to add structure to your code.


Following on from the first lecture on functions, this lecture looks a bit more deeply into the anatomy of a function.

Functions, Parameters and Return Values

Not all variables are the same, so in this lecture, you will learn about global and local variables and the various problems that can arise when using them.

Preview 06:30

In this lecture we will learn about some new variable types.


Writing code that works is one thing. Writing code that you can follow a few months later or pass on to someone else is quite another. This lecture gives you some guidance as to how to write good code.

Preview 08:06

Test your knowledge on C functions.

7 questions
+ Arrays and Strings
4 lectures 27:32

This section looks at how C deals with lists of values and text. After a few simple examples, the time has come to take off the training wheels and tackle a real programming project in the form of a Morse Code translator that converts text that you type into the Serial Monitor into flashes or Morse code from an LED.


C arrays allow you to make use of lists of values. This lecture explains this and illustrates it with a simple example using an array of int values.


So far in this course, we have mostly been using numbers. In this lecture you will learn how Arduino's can also do things with text. This can be used for the Arduino to send text messages to your computer over USB or for situations you might meet in the future where some kind of text display is attached to an Arduino.


This step-by-step example leads you through the process of coding a Morse Code translator. A few new C features are introduced along the way, but more importantly, the process of thinking-up a sketch is explained.

Preview 13:17

Test your knowledge of C arrays and character strings.

Arrays and Strings
6 questions
+ Inputs and Outputs
5 lectures 31:47

This section introduces the section and explains what you will need in the way of hardware.


This lecture expands on what you have already experienced with digital outputs, and with the aid of a multimeter you will learn a bit more about what's going on and also learn how to write programs that allow you to turn pins on and off on your Arduino using the Serial Monitor on your computer.

Digital Outputs

In this lecture, you will learn how to use a digital input and piece of wire as a switch and also how to attach a real switch to an Arduino and respond, in your code, to the switch being pushed.

Digital Inputs

Where as digital outputs are simple on off things, analog outputs allow you to deliver a variable output. In this lecture you will learn how to use analog outputs from your code and even dial-up a particular output pin voltage from your computer using the Serial Monitor.

Preview 06:08

In this lecture, you will explore using analog inputs to measure the voltage at a pin.

Analog Inputs

Test your knowledge on using Arduino pins for inputs and output of electrical signals.

Inputs and Outputs
7 questions
+ The Arduino Library
4 lectures 24:26

This lecture introduces the section on the Arduino and C libraries.


In this lecture you will experiment with the Arduino's ability to make random numbers and along the way make a simple dice project using the Arduino's built-in LED.

Random Numbers

This lecture explores some of the functions available to you for taking arithmetic beyond adding, subtracting, dividing and multiplying.

Math Functions

This lecture will teach you about bits and bytes and how to use binary and hex in your code.

Bit Manipulation

Test your knowledge on some of the aspects of the Arduino Library that we have explored.

The Arduino Library
5 questions
+ Next Steps
1 lecture 06:30

This lecture gives you some pointers for continuing your Arduino adventure.

Next Steps