Bad at  Electronics

Presentation Overview

  • What is the Raspberry Pi?
  • Basic Circuits n LEDs
  • Basic Raspberry Pi
  • CoffeeBoard Hardware/Code

What is the Raspberry Pi?

What is the Raspberry Pi?

Operating System?

Those blinky lights!

  • ACT – D5 (Green) – SD Card Access
  • PWR – D6 (Red) – 3.3 V Power is present
  • FDX – D7 (Green) – Full Duplex (LAN) connected
  • LNK – D8(Green) – Link/Activity (LAN)
  • 100 – D9(Yellow) – 100Mbit (LAN) connected

Setting up your Raspberry Pi

Beginning the Pi

Format  your SD card - FAT

Copy OS to the card - I used NOOBS/Raspbian

GPIO Pins

Artoo

Raspberry Pi

Board Numbering  vs. Broadcom SOC channel Numbering (aka BCM Numbering)

BCM and Board of B+

Code Driven GPIO

  • Python
  • C
  • Artoo
  • Cylon.js
  • Gobot

Simple LED

Light Emitting Diode

Common LEDs have a 2V drop & light up with 4mA of current.

Ohm's Law

Connecting the LED to 5V, means 3V are being passed through to ground. 

Ω

V = IR
V=IR
R = \frac{V}{I}
R=IV
R = \frac{3}{.004}
R=.0043
R = 750
R=750

All Set Up!

Close enough!

Code Driven LED

Pibrella!

PiGlow

LED Matrix

Commonly with RGB LEDs

Line up Anodes and Cathodes into Rows and Columns

 

+transistors
+multiplexing

CoffeeBoard Hardware

Everything(ish)

  • $5.50 - Bronze Chain
  • $5.99 - Rasp Pi Power
  • $38.44 - Rasp Pi B+
  • $17.85 - Zebra Wood Case
  • $24.95 - 16x32 Display
  • $7.95 - 5V 2A Power
  • $3.95 - F/F Jumpers
  • $3.95 - M/M Jumpers
  • $2.00 - 2.1mm DC adapter
  • $15 - Wood Stain
  • $13 - Polyurethane Sealant
  • $17 - Carved Wood Board

$155.58

CoffeeBoard Code

The GPIO Software

VS

PPM?

# Get info
info = `identify colorbar.png`.split
#=> ["colorbar.png", "PNG", "168x64", "168x64+0+0", "8-bit", ...

info[1] # normalized and identified file format, like PNG etc.
info[2].split("x")[1] # Image height in pixels

# Convert to PPM and set height to 16px
`convert awesome.jpg -resize x16 awesome.ppm`

Ruby Running Commands

OR, use the mini_magic gem

Why Sinatra over Rails?

Processes

Success Panel Titles with FontAwesome icons and the confirmation/tooltip Javascript

Bootstrap 3 on HAML

YAYYYYYYYY!!!!!

Roadmap

Roadmap

 

  • Schedule Stuff?
  • Show Statuses
    • Time
    • Servers
    • Social Media
    • Bathrooms
  • Lasercut awesomenesss
  • Chained LED Matrix (64x64)
  • PixelPusher C++ Engine
  • Move to Padrino?
  • Show IP Address/Hostname on boot
  • Support 32x32 Boards

Links

THANKS!

Other RPi Projects?

Dog Ball Thrower / Boss Detector / Music Timed Fireworks

CoffeeBoard

By Gant Laborde

CoffeeBoard

It's rewarding to create something that you can share and enjoy with everyone. Web developers make fun, beautiful, and interactive creations all the time. With the Raspberry Pi, you can take your creations into the real world! CoffeeBoard is a simple Raspberry Pi project that allows you to serve a web page, where visitors can upload and choose what images should be scrolled across an 32x16 LED display. http://www.iconoclastlabs.com/blog/website-powered-social-image-scroller-coffeeboard

  • 5,683