Presentation is loading. Please wait.

Presentation is loading. Please wait.

Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)

Similar presentations


Presentation on theme: "Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)"— Presentation transcript:

1 Image of Arduino

2 Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week) Agenda

3 Why (and why not) Arduino? Compare to GoGo Board (class discussion) Examples When NOT to use Arduino

4 Discussion of Common Issues What is an Arduino pin? What is the difference between an analog and digital pin? Voltage, Current, Resistance? – Resistor with LED Does it matter which side the resistor is on? Does it matter which direction the LED/resistor is in? How does LED work? How does LED work – Short circuits – Voltage divider (potentiometer) – Pull-up resistors – Order of operations for assembling circuit? Where do I get components? What are datasheets? What is a serial connection? How does it work? Extending reach of sensors? What is inside the motor?

5

6

7 Arduino Pins Pins are what connect the code you write to the physical world Pins communicate in voltages When a pin is an input, it reads voltages. When it is an output, it writes voltages. So what is the difference between digital and analog?

8 Voltage, Current, Resistance The Unholy Alliance

9 V = IR What does this have to do with our circuit?

10 Blink Code

11

12

13 List of Analog Pins Analog Input – A0 - A5 Analog Output

14 What is a Potentiometer? Voltage Divider

15 When R2 = 0 ohms, what is Vout? When R2 = 3k ohms, what is Vout? When R2 = 5.6k ohms, what is Vout? When R2 = 100k ohms, what is Vout?

16 Change Brightness with Knob Without changing the connections, can you make it so turning the knob changes the brightness? – 3 minutes for this

17 Review of Last Week

18 Plan for Today

19 Class Exercise Make a circuit where pushing the button turns the LED on. Only use one button. Use Pin 2. Print the state of the button using Serial.println()

20

21 Communication with Processing http://bit.ly/arduinoBBA exampleCode -> serialCallResponseArduino exampleCode -> serialCallReponseProcessing

22 Controlling Processing with Arduino Button to Pin 2, Photoresistor to Pin A1, Potentiometer to Pin A0

23 Arduino Processing

24 How does this work?

25 Add Controls to the BeatTable or Your TUI Code for my example is at – http://bit.ly/arduinoBeatTable http://bit.ly/arduinoBeatTable Try changing the value of the speed variable with a potentiometer or photoresistor


Download ppt "Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)"

Similar presentations


Ads by Google