You are on page 1of 27

5/23/2015

m)
.co
Hands-on Certified Training on

Mechatronics

an
hm
with
Arduino

rre
Training by
Naveed ur Rehman

In assistance with

du
Muhammad Amin Qureshi
ee
Lecture #1
v
na
n(

PLEASE NOTE
ma

Softcopy of study material will be shared on


Google Drive:
eh

http://goo.gl/2xij0V
rR

During class, use this link:


http://192.168.5.123/arduino
du

Keep in touch and give us feedback at


ee

FB Event Page:
http://goo.gl/z4eWkF
v
Na

1
5/23/2015

m)
.co
Ever wondered, how they work?

an
hm
rre
du
v ee
na
n(

Answer: Arduino!
ma

The Arduino board can


help you find some of the
eh

answers to the mysteries


rR

of electronics in a hands-
on way.
du

There are variety of


boards available to fulfill
ee

your specific needs.


v
Na

2
5/23/2015

m)
.co
Inventors

an
hm
Massimo Banzi

rre
du
David Cuartielles
vee
na
n(

More about Arduino


ma

1. Introduced in 2005.
2. Supported by huge
eh

open-source community.
rR

Installation
http://www.arduino.cc/en/Guide/HomePage
Support
du

http://www.arduino.cc
http://www.freeduino.org
ee

http://instructables.com/
v
Na

3
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
LED Cube
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

Power Laces
v
Na

4
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
Plantduino Greenhouse
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

The EyeWriter 2.0


v
Na

5
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
Flamethrowing Jack-O'-Lantern
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

Twitter Mood Light


v
Na

6
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
Arduino-Powered Temperature Controller
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

Make a 24X6 LED matrix


v
Na

7
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
Secret Knock Detecting Door Lock
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

Minicart
v
Na

8
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
Tree Climbing Robot
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

Arduino R/C Lawnmower


v
Na

9
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
Sitway
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

Ardupilot: Plane
v
Na

10
5/23/2015

m)
.co
Awesome Projects with Arduino

an
hm
rre
du
ee
Ardupilot: Autorover
v
na
n(

Awesome Projects with Arduino


ma
eh
rR
du
ee

Robotic Arms Powered by Arduino


v
Na

11
5/23/2015

m)
.co
First of all, do you know?

an
hm
rre
du
v ee
na
n(

You can not see electricity!


ma
eh
rR
du
ee
v
Na

12
5/23/2015

m)
.co
Current: Water analogy

an
hm
rre
du
v ee
na
n(

Current
ma

Symbol:
I
eh
rR

Unit:
Amperes (or A)
du

Measured by:
Ammeter
ee
v
Na

13
5/23/2015

m)
.co
Current: Flow types

an
hm
rre
du
v ee
na
n(

Voltage: Water analogy


ma
eh
rR

A
du

B
ee
v
Na

14
5/23/2015

m)
.co
Voltage

an
Symbol:
V

hm
Unit:

rre
Volts (or V)

du
Measured by:
Voltmeter
v ee
na
n(

Electric Circuit: Water analogy


ma
eh
rR
du
ee
v
Na

15
5/23/2015

m)
.co
Electric Circuit

an
hm
rre
du
v ee
na
n(

Electric Circuit: States


ma
eh
rR
du
ee
v
Na

16
5/23/2015

m)
.co
Resistance: Water analogy

an
hm
rre
du
v ee
na
n(

Resistance: In circuit
ma
eh
rR
du
ee
v
Na

17
5/23/2015

m)
.co
Resistance

an
Symbol:
R

hm
Unit:

rre
Ohms (or Ω)

du
Measured by:
Ohmmeter
v ee
na
n(

Resistance: How much?


ma

Too much resistance will never allow


current to travel through the whole
eh

circuit!
rR

Too little resistances may fry some of


your components!
du
ee
v
Na

18
5/23/2015

m)
.co
Ohm’s Law

an
hm
rre
du
v ee
na
n(

Resistance: Connections
ma

Resistances in Series
eh
rR
du
ee
v
Na

19
5/23/2015

m)
.co
Resistance: Connections

an
Resistances in Parallel

hm
rre
du
v ee
na
n(

Batteries
ma

Power to your projects


eh
rR
du

Example: AA, AAA, C, D, Coin Cell, Lithium Polymer etc.


ee
v
Na

20
5/23/2015

m)
.co
Batteries: Terminals

an
hm
Positive (+): Power

rre
Negative (-): Ground

du
v ee
na
n(

Batteries: Ratings
ma

Volt (V)
Capacity (Ah or mAh)
eh

Example:
rR

1.2 V Battery 2.5 Ah


Circuit requires 0.1 A current, how many hours will it
last?
du

Solution:
2.5 Ah / 0.1 A x 0.7 = 17.5 h
Factor 0.7 serves for the fact that you do not
ee

completely drain your battery, the temperature and


humidity etc.
v
Na

21
5/23/2015

m)
.co
Batteries: Connections

an
Series connections:

hm
Rise of overall voltage of battery bank
More power!

rre
du
v ee
na
n(

Batteries: Connections
ma

Parallel connections:
eh

Rise of overall capacity of battery bank


Last longer!
rR
du
ee
v
Na

22
Na
vee
du
rR
eh
ma
n(
na
Jumpers

Breadboard
ee
du
rre
hm
an
.co
m)

23
5/23/2015
5/23/2015

m)
.co
Breadboard: Powering

an
hm
Power

rre
du
Ground vee
na
n(

Breadboard: Powering
ma
eh
rR
du

Ground

Power
ee
v
Na

24
Na
vee
du
rR
eh
ma
n(
na
vee
Breadboard: Caution

du
rre
hm
an
.co
m)

25
5/23/2015
5/23/2015

m)
.co
Multimeter: Purpose

an
1. Testing continuity
2. Measure resistance

hm
3. Measure voltage
4. Measure current

rre
du
v ee
na
n(

Multimeter: Let’s play!


ma

Things you should do:


1. Check continuity by joining probes
eh

2. Check breadboard rails short circuit


3. Measure resistance of a random resistance
rR

4. Measure equivalent resistance of two resistances in


series
5. Measure equivalent resistance of two resistances in
du

parallel
6. Measure voltage of a battery
7. Measure voltage drop against each resistor in a two-
ee

resistor series circuit, powered by battery


8. Glow an LED using 230 Ω resistor powered by battery
v
Na

26
5/23/2015

m)
.co
Voltage Divider

an
=5V Usually a “sensor”

hm
To Arduino pin

rre
du
To control sensitivity
(1 – 10 kΩ)
Fraction of input voltage is
ee
obtained at output.
v
na
n(

Naveed ur Rehman Muhammad Amin Qureshi


r R #1

Expert Trainer Training Assistant


wwwnaveedurrehman.com fb.com/ameen85
ma

Hands-on Certified Training on Mechatronics with Arduino


held at NED University of Engineering and Technology, Karachi
Lecture

16 May to 14 Jun, 15
eh
du

Thank You!
We’ll love to hear from you!!
ee

http://goo.gl/z4eWkF
v
Na

27

You might also like