SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
PenO3
Sessie 2
Erik Duval
Sven Charleer - Jose Luis Santos - Nick Vannieuwenhoven
14.00: Arduino to Pi
14.20: Hands-on
15.40: Break
16.40: More hands-on
18.00: Done
Blogs: source code!
Wiki: Backlog and team members!
Previous session
Raspberry Pi
ArduinoSensor
LEDa
a
Today
Raspberry Pi
ArduinoSensor
LEDa
a
6
Hook up sensors to Arduino
(test on pc)
Plug Arduino into Pi
(hub)
Hook up sensors to Arduino
(test on pc)
Plug Arduino into Pi
(hub)
Boot Pi
Hook up sensors to Arduino
(test on pc)
/dev/serial/by-id/usb-Gravitech_ARDUINO_NANO_13BP1184-if00-port0
Devices on Linux
/dev/serial/by-id/usb-Gravitech_ARDUINO_NANO_13BP1184-if00-port0
Devices on Linux
/dev/serial/by-id/usb-Gravitech_ARDUINO_NANO_13BP1184-if00-port0
Devices on Linux
/dev/serial/by-id/usb-Gravitech_ARDUINO_NANO_13BP1184-if00-port0
sudo ln -s
/dev/arduino
Devices on Linux
/dev/serial/by-id/usb-Gravitech_ARDUINO_NANO_13BP1184-if00-port0
Python & Arduino
https://pypi.python.org/pypi/pyserial
Python & Arduino
https://pypi.python.org/pypi/pyserial
Python & Arduino
sudo python setup.py install
TAR -XF
import	
  serial
arduino	
  =	
  serial.Serial('/dev/arduino',	
  9600)
while	
  True:
	
  	
  	
  	
  	
  value	
  =	
  arduino.readline()
	
  	
  	
  	
  	
  print(value)
Python & Arduino
Excercise
#define	
  PHOTOSENSE_ANA_PIN	
  A0	
  	
  
void	
  setup()	
  {
	
  	
  	
  //a	
  comment	
  in	
  the	
  setup	
  section	
  which	
  is	
  run	
  once
	
  	
  	
  Serial.begin(9600);
}
void	
  loop()	
  {
	
  	
  	
  int	
  microphoneValue	
  =	
  analogRead(PHOTOSENSE_ANA_PIN);
	
  	
  	
  Serial.print("Sensor	
  Value:	
  ");
	
  	
  	
  Serial.println(microphoneValue);
	
  	
  	
  delay(1000);
	
  	
  	
  
}
import	
  serial
arduino	
  =	
  serial.Serial('/dev/arduino',	
  9600)
while	
  True:
	
  	
  	
  	
  	
  value	
  =	
  arduino.readline()
	
  	
  	
  	
  	
  print(value)
Let’s go to the wiki

Weitere ähnliche Inhalte

Was ist angesagt?

Audio recorder audit form blank(1)
Audio recorder audit form blank(1)Audio recorder audit form blank(1)
Audio recorder audit form blank(1)
Oliver-Ingham
 
Audio recorder audit form blank
Audio recorder audit form blankAudio recorder audit form blank
Audio recorder audit form blank
FelixStanton
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
José Faria
 
PHPUG CGN: Controlling Arduino With PHP
PHPUG CGN: Controlling Arduino With PHPPHPUG CGN: Controlling Arduino With PHP
PHPUG CGN: Controlling Arduino With PHP
Thomas Weinert
 
Arduino i rremote 1112
Arduino i rremote 1112Arduino i rremote 1112
Arduino i rremote 1112
馬 萬圳
 

Was ist angesagt? (20)

Gnu linux on arm for $50 - $100
Gnu linux on arm for $50 - $100Gnu linux on arm for $50 - $100
Gnu linux on arm for $50 - $100
 
Audio recorder audit form blank(1)
Audio recorder audit form blank(1)Audio recorder audit form blank(1)
Audio recorder audit form blank(1)
 
Scratch pcduino
Scratch pcduinoScratch pcduino
Scratch pcduino
 
Introduction to pcDuino
Introduction to pcDuinoIntroduction to pcDuino
Introduction to pcDuino
 
Audio recorder audit form blank
Audio recorder audit form blankAudio recorder audit form blank
Audio recorder audit form blank
 
pcDuino tech talk at Carnegie Mellon University 10/14/2014
pcDuino tech talk at Carnegie Mellon University 10/14/2014pcDuino tech talk at Carnegie Mellon University 10/14/2014
pcDuino tech talk at Carnegie Mellon University 10/14/2014
 
Ardu
ArduArdu
Ardu
 
Innovation with pcDuino
Innovation with pcDuinoInnovation with pcDuino
Innovation with pcDuino
 
Intro to arduino
Intro to arduinoIntro to arduino
Intro to arduino
 
IoT with openHAB on pcDuino3B
IoT with openHAB on pcDuino3BIoT with openHAB on pcDuino3B
IoT with openHAB on pcDuino3B
 
PHPUG CGN: Controlling Arduino With PHP
PHPUG CGN: Controlling Arduino With PHPPHPUG CGN: Controlling Arduino With PHP
PHPUG CGN: Controlling Arduino With PHP
 
Using arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of thingsUsing arduino and raspberry pi for internet of things
Using arduino and raspberry pi for internet of things
 
[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218[5]投影片 futurewad樹莓派研習會 141218
[5]投影片 futurewad樹莓派研習會 141218
 
Esp32 cam arduino-123
Esp32 cam arduino-123Esp32 cam arduino-123
Esp32 cam arduino-123
 
Radio Stuff Hacking - Linux Day 2018
Radio Stuff Hacking - Linux Day 2018Radio Stuff Hacking - Linux Day 2018
Radio Stuff Hacking - Linux Day 2018
 
Arduino i rremote 1112
Arduino i rremote 1112Arduino i rremote 1112
Arduino i rremote 1112
 
Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13Build cool stuff with arduino for sci camp 16 dec13
Build cool stuff with arduino for sci camp 16 dec13
 
Open Source Home Automation with LinkSprite.IO
Open Source Home Automation with LinkSprite.IOOpen Source Home Automation with LinkSprite.IO
Open Source Home Automation with LinkSprite.IO
 
Rdl esp32 development board trainer kit
Rdl esp32 development board trainer kitRdl esp32 development board trainer kit
Rdl esp32 development board trainer kit
 
Arduino Introduction by coopermaa
Arduino Introduction by coopermaaArduino Introduction by coopermaa
Arduino Introduction by coopermaa
 

Andere mochten auch

Nxtp Labs - What We Do
Nxtp Labs - What We DoNxtp Labs - What We Do
Nxtp Labs - What We Do
NXTP Labs
 
C:\fakepath\history of educational technology
C:\fakepath\history of educational technologyC:\fakepath\history of educational technology
C:\fakepath\history of educational technology
Strawberrysweets
 
соц дем 03'12 (nashkiev.ua)
соц дем 03'12 (nashkiev.ua)соц дем 03'12 (nashkiev.ua)
соц дем 03'12 (nashkiev.ua)
NashKiev.UA
 
Birthday Week and Book Day
Birthday Week and Book DayBirthday Week and Book Day
Birthday Week and Book Day
NurseryTeam
 
Funcionarios de libre designacion
Funcionarios de libre designacionFuncionarios de libre designacion
Funcionarios de libre designacion
Yim Espinoza
 
Grain cash seed bank
Grain cash seed bankGrain cash seed bank
Grain cash seed bank
arunima1989
 
洋蔥浸葡萄酒的驚人效果
洋蔥浸葡萄酒的驚人效果洋蔥浸葡萄酒的驚人效果
洋蔥浸葡萄酒的驚人效果
KC Tan
 
2012 2013 outreach power point
2012 2013 outreach power point2012 2013 outreach power point
2012 2013 outreach power point
ashleychin
 

Andere mochten auch (20)

Wheelchairs - Asia
Wheelchairs - AsiaWheelchairs - Asia
Wheelchairs - Asia
 
Nxtp Labs - What We Do
Nxtp Labs - What We DoNxtp Labs - What We Do
Nxtp Labs - What We Do
 
Air conditioner markets
Air conditioner marketsAir conditioner markets
Air conditioner markets
 
C:\fakepath\history of educational technology
C:\fakepath\history of educational technologyC:\fakepath\history of educational technology
C:\fakepath\history of educational technology
 
Snap
SnapSnap
Snap
 
соц дем 03'12 (nashkiev.ua)
соц дем 03'12 (nashkiev.ua)соц дем 03'12 (nashkiev.ua)
соц дем 03'12 (nashkiev.ua)
 
Birthday Week and Book Day
Birthday Week and Book DayBirthday Week and Book Day
Birthday Week and Book Day
 
Week7
Week7Week7
Week7
 
Week11
Week11Week11
Week11
 
September10
September10September10
September10
 
Download
DownloadDownload
Download
 
Lesson plan
Lesson planLesson plan
Lesson plan
 
Instant Help - remote access service proposition
Instant Help - remote access service propositionInstant Help - remote access service proposition
Instant Help - remote access service proposition
 
Funcionarios de libre designacion
Funcionarios de libre designacionFuncionarios de libre designacion
Funcionarios de libre designacion
 
Grain cash seed bank
Grain cash seed bankGrain cash seed bank
Grain cash seed bank
 
洋蔥浸葡萄酒的驚人效果
洋蔥浸葡萄酒的驚人效果洋蔥浸葡萄酒的驚人效果
洋蔥浸葡萄酒的驚人效果
 
2012 2013 outreach power point
2012 2013 outreach power point2012 2013 outreach power point
2012 2013 outreach power point
 
Health,Wealth,Freedom
Health,Wealth,FreedomHealth,Wealth,Freedom
Health,Wealth,Freedom
 
Alien
AlienAlien
Alien
 
Christmas
ChristmasChristmas
Christmas
 

Ähnlich wie P&O Session 2

A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKINGA BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
Silvio Cesare
 
OpenPipe at FOSDEM 2013
OpenPipe at FOSDEM 2013OpenPipe at FOSDEM 2013
OpenPipe at FOSDEM 2013
xulioc
 

Ähnlich wie P&O Session 2 (20)

PenO 3 2014 sessie 2
PenO 3 2014 sessie 2PenO 3 2014 sessie 2
PenO 3 2014 sessie 2
 
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKINGA BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
A BEGINNER’S JOURNEY INTO THE WORLD OF HARDWARE HACKING
 
Let's begin io t with $10
Let's begin io t with $10Let's begin io t with $10
Let's begin io t with $10
 
TDD in deeply embedded system (Arduino) with TAP
TDD in deeply embedded system (Arduino) with TAPTDD in deeply embedded system (Arduino) with TAP
TDD in deeply embedded system (Arduino) with TAP
 
What are the different types of arduino boards
What are the different types of arduino boardsWhat are the different types of arduino boards
What are the different types of arduino boards
 
How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841How to set up two i2cs on Attiny841
How to set up two i2cs on Attiny841
 
OpenPipe at FOSDEM 2013
OpenPipe at FOSDEM 2013OpenPipe at FOSDEM 2013
OpenPipe at FOSDEM 2013
 
Ruby Arduino (RubyConfIndia 2013)
Ruby Arduino (RubyConfIndia 2013)Ruby Arduino (RubyConfIndia 2013)
Ruby Arduino (RubyConfIndia 2013)
 
Arduino-Workshop-4.pptx
Arduino-Workshop-4.pptxArduino-Workshop-4.pptx
Arduino-Workshop-4.pptx
 
Arduino-Workshop-4.pptx
Arduino-Workshop-4.pptxArduino-Workshop-4.pptx
Arduino-Workshop-4.pptx
 
Advanced View Arduino Projects List - Use Arduino for Projects-5.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-5.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-5.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-5.pdf
 
IOTC08 The Arduino Platform
IOTC08 The Arduino PlatformIOTC08 The Arduino Platform
IOTC08 The Arduino Platform
 
Advanced View Arduino Projects List - Use Arduino for Projects (5).pdf
Advanced View Arduino Projects List - Use Arduino for Projects (5).pdfAdvanced View Arduino Projects List - Use Arduino for Projects (5).pdf
Advanced View Arduino Projects List - Use Arduino for Projects (5).pdf
 
Introduction to Prototyping Technologies
Introduction to Prototyping TechnologiesIntroduction to Prototyping Technologies
Introduction to Prototyping Technologies
 
Arduino
ArduinoArduino
Arduino
 
Lecture 1
Lecture 1Lecture 1
Lecture 1
 
Single Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi BasicsSingle Board Computers & Raspberry Pi Basics
Single Board Computers & Raspberry Pi Basics
 
Advanced View Arduino Projects List - Use Arduino for Projects-3.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-3.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-3.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-3.pdf
 
Arduino
ArduinoArduino
Arduino
 
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdfAdvanced View Arduino Projects List - Use Arduino for Projects-4.pdf
Advanced View Arduino Projects List - Use Arduino for Projects-4.pdf
 

Mehr von Sven Charleer

Mehr von Sven Charleer (20)

Game UX Summit - Designing for the Audience
Game UX Summit - Designing for the AudienceGame UX Summit - Designing for the Audience
Game UX Summit - Designing for the Audience
 
Don't Let the Data Do the Talking: Better Data Visualisation through UX Design
Don't Let the Data Do the Talking: Better Data Visualisation through UX DesignDon't Let the Data Do the Talking: Better Data Visualisation through UX Design
Don't Let the Data Do the Talking: Better Data Visualisation through UX Design
 
Data driven dialogue through collaborative dashboards
Data driven dialogue through collaborative dashboardsData driven dialogue through collaborative dashboards
Data driven dialogue through collaborative dashboards
 
Real-time dashboards to support eSports spectators - CHI PLAY '18 Melbourne
Real-time dashboards to support eSports spectators - CHI PLAY '18 MelbourneReal-time dashboards to support eSports spectators - CHI PLAY '18 Melbourne
Real-time dashboards to support eSports spectators - CHI PLAY '18 Melbourne
 
Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...
Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...
Designing and Evaluating Student-facing Learning Dashboards: Lessons Learnt (...
 
Preliminary PhD Defence - Student-facing Dashboards
Preliminary PhD Defence - Student-facing DashboardsPreliminary PhD Defence - Student-facing Dashboards
Preliminary PhD Defence - Student-facing Dashboards
 
Studie Traject Begeleiding, Learning Dashboards
Studie Traject Begeleiding, Learning DashboardsStudie Traject Begeleiding, Learning Dashboards
Studie Traject Begeleiding, Learning Dashboards
 
Creating Effective Learning Analytics Dashboards: 
Lessons Learnt
Creating Effective Learning Analytics Dashboards: 
Lessons LearntCreating Effective Learning Analytics Dashboards: 
Lessons Learnt
Creating Effective Learning Analytics Dashboards: 
Lessons Learnt
 
Faceted Search on Coordinated Tablets and Tabletop: a Comparison
Faceted Search on Coordinated Tablets and Tabletop: a ComparisonFaceted Search on Coordinated Tablets and Tabletop: a Comparison
Faceted Search on Coordinated Tablets and Tabletop: a Comparison
 
Peno3server
Peno3serverPeno3server
Peno3server
 
Intro to Learning Analytics
Intro to Learning AnalyticsIntro to Learning Analytics
Intro to Learning Analytics
 
PENO3
PENO3PENO3
PENO3
 
PoPI: Glyph Designs for Collaborative Filtering on Interactive Tabletops
PoPI: Glyph Designs for Collaborative Filtering on Interactive TabletopsPoPI: Glyph Designs for Collaborative Filtering on Interactive Tabletops
PoPI: Glyph Designs for Collaborative Filtering on Interactive Tabletops
 
Exploring Inquiry-Based Learning Analytics through Interactive Surfaces
Exploring Inquiry-Based Learning Analytics through Interactive SurfacesExploring Inquiry-Based Learning Analytics through Interactive Surfaces
Exploring Inquiry-Based Learning Analytics through Interactive Surfaces
 
Leren, Doceren en Technologie: Visual Learning Analytics Workshop
Leren, Doceren en Technologie: Visual Learning Analytics WorkshopLeren, Doceren en Technologie: Visual Learning Analytics Workshop
Leren, Doceren en Technologie: Visual Learning Analytics Workshop
 
Science 2.0 and 
Visual Data Exploration using Augmented Reality
Science 2.0 and 
Visual Data Exploration using Augmented RealityScience 2.0 and 
Visual Data Exploration using Augmented Reality
Science 2.0 and 
Visual Data Exploration using Augmented Reality
 
LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)
LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)
LARAe: Learning Analytics Reflection & Awareness environment (ARTEL14@ECTEL2014)
 
Learning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ Harvard
Learning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ HarvardLearning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ Harvard
Learning Dashboard @ Visual Learning Analytics workshop - LASI2014 @ Harvard
 
Learning Dashboards
Learning DashboardsLearning Dashboards
Learning Dashboards
 
Learning Dashboards
Learning DashboardsLearning Dashboards
Learning Dashboards
 

Kürzlich hochgeladen

An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Kürzlich hochgeladen (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

P&O Session 2