arduino labs introduction

22
Arduino Labs Arduino Labs V4 Dated June 10,2011

Upload: openembedded

Post on 16-Jan-2015

893 views

Category:

Self Improvement


4 download

DESCRIPTION

This explains about arduino labs and is intro to arduino labs.

TRANSCRIPT

Page 1: Arduino Labs Introduction

Arduino Labs

Arduino Labs V4 Dated June 10,2011

Page 2: Arduino Labs Introduction

Why ArduinoIt is low cost - Just Rs 500/- gets you started.

It is easy - 1 hours on PC and you are confident.

It is open source - nothing is hidden.

It is multi platform - Windows, Linux, Apple Mac OSX

It can create complex applications/products.

Page 3: Arduino Labs Introduction

Simple Labs

Lab 1 deals with just one LED, start with a simple blinker to code that says SOS or SMS (morse code)

Lab 2 deals with serial port or interface computer with Arduino Port

Lab 3 onwards there are little more complex devices ranging from Numeric displays to GSM/GPS devices.

Page 4: Arduino Labs Introduction

What will you learn

Basic Grammer, Simple commands

Communication between 2 devices (computer and embedded unit)

Communication between 3 devices (complex embedded unit, simple embedded unit and computer)

Page 5: Arduino Labs Introduction

What NextInterface simple other devices

- Alpha numeric devices

- Key board and Digital Display

- Real Time Clock

- Relay and Opto couplers

- Temprature, Current, Voltage

- DTMF Signals

Page 6: Arduino Labs Introduction

After That

Integrate Multiple Devices

Add user interface / sequence

Create a real life application that inspires you.

Page 7: Arduino Labs Introduction

Material Required

Computer with Linux/Windows/MAC OS with RS232 port

Arduino Board with pre-programmed ic with boot loader

+12V Power Supply

RS232 Cable

Arduino Circuit and pin out details

Page 8: Arduino Labs Introduction

InstallationDownload and Install latest version of Arduino software.

Connect Arduino board with power supply and RS232 port.

Note the mcu on Arduino and Serial port of computer

Run ARDUINO. Select board and port from tool menu.

Page 9: Arduino Labs Introduction

Arduino Pin NumbersArduino board has 20 I/O lines.

Numbered from 0 to 19

All are general purpose I/O

Some has additional functions

Pin 13 is LED on Board. It glows when pin is HIGH and off when LOW.

Others will be discussed later

Page 10: Arduino Labs Introduction

Some Common WordsSketch - Program that runs on the arduino boards.

Digital - Only two values 1(HIGH) or 0(LOW).

Analog - Multiple values (like volume, light intensity) Usually has a range from 0 to 255.

Pin - input or output connected to something like switch or led.

Page 11: Arduino Labs Introduction

More Common WordsPort - Serial port on which arduino is connected for uploading the program (sketch).

Bootlaoder - Like OS. A program that starts first. Wait for new user program. If nothing received then start the existing user’s program.

Upload - A process done at computer that sends the user program via serial port to Arduino.

Page 12: Arduino Labs Introduction

Just Remember

Select proper com port (Tools | Serial port)

Select proper board (Tools | Boards). For version 1 it is Arduino NG or Older with ATMEGA168 (some may have ATMEGA8)

When uploading ensure that Hyperteminal is disconnected or close.

Page 13: Arduino Labs Introduction

ICSP

LED14 (POWER)

JP4

0 0 0

D2

D3

D1

1 2 3 4 5 ANALOG IN

DC1

LED1(Rx)

LED0(Tx)C1 C2 C3

R3

R2

R1

R4

R5

R6

R7 R8

AR

EF 0V 13 12 11 10 9 8 7 6 5 4 3 2 1 0

PWM (PWM-AT168)

T1

T2

C7C6

C8

PIN 13

9V5VNC

RST

SCL

SDA

POWER

C5

L1

S1

R9

R10

R11

C9

JP0

TX

RX

SERIAL ENABLE

PIN 0/1 GND REF

PIN 2(TxD)

PIN 3(RxD)

PIN 4(DSR)

PIN 5(GND)

16MHz

AU

TO R

ESET

C4

MISO SV

MOSI

GND

SCK

RST

12VGND

RESET

14 15 16 17 18 19 DIGITAL

Page 14: Arduino Labs Introduction

Pin Mapping

Analog 0-5 are also Digital 14-19

Page 15: Arduino Labs Introduction

Common Queries

I am doing MCA. I have no Idea about elecronics.

- That’s okay.

- There is no electronics more than you have in PC.

- In PC you connect key board, mouse, pen driver, external HDD/CDROM, modem or Monitor.

- Here also you may connect some boards like GPS or GSM or Display.

Page 16: Arduino Labs Introduction

Common QueriesThis is too simple. I plan to work on sound analysis or TCP/IP protocols

- That’s okay.

- Inital labs deal with leds and serial port.

- Very soon you will be able to connect to a server via TCP protocols or connet to ethernet or control a complete elevator with this board.

- By the way the speed of this board is more than 3X of that of IBM/PC - first popular computer that you may remember

Page 17: Arduino Labs Introduction

Common QueriesThis is only for hobby

- Yes, this is for hobby.

- And at the same time, it is used for commercial and power ful application.

- Some application that we have installed are remote monitoring of Mobile Phone Towers and Traffic Timers.

- Check on web, you may be able to find lot more serious application than hobby applications

Page 18: Arduino Labs Introduction

Common Queries

This version is with RS232 and only for Desktop

- This is an entry level model costing Rs 500/-

- Next model with USB connectivity is also available.

- More models with memory upto 128kb and I/Os upto 50 are available.

- They of course cost more. Yet the same programs will work on them as it is.

Page 19: Arduino Labs Introduction

Common QueriesDo I have to buy boards from you.

- The complete details including PCB design, circuit diagram are available from arduino.cc.

- All parts as well as complete boards are available in local markets in India. We recommend myworld.ebay.in/open.embedded

- On line training is open and free.

- Personal training is paid. There is nothing extra that is not on website.

Page 20: Arduino Labs Introduction

Contact Have more ideas, queries, suggestions?

Contact me at -

Vinay Chaddha

email : [email protected]

SMS : 9811074026

know more about me at visualcv.com/gvc3065

Page 22: Arduino Labs Introduction

Spread the knowledgeThis training is at zero cost to you

We request you to explain the process and give demo to 20 more students.

Update their names, college name, course name, semster, email id and mobile number to bit.ly/arduino-trainees