Slide 1

Slide 1 text

U-Zyn Chua [email protected]

Slide 2

Slide 2 text

I work at

Slide 3

Slide 3 text

What is

Slide 4

Slide 4 text

Why hardware?

Slide 5

Slide 5 text

PHP • Ugly language • Hated by hackers • Most tutorials in Python, Ruby. • Arduino mainly in C

Slide 6

Slide 6 text

PHP • But we love PHP!

Slide 7

Slide 7 text

PHP • But we love PHP! • Because it’s like the mother of language, C! (excuse)

Slide 8

Slide 8 text

PHP Anyway, we’re most proficient with it!

Slide 9

Slide 9 text

Hardware is not scary

Slide 10

Slide 10 text

Hardware is not scary is just I/O

Slide 11

Slide 11 text

Hardware is not scary is just I/O just like file-handling /sys/class/gpio

Slide 12

Slide 12 text

Pins

Slide 13

Slide 13 text

GPIO is all we care (for noobs at least)

Slide 14

Slide 14 text

GPIO is all we care (for noobs at least) + some basic electronics

Slide 15

Slide 15 text

GPIO WiringPi https://github.com/WiringPi/WiringPi C-based very simple

Slide 16

Slide 16 text

WiringPi gpio mode 1 out gpio write 1 1 gpio write 1 0

Slide 17

Slide 17 text

WiringPi-PHP PHP wrapper for WiringPi https://github.com/WiringPi/WiringPi-PHP Requires compilation (is it ready?)

Slide 18

Slide 18 text

PHP-GPIO PHP wrapper for /sys/class/gpio https://github.com/pickley/PHP-GPIO Simple to setup

Slide 19

Slide 19 text

PHP RasPi GPIO Libs • WiringPi-PHP • Userland • Requires compilation • PHP-GPIO • Easy to set up • root :(

Slide 20

Slide 20 text

Demo time! https://github.com/uzyn/raspi-gpio-demo.php

Slide 21

Slide 21 text

PHP web language tons of frameworks + libraries scripts easy!

Slide 22

Slide 22 text

PHP + Hardware world domination

Slide 23

Slide 23 text

Ideas? U-Zyn Chua [email protected] twitter.com/uzyn