11162016 - Caitlin Morris - Electronics - Class 01
Showing work
Class intros
Why choose one technology over another?
What can you do in the built world that can’t be done digitally virtually?
microcontrollers
- generally an IC - an IC will have many many circuits on one small chip
- has a processor, memory, and a programmable input/output
anatomy of the arduino
- pins
- tx/rx - serial transmit/receive
- vin - a direct feed from whatever wall power is plugged in. can be 9v or 12v
- 14 digital pins
- pulse width modulation - a pseudo analog way of communicating
- digital pins are either high voltage or low voltage. meaning - each pin can either send 5v or 0v. binary
- arduino IDE - looks like processing but there are some important differences
- digital pin interactions
- pinMode(pin, mode)
- digitalRead(pinNumber)
- digitalWrite(pinNumber, value)
-
blink blink - let’s make a blinking LED!
drawing the schematic
on digital out pin 13, there’s a built-in resistor. you can use it to test LEDs.
Pulse Width Mod
- For ex:
- 0% Duty Cycle = analogWrite(0)
- 25% Duty Cycle = analogWrite(64)
- 50% Duty Cycle = analogWrite(127)
- 75% Duty Cycle = analogWrite(191)
- 100% Duty Cycle = analogWrite(255)
you can use the digital pins as a “signaler” from one arduino to another
- can sync logic systems across arduinos. “a logic waterfall”
Inputs - all sorts of fun things such as range finders, photocells, force sensors, etc