38
Raspberry Pi Meets Arduino Simon Monk Monday, 20 August 2012

Pi meets arduino

  • Upload
    srmonk

  • View
    1.813

  • Download
    2

Embed Size (px)

DESCRIPTION

Here is my presentation to the British Computer Society in Edinburgh on 22 August 2012

Citation preview

Page 1: Pi meets arduino

Raspberry Pi Meets Arduino

Simon Monk

Monday, 20 August 2012

Page 2: Pi meets arduino

Me

• Left ‘Big Programming Job’ to be:

• Author - OSH and Electronics

Making Android Accessories with the IOIOGoing Mobile with Sensors, Lights, Motors, and Robots

Simon Monk

CREATING ROBOTS AND GIZMOS WITH CELL PHONES

Project Book

Monday, 20 August 2012

Page 3: Pi meets arduino

Objectives

• Understanding Open Source Hardware (OSH)

• Getting to know

• Raspberry Pi

• Arduino

• Understand why people buy them

• Understand what people do with them

• Why is ‘Open’ important

Monday, 20 August 2012

Page 4: Pi meets arduino

Demonstration

Monday, 20 August 2012

Page 5: Pi meets arduino

Demonstration

Monday, 20 August 2012

Page 6: Pi meets arduino

Significance

• Silly Project

• Why do people make these projects?

• How do people make these projects?

Monday, 20 August 2012

Page 7: Pi meets arduino

Open Source Hardware• OSS-type of License

• Electronic Design Files

• Schematic

• PCB Layout

• Firmware OSS

• Mechanical Design

• 3D models etc

Monday, 20 August 2012

Page 8: Pi meets arduino

Is it Really?

Monday, 20 August 2012

Page 9: Pi meets arduino

Intellectual Property

• First to market

• Community loyalty

• Keep the trademark release the design

• Sell Kits

• Sell training, consultancy, education

Monday, 20 August 2012

Page 10: Pi meets arduino

Why don’t individuals make their own?

• They do, that’s fine

• BUT

• Its easier and probably cheaper to buy one made using economies of scale

Monday, 20 August 2012

Page 11: Pi meets arduino

OSH Examples• Microcontroller / Computer Boards

• Arduino

• Raspberry Pi

• .NET Gadgeteer Boards (Even .NET on OSH)

• BeagleBoard

Monday, 20 August 2012

Page 12: Pi meets arduino

OSH Examples

• Modules

• GPS

• Microphone (Preamp)

• Motor Drivers

• PIR Sensor

• etc.

Monday, 20 August 2012

Page 13: Pi meets arduino

OSH Examples

• Tools

• RepRap - 3D printer

• Maker Bot - 3D printer

• Lasersaur - Laser cutter

Monday, 20 August 2012

Page 14: Pi meets arduino

DIY Projects

Monday, 20 August 2012

Page 15: Pi meets arduino

Hacking

Monday, 20 August 2012

Page 16: Pi meets arduino

Bubblino

Monday, 20 August 2012

Page 17: Pi meets arduino

Etch-a-sketch

Monday, 20 August 2012

Page 18: Pi meets arduino

Global Show and Tell

• Instructables.com

• Hacknmod.com

• Youtube

• Blogs

Monday, 20 August 2012

Page 19: Pi meets arduino

One-Offs Hen-House Door

Monday, 20 August 2012

Page 20: Pi meets arduino

Perfect FM Radio

Monday, 20 August 2012

Page 21: Pi meets arduino

Arduino ECG

Monday, 20 August 2012

Page 22: Pi meets arduino

What is an Arduino?

USB

Power

Analog Inputs

Digital Inputs / Outputs

Monday, 20 August 2012

Page 23: Pi meets arduino

Arduino Software

Monday, 20 August 2012

Page 24: Pi meets arduino

Types of Arduino• Uno - most popular - all rounder

• Mega - more pins

• LilyPad - wearable

• Leonardo

• Mini

• Nano

• Bluetooth

• Pro VersionsMonday, 20 August 2012

Page 25: Pi meets arduino

Other Types of Arduino

• Built-in Ethernet (EtherTen)

• Built-in USB Host (Electric Sheep, USBDroid etc.)

• Drone Piloting (ArduPilot)

• Lighting Control

Monday, 20 August 2012

Page 26: Pi meets arduino

Shields

• Ethernet / WiFi

• Motor Driver

• Relay

• LCD Display

• USB Host

• Sensors

• etc.

Monday, 20 August 2012

Page 27: Pi meets arduino

What is a Raspberry Pi?

• £30

• Debian Linux

• HDMI

• USB

Monday, 20 August 2012

Page 28: Pi meets arduino

Hardware

• 256 MB RAM

• 700 MHz

• BCM2835

Monday, 20 August 2012

Page 29: Pi meets arduino

Raspberry Pi Foundation

• Not-for Profit Organisation

• Cambridge University

• ‘A Computer to Inspire Children’ - Like the BBC Computers

• ‘Burn Through’ the consumer market first

Monday, 20 August 2012

Page 30: Pi meets arduino

Programming Pi

• Python

• Tkinter - GUIs

• PyGame - Games

• Scratch - Visual Programming

• Java, Clozure CL, Squeek, LAMP!

Monday, 20 August 2012

Page 31: Pi meets arduino

Pi Expansion

• GPIO Connector

• I2C

• Serial

• General Purpose IO Pins

Monday, 20 August 2012

Page 32: Pi meets arduino

Pi Expansion Boards• Like Arduino Shields

• Gertboard

• Pi Face

• RaspiRobotBoard (Nov)

Monday, 20 August 2012

Page 33: Pi meets arduino

Pi is not Arduino• Linux - Not a Real-time OS

• Timing unpredictable

• Not good for

• Servos, PWM

• Pulse measurement

• No Analog Inputs

• Low current (delicate) GPIO pins

• 500mA vs 50mA

Monday, 20 August 2012

Page 34: Pi meets arduino

Arduino & Raspberry Pi

Monday, 20 August 2012

Page 35: Pi meets arduino

Summary

• OSH - Driving a wave of creativity and invention

• Raspberry Pi - The computer bit (but can do some electronics)

• Arduino - Microcontroller Board, good with electronics

• Combine as alternative to expansion board

Monday, 20 August 2012

Page 36: Pi meets arduino

Shopping• Arduino Uno - £25

• Maplin’s

• CPC, Farnell, eBay

• Raspberry Pi - £30

• CPC, Farnell, RS Components

• OS Hardware Modules

• Sparkfun.com

• Adafruit.com

• Proto-pic.co.uk (Scotland)

Monday, 20 August 2012

Page 37: Pi meets arduino

Plug

• Raspberry Pi Book, Out in November 2012

• Amazon Etc.

Monday, 20 August 2012

Page 38: Pi meets arduino

Contact

• Twitter: @simonmonk2

• Web: www.simonmonk.org

• Email: [email protected]

• Blog: www.doctormonk.com

Monday, 20 August 2012