ICTWays workshop “Creativity and imagination in the classroom: Arduino and its application samples” LLP PT-COMENIUS-CNW
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 2 EXAMPLES
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 3 HACK EEG
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 4 Development of a bio signal capturing device Real time transmission to a central server Arduino FIO xBee Three sensors: Pulse, Humidity, Temperature TRANSCREATIVA ++=
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 5 ELECTRONICS 101
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 6
7 DIGITAL1/0 ANALOG(IN) POWER SOURCE
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 8
9 For everything else…
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 10 ARDUINO IDE
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 11 IDE: integrated development environment Check for no errors in code Load code to board
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 12 CONNECTION
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 13 CODE SETUP & LOOP SETUP: Setup pins and tell the Arduino to start serial communication with computer LOOP: the things that the board does repeatedly
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 14 PRACTICE
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 15 TEMPERATURE Set the circuit (mind the polarity!) Load code Check it works
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 16 PRESSURE Setting: more complex Code: use temperature code, having in account that it is no necessary to transform the input Load and check
LLP PT-COMENIUS-CNW Confidencial © 2014 TECNALIA 17 LED WHEN THINGS HAPPEN Use the same code as in the previous practice Modify code When it passes value 512, light up the LED Use IF sentence: if (valor>512) { digitalWrite (pinled, HIGH);} Switch off LED?
THANK YOU