Week 1 Flashcards
Formulas
P = V * I
P = I^2 * R
Microcontrollers
• Microcontrollers can handle I/O and have memory
• Controlled by code
• Reduce need for complex electronics
What is serial communication used for
Debugging
• Reading the state of your code
• Measuring inputs
• Measuring voltage
• Showing voltage change over time (oscilloscope)
Disadvantages serial communication
Remember that Serial communication is slow and blocking
• Debug lines influence your code execution
Digital/analog pins
Digital pins can output/sense either ‘on’ or ‘off’
* Analog pins can work with analog values by sensing voltages, but
can only sense
digital pins
oV or 5v
3 I/O modes:
output
input
and pullup
positive and neative pole
Flat side/short leg = negative
round/long leg = positive
PWM
marked with a dash, particular mode of output, creates a pattern of low and high output. Seems to be analog
analog pins