+ All Categories
Home > Documents > Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino...

Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino...

Date post: 24-Sep-2019
Category:
Upload: others
View: 7 times
Download: 1 times
Share this document with a friend
28
Arduino UNO R3 Board General Info Lecturer: Dr. Samuel Kosolapov
Transcript
Page 1: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino UNO R3 BoardGeneral Info

Lecturer: Dr. Samuel Kosolapov

Page 2: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Microprocessors of Stone Age

2

Intel introduced its first 4-bit microprocessor 4004 in 1971and its 8-bit microprocessor 8008 in 1972.

4004

First microcontrollers were simple (even primitive),

but a lot of external elementswere needed to be connected to use them

Page 3: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Programming microcontroller was not simple …

3

Programming of the first microprocessors was very sophisticated:

usage of Assembler or C with low-level operations

was required+ Special device (programmer) must be used

to enter the program into ROM

Page 4: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Idea: Full System on Board

4

Parallax Inc. BASIC StampCreated in early 1990s by hobbyists for hobbyists (and for the children).All needed (microprocessor, memory, crystal)

is soldered on the ready to use board of the small sizes of 24 pin DIP.(hence, the name: “stamp”)

board can be inserted to standard breadboard one can connect additional elements in a fast and simple way

“Children’ level” language: BASIC used to program the microcontrollerPractically, specialized BASIC interpreter (PBASIC) was burned into ROM on the board

Interpreter: short programs, but slow operation, still fast enough for many useful applications

Board Programming is simple: just connect RS232 (later USB) cablebetween the dedicated pins of the stamp and PC

Page 5: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Next idea: Prototyping Board

5

Ready for usagePROTOTYPE BOARD(Prototype Board, BASIC Stamp) with ALL needed in a simple board (even 9V battery)

BASICstamps were (and still are) widely used in robotic projects(as kids, as mechanics engineers can easily program robots, even sophisticated ones)

“Assemble your robot and then get ready to have some fun.Learn how to make your robot navigate

using a variety of sensors,using touch,

ultrasound, visible light, and more!”

Page 6: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Professional Development Boards

6

A number of professional multi-purpose development boards are known

EasyPIC Pro 7of mikroe.com (sic !)

A lot of buttons, led display,

touch screenUSB, Serial, Ethernet

connectors

On board programmatorand debugger

ports headersto connect

additional boards

Page 7: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

BASIC Stamp Arduino Boardhttps://en.wikipedia.org/wiki/Arduino

7

Arduino started in 2005 as a project for students at the Interaction Design Institute Ivrea in Ivrea, Italy.

At that time program students used a "BASIC Stamp" at a cost of $100, considered expensive for students.

Massimo Banzi, one of the founders, taught at Ivrea.The name "Arduino" comes from a bar in Ivrea, where some of the founders of the project used to meet. The bar, in turn, has been named after Arduin of Ivrea,

who was the margrave of Ivrea and king of Italy from 1002 to 1014.

The Arduino's initial core team consisted of Massimo Banzi, David Cuartielles, Tom Igoe, Gianluca Martino, and David Mellis.

Arduino is an open-source hardware and software platform for electronic prototyping. Price is ~ $3

Arduino is programmed by “modified “C”. (Actually, by using kids friendly OOP libraries) Arduino program is called “sketch”

Page 8: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino UNO R3 Boardhttps://www.arduino.cc/en/Reference/Board

8

USB port (yellow).

1. Used for uploading sketches to the board from the PC

2. Used for serial communication between the board and the PC.

3. Can be used to power the board (without PC connected).

Page 9: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

9

X1 (pink)

External Power Supply In(9-12VDC)

Important Details later(Better use USB

until full understanding)

Page 10: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

10

SV1 (purple)

Toggles External Power and USB Power

Our Arduino UNO R3 did not hasthose jumpers

Page 11: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

11

S1 (dark blue)

Reset ButtonThe most important button of every electronic system.

Do not press without understandinghow YOUR hardware

will behavein this case

Think about robot that will return back when some pin is LOW !!!!

Our Arduino INO R3 has this button near USB connector

Page 12: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

12

Power and Ground Pins(power: orange, grounds: light orange)

Do not use until full understanding… https://www.arduino.cc/en/Reference/Board

Our Arduino UNO R3 has more power pins

Page 13: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

13

ICSP In-circuit Serial Programmer(blue-green)

Do not use until full understanding…

Page 14: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

14

Pin GND (light green) : Ground. Any electronic system has ground.Never forgot this.

Page 15: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

15

Pin AREF: Reference voltage for the analog inputs. Voltage is set by calling analogReference()DEFAULT: 5 volts (on 5V Arduino boards)

or 3.3 volts (on 3.3V Arduino boards)

It is a common practiceTo use this pin as

plain 5Vtogether with GND pin

We will use AREF and GNDin order to power sensors and actuatorsfrom the KIT

To be sure, check that you have 5V

And do not call analogReference !!!

Page 16: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

16

Pins 0-13. (green and dark green). Digital pins.A lot of details and small letters later

Page 17: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

17

Pins 0-1. (dark green). Digital pins.They are reserved for serial communication(hardware UART: RX and TX)

It is possible to have a number of software UART connections(by using digital pins 2-13 and relevant library)

Despite possible, it is considered as bad practice to use them for other purposes(for example as plain Digital IO pins

Page 18: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

18

Pins 2-13. (green). Digital pins. Plain and simple digital IO.A lot of details and small letters later,For example: pins are protected (pull-up resistors), but…

Examples of special usagePins 2 and 3 can be used

to trigger external interrupt.

Pins 3, 5, 6, 9, 10,11 can be used for PWM

Pin 13 connected to the build-in LEDWhen the pin is HIGH (5V),

the LED is on, when the pin is LOW, (0) it's off.

We will use this pin in our first sketch(Blinking LED)

Page 19: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Boardhttps://www.arduino.cc/en/Reference/Board

19

Pins 0-5. (light blue). Analog IN pins. 10 bit ADC.Additional usage is possible.

Page 20: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Family ideas: Open Design

20

Anyone can build Arduino from basic elements. (But it is forbidden to use Arduino name without permit)https://www.arduino.cc/en/uploads/Main/Arduino_Uno_Rev3-schematic.pdf

Page 21: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Family ideas: Standard Header for any Arduino

21

There is a number of Arduino boards.They use different microprocessors.A number of companies have permit to produce ArduinoBUT: connector is (nearly) standard(at least for basic models)

Page 22: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Arduino Family ideas: Standard Header Shield

22

An important aspect of the Arduino is its standard connectors,

which lets users connect the Arduino boardto a variety of interchangeable add-on modules

known as shields.In most cases many shields can be stacked and used in parallel.

Page 23: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

New shields can be easily designed and produced as “professionally looked boards”

23

Free design tool Fritzinghttp://fritzing.org/home/

Use this simple utility to draw YOUR circuits withArduino UNO R3

and many other elements

Page 24: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Breadboard View

24

Very clear drawing is immediately created

Even child can build THISby using real Arduino,

Breadboard and selected

electronic components(It is possible to “build” on the breadboard directly,

by dragging relevant electronic components)

Page 25: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Professional PCB design created

25

Revise the layout. Edit in case of need (by moving electronic components)

When happy, send “THE FILE” to mass production…(with electronic components soldered, or without…)

Page 26: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Prototype Shield with Mini Breadboardhttp://www.dx.com/p/arduino-prototype-shield-with-mini-breadboard-65273#.ViUzy34rLcs

26

Page 27: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Smart Traffic Lights (Exam 2016-02)

27

Page 28: Arduino UNO R3 Board - brd4.ort.org.ilbrd4.ort.org.il/~ksamuel/ElIn.31361/Exercises/E011 Arduino Board 2016... · At that time program students used a "BASIC Stamp" at a cost of $100,

Smart Traffic Lights (Exam 2016-02)

28

No exam THIS semester

Yes, Arduino was designed for children,But sophisticated Real-Time systems(that used interrupts)

can be designed with Arduino


Recommended