SlideShare ist ein Scribd-Unternehmen logo
1 von 63
Open source hardware
Fostering creativity
The work presented in this document/ workshop is supported by the
European Commission’s FP7 programme – project Scientix 2 (Grant
agreement N. 337250), coordinated by European Schoolnet (EUN). The
content of this document/workshop is the sole responsibility of the organizer
and it does not represent the opinion of the European Commission, and the
Commission is not responsible for any use that might be made of information
contained herein.
Dr. Francisco Pérez García
24/11/2015
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
2
Webinar contents
1. Passive students or creative students?
2. What is open source hardware?
3. Types of open source hardware
4. Arduino: from a blinking LED to a project with LDR
(analog input) controlling RGB-LED (analog output)
5. Creating open source hardware (Arduino type)
6. Fostering creativity: Empowering Arduino with
Processing libraries (computer vision, augmented
reality, text to speech, voice recognition, etc)
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
3
Coding to prepare students for
the future
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
4
Internet
Zettabyte
Find
problems
Different
solutions
Skills and competences
Teachers
Students
Politicians
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
5
Nature Physics 11, 369–373 (2015)
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
6
PASSIVE TECHNOLOGY USERS
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
7
CREATIVE STUDENTS
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
8
USING OLD HARDWARE TO PROGRAM
NEW OPEN HARDWARE DEVICES
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
9
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
10
Prototyping
Actually there is not a manual on how to do things
but a reference collection of samples that people can
modify and combine with other examples to learn
about the logic of the programme and the board. It’s
a “hands on” way of working in which even junk
becomes a source for learning and building
prototypes. The reuse of material from other fields is
an other big knowledge and material source. Learning
how to do things by looking how other things work
and can be hacked.
Circuit bending and patching are two key words in this
learning school.
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
11
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
12
What is open source hardware?
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
13
What is open source hardware?
Open source is a development model promoting
universal access via a free license to a product's
design or blueprint, and universal redistribution of
that design or blueprint, including subsequent
improvements to it by anyone.
Open-source hardware (OSH) consists of physical
artifacts of technology designed and offered by the
open design movement. FOSH (free and open
source hardware) can be use with free and open-
source software (FOSS) in education
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
14
What is open source hardware?
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
15
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
16
Open source hardware
in the classroom
The Hacker Attitude for our students
Five things taken from Eric S. Raymond’s How To Become
a Hacker:
1. The world is full of fascinating problems waiting to be
solved.
2. No problem should ever have to be solved twice.
3. Boredom and drudgery are evil.
4. Freedom is good.
5. Attitude is no substitute for competence.
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
17
Open source hardware
in the classroom
“Computer science is no more about computers than
astronomy is about telescopes”. Edsger Dijkstra
“The computer revolution hasn’t happened yet”. Allan Kay
“Debugging is the essence of intellectual activity”.
Seymour Pappert
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
18
How? Some examples of
available open source hardware
for the classroom
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
19
Genuino 101 (available in 2016)
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
20
Raspberry Pi 2
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
21
Intel Edison
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
22
Arduino Uno Genuino 101 Raspberry Pi 2 Intel Edison +
Arduino
Chip 8 bits
16 MHz
0.02 Mb
32 bits
32 MHz
0.20 Mb
32 bits
700 MHz
1 Gb
32 bits, intel,
500 MHz
500 Mb
GPIO
Inputs and
outputs
14
6 analog inputs
6 PWM outputs
14 40 40
Extras No
(available
shields)
Accelerometer
Bluetooth
Ethernet
HDMI, SD
Wi-fi, bluetooth
Programming
languages
Arduino
Processing
C
Arduino
Processing
Python IDLE
Scratch
Processing 3.0.1+
(Nov. 2015)
Arduino
Intel XDK
Price 20 € Aprox. 30€
(2016)
49 € 90 €
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
23
BEAGLEBONE BLACK SHARKS COVE (MICROSOFT)
MINNOWBOARD MAX (MICROSOFT) GROVE PI + SENSORS
OTHER HARDWARE
ALTERNATIVES
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
24
OTHER HARDWARE
ALTERNATIVES
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
25
Open Source Hardware, you can make your own
board, or buy one.
Cheap, easily available.
Open Source Software.
Very widespread, many projects openly available.
Extra HW (shields) available.
ARDUINO UNO
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
26
Arduino Uno
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
27
ESPLORA
SOME ARDUINO BOARDS
ETHERNET
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
28
Build your Arduino board
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
29
ATMEGA328P-PU Microcontrolle​r
With ARDUINO UNO R3 Bootloader
VIDEO BUILD YOUR ARDUINO: https://www.youtube.com/watch?v=sNIMCdVOHOM
Solderless
Prototype
Breadboard 170 Tie-
points Arduino
Shield
16MHz 16.000MHz, HZ HC-49S Inline Feet
Passive Crystal Oscillator
Resistors and capacitors
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
30
Arduino on breadboard
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
31
http://www.arduino.cc
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
32
Arduino Language
C like syntax, but simplified
Abstracts the pin naming to numbers
Trades efficience for ease of use
Easy to learn, yet powerful
Lots of example code
Easy to reuse C-code from other projects
Libraries can be written in C++
Lots of libraries available
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
33
/*
Blink
Turns on an LED on for one second,
then off for one second, repeatedly.
This example code is based on example
code
that is in the public domain.
*/
void setup() {
// initialize the digital pin as an output.
// Pin 13 has an LED connected on most
Arduino boards:
pinMode(13, OUTPUT);
}
void loop() {
digitalWrite(13, HIGH); // set the LED on
delay(1000); // wait for a second
digitalWrite(13, LOW); // set the LED
offdelay(1000); // wait for a second
}
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
34
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
35
Materials for LDR and RGB-LED
using Arduino
- 4 resistor 220 Ω
- 1 LDR sensor
- 1 RGB LED
- 1 potenciometer
- 1 Arduino Uno
- Wires, USB wire and breadboard
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
36
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
37
Pulse width modulation
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
38
RGB LED BLINKING
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
39
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
40
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
41
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
42
SOURCE CODE: RGB-LED colour change depending on light level
int valueLDR = 1;
int ledRed = 9;
int ledGreen=10;
int ledBlue=11;
int pinLDR = 1;
//3 outputs for each RGB colour: red, green and blue
void setup(){
pinMode(ledRed, OUTPUT);
pinMode(ledGreen, OUTPUT);
pinMode(ledBlue, OUTPUT);
analogReference(EXTERNAL);
}
/*First we define the variable name as integer and it is assigned
a value*/
/*The setup function comes before the loop function, and everything
happens inside the curly backets*/
/*Outputs are declared in setup, this is done by
usingthe pinMode function, in this particular
example we declare numbers 9, 10 and 11 as
OUTPUT (in capital letters)*/
// or /*Comment*/ can be anywhere, do not affect code, help others
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
43
void loop() {
valueLDR = analogRead(pinLDR);
if(valueLDR >= 1023){
digitalWrite(ledRed, 128);
digitalWrite(ledGreen, 0);
digitalWrite(ledBlue, 0);
// digitalWrite to obtain different colours
}
else if((valueLDR >= 959) & (valueLDR < 1023)){
digitalWrite(ledRed, 255);
digitalWrite(ledGreen, 0);
digitalWrite(ledBlue, 0);
}
The “void” in the header is what the function will return (or spit out)
when it happens, in this case it returns nothing so it is void
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
44
else if((valueLDR >= 895) & (valueLDR < 959)){
digitalWrite(ledRed, 255);
digitalWrite(ledGreen, 128);
digitalWrite(ledBlue, 0);}
else if((valueLDR >= 831) & (valueLDR < 895)){
digitalWrite(ledRed, 255);
digitalWrite(ledGreen, 255);
digitalWrite(ledBlue, 0);}
else if((valueLDR >= 767) & (valueLDR < 831)){
digitalWrite(ledRed, 255);
digitalWrite(ledGreen, 255);
digitalWrite(ledBlue, 128);}
else if((valueLDR >= 703) & (valueLDR < 767)){
digitalWrite(ledRed, 128);
digitalWrite(ledGreen, 255);
digitalWrite(ledBlue, 255);
}
else if((valueLDR >= 639) & (valueLDR < 703)){
digitalWrite(ledRed, 128);
digitalWrite(ledGreen, 128);
digitalWrite(ledBlue, 255);}
else if((valueLDR >= 575) & (valueLDR < 639)){
digitalWrite(ledRed, 0);
digitalWrite(ledGreen, 128);
digitalWrite(ledBlue, 255);}
else if((valueLDR >= 511) & (valueLDR < 575)){
digitalWrite(ledRed, 0);
digitalWrite(ledGreen, 0);
digitalWrite(ledBlue, 255);}
else if((valueLDR >= 447) & (valueLDR < 511)){
digitalWrite(ledRed, 0);
digitalWrite(ledGreen, 0);
digitalWrite(ledBlue, 128);
}
else if((valueLDR >= 383) & (valueLDR < 447)){
digitalWrite(ledRed, 0);
digitalWrite(ledGreen, 128);
digitalWrite(ledBlue, 0);}
else if((valueLDR >= 319) & (valueLDR < 383)){
digitalWrite(ledRed, 0);
digitalWrite(ledGreen, 255);
digitalWrite(ledBlue, 0);}
else if((valueLDR >= 255) & (valueLDR < 319)){
digitalWrite(ledRed, 128);
digitalWrite(ledGreen, 255);
digitalWrite(ledBlue, 0);}
else if((valueLDR >= 191) & (valueLDR < 255)){
digitalWrite(ledRed, 0);
digitalWrite(ledGreen, 255);
digitalWrite(ledBlue, 128);
}
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
45
else if((valueLDR >= 127) & (valueLDR < 191))
{
digitalWrite(ledRed, 128);
digitalWrite(ledGreen, 255);
digitalWrite(ledBlue, 128);}
else if((valueLDR >= 63) & (valueLDR < 127))
{
digitalWrite(ledRed, 128);
digitalWrite(ledGreen, 128);
digitalWrite(ledBlue, 128);}
else if((valueLDR >=0) & (valueLDR < 63)){
digitalWrite(ledRed, 55);
digitalWrite(ledGreen, 55);
digitalWrite(ledBlue, 55); }
else
{
digitalWrite(ledRed, 0);
digitalWrite(ledGreen, 0);
digitalWrite(ledBlue, 0);
}
}
void color(int red, int green, int blue)
{
analogWrite(ledRed, 255-red);
analogWrite(ledGreen, 255-green);
analogWrite(ledBlue, 255-blue);
// PWM for every colour
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
46http://www.tecnologies.net/?page_id=190
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
47
+
EMPOWERING ARDUINO WITH PROCESSING LIBRARIES
http://www.processing.org http://www.arduino.cc
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
48
Augmented reality
(NyAR4psg library)
Computer vision
(OpenCV library)
Loading 3D objects
(OBJLoader library)
QR codes
(QR library)
Database
communication
(SMS, SQL libraries)
Machine learning
(Gnet library)
Arduino library
Games (pBox2D library)
Lego robots
(NTXcomm library)
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
49
ARDUINO: FACE RECOGNITION
http://www.tecnologies.net/?page_id=565
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
50
ARDUINO: AUGMENTED REALITY
http://www.tecnologies.net/?page_id=641
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
51
ARDUINO: POLLUTANTS
http://www.tecnologies.net/?page_id=639
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
52
ARDUINO & POLLUTANTS
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
53
http://www.tecnologies.net/?page_id=639
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
54
POLLUTANT MEASUREMENT USING ARDUINO (PETROL vs DIESEL, OLD
CARS vs NEW CARS and at different rpm)
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
55
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
56
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
57
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
58
PROGRAMMING SMART DRONES
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
59
Erasmus + project: ARt (2015-2017): Arduino technology and art
http://arteducation.eu
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
60
Approximate pricing
Arduino Uno......................................... 25€
Arduino Uno clone (or from components) 5€
Raspberry Pi 2........................................49€
Resistors, LEDs, LDR...................around 5€
Breadboard.............................................10€
MQ sensors (CO, CH4, etc)..............5€ each
MG811 (CO2 sensor)..............................50€
Arduino for Android.................................50€
Sometimes very high import taxes from
China!
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
61
Resources
www.arduino.cc
www.processing.org
www.tecnologies.net
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
62
Thank you very much for your attention
Questions?
Dr. Francisco Pérez García - Institut Pompeu Fabra
Scientix 2 | Dr. Francisco Pérez García
24/11/2015 | Barcelona
Scientix webinar: Open source hardware
63
Teacher of Technology // Institut Pompeu Fabra
University Professor // Universitat de Barcelona
Scientix Deputy Ambassador (Spain) // European Schoolnet
Dr. Francisco Pérez García (perez@ub.edu)
http://www.tecnologies.net
More information

Weitere ähnliche Inhalte

Ähnlich wie Open source hardware

using Open Source Hardware and Rapid Prototyping in Arts Organisations
using Open Source Hardware and Rapid Prototyping in Arts Organisationsusing Open Source Hardware and Rapid Prototyping in Arts Organisations
using Open Source Hardware and Rapid Prototyping in Arts OrganisationsBrian Degger
 
Projectes europeus d'innovació en programació i robòtica educativa. Scientix.
Projectes europeus d'innovació en programació i robòtica educativa. Scientix.Projectes europeus d'innovació en programació i robòtica educativa. Scientix.
Projectes europeus d'innovació en programació i robòtica educativa. Scientix.jdomen44
 
OpenAIRE Infrastructure & Services: we need your input!
OpenAIRE Infrastructure & Services: we need your input!OpenAIRE Infrastructure & Services: we need your input!
OpenAIRE Infrastructure & Services: we need your input!OpenAIRE
 
Arduino_Booklet.pdf
Arduino_Booklet.pdfArduino_Booklet.pdf
Arduino_Booklet.pdfMarkYang62
 
Sensing Platform Overview
Sensing Platform OverviewSensing Platform Overview
Sensing Platform Overviewabyssknight
 
Reproducible Open Science with EGI Notebooks, Binder and Zenodo
Reproducible Open Science with EGI Notebooks, Binder and ZenodoReproducible Open Science with EGI Notebooks, Binder and Zenodo
Reproducible Open Science with EGI Notebooks, Binder and ZenodoEGI Federation
 
2014 08-27 rotary helsingør Mmborch
2014 08-27 rotary helsingør Mmborch2014 08-27 rotary helsingør Mmborch
2014 08-27 rotary helsingør MmborchMartin Malthe Borch
 
Digital Science: Towards the executable paper
Digital Science: Towards the executable paperDigital Science: Towards the executable paper
Digital Science: Towards the executable paperJose Enrique Ruiz
 
UGM 2022: Open Source Biological Art and DIY / DIWO Scientific Instruments
UGM 2022: Open Source Biological Art and DIY / DIWO Scientific InstrumentsUGM 2022: Open Source Biological Art and DIY / DIWO Scientific Instruments
UGM 2022: Open Source Biological Art and DIY / DIWO Scientific InstrumentsMarc Dusseiller Dusjagr
 
From RGB led laboratory to servomotor control with websockets and IoT as educ...
From RGB led laboratory to servomotor control with websockets and IoT as educ...From RGB led laboratory to servomotor control with websockets and IoT as educ...
From RGB led laboratory to servomotor control with websockets and IoT as educ...German Carro Fernandez
 
Open Source Innovation Factory, OW2con11, Nov 24-25, 2011, Paris
Open Source Innovation Factory, OW2con11, Nov 24-25, 2011, ParisOpen Source Innovation Factory, OW2con11, Nov 24-25, 2011, Paris
Open Source Innovation Factory, OW2con11, Nov 24-25, 2011, ParisOW2
 
Open Source Generic Lab Equipement - GaudiLabs
Open Source Generic Lab Equipement - GaudiLabsOpen Source Generic Lab Equipement - GaudiLabs
Open Source Generic Lab Equipement - GaudiLabsUrs Gaudenz
 
Portland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source HardwarePortland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source HardwareDrew Fustini
 
The International Information Conference on Search, Data Mining and Visualiza...
The International Information Conference on Search, Data Mining and Visualiza...The International Information Conference on Search, Data Mining and Visualiza...
The International Information Conference on Search, Data Mining and Visualiza...Dr. Haxel Consult
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...
SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...
SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...South Tyrol Free Software Conference
 
The Butteryfly Effect of an Open Hardware Notebook Motherboard
The Butteryfly Effect of an Open Hardware Notebook MotherboardThe Butteryfly Effect of an Open Hardware Notebook Motherboard
The Butteryfly Effect of an Open Hardware Notebook MotherboardRoberto Innocenti
 

Ähnlich wie Open source hardware (20)

using Open Source Hardware and Rapid Prototyping in Arts Organisations
using Open Source Hardware and Rapid Prototyping in Arts Organisationsusing Open Source Hardware and Rapid Prototyping in Arts Organisations
using Open Source Hardware and Rapid Prototyping in Arts Organisations
 
Projectes europeus d'innovació en programació i robòtica educativa. Scientix.
Projectes europeus d'innovació en programació i robòtica educativa. Scientix.Projectes europeus d'innovació en programació i robòtica educativa. Scientix.
Projectes europeus d'innovació en programació i robòtica educativa. Scientix.
 
OpenAIRE Infrastructure & Services: we need your input!
OpenAIRE Infrastructure & Services: we need your input!OpenAIRE Infrastructure & Services: we need your input!
OpenAIRE Infrastructure & Services: we need your input!
 
Arduino_Booklet.pdf
Arduino_Booklet.pdfArduino_Booklet.pdf
Arduino_Booklet.pdf
 
Sensing Platform Overview
Sensing Platform OverviewSensing Platform Overview
Sensing Platform Overview
 
Reproducible Open Science with EGI Notebooks, Binder and Zenodo
Reproducible Open Science with EGI Notebooks, Binder and ZenodoReproducible Open Science with EGI Notebooks, Binder and Zenodo
Reproducible Open Science with EGI Notebooks, Binder and Zenodo
 
2014 08-27 rotary helsingør Mmborch
2014 08-27 rotary helsingør Mmborch2014 08-27 rotary helsingør Mmborch
2014 08-27 rotary helsingør Mmborch
 
IPR- Orientation.pptx
IPR- Orientation.pptxIPR- Orientation.pptx
IPR- Orientation.pptx
 
Digital Science: Towards the executable paper
Digital Science: Towards the executable paperDigital Science: Towards the executable paper
Digital Science: Towards the executable paper
 
UGM 2022: Open Source Biological Art and DIY / DIWO Scientific Instruments
UGM 2022: Open Source Biological Art and DIY / DIWO Scientific InstrumentsUGM 2022: Open Source Biological Art and DIY / DIWO Scientific Instruments
UGM 2022: Open Source Biological Art and DIY / DIWO Scientific Instruments
 
The Third OpenDaylight Lisboa Meetup
The Third OpenDaylight Lisboa MeetupThe Third OpenDaylight Lisboa Meetup
The Third OpenDaylight Lisboa Meetup
 
From RGB led laboratory to servomotor control with websockets and IoT as educ...
From RGB led laboratory to servomotor control with websockets and IoT as educ...From RGB led laboratory to servomotor control with websockets and IoT as educ...
From RGB led laboratory to servomotor control with websockets and IoT as educ...
 
Open Source Innovation Factory, OW2con11, Nov 24-25, 2011, Paris
Open Source Innovation Factory, OW2con11, Nov 24-25, 2011, ParisOpen Source Innovation Factory, OW2con11, Nov 24-25, 2011, Paris
Open Source Innovation Factory, OW2con11, Nov 24-25, 2011, Paris
 
Patrick Ohnewein - NOI Techpark - The open data hub project
Patrick Ohnewein - NOI Techpark - The open data hub projectPatrick Ohnewein - NOI Techpark - The open data hub project
Patrick Ohnewein - NOI Techpark - The open data hub project
 
Open Source Generic Lab Equipement - GaudiLabs
Open Source Generic Lab Equipement - GaudiLabsOpen Source Generic Lab Equipement - GaudiLabs
Open Source Generic Lab Equipement - GaudiLabs
 
Portland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source HardwarePortland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source Hardware
 
The International Information Conference on Search, Data Mining and Visualiza...
The International Information Conference on Search, Data Mining and Visualiza...The International Information Conference on Search, Data Mining and Visualiza...
The International Information Conference on Search, Data Mining and Visualiza...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...
SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...
SFScon19 - Roberto Innocenti - The Butteryfly Effect of an Open Hardware Note...
 
The Butteryfly Effect of an Open Hardware Notebook Motherboard
The Butteryfly Effect of an Open Hardware Notebook MotherboardThe Butteryfly Effect of an Open Hardware Notebook Motherboard
The Butteryfly Effect of an Open Hardware Notebook Motherboard
 

Mehr von Francisco Perez

Mehr von Francisco Perez (20)

Coding tools
Coding toolsCoding tools
Coding tools
 
Analysing the Universe
Analysing the UniverseAnalysing the Universe
Analysing the Universe
 
Contaminants
ContaminantsContaminants
Contaminants
 
Docking 1
Docking 1Docking 1
Docking 1
 
Campus Ítaca UAB
Campus Ítaca UABCampus Ítaca UAB
Campus Ítaca UAB
 
Vivid library powerpoint
Vivid library powerpointVivid library powerpoint
Vivid library powerpoint
 
Multicultural theatres
Multicultural theatresMulticultural theatres
Multicultural theatres
 
D'ESO a CF 2019
D'ESO a CF 2019D'ESO a CF 2019
D'ESO a CF 2019
 
Debating in Latvia
Debating in LatviaDebating in Latvia
Debating in Latvia
 
Projecte amb institut xinès
Projecte amb institut xinèsProjecte amb institut xinès
Projecte amb institut xinès
 
Projecte Erasmus+
Projecte Erasmus+Projecte Erasmus+
Projecte Erasmus+
 
Visit Jeonbuk High School (Corea)
Visit Jeonbuk High School (Corea)Visit Jeonbuk High School (Corea)
Visit Jeonbuk High School (Corea)
 
Guia pràctica per fer un bon tr btx 20 consells
Guia pràctica per fer un bon tr btx 20 consellsGuia pràctica per fer un bon tr btx 20 consells
Guia pràctica per fer un bon tr btx 20 consells
 
Essay
EssayEssay
Essay
 
Presentation for Portugal
Presentation for PortugalPresentation for Portugal
Presentation for Portugal
 
Sant Jordi 2018
Sant Jordi 2018Sant Jordi 2018
Sant Jordi 2018
 
Ponderacions catalunya pau 2018
Ponderacions catalunya pau 2018Ponderacions catalunya pau 2018
Ponderacions catalunya pau 2018
 
Des d'ESO a CCFF 2018
Des d'ESO a CCFF 2018Des d'ESO a CCFF 2018
Des d'ESO a CCFF 2018
 
Class lists
Class listsClass lists
Class lists
 
Families are reading the world classic novels
Families are reading  the world classic novelsFamilies are reading  the world classic novels
Families are reading the world classic novels
 

Kürzlich hochgeladen

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
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.pptxheathfieldcps1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Kürzlich hochgeladen (20)

Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
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
 
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
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

Open source hardware

  • 1. Open source hardware Fostering creativity The work presented in this document/ workshop is supported by the European Commission’s FP7 programme – project Scientix 2 (Grant agreement N. 337250), coordinated by European Schoolnet (EUN). The content of this document/workshop is the sole responsibility of the organizer and it does not represent the opinion of the European Commission, and the Commission is not responsible for any use that might be made of information contained herein. Dr. Francisco Pérez García 24/11/2015
  • 2. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 2 Webinar contents 1. Passive students or creative students? 2. What is open source hardware? 3. Types of open source hardware 4. Arduino: from a blinking LED to a project with LDR (analog input) controlling RGB-LED (analog output) 5. Creating open source hardware (Arduino type) 6. Fostering creativity: Empowering Arduino with Processing libraries (computer vision, augmented reality, text to speech, voice recognition, etc)
  • 3. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 3 Coding to prepare students for the future
  • 4. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 4 Internet Zettabyte Find problems Different solutions Skills and competences Teachers Students Politicians
  • 5. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 5 Nature Physics 11, 369–373 (2015)
  • 6. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 6 PASSIVE TECHNOLOGY USERS
  • 7. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 7 CREATIVE STUDENTS
  • 8. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 8 USING OLD HARDWARE TO PROGRAM NEW OPEN HARDWARE DEVICES
  • 9. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 9
  • 10. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 10 Prototyping Actually there is not a manual on how to do things but a reference collection of samples that people can modify and combine with other examples to learn about the logic of the programme and the board. It’s a “hands on” way of working in which even junk becomes a source for learning and building prototypes. The reuse of material from other fields is an other big knowledge and material source. Learning how to do things by looking how other things work and can be hacked. Circuit bending and patching are two key words in this learning school.
  • 11. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 11
  • 12. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 12 What is open source hardware?
  • 13. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 13 What is open source hardware? Open source is a development model promoting universal access via a free license to a product's design or blueprint, and universal redistribution of that design or blueprint, including subsequent improvements to it by anyone. Open-source hardware (OSH) consists of physical artifacts of technology designed and offered by the open design movement. FOSH (free and open source hardware) can be use with free and open- source software (FOSS) in education
  • 14. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 14 What is open source hardware?
  • 15. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 15
  • 16. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 16 Open source hardware in the classroom The Hacker Attitude for our students Five things taken from Eric S. Raymond’s How To Become a Hacker: 1. The world is full of fascinating problems waiting to be solved. 2. No problem should ever have to be solved twice. 3. Boredom and drudgery are evil. 4. Freedom is good. 5. Attitude is no substitute for competence.
  • 17. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 17 Open source hardware in the classroom “Computer science is no more about computers than astronomy is about telescopes”. Edsger Dijkstra “The computer revolution hasn’t happened yet”. Allan Kay “Debugging is the essence of intellectual activity”. Seymour Pappert
  • 18. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 18 How? Some examples of available open source hardware for the classroom
  • 19. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 19 Genuino 101 (available in 2016)
  • 20. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 20 Raspberry Pi 2
  • 21. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 21 Intel Edison
  • 22. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 22 Arduino Uno Genuino 101 Raspberry Pi 2 Intel Edison + Arduino Chip 8 bits 16 MHz 0.02 Mb 32 bits 32 MHz 0.20 Mb 32 bits 700 MHz 1 Gb 32 bits, intel, 500 MHz 500 Mb GPIO Inputs and outputs 14 6 analog inputs 6 PWM outputs 14 40 40 Extras No (available shields) Accelerometer Bluetooth Ethernet HDMI, SD Wi-fi, bluetooth Programming languages Arduino Processing C Arduino Processing Python IDLE Scratch Processing 3.0.1+ (Nov. 2015) Arduino Intel XDK Price 20 € Aprox. 30€ (2016) 49 € 90 €
  • 23. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 23 BEAGLEBONE BLACK SHARKS COVE (MICROSOFT) MINNOWBOARD MAX (MICROSOFT) GROVE PI + SENSORS OTHER HARDWARE ALTERNATIVES
  • 24. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 24 OTHER HARDWARE ALTERNATIVES
  • 25. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 25 Open Source Hardware, you can make your own board, or buy one. Cheap, easily available. Open Source Software. Very widespread, many projects openly available. Extra HW (shields) available. ARDUINO UNO
  • 26. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 26 Arduino Uno
  • 27. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 27 ESPLORA SOME ARDUINO BOARDS ETHERNET
  • 28. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 28 Build your Arduino board
  • 29. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 29 ATMEGA328P-PU Microcontrolle​r With ARDUINO UNO R3 Bootloader VIDEO BUILD YOUR ARDUINO: https://www.youtube.com/watch?v=sNIMCdVOHOM Solderless Prototype Breadboard 170 Tie- points Arduino Shield 16MHz 16.000MHz, HZ HC-49S Inline Feet Passive Crystal Oscillator Resistors and capacitors
  • 30. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 30 Arduino on breadboard
  • 31. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 31 http://www.arduino.cc
  • 32. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 32 Arduino Language C like syntax, but simplified Abstracts the pin naming to numbers Trades efficience for ease of use Easy to learn, yet powerful Lots of example code Easy to reuse C-code from other projects Libraries can be written in C++ Lots of libraries available
  • 33. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 33 /* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is based on example code that is in the public domain. */ void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(13, LOW); // set the LED offdelay(1000); // wait for a second }
  • 34. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 34
  • 35. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 35 Materials for LDR and RGB-LED using Arduino - 4 resistor 220 Ω - 1 LDR sensor - 1 RGB LED - 1 potenciometer - 1 Arduino Uno - Wires, USB wire and breadboard
  • 36. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 36
  • 37. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 37 Pulse width modulation
  • 38. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 38 RGB LED BLINKING
  • 39. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 39
  • 40. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 40
  • 41. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 41
  • 42. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 42 SOURCE CODE: RGB-LED colour change depending on light level int valueLDR = 1; int ledRed = 9; int ledGreen=10; int ledBlue=11; int pinLDR = 1; //3 outputs for each RGB colour: red, green and blue void setup(){ pinMode(ledRed, OUTPUT); pinMode(ledGreen, OUTPUT); pinMode(ledBlue, OUTPUT); analogReference(EXTERNAL); } /*First we define the variable name as integer and it is assigned a value*/ /*The setup function comes before the loop function, and everything happens inside the curly backets*/ /*Outputs are declared in setup, this is done by usingthe pinMode function, in this particular example we declare numbers 9, 10 and 11 as OUTPUT (in capital letters)*/ // or /*Comment*/ can be anywhere, do not affect code, help others
  • 43. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 43 void loop() { valueLDR = analogRead(pinLDR); if(valueLDR >= 1023){ digitalWrite(ledRed, 128); digitalWrite(ledGreen, 0); digitalWrite(ledBlue, 0); // digitalWrite to obtain different colours } else if((valueLDR >= 959) & (valueLDR < 1023)){ digitalWrite(ledRed, 255); digitalWrite(ledGreen, 0); digitalWrite(ledBlue, 0); } The “void” in the header is what the function will return (or spit out) when it happens, in this case it returns nothing so it is void
  • 44. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 44 else if((valueLDR >= 895) & (valueLDR < 959)){ digitalWrite(ledRed, 255); digitalWrite(ledGreen, 128); digitalWrite(ledBlue, 0);} else if((valueLDR >= 831) & (valueLDR < 895)){ digitalWrite(ledRed, 255); digitalWrite(ledGreen, 255); digitalWrite(ledBlue, 0);} else if((valueLDR >= 767) & (valueLDR < 831)){ digitalWrite(ledRed, 255); digitalWrite(ledGreen, 255); digitalWrite(ledBlue, 128);} else if((valueLDR >= 703) & (valueLDR < 767)){ digitalWrite(ledRed, 128); digitalWrite(ledGreen, 255); digitalWrite(ledBlue, 255); } else if((valueLDR >= 639) & (valueLDR < 703)){ digitalWrite(ledRed, 128); digitalWrite(ledGreen, 128); digitalWrite(ledBlue, 255);} else if((valueLDR >= 575) & (valueLDR < 639)){ digitalWrite(ledRed, 0); digitalWrite(ledGreen, 128); digitalWrite(ledBlue, 255);} else if((valueLDR >= 511) & (valueLDR < 575)){ digitalWrite(ledRed, 0); digitalWrite(ledGreen, 0); digitalWrite(ledBlue, 255);} else if((valueLDR >= 447) & (valueLDR < 511)){ digitalWrite(ledRed, 0); digitalWrite(ledGreen, 0); digitalWrite(ledBlue, 128); } else if((valueLDR >= 383) & (valueLDR < 447)){ digitalWrite(ledRed, 0); digitalWrite(ledGreen, 128); digitalWrite(ledBlue, 0);} else if((valueLDR >= 319) & (valueLDR < 383)){ digitalWrite(ledRed, 0); digitalWrite(ledGreen, 255); digitalWrite(ledBlue, 0);} else if((valueLDR >= 255) & (valueLDR < 319)){ digitalWrite(ledRed, 128); digitalWrite(ledGreen, 255); digitalWrite(ledBlue, 0);} else if((valueLDR >= 191) & (valueLDR < 255)){ digitalWrite(ledRed, 0); digitalWrite(ledGreen, 255); digitalWrite(ledBlue, 128); }
  • 45. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 45 else if((valueLDR >= 127) & (valueLDR < 191)) { digitalWrite(ledRed, 128); digitalWrite(ledGreen, 255); digitalWrite(ledBlue, 128);} else if((valueLDR >= 63) & (valueLDR < 127)) { digitalWrite(ledRed, 128); digitalWrite(ledGreen, 128); digitalWrite(ledBlue, 128);} else if((valueLDR >=0) & (valueLDR < 63)){ digitalWrite(ledRed, 55); digitalWrite(ledGreen, 55); digitalWrite(ledBlue, 55); } else { digitalWrite(ledRed, 0); digitalWrite(ledGreen, 0); digitalWrite(ledBlue, 0); } } void color(int red, int green, int blue) { analogWrite(ledRed, 255-red); analogWrite(ledGreen, 255-green); analogWrite(ledBlue, 255-blue); // PWM for every colour
  • 46. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 46http://www.tecnologies.net/?page_id=190
  • 47. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 47 + EMPOWERING ARDUINO WITH PROCESSING LIBRARIES http://www.processing.org http://www.arduino.cc
  • 48. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 48 Augmented reality (NyAR4psg library) Computer vision (OpenCV library) Loading 3D objects (OBJLoader library) QR codes (QR library) Database communication (SMS, SQL libraries) Machine learning (Gnet library) Arduino library Games (pBox2D library) Lego robots (NTXcomm library)
  • 49. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 49 ARDUINO: FACE RECOGNITION http://www.tecnologies.net/?page_id=565
  • 50. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 50 ARDUINO: AUGMENTED REALITY http://www.tecnologies.net/?page_id=641
  • 51. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 51 ARDUINO: POLLUTANTS http://www.tecnologies.net/?page_id=639
  • 52. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 52 ARDUINO & POLLUTANTS
  • 53. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 53 http://www.tecnologies.net/?page_id=639
  • 54. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 54 POLLUTANT MEASUREMENT USING ARDUINO (PETROL vs DIESEL, OLD CARS vs NEW CARS and at different rpm)
  • 55. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 55
  • 56. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 56
  • 57. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 57
  • 58. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 58 PROGRAMMING SMART DRONES
  • 59. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 59 Erasmus + project: ARt (2015-2017): Arduino technology and art http://arteducation.eu
  • 60. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 60 Approximate pricing Arduino Uno......................................... 25€ Arduino Uno clone (or from components) 5€ Raspberry Pi 2........................................49€ Resistors, LEDs, LDR...................around 5€ Breadboard.............................................10€ MQ sensors (CO, CH4, etc)..............5€ each MG811 (CO2 sensor)..............................50€ Arduino for Android.................................50€ Sometimes very high import taxes from China!
  • 61. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 61 Resources www.arduino.cc www.processing.org www.tecnologies.net
  • 62. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 62 Thank you very much for your attention Questions? Dr. Francisco Pérez García - Institut Pompeu Fabra
  • 63. Scientix 2 | Dr. Francisco Pérez García 24/11/2015 | Barcelona Scientix webinar: Open source hardware 63 Teacher of Technology // Institut Pompeu Fabra University Professor // Universitat de Barcelona Scientix Deputy Ambassador (Spain) // European Schoolnet Dr. Francisco Pérez García (perez@ub.edu) http://www.tecnologies.net More information