Top Banner
Arduino Labs Arduino Labs V2 Dated Dec 20,2009
20
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Arduino Labs

Arduino Labs

Arduino Labs V2 Dated Dec 20,2009

Page 2: Arduino Labs

Why ArduinoIt is low cost - Just Rs 1000/- 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

Simple LabsLab 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 interface GPS device and computer where location is sensed and displayed lat/long/time info on serial port

Page 4: Arduino Labs

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

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

After That

Integrate Multiple Devices

Add user interface / sequence

Create a real life application that inspires you.

Page 7: Arduino Labs

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

Page 8: Arduino Labs

InstallationDownload and Install latest version of Arduino software (017 as on Nov 2009)

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

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.

Page 10: Arduino Labs

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

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

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

ICSP

LED14 (POWER)

JP4

0 0 0

D2

D3

D1

1 2 3 4 5

ANALOG INDC1

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

Page 14: Arduino Labs

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 15: Arduino Labs

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 16: Arduino Labs

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 17: Arduino Labs

Common Queries

This version is with RS232 and only for Desktop

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

- 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 18: Arduino Labs

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.

- On line training is open and free.

- Personal training is available from various sources and is paid. There is nothing extra that is not on website.

Page 19: Arduino Labs

Contact

Have more ideas, queries, suggestions?

Contact me at -

Vinay Chaddha

email : [email protected]

SMS : 9811074026

Page 20: Arduino Labs

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