The Arduino platform and

C PROGRAMMING

About this course: The Arduino is an open-source computer hardware/software platform for building digital devices and interactive objects that can sense and control the physical world around them. In this class you will learn how the Arduino platform works in terms of the physical board and libraries and the IDE (integrated development environment). You will also learn about shields, which are smaller boards that plug into the main Arduino board to perform other functions such as sensing light, heat, GPS tracking, or providing a user interface display. The course will also cover programming the Arduino using C code and accessing the pins on the board via the software to control external devices. Please note that this course does not include discussion forums.

Course duration:  3 weeks

Created by:  BrilliantArms, India

Module 1
Arduino Environment
This module provides an introduction to the Arduino environment which is composed of three things: the Arduino board, the Arduino IDE, and the Arduino-compatible shields together with their libraries. We first investigate the board, discussing all of its main components, inputs, and outputs. We discuss how each component is used and we examine the board schematic to see how they are connected. We then discuss the Arduino Integrated Development Environment (IDE) which is used primarily to write, compile, and upload code. We survey the interface of the IDE and discuss how to install and use it. We also examine the use of shields to extend the functionality of an Arduino-based system. We discuss how shield libraries provide a useful abstraction to facilitate programming.
  1. Lecture 1.1: Arduino Platform
  2. Lecture 1.2: Arduino Board
  3. Lecture 1.3: Direct Programming
  4. Lecture 2.1: Arduino Schematics
  5. Lecture 2.2: Arduino IDE
  6. Lecture 2.3: Compiling Code
  7. Lecture 3.1: Arduino Shields and Libraries
  8. Lecture 3.2: Arduino Basic Setup
Module 2
C Programming
This module covers the basics of the C programming language which will be used to write code for the Arduino. The course first covers basic syntax, variables, and types. Most of the basic C operators are presented. Conditional statements (if, switch) and loops (while, for) are described. The concept of functions is presented together with how to define and call functions. Creation and use of global variables is explained.
  1. Lecture 1.1: Setting Up Your Environment
  2. Lecture 1.2: Hello World
  3. Lecture 1.3: Variables
  4. Lecture 2.1: Basic C Operators
  5. Lecture 2.2: Conditionals
  6. Lecture 2.3: Loops
  7. Lecture 3.1: Functions
  8. Lecture 3.2: Global Variables

Module 3

Arduino Programs
This module describes the composition of an Arduino program, or sketch, and the process by which it is compiled and uploaded. The Arduino IDE is a user interface for the software tools which actually compile and upload the program. We outline the use of these tools in the build process. We describe the basic structure of a sketch, including the use of the setup() and loop() functions. The main interface of an Arduino is through its pins, so we describe how to access those pins from a sketch.
  1. Lecture 1.1: Arduino Toolchain
  2. Lecture 1.2: Cross-Compilation
  3. Lecture 1.3: Arduino Sketches
  4. Lecture 2.1: Classes
  5. Lecture 2.2: Sketch Structure
  6. Lecture 2.3: Pins
  7. Lecture 3.1: Input and Output
  8. Lecture 3.2: Blink Example

Module 4

Serial Communication
This module is an introduction on debugging embedded software on an Arduino. We discuss the basic debugging requirements: controllability and observability. The debugging environment available for an Arduino UNO is limited, so we describe how to use the UART communication protocol to gain controllability and observability. We present the use of the Serial library to communicate with the Arduino through the serial monitor.
  1. Video: Lecture 1.1: Debugging
  2. Video: Lecture 1.2: Debug Environments
  3. Video: Lecture 1.3: Debug via Serial
  4. Video: Lecture 2.1: UART Protocol
  5. Video: Lecture 2.2: UART Synchronization
  6. Video: Lecture 2.3: UART Parity and Stop
  7. Video: Lecture 3.1: Serial on Arduino
  8. Video: Lecture 3.2: Reading from Serial
YOU MAY ALSO LIKE