20
Introduction to Arduino MAE 106 - Robotics April 8 th , 2016

Introduction to Arduino - Henry Samueli School of …gram.eng.uci.edu/~dreinken/MAE106/static/docs/Arduino...• LCD screen • LED • ... Shields • Motor driver • Bluetooth •

Embed Size (px)

Citation preview

Introduction to ArduinoMAE 106 - Robotics

April 8th, 2016

What is an Arduino?

• Open-source platform• Board (microcontroller)• Software (IDE)

• Arduino advantages• Code uploaded via USB• Simplified C++• Standard form factor

• Designed and manufactured by the Arduino company

Development started in 2004

What is on the board?

• ATmega processor• 14 digital input/output pins• 6 analog inputs• USB connection• Reset button• Serial communication LEDs• Pin 13 LED

Seeeduino by Seeedstudio

What does it do?

• Main functionalities• Reads inputs• Processes• Outputs

• Usually used together with• Sensors• Actuators• Input/output devices• Shields

Sensors

• Accelerometer• Magnetometer• Reed switch• Encoder

Sensors

• Accelerometer• Magnetometer• Reed switch• Encoder• Potentiometer• Proximity sensor• Pressure• Gas sensor• ...

Actuators

• DC motor• Servo motor• Solenoid valve• ...

Input/output devices

• Computer• Potentiometer• Switch• LCD screen• LED• ...

Shields

• Motor driver• Bluetooth• SD card• Wi-Fi• ...

How does it work?

Inputdevice

Arduino

Outputdevice

Sensor Actuator

Feedback

Arduino application examples

• Weather station

ArduinoOutputdeviceSensor

Arduino application examples

• Weather station• Robots

Arduino

Sensor Actuator

Feedback

Arduino application examples

• Weather station• Robots• 3D printer

Inputdevice

Arduino

Outputdevice

Sensor Actuator

Feedback

Software overview

• Arduino IDE

• C++

• Sketches

• Compile & upload

(Integrated Development Environment)

With some predefined functions and constants

Arduino program

Contain setup and loop function

Select the right COM port and board

Sample sketch

Serial monitor

Used as input/output device.

Make sure that you select the appropriate baud rate.

Introduction to ArduinoMAE 106 - Robotics

April 8th, 2016