Download presentation
Presentation is loading. Please wait.
Published byApril Preston Modified over 9 years ago
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?
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
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()
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.