PenO3
Sessie 1
Erik Duval
Sven Charleer - Jose Luis Santos - Nick Vannieuwenhoven
14.00:PenO3
Quantified Self
Quantified Learning
14.20: Raspberry Pi
14.40: Hands on
15.45: Break
16.00: Arduino
16.20: Hands...
PenO
eerste keuze?
tweede keuze?
derde keuze?
vierde keuze?
vijfde keuze?
PenO 1?
Probleemoplossen en
Ontwerpen
• Ingenieursvaardigheden
• Modelleren en simuleren
• Experimenteren
• Methodische aanpak
• T...
Over semesters
• gesloten, vak-overschrijdend probleem
• grafisch modelleren, ICT-werktuigen
• gesloten ontwerp
• modellere...
Tools
• Wiki: http://ariadne.cs.kuleuven.be/wiki/
• Wordpress: http://wordpress.com/
• Backlog at the wiki
•One for each g...
Wiki
• Group Information (You can take a look to Peno3
last year)
• Pointers to your work (blog URL, ...)
Session report
• What did you do last session?
• What did you learn?
• How did you do it?
• Main problems?
Quantified Self
Little Brother
http://www.fitbit.com/
http://nikeplus.nike.com/plus/
http://www.withings.com/en/bodyanalyzer
http://www.moves-app.com/
http://quantifiedself.com/2013/02/qs-and-
mindfulness/#more-5798
http://memoto.com/
http://www.kickstarter.com/projects/806146824/melon-a-headband-and-mobile-app-to-
measure-your-fo
Quantified Learning
http://navi-hci.appspot.com/
http://mume11.snakeflash.com/
...-1980s
1990s
http://shop.pimoroni.com/
http://www.instructables.com/id/RaspberryPi-
Powered-Wearable-Computer/#step1
https://vimeo.com/55658574
http://theswitchtolinux.blogspot.com/2012/12/
raspberry-pi-daily-deviations-picture.html
http://www.youtube.com/watch?
v=5npkz0xY1fo#t=75
http://www.youtube.com/watch?v=5JoARkj7XMA
http://www.youtube.com/watch?v=Nfk1-XMASrk
Pi setup
Raspberry Pi Basics
login: pi
password: raspberry
config: sudo raspi-config
xwindows: startx
shutdown: sudo shutdown -h now
...
GPIO
GPIO 3.3V
GPIO 3.3V
GPIO Programming
Python
RPi.GPIO module
import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library
GPIO.setmode(GPIO.BCM)''''##"Use"...
GPIO Programming
Python
RPi.GPIO module
import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library
GPIO.setmode(GPIO.BCM)''##"Use"bo...
GPIO Programming
Python
RPi.GPIO module
import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library
GPIO.setmode(GPIO.BCM)''''##"Use"...
GPIO Programming
Python
RPi.GPIO module
import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library
GPIO.setmode(GPIO.BCM)''''##"Use"...
Hands-on!
Hello World
import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library
GPIO.setmode(GPIO.BCM)''##"Use"board"pin"numbering
GPIO.setup(7,'GPIO.OUT...
http://www.youtube.com/watch?
feature=player_embedded&v=zE5PGeh2K9k
http://www.instructables.com/id/Power-Laces-the-Auto-
lacing-shoe/
http://www.youtube.com/watch?feature=player_embedded&v=ZtNEPkwCfxA
Arduino Basics
Powered by USB
Data transfer by USB
Digital pins + Analog pins
Arduino Programming
Arduino Development Environment
Language based on C
http://arduino.cc/en/Reference/HomePage
Arduino Programming
Arduino Programming
Python?
void'setup()'{
}
void'loop()'{'''
}
Arduino Programming
void'setup()'{
'''//a'comment'in'the'setup'section'which'is'run'once
''.Serial.begin(9600);
}
void'loop()'{'''
}
Arduino P...
void'setup()'{
'''//a'comment'in'the'setup'section'which'is'run'once
'''Serial.begin(9600);
}
void'loop()'{
'''//a'comment...
void'setup()'{
'''//a'comment'in'the'setup'section'which'is'run'once
'''Serial.begin(9600);
}
void'loop()'{
'''//a'comment...
void'setup()'{
'''//a'comment'in'the'setup'section'which'is'run'once
'''Serial.begin(9600);
}
void'loop()'{
'''//a'comment...
Sensors
Hands-on!
#define'PHOTOSENSE_ANA_PIN'A0''
void'setup()'{
'''//a'comment'in'the'setup'section'which'is'run'once
'''Serial.begin(9600)...
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
P&O3 session 1
Upcoming SlideShare
Loading in …5
×

P&O3 session 1

556 views
477 views

Published on

Probleemoplossen en Ontwerpen slides.

Course at KU Leuven 2nd year engineering science students.

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
556
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

P&O3 session 1

  1. 1. PenO3 Sessie 1 Erik Duval Sven Charleer - Jose Luis Santos - Nick Vannieuwenhoven
  2. 2. 14.00:PenO3 Quantified Self Quantified Learning 14.20: Raspberry Pi 14.40: Hands on 15.45: Break 16.00: Arduino 16.20: Hands on 18.00: Done
  3. 3. PenO
  4. 4. eerste keuze?
  5. 5. tweede keuze?
  6. 6. derde keuze?
  7. 7. vierde keuze?
  8. 8. vijfde keuze?
  9. 9. PenO 1?
  10. 10. Probleemoplossen en Ontwerpen • Ingenieursvaardigheden • Modelleren en simuleren • Experimenteren • Methodische aanpak • Teamwerk • Integratie vakken • Smaakmaker voor andere vakken
  11. 11. Over semesters • gesloten, vak-overschrijdend probleem • grafisch modelleren, ICT-werktuigen • gesloten ontwerp • modelleren en ontwerpen • open ontwerp • methodiek, reverse engineering • ook: samenwerking in groepen
  12. 12. Tools • Wiki: http://ariadne.cs.kuleuven.be/wiki/ • Wordpress: http://wordpress.com/ • Backlog at the wiki •One for each group
  13. 13. Wiki • Group Information (You can take a look to Peno3 last year) • Pointers to your work (blog URL, ...)
  14. 14. Session report • What did you do last session? • What did you learn? • How did you do it? • Main problems?
  15. 15. Quantified Self
  16. 16. Little Brother
  17. 17. http://www.fitbit.com/
  18. 18. http://nikeplus.nike.com/plus/
  19. 19. http://www.withings.com/en/bodyanalyzer
  20. 20. http://www.moves-app.com/
  21. 21. http://quantifiedself.com/2013/02/qs-and- mindfulness/#more-5798
  22. 22. http://memoto.com/
  23. 23. http://www.kickstarter.com/projects/806146824/melon-a-headband-and-mobile-app-to- measure-your-fo
  24. 24. Quantified Learning
  25. 25. http://navi-hci.appspot.com/
  26. 26. http://mume11.snakeflash.com/
  27. 27. ...-1980s
  28. 28. 1990s
  29. 29. http://shop.pimoroni.com/
  30. 30. http://www.instructables.com/id/RaspberryPi- Powered-Wearable-Computer/#step1
  31. 31. https://vimeo.com/55658574
  32. 32. http://theswitchtolinux.blogspot.com/2012/12/ raspberry-pi-daily-deviations-picture.html
  33. 33. http://www.youtube.com/watch? v=5npkz0xY1fo#t=75
  34. 34. http://www.youtube.com/watch?v=5JoARkj7XMA
  35. 35. http://www.youtube.com/watch?v=Nfk1-XMASrk
  36. 36. Pi setup
  37. 37. Raspberry Pi Basics login: pi password: raspberry config: sudo raspi-config xwindows: startx shutdown: sudo shutdown -h now restart: sudo shutdown -r now
  38. 38. GPIO
  39. 39. GPIO 3.3V
  40. 40. GPIO 3.3V
  41. 41. GPIO Programming Python RPi.GPIO module import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library GPIO.setmode(GPIO.BCM)''''##"Use"board"pin"numbering
  42. 42. GPIO Programming Python RPi.GPIO module import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library GPIO.setmode(GPIO.BCM)''##"Use"board"pin"numbering
  43. 43. GPIO Programming Python RPi.GPIO module import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library GPIO.setmode(GPIO.BCM)''''##"Use"board"pin"numbering GPIO.setup(7,'GPIO.OUT)'''##"Setup"GPIO"Pin"7"to"OUT GPIO.output(7,True)''"""""##"Turn"on"GPIO"pin"7
  44. 44. GPIO Programming Python RPi.GPIO module import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library GPIO.setmode(GPIO.BCM)''''##"Use"board"pin"numbering GPIO.setup(7,'GPIO.IN)''''##"Setup"GPIO"Pin"7"to"IN result.='GPIO.input(7)''""##"Read"GPIO"pin"7
  45. 45. Hands-on!
  46. 46. Hello World
  47. 47. import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library GPIO.setmode(GPIO.BCM)''##"Use"board"pin"numbering GPIO.setup(7,'GPIO.OUT)'''##"Setup"GPIO"Pin"7"to"OUT GPIO.output(7,True)''"""""##"Turn"on"GPIO"pin"7 import'RPi.GPIO'as'GPIO'''##"Import"GPIO"library GPIO.setmode(GPIO.BCM)''##"Use"board"pin"numbering GPIO.setup(7,'GPIO.IN)''''##"Setup"GPIO"Pin"7"to"IN result.='GPIO.input(7)''""##"Read"GPIO"pin"7
  48. 48. http://www.youtube.com/watch? feature=player_embedded&v=zE5PGeh2K9k
  49. 49. http://www.instructables.com/id/Power-Laces-the-Auto- lacing-shoe/
  50. 50. http://www.youtube.com/watch?feature=player_embedded&v=ZtNEPkwCfxA
  51. 51. Arduino Basics Powered by USB Data transfer by USB Digital pins + Analog pins
  52. 52. Arduino Programming Arduino Development Environment Language based on C http://arduino.cc/en/Reference/HomePage
  53. 53. Arduino Programming
  54. 54. Arduino Programming Python?
  55. 55. void'setup()'{ } void'loop()'{''' } Arduino Programming
  56. 56. void'setup()'{ '''//a'comment'in'the'setup'section'which'is'run'once ''.Serial.begin(9600); } void'loop()'{''' } Arduino Programming
  57. 57. void'setup()'{ '''//a'comment'in'the'setup'section'which'is'run'once '''Serial.begin(9600); } void'loop()'{ '''//a'comment'in'the'loop'section,'which'is'looped'forever '''int'sensorValue'='analogRead(A0); '''if(sensorValue'>'0) '''{ '''''''Serial.println(sensorValue); '''} '''delay(1000); ''' } Arduino Programming
  58. 58. void'setup()'{ '''//a'comment'in'the'setup'section'which'is'run'once '''Serial.begin(9600); } void'loop()'{ '''//a'comment'in'the'loop'section,'which'is'looped'forever '''int'sensorValue'='analogRead(A0); '''if(sensorValue'>'0) '''{ '''''''Serial.println(sensorValue); '''} '''delay(1000); ''' } Arduino Programming
  59. 59. void'setup()'{ '''//a'comment'in'the'setup'section'which'is'run'once '''Serial.begin(9600); } void'loop()'{ '''//a'comment'in'the'loop'section,'which'is'looped'forever '''int'sensorValue'='analogRead(A0); '''if(sensorValue'>'0) '''{ '''''''Serial.println(sensorValue); '''} '''delay(1000); ''' } Arduino Programming
  60. 60. Sensors
  61. 61. Hands-on!
  62. 62. #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); ''' }

×