SlideShare une entreprise Scribd logo
1  sur  31
INTERNET OF THINGS
WORKSHOP - RASPBERRY PI
DES ATELIERS DE TRAVAIL SUR LES OBJETS CONNECTÉS ET LE
RASPBERRY PI
#ITRONICS_IOT_WORKSHOP
PRISE EN MAIN DU
RASPBERRY PI
LES BASES À SAVOIR
PRESENTATION DU
RASPBERRY PI
Les éléments
C’EST QUOI LE RASPBERRY
PI?
LE RASPBERRY PI EST UN NANO-ORDINATEUR MONO CARTE À
PROCESSEUR ARM CONÇU PAR LE CRÉATEUR DE JEUX VIDÉO DAVID
BRABEN, DANS LE CADRE DE SA FONDATION RASPBERRY PI.
PRESENTATION DU
RASPBERRY PI
Les éléments
RASPBERRY PI VS ARDUINO
Etude comparative entre le Raspberry pi et la carte Arduino.
ARDUINO VS RASPBERRY PI
Comparatif: Name and Structure
Arduino
Raspberry Pi
VS
ARDUINO VS RASPBERRY PI
Arduino UNO,
Arduino Mega
Arduino NANO
Arduino ETC…
VS
Comparatif: Types
Raspberry Pi
Raspberry Pi 2 Model A, B
et B+
Raspberry Pi 3
Raspberry Pi Zero
ARDUINO VS RASPBERRY PI
Processeur 16Mhz
Adressage 8bits
Mémoire: 2k SRAM,
32K Flash, 1k EEPROM
Tension: 5V
VS
Comparatif: Performances
Processeur 900MHz
Adressage 32 bits
Mémoire: 512k SRAM, 4GB
Flash, micro SD
Tension: 3.3V
ARDUINO VS RASPBERRY PI
Arduino n’a pas de
système d’exploitation.
Mais il y a le
BootLoader
VS
Comparatif: OS or Non OS
Raspberry Pi possède un sytème
d’exploitation
- Raspbian
- Open Elec
- Ubuntu Mate
- OSMC – Pour open source media
center
- Windows 10 (pas encore compatible
ARDUINO VS RASPBERRY PI
C++
void setup()
{
// write your setup code here, to run once
}
void loop()
{
// write your main code here, to run repeatedly
}
VS
Comparatif: Langage de
programmation
Python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(3, GPIO.OUT, initial =
GPIO.HIGH)
while True:
GPIO.output(3, HIGH)
ARDUINO VS RASPBERRY PI
C++
int led = 13;
void setup() {
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the
voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making
the voltage LOW
delay(1000); // wait for a second
}
VS
Comparatif: Blink
Python
# Import des modules
import RPi.GPIO as GPIO
import time
# Initialisation de la numerotation et des E/S
GPIO.setmode(GPIO.BOARD)
GPIO.setup(3, GPIO.OUT, initial = GPIO.HIGH)
# On fait clignoter la LED
while True:
GPIO.output(3, not GPIO.input(3))
time.sleep(0.5)
Clignotement d'une LED
PRISE EN MAIN DU RASPBERRY
PI
Site :
www.raspberrypi
.orgForum, cours, projets,
logiciels, etc.
INSTALLATION DU
RASPBERRY PI
Pour l’installation et l’utilisation du raspberry pi, vous avez besoin
d’un certain nombre d’équipements.
ALTERNATIVE: CONNECTER
À UN ORDINATEUR REEL.
Pour ceux souhaitant utiliser les fonctionnalités du raspberry pi sans
pour autant le brancher comme un ordinateur autonome, il existe
une alternative visant à faire tourner le raspberry pi via un ordinateur
réel.
CONNECTER LE RPI AU MEME
RÉSEAU QUE L’ORDINATEUR
La première chose à faire est de connecter le raspberry pi et
l’ordinateur en question sur le même réseau local ou internet.
INSTALLER ZENMAP
IL VOUS PERMET DE CONNAITRE L’ADRESSE IP DE VOTRE RASPBERRY
PI. CELA PEUT SE FAIRE SUR HTTPS://NMAP.ORG/ OU ALORS EN
FAISANT UN RECHERCHE BANALE SUR GOOGLE.
INSTALLER PUTTY
TÉLÉCHARGER PUTTY : IL PERMET DE SE CONNECTER EN SSH (SECURE
SHELL) AU RASPBERRY PI. CELA SE FAIT SUR HTTP://WWW.PUTTY.ORG
RÉCUPÉRATION DE
L’ADRESSE IP DU RASPBERRY
PI :
OUVRIR LA CONSOLE (INVITE DE COMMANDE).
SAISIR IPCONFIG ET NOTER L’ADRESSE IP DE VOTRE ORDINATEUR.
OUVRIR ZENMAP : SAISIR IP/24
Exemple : 192.168.0.1/24
CLIQUEZ SCAN, ET NOTER L’ADRESSE IP DU RASPBERRY PI.
ENFIN ÇA DONNE CECI :
SE CONNECTER AU
RASPBERRY PAR SSH :
OUVRIR PUTTY :
SAISIR L’ADRESSE IP DU RASPBERRY PI ET LE PORT 22.
CLIQUER CONNECTER
DANS LE CONSOLE QUI S’OUVRE, SE LOGUER:
user : pi
Password: raspberry
FELICITATION !!!
VOUS ÊTES À LA FIN DE
L’INSTALLATION
THANKS FOR YOUR
KIND ATTENTION !!!
A
suivre…

Contenu connexe

Similaire à The iTronics Internet of things Workshop 27-05-2017 - get started

Support formation vidéo : Prototypage Matlab et Raspberry Pi
Support formation vidéo : Prototypage Matlab et Raspberry Pi Support formation vidéo : Prototypage Matlab et Raspberry Pi
Support formation vidéo : Prototypage Matlab et Raspberry Pi SmartnSkilled
 
My trafficlights - Mets le feu avec ton Ruby
My trafficlights - Mets le feu avec  ton RubyMy trafficlights - Mets le feu avec  ton Ruby
My trafficlights - Mets le feu avec ton RubyNicolas Ledez
 
raspberry pi
 raspberry pi raspberry pi
raspberry piTECOS
 
Hacking your Home @bdx.io
Hacking your Home @bdx.ioHacking your Home @bdx.io
Hacking your Home @bdx.iolaurenthuet
 
Meetup Club Power BI Power BI et IA mars 2023
Meetup Club Power BI Power BI et IA mars 2023Meetup Club Power BI Power BI et IA mars 2023
Meetup Club Power BI Power BI et IA mars 2023Philippe Geiger
 
Innovathon - Technologies mises à disposition
Innovathon - Technologies mises à dispositionInnovathon - Technologies mises à disposition
Innovathon - Technologies mises à dispositionBeMyApp
 
#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...
#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...
#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...Normandie Web Xperts
 
Je configure mes serveurs avec fabric et fabtools
Je configure mes serveurs avec fabric et fabtoolsJe configure mes serveurs avec fabric et fabtools
Je configure mes serveurs avec fabric et fabtoolsRonan Amicel
 
Développer sereinement avec Node.js
Développer sereinement avec Node.jsDévelopper sereinement avec Node.js
Développer sereinement avec Node.jsJulien Giovaresco
 
Portage d'Android 8 sur Raspberry Pi 3
Portage d'Android 8 sur Raspberry Pi 3Portage d'Android 8 sur Raspberry Pi 3
Portage d'Android 8 sur Raspberry Pi 3Adrien Grassein
 

Similaire à The iTronics Internet of things Workshop 27-05-2017 - get started (13)

Support formation vidéo : Prototypage Matlab et Raspberry Pi
Support formation vidéo : Prototypage Matlab et Raspberry Pi Support formation vidéo : Prototypage Matlab et Raspberry Pi
Support formation vidéo : Prototypage Matlab et Raspberry Pi
 
Raspberry Pi: Les utilisations
Raspberry Pi: Les utilisationsRaspberry Pi: Les utilisations
Raspberry Pi: Les utilisations
 
My trafficlights - Mets le feu avec ton Ruby
My trafficlights - Mets le feu avec  ton RubyMy trafficlights - Mets le feu avec  ton Ruby
My trafficlights - Mets le feu avec ton Ruby
 
raspberry pi
 raspberry pi raspberry pi
raspberry pi
 
Présentation des IoT
Présentation des IoTPrésentation des IoT
Présentation des IoT
 
Hacking your Home @bdx.io
Hacking your Home @bdx.ioHacking your Home @bdx.io
Hacking your Home @bdx.io
 
Meetup Club Power BI Power BI et IA mars 2023
Meetup Club Power BI Power BI et IA mars 2023Meetup Club Power BI Power BI et IA mars 2023
Meetup Club Power BI Power BI et IA mars 2023
 
Innovathon - Technologies mises à disposition
Innovathon - Technologies mises à dispositionInnovathon - Technologies mises à disposition
Innovathon - Technologies mises à disposition
 
#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...
#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...
#nwxtech9 Rudy Baer et Kevin Vézier - Ansible, l’outil du sysadmin paresseux ...
 
Je configure mes serveurs avec fabric et fabtools
Je configure mes serveurs avec fabric et fabtoolsJe configure mes serveurs avec fabric et fabtools
Je configure mes serveurs avec fabric et fabtools
 
Drupal dans l'internet des objets
Drupal dans l'internet des objetsDrupal dans l'internet des objets
Drupal dans l'internet des objets
 
Développer sereinement avec Node.js
Développer sereinement avec Node.jsDévelopper sereinement avec Node.js
Développer sereinement avec Node.js
 
Portage d'Android 8 sur Raspberry Pi 3
Portage d'Android 8 sur Raspberry Pi 3Portage d'Android 8 sur Raspberry Pi 3
Portage d'Android 8 sur Raspberry Pi 3
 

Plus de Romaric Saounde Tsopnang

Plus de Romaric Saounde Tsopnang (20)

Aq switches2 - Beginner
Aq   switches2 - BeginnerAq   switches2 - Beginner
Aq switches2 - Beginner
 
Aq les conditionnelles - Débutant
Aq   les conditionnelles - DébutantAq   les conditionnelles - Débutant
Aq les conditionnelles - Débutant
 
Ap les boucles - Débutants
Ap   les boucles - DébutantsAp   les boucles - Débutants
Ap les boucles - Débutants
 
Ap loops2 - Beginner
Ap   loops2 - BeginnerAp   loops2 - Beginner
Ap loops2 - Beginner
 
Ao light nxt2 - Beginner
Ao   light nxt2 - BeginnerAo   light nxt2 - Beginner
Ao light nxt2 - Beginner
 
An capteur de couleur - Débutant
An   capteur de couleur - DébutantAn   capteur de couleur - Débutant
An capteur de couleur - Débutant
 
An color Sensor - Beginner
An   color Sensor - BeginnerAn   color Sensor - Beginner
An color Sensor - Beginner
 
Al capteur tactile - Débutant
Al   capteur tactile - DébutantAl   capteur tactile - Débutant
Al capteur tactile - Débutant
 
Al touch2 - Beginner
Al   touch2 - BeginnerAl   touch2 - Beginner
Al touch2 - Beginner
 
Ak custom imagessounds2 - Beginner
Ak   custom imagessounds2 - BeginnerAk   custom imagessounds2 - Beginner
Ak custom imagessounds2 - Beginner
 
Ak image et son standard - Débutant
Ak   image et son standard - DébutantAk   image et son standard - Débutant
Ak image et son standard - Débutant
 
Aj display2 - Beginner
Aj   display2 - BeginnerAj   display2 - Beginner
Aj display2 - Beginner
 
Aj affichage - Débutant
Aj   affichage - DébutantAj   affichage - Débutant
Aj affichage - Débutant
 
Ai turning2 - Beginner
Ai   turning2 - BeginnerAi   turning2 - Beginner
Ai turning2 - Beginner
 
Ai virages - Débutant
Ai   virages - DébutantAi   virages - Débutant
Ai virages - Débutant
 
Ah pseudocode2 - Beginner
Ah   pseudocode2 - BeginnerAh   pseudocode2 - Beginner
Ah pseudocode2 - Beginner
 
Ah pseudocode-fr - Débutant
Ah   pseudocode-fr - DébutantAh   pseudocode-fr - Débutant
Ah pseudocode-fr - Débutant
 
Ag moving straight2 - Beginner
Ag   moving straight2 - BeginnerAg   moving straight2 - Beginner
Ag moving straight2 - Beginner
 
Ag deplacement droit - Débutant
Ag   deplacement droit - DébutantAg   deplacement droit - Débutant
Ag deplacement droit - Débutant
 
Af port view2 - Beginner
Af   port view2 - BeginnerAf   port view2 - Beginner
Af port view2 - Beginner
 

The iTronics Internet of things Workshop 27-05-2017 - get started

  • 1. INTERNET OF THINGS WORKSHOP - RASPBERRY PI DES ATELIERS DE TRAVAIL SUR LES OBJETS CONNECTÉS ET LE RASPBERRY PI #ITRONICS_IOT_WORKSHOP
  • 2. PRISE EN MAIN DU RASPBERRY PI LES BASES À SAVOIR
  • 4. C’EST QUOI LE RASPBERRY PI? LE RASPBERRY PI EST UN NANO-ORDINATEUR MONO CARTE À PROCESSEUR ARM CONÇU PAR LE CRÉATEUR DE JEUX VIDÉO DAVID BRABEN, DANS LE CADRE DE SA FONDATION RASPBERRY PI.
  • 5.
  • 7.
  • 8. RASPBERRY PI VS ARDUINO Etude comparative entre le Raspberry pi et la carte Arduino.
  • 9. ARDUINO VS RASPBERRY PI Comparatif: Name and Structure Arduino Raspberry Pi VS
  • 10. ARDUINO VS RASPBERRY PI Arduino UNO, Arduino Mega Arduino NANO Arduino ETC… VS Comparatif: Types Raspberry Pi Raspberry Pi 2 Model A, B et B+ Raspberry Pi 3 Raspberry Pi Zero
  • 11. ARDUINO VS RASPBERRY PI Processeur 16Mhz Adressage 8bits Mémoire: 2k SRAM, 32K Flash, 1k EEPROM Tension: 5V VS Comparatif: Performances Processeur 900MHz Adressage 32 bits Mémoire: 512k SRAM, 4GB Flash, micro SD Tension: 3.3V
  • 12. ARDUINO VS RASPBERRY PI Arduino n’a pas de système d’exploitation. Mais il y a le BootLoader VS Comparatif: OS or Non OS Raspberry Pi possède un sytème d’exploitation - Raspbian - Open Elec - Ubuntu Mate - OSMC – Pour open source media center - Windows 10 (pas encore compatible
  • 13. ARDUINO VS RASPBERRY PI C++ void setup() { // write your setup code here, to run once } void loop() { // write your main code here, to run repeatedly } VS Comparatif: Langage de programmation Python import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(3, GPIO.OUT, initial = GPIO.HIGH) while True: GPIO.output(3, HIGH)
  • 14. ARDUINO VS RASPBERRY PI C++ int led = 13; void setup() { pinMode(led, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } VS Comparatif: Blink Python # Import des modules import RPi.GPIO as GPIO import time # Initialisation de la numerotation et des E/S GPIO.setmode(GPIO.BOARD) GPIO.setup(3, GPIO.OUT, initial = GPIO.HIGH) # On fait clignoter la LED while True: GPIO.output(3, not GPIO.input(3)) time.sleep(0.5) Clignotement d'une LED
  • 15. PRISE EN MAIN DU RASPBERRY PI Site : www.raspberrypi .orgForum, cours, projets, logiciels, etc.
  • 16. INSTALLATION DU RASPBERRY PI Pour l’installation et l’utilisation du raspberry pi, vous avez besoin d’un certain nombre d’équipements.
  • 17.
  • 18. ALTERNATIVE: CONNECTER À UN ORDINATEUR REEL. Pour ceux souhaitant utiliser les fonctionnalités du raspberry pi sans pour autant le brancher comme un ordinateur autonome, il existe une alternative visant à faire tourner le raspberry pi via un ordinateur réel.
  • 19. CONNECTER LE RPI AU MEME RÉSEAU QUE L’ORDINATEUR La première chose à faire est de connecter le raspberry pi et l’ordinateur en question sur le même réseau local ou internet.
  • 20. INSTALLER ZENMAP IL VOUS PERMET DE CONNAITRE L’ADRESSE IP DE VOTRE RASPBERRY PI. CELA PEUT SE FAIRE SUR HTTPS://NMAP.ORG/ OU ALORS EN FAISANT UN RECHERCHE BANALE SUR GOOGLE.
  • 21.
  • 22.
  • 23. INSTALLER PUTTY TÉLÉCHARGER PUTTY : IL PERMET DE SE CONNECTER EN SSH (SECURE SHELL) AU RASPBERRY PI. CELA SE FAIT SUR HTTP://WWW.PUTTY.ORG
  • 24.
  • 25.
  • 26. RÉCUPÉRATION DE L’ADRESSE IP DU RASPBERRY PI : OUVRIR LA CONSOLE (INVITE DE COMMANDE). SAISIR IPCONFIG ET NOTER L’ADRESSE IP DE VOTRE ORDINATEUR. OUVRIR ZENMAP : SAISIR IP/24 Exemple : 192.168.0.1/24 CLIQUEZ SCAN, ET NOTER L’ADRESSE IP DU RASPBERRY PI. ENFIN ÇA DONNE CECI :
  • 27.
  • 28. SE CONNECTER AU RASPBERRY PAR SSH : OUVRIR PUTTY : SAISIR L’ADRESSE IP DU RASPBERRY PI ET LE PORT 22. CLIQUER CONNECTER DANS LE CONSOLE QUI S’OUVRE, SE LOGUER: user : pi Password: raspberry
  • 29.
  • 30. FELICITATION !!! VOUS ÊTES À LA FIN DE L’INSTALLATION
  • 31. THANKS FOR YOUR KIND ATTENTION !!! A suivre…