IAT 267 Lecture Notes - Lecture 6: Duty Cycle, Serial Communication, Short Circuit

83 views1 pages

Document Summary

Pin mode digital pins; has both input and output // pinmode() method. Analog pins only input: digital pins go from 0 to 13, Digital pin 1 tx (both for serial communication) pin 13 has a built-in resistor! 9,10,11 pins are pwm (pulse, width, modulation)- (we can do analog output on) If the switch is closed: we get 5v going to the pin, If the switch is open: random value will go to pin, due to atmosphere charges. It needs a clear connection to ground!! But to avoid having a short circuit when closing the switch, we have to add a resistor! (second pic, schematic: there are 6 analog pins in arduino, arduino is an 8-bits device! If analog write (g, 255) it would be a constant 5 volts(graph), if 0, it would be a constant0 on graph (line) of analog write and time. If analog (g, 248) the graph would be (fourth picture)

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents