with Arduino Session 1: Hello World The Instructor Joseph (Joe) - - PowerPoint PPT Presentation

with arduino
SMART_READER_LITE
LIVE PREVIEW

with Arduino Session 1: Hello World The Instructor Joseph (Joe) - - PowerPoint PPT Presentation

Practical Electronics & Programming with Arduino Session 1: Hello World The Instructor Joseph (Joe) Schlesinger B.S. Electrical and Computer Engineering Worcester Polytechnic Institute Former professional Firmware Engineer


slide-1
SLIDE 1

Practical Electronics & Programming

with Arduino

Session 1: Hello World

slide-2
SLIDE 2

The Instructor

Joseph (Joe) Schlesinger

  • B.S. Electrical and Computer Engineering

Worcester Polytechnic Institute

  • Former professional Firmware Engineer
  • Developing Arduino-compatible robotics

board

  • Former electronics for non-majors TA
slide-3
SLIDE 3

Class Expectations

What this class will get you:

  • Build your own simple Arduino projects
  • Focused on inputs->outputs
  • Basic electronics concepts
  • Basic programming concepts

What it won't get you:

  • Advanced circuit analysis
  • Hardcore programmer kung-fu
  • Get you an electronics/programming job
slide-4
SLIDE 4

Class Overview

May 13th

Session 1: Hello World Setup your Arduino, and do basic programing, presented controlling LEDs and a buzzer

May 27th

Session 2: Communicate Talk to your computer with Serial, and talk to a person with a display

June 3rd

Session 3: Yes/No Control projects using buttons, switches and distance Output using lights and buzzer

slide-5
SLIDE 5

Class Overview (continued)

June 10th

Session 4: 0%-100% Control projects using temperature, magnets, light and knobs

June 17th

Session 5: *Whirrrrrrr* Motor and servo control

June 24th

Session 6: WAIT A MINUTE Actions triggering reactions with interrupts

slide-6
SLIDE 6

Why Arduino?

  • Easy
  • Cheap
  • Multi-platform
  • Large community
  • Hard to break
  • Lots of 'alternatives'
slide-7
SLIDE 7

Install Arduino Software

  • Arduino Website: http://arduino.cc
  • Goto 'Download'
  • Download your operating system's version
  • Unzip the folder
  • Open the folder, click on the 'arduino'

executable

slide-8
SLIDE 8

Connect Arduino

*show windows driver installation process*

slide-9
SLIDE 9

Select Board

slide-10
SLIDE 10

Select Serial Port

*show image*

slide-11
SLIDE 11

What is Voltage?

slide-12
SLIDE 12

Intro to LEDs

slide-13
SLIDE 13

Intro to Digital

'0' '1' '0' 0v 5v LED on LED off LED off 'TTL voltage' 3.3v 1.8v

slide-14
SLIDE 14

Connect LED

slide-15
SLIDE 15

Arduino LED Code

File > Examples > 1.Basics > Blink.

slide-16
SLIDE 16

Upload Code

slide-17
SLIDE 17

How to use a Multimeter

~Try measuring your LED voltage changing!~

slide-18
SLIDE 18

Pulse Width Modulation (PWM)

slide-19
SLIDE 19

Intro to Binary

+ + +

=

1 2 4 8 15 '1' x 23 '1' x 22 '1' x 21 '1' x 20

'1111'

slide-20
SLIDE 20

Intro to Binary (continued)

+ + +

=

1 2 4 7 '0' x 23 '1' x 22 '1' x 21 '1' x 20

'0111'

slide-21
SLIDE 21

Intro to Binary (continued)

+ + +

=

2 4 6 '0' x 23 '1' x 22 '1' x 21 '0' x 20

'0110'

slide-22
SLIDE 22

Intro to Binary

+ + +

=

1 2 4 8 255 '1' x 23 '1' x 22 '1' x 21 '1' x 20

+ + +

16 32 64 128 '1' x 27 '1' x 26 '1' x 25 '1' x 24 +

'1111 1111'

slide-23
SLIDE 23

PWM the LED

Arduino Code

slide-24
SLIDE 24

Intro to Buzzers

slide-25
SLIDE 25

Intro to Breadboards

slide-26
SLIDE 26

Wiring the Buzzer

slide-27
SLIDE 27

Buzzer Code

File > Examples > Digital > toneMelody

slide-28
SLIDE 28

Intro to Frequency

http://bbamusic.wikispaces.com/Three+Components+of+Sound

slide-29
SLIDE 29

Changing Frequency

*updated code*