Interfacing with the Arduino

Interfacing with the Arduino

University of California, Irvine

About this course: Arduino senses the environment by receiving inputs from add-on devices such as sensors, and can control the world around it by adjusting lights, motors, and other actuators. In this class you will learn how and when to use the different types of sensors and how to connect them to the Arduino. Since the external world uses continuous or analog signals and the hardware is digital you will learn how these signals are converted back-and-forth and how this must be considered as you program your device. You'll also learn about the use of Arduino-specific shields and the shields software libraries to interface with the real world. Please note that this course does not include discussion forums.

IoT devices involve a combination of software and hardware. This module provides background on the basics of hardware design and wiring needed to build useful circuits. This module describes the functions of basic passive components and describes how to use them in simple circuits. This module also describes how to wire circuits together using a breadboard. The goal of this module is to enable students to design and implement the circuits they need to interact with basic sensors and actuators.

10 videos, 3 readings

Reading: Pre-Course Survey

Reading: Course Overview

Reading: Module 1 Reading

Video: Module 1 Introduction (video)

Video: Lecture 1.1 - Electrical Circuits

Video: Lecture 1.2 - Electrical Properties

Video: Lecture 1.3 - Ohm's Law

Video: Lecture 2.1 - Electrical Components

Video: Lecture 2.2 - Diodes

Video: Lecture 2.3 - Switches, Potentiometers

Video: Lecture 3.1 - Wiring

Video: Lecture 3.2 - Wiring Demo, Pushbutton

Video: Lecture 3.3 - Wiring Demo, Potentiometer

Graded: Module 1 Quiz

Graded: Peer Assignment: Build a Circuit

WEEK 2

Module 2

This module introduces sensors and actuators and discusses how to interface with them. We’ll examine different classes of sensors and actuators. For each type of sensor/actuator, we’ll examine the circuitry needed to interface with it. Additionally, we’ll take a look at the Arduino code needed to communicate with the sensors and actuators.

10 videos, 1 reading

Reading: Module 2 Reading

Video: Module 2 Introduction (video)

Video: Lecture 1.1. - Sensors

Video: Lecture 1.2 - Resistive Sensors

Video: Lecture 1.3 - Resistive Sensor Demo

Video: Lecture 2.1 - Actuators

Video: Lecture 2.2 - Analog Actuators

Video: Lecture 2.3 - Pulse Width Modulation

Video: Lecture 3.1 - Demo Fade Example

Video: Lecture 3.2 - Making Sounds

Video: Lecture 3.3 - Demo Music System

Graded: Module 2 Quiz

Graded: Peer Asssignment: Light an LED

WEEK 3

Module 3

This module introduces the use of software libraries with an Arduino sketch. One of the best aspects of the Arduino environment is that the use of good libraries allows a programmer to use complicated hardware without dealing with the complexity. The Arduino environment is supported by many libraries and this module examines the use of several of the more common libraries that allow the use of hardware peripherals in the microprocessor.

10 videos, 1 reading

Reading: Module 3 Reading

Video: Module 3 Introduction (video)

Video: Lecture 1.1 - Arduino Libraries

Video: Lecture 1.2 - EEPROM

Video: Lecture 1.3 - Masking

Video: Lecture 2.1 - I2C Communication

Video: Lecture 2.2 - I2C Transactions

Video: Lecture 2.3 - Sending Bits

Video: Lecture 3.1 - Wire Library

Video: Lecture 3.2 - Master Communication

Video: Lecture 3.3 - Slave Operation

Graded: Module 3 Quiz

Graded: Peer Assignment: EEPROM Sketch

WEEK 4

Module 4

In this module we’ll examine Arduino shields and how they are used to extend the capabilities of an Arduino-based system. Shields are printed circuit boards that are stacked on top of the Arduino together with libraries that enable the new hardware to be used through an Arduino sketch. We’ll describe the benefits of shields and their basic construction as well as the use of libraries in interfacing with each shield.
This module also describes how to connect your IoT device to the Internet using shields. We focus on an Ethernet shield in order to establish a wired network connection, and a WiFi shield to establish a wireless connection.

10 videos, 2 readings

Reading: Module 4 Reading

Video: Module 4 Introduction (video)

Video: Lecture 1.1 - Arduino Shields

Video: Lecture 1.2 - Ethernet Shield

Video: Lecture 1.3 - Ethernet Library

Video: Lecture 2.1 - Ethernet Client

Video: Lecture 2.2 - Client Examples

Video: Lecture 2.3 - Ethernet Server

Video: Lecture 2.4 - Ethernet Shield Demo

Video: Lecture 3.1 - WiFi Shield

Video: Lecture 3.2 - WiFi Shield Demo

Reading: End-of-Course Survey

Graded: Module 4 Quiz

Graded: Peer Assignment: Use the Servo Library

FAQs

How It Works

Coursework

Each course is like an interactive textbook, featuring pre-recorded videos, quizzes and projects.

Help from Your Peers

Connect with thousands of other learners and debate ideas, discuss course material,
and get help mastering concepts.

Certificates

Earn official recognition for your work, and share your success with friends,
colleagues, and employers.

Creators

University of California, Irvine

Since 1965, the University of California, Irvine has combined the strengths of a major research university with the bounty of an incomparable Southern California location. UCI’s unyielding commitment to rigorous academics, cutting-edge research, and leadership and character development makes the campus a driving force for innovation and discovery that serves our local, national and global communities in many ways.