Session - Raspberry Pi and Arduino
Session - Raspberry Pi and Arduino
Gary Quinn
School of Computing
Teesside University
[email protected]
What is Raspberry Pi ?
A computer with CPU, GPU, RAM, some I/O ports
https://www.facebook.com/SimonMckeownArtist
Pi projects on the web...
I/O intensive apps. Can do some real world interfacing through GPIO port, but not
natively as extensive as Arduino.
Programs are stored in EEPROM. They “survive” on the board when power is
removed, and start automatically when power is restored.
Arduino gets power from USB, but can be powered from battery or mains adaptor.
http://www.hobbytronics.co.uk/arduino-adxl345-imu3000
Robot Arm Controller with Arduino
http://www.kickstarter.com/ http://blog.oscarliang.net/
projects/435742530/udoo-android- connect-raspberry-pi-and-arduino-
linux-arduino-in-a-tiny-single-board usb-cable/
Python
OOP language (you can ignore the OO Subtle differences between version 2
if you prefer). and version 3 :-(
Great for learning because it can be Not too difficult to convert version 2
used to write games :-) programs to version 3.
Python 2 vs Python 3 example difference
● Python 2 ● Python 3
result = 2 / 4 result = 2 / 4
result = 2 / 4 result = 2 / 4
Use decimals for f.p. Use double slash for integer division.
● Python http://www.python.org/getit/windows/
Scripting language