Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

P&O3 session 1

618 views

Published on

Probleemoplossen en Ontwerpen slides.

Course at KU Leuven 2nd year engineering science students.

Published in: Education, Technology
  • Be the first to comment

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); ''' }

×