Hardware is the new software baby!

37
Hardware is the new Software Baby! PiFace and Gertboard in your face !! ... Or hands, whichever you prefer.

description

The second Meetup of the 'Singapore Rasp Pi Enthusiasts' meetup group was held. Here are the slides to choosing the Gertboard or the PiFace for hardware development.

Transcript of Hardware is the new software baby!

Page 1: Hardware is the new software baby!

Hardware is the new Software Baby!

PiFace and Gertboard in your face !! ... Or hands, whichever you prefer.

Page 2: Hardware is the new software baby!

Recap of Previous Meetup

http://greenasathistle.files.wordpress.com/2007/07/noreason.jpg

Page 3: Hardware is the new software baby!

Vision

• Get people interested in the Raspberry Pi and to have them come together to build solutions, with humour, that benefit society.

Page 4: Hardware is the new software baby!

Mission

• Get this meetup group to grow to 200 people.

• Have at least 10 meetup sessions.

• Have one article published in the Straits times

about this group.

BY 11TH AUGUST ‘15

Page 5: Hardware is the new software baby!

Mission : Where we stand

Ultimate Mission

• Get this meetup group to grow to 200 people.

• Have at least 10 meetupsessions.

• Have one article published in the Straits times about this group.

Mission in Progress

• 128 Members now

• 2nd Meetup on-going

• Still need Ideas on how to achieve this !

BY 13th October‘14

Page 6: Hardware is the new software baby!

http://www.meetup.com/Singapore-Raspberry-Pi-Enthusiasts-

meetup/events/196125882/

Page 7: Hardware is the new software baby!

NOW FOR THIS MEETUP

http://media-cache-ak0.pinimg.com/236x/87/dd/9e/87dd9ed4e8edeff76f8e5a1218656e16.jpg

Page 8: Hardware is the new software baby!

Two Contenders

• HEAVYWIGHT

– GERTBOARD

• LIGHTWEIGHT

– PiFace

Page 9: Hardware is the new software baby!

PiFace

• http://sg.element14.com/piface/piface-digital/i-o-expansion-board-for-raspberry/dp/2218566

Page 10: Hardware is the new software baby!

Tech Stats• 2 mechanical relays (connected to outputs 1 and 2; can

be disabled via jumpers)

– *Relays can be used to switch voltages up to 20V (Max) or currents up to 5A (Max)

• 4 momentary pushbutton PCB switches (connected to inputs 1-4)

• 8 digital inputs (sink to GND to activate each input pin; pulled-up via software)

• 8 open-collector outputs

• 8 LED indicators (for the 8 digital outputs)

Page 11: Hardware is the new software baby!
Page 12: Hardware is the new software baby!

Setting up Scratch for PiFace

• After updating/upgrading OS

• 21 steps to initialize Scratch to detect the PiFace– http://www.piface.org.uk/guides/scratch_with_pifacedigital/Setting_up_Scratch/

Page 13: Hardware is the new software baby!

Stacking the PiFace

Page 14: Hardware is the new software baby!

http://www.hobbytronics.co.uk/raspberry-pi/female-header-socket-2x13

Page 15: Hardware is the new software baby!

PiFace Emulator

http://raspberryalphaomega.org.uk/wp-content/uploads/2013/01/piface-ui.png

Page 16: Hardware is the new software baby!

Programming

• Python

– http://piface.github.io/pifacedigitalio/

• Java

– https://github.com/Pi4J/pi4j

– http://www.savagehomeautomation.com/projects/raspberry-pi-programming-pi-face-with-java-pi4j.html

Page 17: Hardware is the new software baby!

Scratch with PiFace

Page 18: Hardware is the new software baby!
Page 19: Hardware is the new software baby!

Biggest advantage of PiFaceBoard over Gertboard

Page 20: Hardware is the new software baby!

http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/piface-digital?ICID=rpiaccsy-featured-products

PiFace Digital 2

Page 21: Hardware is the new software baby!

GERTBOARD

Gert Van Loohttp://m.eet.com/media/1192878/Gert-van-Loo.jpg

Page 22: Hardware is the new software baby!
Page 23: Hardware is the new software baby!

Gertboard Installation

Step 1: Take Gertboard

Step 2: Align Gertboard according to GPIO pins

Step 3: Power on Raspberry Pi

Step 4: Run your script

Page 24: Hardware is the new software baby!

Gertboard

• 12x buffered I/O

• 3x pushbuttons

• 6x open collector drivers (50V, 0.5A)

• 18V, 2A motor controller

• 28-pin dual in line ATmega328 microcontroller

• 2-channel 8, 10, or 12 bit Digital to Analogue converter

• 2-channel 10 bit Analogue to Digital converter

Page 25: Hardware is the new software baby!

Two resources for demo

• http://raspi.tv/download/GB_Python.zip

• http://www.element14.com/community/docs/DOC-52909/l/assembled-gertboard-software-jan-2013?ICID=gertboard-techdoc

Page 26: Hardware is the new software baby!

LED test

Page 27: Hardware is the new software baby!

Motor Test

Page 28: Hardware is the new software baby!

Links

• http://www.element14.com/community/docs/DOC-52909/l/assembled-gertboard-software-jan-2013?ICID=gertboard-techdoc

• Download gertboard_sw_20120725.zip

• Test files are created in Python and C

Page 29: Hardware is the new software baby!

Gertboard Arduino IDE Installation

• https://projects.drogon.net/raspberry-pi/gertboard/arduino-ide-installation-isp/

• sudo apt-get install arduino

Page 30: Hardware is the new software baby!

Gertboard Arduino IDE Installation

Page 31: Hardware is the new software baby!

http://www.element14.com/community/community/raspberry-pi/raspberry-pi-accessories/gertduino

Gertduino

•Simpler, petite alternative to the Gertboard.

•Costs less too !!

•Does not need to be connected to Pi for power !!

Page 32: Hardware is the new software baby!

SCRATCH GPIO CONTROL

Without

any

Extension

Boards ?

http://www.texassharon.com/wp-content/uploads/2012/10/scratching-head1.jpg

Page 33: Hardware is the new software baby!

Scratch and GPIO

What if you don’t have a PiFace or a GertBoard?

Can you still control your GPIO with scratch ?

YES YOU CAN

Page 34: Hardware is the new software baby!

Resources

• http://simplesi.net/scratchgpio/scratch-raspberrypi-gpio/

Page 35: Hardware is the new software baby!

The End

Questions and Queries ?

Page 36: Hardware is the new software baby!

ANNOUNCING A RASPBERRY PI INITATIVE

Page 37: Hardware is the new software baby!

PCB for Gert's Passive VGA adapter 666 for Raspberry Pi B+

http://vimeo.com/105666360