Upload
openembedded
View
887
Download
4
Tags:
Embed Size (px)
DESCRIPTION
This explains about arduino labs and is intro to arduino labs.
Citation preview
Arduino Labs
Arduino Labs V4 Dated June 10,2011
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.
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.
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)
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
After That
Integrate Multiple Devices
Add user interface / sequence
Create a real life application that inspires you.
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
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.
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
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.
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.
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.
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
Pin Mapping
Analog 0-5 are also Digital 14-19
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.
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
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
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.
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.
Contact Have more ideas, queries, suggestions?
Contact me at -
Vinay Chaddha
email : [email protected]
SMS : 9811074026
know more about me at visualcv.com/gvc3065
Check us online
Join our facebook page at facebook.com/open.embedded
Buy products from myworld.ebay.in/open.embedded
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