23

Arduino Hands-on Workshop

Embed Size (px)

Citation preview

Page 1: Arduino Hands-on Workshop
Page 2: Arduino Hands-on Workshop

A brief history...

● In 2005, a project was initiated to make a device for controlling student-built interactive design projects that was less expensive than other prototyping systems available at the time.

● Founders Massimo Banzi and David Cuartielles named the project after Arduin of Ivrea and began producing boards in a small factory located in Ivrea.

Page 3: Arduino Hands-on Workshop

Founders

Page 4: Arduino Hands-on Workshop

What is an Arduino?

● Single-board microcontroller, intended to make the application of interactive objects or environments more accessible .

● Designed to make the process of using electronics multidisciplinary projects more accesible.

● It is an open source hardware, any one can get the details of its design and modify it or make his own one himself.

Page 5: Arduino Hands-on Workshop

Microcontroller

● A microcontroller is a small computer on a single integrated circuit.

● It is similar to, but less sophisticated than, a system on a chip or SoC.

● It is a micro-computer. As any computer it has internal CPU, RAM, IOs interface.

● Few famous microcontroller manufacturers are MicroChip, Atmel, Intel, Analog devices, and more.

Page 6: Arduino Hands-on Workshop

Arduino can...

● Sense the environment by receiving input from variety of sensors ( to sense stuff ).

- Push buttons- Variable resistors- Photoresistors- Thermistors

● Affect its surroundings by controlling lights, motors, and other actuators ( to do stuff ).

- LEDs- Motors- Speakers- LCD

Page 7: Arduino Hands-on Workshop

Arduino boards

Page 8: Arduino Hands-on Workshop

Arduino UNO

Page 9: Arduino Hands-on Workshop

Arduino UNO features● Microcontroller● ATmega328● Operating Voltage 5V and 3.3 V● Input Voltage (recommended) 7-12V● Input Voltage (limits)● Digital I/O Pins● Analog Input Pins 6● DC Current per I/O Pin 40 mA● DC Current for 3.3V Pin50 mA● Flash Memory 32 KB (ATmega328) of which 0.5 KB used by Bootloader● SRAM● EEPROM 1 KB (ATmega328)● Clock Speed 16 MHz

Page 10: Arduino Hands-on Workshop

Other prototyping boards

● Raspberry pie● Beagle board● Panda board● Cotton candy● CubieBoard● APC Rock● Hackberry● Gooseberry

Page 11: Arduino Hands-on Workshop

Arduino vs others

● Support for analog input● Comparatively cheap● PWM output available● Open source● Limited Computing power● No GPU unit● Limited memory

Page 12: Arduino Hands-on Workshop

COTS

Page 13: Arduino Hands-on Workshop

Arduino is a platform

Page 14: Arduino Hands-on Workshop

Arduino IDE

Page 15: Arduino Hands-on Workshop

Programming

● The Arduino Uno can be programmed with the Arduino software IDE (integrated development environment).

● Programming language used is C like but more towards Processing language.

● The Atmega328 on the Arduino Uno comes preburned with a Bootloader that allows you to upload new code to it without the use of an external hardware programmer.

Page 16: Arduino Hands-on Workshop

Processing

An open source computer programming language and integrateddevelopment environment (IDE) built for

- Electronic arts- New media arts- Visual design

Examples : https://processing.org/examples/

Page 17: Arduino Hands-on Workshop

Arduino is a platform

Page 18: Arduino Hands-on Workshop

A C program

#include<stdio.h>

int main(){

Printf(“Hello, world!”);}

Page 19: Arduino Hands-on Workshop

Hello, world! in Arduino

Page 20: Arduino Hands-on Workshop

LDR with Arduino

Page 21: Arduino Hands-on Workshop

LDR with Arduino

Page 22: Arduino Hands-on Workshop

LM35 with Arduino

Page 23: Arduino Hands-on Workshop

Let’s get started...