39
TECH WORKSHOP 1 ARDUINO 1. Intro to Electricity 2. What is a microcontroller? 3. Analog vs. digital signal 4. Examples 5. LAB

Beginning arduino

Embed Size (px)

Citation preview

Page 1: Beginning arduino

TECH WORKSHOP 1 ARDUINO

1. Intro to Electricity2. What is a microcontroller?3. Analog vs. digital signal4. Examples5. LAB

Page 2: Beginning arduino

ARDUINO LAB:1. LED blink2. Set up your breadboard

CIRCUITS:3. Output: Turn a servo motor4. Digital input: make a push button lights up

LED's5. Analog input: Make an photo cell6. Bigger load Analog Input & output: make a

potentiometer move a motor

TECH WORKSHOP 1 ARDUINO

Page 3: Beginning arduino

What is a Physical Interaction?

773_Value-added-004.jpg

WHAT IS PHYSICAL INTERACTION?What are examples of physical

interfaces?

Page 4: Beginning arduino

WHAT IS A MICROCONTROLLER?

Page 5: Beginning arduino

WHAT IS A MICROCONTROLLER?

Page 6: Beginning arduino

TYPES OF SIGNALS

Page 7: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 8: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 9: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 10: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 11: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 12: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 13: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 14: Beginning arduino

ARDUINO PROJECT EXAMPLES

Link to Video

Page 15: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 16: Beginning arduino

ARDUINO PROJECT EXAMPLES

Page 17: Beginning arduino

ELECTRICITYThe flow of electrons through a conductive material

ANALOGY: Water flowing through a hose

Current (amps) = how many electrons are flowingVoltage (volts) = electrical energy (ie pressure)

Resistance (ohms) = a material's ability to RESIST current

ELECTRICITY

Page 18: Beginning arduino

ELECTRICITYThe flow of electrons through a conductive material

ANALOGY: Water flowing through a hose

Current (amps) = how much waterVoltage (volts) = water pressure

Resistance (ohms) = hose size

ELECTRICITY

Page 19: Beginning arduino

ELECTRICITYThe flow of electrons through a conductive material

ANALOGY: Water flowing through a hose

Current (amps) = how much waterVoltage (volts) = water pressure

Resistance (ohms) = hose size

ELECTRICITY

Page 20: Beginning arduino

CIRCUIT = A closed loop containing:1. a source of electrical energy2. a “load” (motor, light bulb)

ELECTRICITY

Page 21: Beginning arduino

ArduinoUSB CableBreadboardPotentiometerPushbuttonLED'sservo motorDC motorTransistordioderesistors

PARTS LIST

Page 22: Beginning arduino

ARDUINO LAB:1. LED blink2. Set up your breadboard

CIRCUITS:3. Output: Turn a servo motor4. digital input: make a push button lights up

LED's5. Analog input: Make an photo cell6. Bigger load Analog Input & output: make a

potentiometer move a motor

TECH WORKSHOP 1 ARDUINO

Page 23: Beginning arduino

Turn on the LED and make it blink

What you need:

Arduino LED USB cable

EXERCISE 1. LED BLINK

Page 24: Beginning arduino

Step 1. Download Arduino software

A. http://www.arduino.cc/en/Main/Software B. click OK!

EXERCISE 1. LED BLINK

Page 25: Beginning arduino

Step 1. Download Arduino software

C. Follow the prompts to put the Arduino application in the application folder

You’ve installed Arduino!

EXERCISE 1. LED BLINK

Page 26: Beginning arduino

Step 1. Download Arduino software

D. Open up Arduino program E. You should see this

EXERCISE 1. LED BLINK

Page 27: Beginning arduino

Step 2. Set up the Arduino board

A. Insert the longer leg of the LED into pin 13 of the Arduino. B. Insert the shorter leg of the LED into the pin

labelled GND on the Arduino.

EXERCISE 1. LED BLINK

Page 28: Beginning arduino

Step 3. Program the Arduino board

A. Plug the Arduino into the computer using the USB cable

EXERCISE 1. LED BLINK

Page 29: Beginning arduino

Step 3. Program the Arduino board

B. Select chip C. Select Port

EXERCISE 1. LED BLINK

In Arduino, select: TOOLS ---> Board ---> Arduino UNO ToIn

Select Tools ---> Serial Port ---> and click the TOP OPTION :

something like "dev.tty.usbmodemfd131"

Page 30: Beginning arduino

Now you are ready to program!

D. Open Blink sketch

Click on File ---> Examples---> Basics ---> Blink ToIn

EXERCISE 1. LED BLINK

Page 31: Beginning arduino

EXERCISE 1. LED BLINK

Page 32: Beginning arduino

Step 4. Change the blink speed

EXERCISE 1. LED BLINK

Page 33: Beginning arduino

Step 5. Now that you have MODIFIED the BLINK sketch, go ahead and save it

EXERCISE 1. LED BLINK

Page 34: Beginning arduino

RECAP: what did we just learn?

1. how to download and install Arduino software

2. about the Arduino software language

3. how to modify a sketch

4. how to upload a sketch to Arduino

5. how to blink LED's at different speeds

EXERCISE 1. LED BLINK

Page 35: Beginning arduino

2. USING A BREADBOARD

Follow this link to make the same circuit using a breadboard. Then get a bit more advanced and use multiple LED’s, then an RGB LED.

http://levinegabriella.com/exploringbiomimicry/Arduino_tutorials/2_CIID_tutorial_breadboard.pdf

Page 36: Beginning arduino

3. PUSHBUTTON

Follow this link to make a simple pushbutton ircuit.

http://www.levinegabriella.com/exploringbiomimicry/Arduino_tutorials/CIID_Beginner_makepushbutton.pdf

Page 37: Beginning arduino

Follow this link to get some practice using Arduino example code to output rotational motion through a servo motor.

http://levinegabriella.com/exploringbiomimicry/Arduino_tutorials/3_CIID_Servo.pdf

4. USING A SERVO MOTOR

Page 38: Beginning arduino

The following excersizes are here:

http://www.levinegabriella.com/exploringbiomimicry/Arduino_tutorials/4_CIID_Arduino_Analog_Digital.pdf

5 - 6. ANALOG / DIGITAL INPUT

Page 39: Beginning arduino

ARDUINO LAB:1. LED blink2. Set up your breadboard

CIRCUITS:3. Output: Turn a servo motor4. digital input: make a push button lights up

LED's5. Analog input: Make an photo cell6. Bigger load Analog Input & output: make a

potentiometer move a motor

TECH WORKSHOP 1 ARDUINO