You are on page 1of 16

Arduino UNO Controller

Introduction

Presented by:
Daw Moe Moe San
Assistant Lecturer
TU(Maubin)
Automatic control circuit (Intelligent)
Complete circuit

controller Related components

Arduino controller

Software
Arduino board
(C++)
Introduction
 Is a controller
 Use easily
 Is Open source
 Started in Itly
 Low cost hardware
 Language: Simplified version of C/C++
What can do?

Write programs, create interface circuits


To read switches
To read sensors
To control motors
To control lights
Important Features of Arduino
 Create a control program on the host PC
 Download the program to the Arduino
 Run automatically
 Remove USB cable connection, still run from the top each time,
 Push the reset button
 Remove the battery, closet for 6 months
 Reconnect the battery, last program run
What do you need for a working system?
 Arduino UNO board
 USB Programming Cable
 9V Battery or External power supply (for stand-alone operation)
 Solderless Breadboard for External Circuits
 22g Solid Wire for Connections
 Host PC running the Arduino Development Environment
( Windows, Mac and Linux)
Arduino Uno Board PWM Pin
(11,10,9,6,5,3)

Digital port (2 to 13) Serial port


Reset Button (Rx, Tx)

USB Plug

Microcontroller
External
Power
Supply

3.3V Analog inputs for ADC


output

5V External Power
output Supply like Battery
GND
Various Ways of Power Supply for Board
Continued
 the range of 6 to 24 V Battery
 a standard 9V battery is convenient
Warning:
Watch the polarity, connect the battery to snap as reverse
orientation could blow out your board.

Moving On
 Do not put the board down on a conductive surface; will short out the
pins on the back!
Arduino Development Environment
 Installing the software
 Follow the instruction on the Getting started section of the
Arduino web site
 http://arduino.cc/en/Guide/Homepage
 Go all the way through the steps
 See the pin13 LED blinking
 Have all software and drivers successfully installed
 Start your own program
Arduino Software (IDE)
Menu Bar
Tool bar
Sketch Tabs

Code Space

Status Display

Port No.
Verify (Compiling) Upload (upload to Arduino Uno board)
Sketch and It’s Serial Monitor Output
Arduino Programming Basics
Command Description
pinMode(n,INPUT); Set pin n to act as an input. One-time command at top of program.
pinMode(n,OUTPUT); Set pin n to act as an output.
digitalWrite(n,HIGH); Set pin n to 5V.
digitalWrite(n,LOW); Set pin n to 0V.
delay(x); Pause program for x millisec, x = 0 to 65,535
tone(n,f,d); Play tone of frequency Hz for d millisec on speakerattached to pin n
for() Loop. Example: for(i=0;i<3;i++){}. Do the instruction enclosed by {}
if(expr){} Conditional branch. If expr is true, do instructions enclosed by {}
while(expr){} While expr is true, repeat instructions in {} indefinitely
Arduino Programming Language Components

Structure Variables Functions

Basic Syntax Constants Digital I/O


Arithmetic Operators Data Types Analog I/O
Control Structures Scope Math
Comparison Operators Serial Communication
Boolean Operators Defining your own
Arduino Home Page:
http://www.Arduino.cc/

Good source for Arduino hardware


www.sparkfun.com

THANK YOU!

You might also like