bionic_arduino_class4.pdf
(
6719 KB
)
Pobierz
741244404 UNPDF
Bionic Arduino
Introduction to Microcontrollers with Arduino
Class 4
20 Nov 2007 - machineproject - Tod E. Kurt
What’s for Today
•
Controlling Servos
•
About the I2C bus
•
Using I2C on Arduino
•
About Accelerometers
•
Nintendo Wii Nunchuck as Input Device
•
About PWM
Recap: Blinky LED
Make sure things still work
compile
upload
Load “File/Sketchbook/Examples/Digital/Blink”
TX/RX flash
b
l
i
n
k
b
l
i
n
k
Change the “delay()” values to change blink rate
sketch runs
Pulse Width Modulation
•
Computers can’t output analog voltages
•
Only digital voltages (0 volts or 5 volts)
•
But you can fake it
•
if you average a digital signal flipping
between two voltages.
•
For example...
•
More commonly called “PWM”
Output voltage is averaged from on
vs.
off time
PWM
output_voltage = (on_time / off_time) * max_voltage
5 volts
3.75 Volts
0 volts
75% 25%
75% 25% 75% 25%
5 volts
2.5 Volts
0 volts
50% 50% 50% 50% 50%
50%
5 volts
0 volts
1.0 Volts
20% 80%
20% 80% 20% 80%
Plik z chomika:
kukixeox
Inne pliki z tego folderu:
Arduino Zero Projects Book.pdf
(4259 KB)
Arduino in Action.pdf
(14200 KB)
Lego and Arduino Projects Projects for extending MINDSTORMS NXT with open-source electronics.pdf
(108860 KB)
Beginning_Arduino_(2010).pdf
(16505 KB)
Getting Started with Arduino 3rd Edition Small.pdf
(6267 KB)
Inne foldery tego chomika:
!!!Elektronika!!!
!!!Elektronika!!!(1)
► Hacking
Arduino Uno setup in Windows PC for A5 device bypass
ccc
Zgłoś jeśli
naruszono regulamin