OpenWest 2014/Raspberry Pi: Difference between revisions
No edit summary |
(No difference)
|
Latest revision as of 01:06, 12 May 2014
"Unleash the Raspberry Pi Through Physical Computing"
- by Kevin Sidwar
"Conference speakers aren't the community elite, they are just people who build stuff and like to talk about it. Anyone can do it." -- Tweet
Unleash The Raspberry Pi Through Physical Computing - Skillshare - http://skl.sh/1boHmFo
- 3 hours of videos and lessons
Physical Computing - interacting digitally with the analog world.
Internet of Things is a subset of Physical Computing.
Why the Pi? Huge ecosystem and a ton of resources online.
Buy them through "newark" for $35 without the $5 markup elsewhere (although you get hit with shipping)
The voltages are safer than licking a 9V battery.
Requires very little EE knowledge
SPI - communicating with other devices like other micro controllers
I2C - Inter-Integrated Circuit
Serial
Cool projects:
- RFID reader
Keep pins straight: (keep track of the pins, don't fry your Pi)
- Raspberry Leaf - good printout to keep track of pin outs
- Pi cobbler is another good way
- Verify twice, connect once
- Pins are 3.3V not 5V!
- Use isolated jumper wires (don't short out the pins)
- Don't touch header while powered on
GPIO - General Input / Output
Write Example:
import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(12, GPIO.OUT) # (OUT/HIGH/LOW) GPIO.cleanup()
Read Example:
???
I2C Example:
import smbus i2c = smbus.smbus?? temp = bus.read_word_data(0x48, 0)
SPI Code example
???
Twython - twitter python client
Twilio - send/receive text/phone
Demo - http://twitter.com/PiHomeMonitor
Source code for this presentation - http://github.com/sidwarkd/openwest_demo