Date post: | 15-Feb-2017 |
Category: |
Technology |
Upload: | txabi2 |
View: | 161 times |
Download: | 0 times |
ICTWays workshop
“Creativity and imagination in the classroom: Arduino and its application samples”
528103-LLP-1-2012-1-PT-COMENIUS-CNW13-04-2015
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA2
EXAMPLES
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA3
HACK EEG
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA4
Development of a bio signal capturing device
Real time transmission to a central server Arduino FIO
xBee
Three sensors: Pulse, Humidity, Temperature
TRANSCREATIVA
+ + =
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA5
ELECTRONICS 101
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA6
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA7
DIGITAL1/0
ANALOG(IN)
POWER SOURCE
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA8
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA9
For everything else…
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA10
ARDUINO IDE
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA11
IDE: integrated development
environment
Check for no errors in code
Load code to board
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA12
CONNECTION
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA13
CODE SETUP & LOOP
SETUP: Setup pins and tell the
Arduino to start serial
communication with computer
LOOP: the things that the board
does repeatedly
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA14
PRACTICE
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA15
TEMPERATURE Set the circuit (mind the polarity!)
Load code
Check it works
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA16
PRESSURE Setting: more complex
Code: use temperature code, having in
account that it is no necessary to transform
the input
Load and check
528103-LLP-1-2012-1-PT-COMENIUS-CNW Confidencial © 2014 TECNALIA17
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