SlideShare une entreprise Scribd logo
1  sur  193
Formation Prototypage Matlab & Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Présentation Générale
▪ Présentation du formateur
▪ Plan de formation
▪ Prérequis
▪ Public concerné
▪ Objectifs visés
Formation Prototypage Matlab & Raspberry Pi
Présentation générale
Création des projets pour Raspberry Pi :
▪ Simulink : Modélisation par blocs▪ Matlab : Langage de programmation
haut niveau
Formation Prototypage Matlab & Raspberry Pi
Présentation formateur
Slim ABDELHEDI
Formateur et Consultant en Ingénierie systèmes et réseaux
▪ Certifié formateur Microsoft (MCT) : Microsoft Certified Trainer
▪ Consultant IT : Conseil et implémentation des solutions d’infrastructure réseau pour entreprises
Email : slim.abdelhedi@gmail.com
Linkedin : https://www.linkedin.com/in/slimabdelhedi/
Formation Prototypage Matlab & Raspberry Pi
Plan de formation
▪ Les chapitres
Chapitre I: Introduction à la carte Raspberry Pi
Chapitre II: Comment ajouter un nouveau package Matlab et Simulink?
Chapitre III: MATLAB Support Package pour Raspberry Pi
Chapitre IV: SIMULINK Support Package pour Raspberry Pi
Chapitre V: Créer pas à pas ma maison intelligente connectée
Formation Prototypage Matlab & Raspberry Pi
Prérequis
▪ Matlab et commande de base
▪ Linux et commande de base
▪ L’électronique de base
▪ Notions réseau : L'adressage IP et le protocole SSH
Formation Prototypage Matlab & Raspberry Pi
Public concerné
▪ Ingénieurs et enseignants de Sciences et Techniques de l'Ingénieur STI
▪ Chercheur développeur de solutions embarquées
▪ Ingénieurs de Recherche et Développement pour faire du prototypage
rapide en électronique avec Matlab & Simulink
▪ Informaticiens pour le traitement d'images, vidéos, et signaux avec
Matlab & Simulink
Formation Prototypage Matlab & Raspberry Pi
Objectifs visés
▪ Lecture, écriture et analyse des données à partir des capteurs et
caméras Raspberry Pi
▪ Développement de programmes s'exécutant de manière autonome
sur la carte Raspberry Pi
▪ Réalisation des prototypes avec la carte Raspberry Pi et Matlab
Formation Prototypage Matlab & Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Présentation matérielle de la carte Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Présentation de la carte Raspberry Pi
▪ Configuration matérielle de la carte Raspberry Pi 3
▪ Accessoires indispensables
Formation Prototypage Matlab & Raspberry Pi
Liens utiles
▪ http://www.raspberrypi.org/
▪ https://www.element14.com/
▪ http://uk.rs-online.com
Formation Prototypage Matlab & Raspberry Pi
Références bibliographiques
Formation Prototypage Matlab & Raspberry Pi
Qu’est-ce que la carte Raspberry Pi ?
Formation Prototypage Matlab & Raspberry Pi
Présentation de la carte Raspberry Pi
▪ Sorti officiellement le 29 février 2012, le Raspberry Pi est développé par la Raspberry Pi
Foundation : http://www.raspberrypi.org/
▪ Il s’agit d’un nano-ordinateur dont la taille est comparable à celle d’une carte de crédit
▪ Initialement destiné pour l'apprentissage de l'informatique chez les jeunes
▪ Il est actuellement décliné en trois modèles se différenciant par leurs composants et ainsi leur prix
Formation Prototypage Matlab & Raspberry Pi
▪ Processeur Broadcom BCM2837, 4 cœurs et cadencé à 1.2 GHz
▪ Port Ethernet, USB, HDMI/Composite, GPIO (General Purpose Input Output), Interface I2C, SPI et Serie
▪ Wifi 802.11 b/g/n
▪ Bluetooth 4.1 Low Energy
▪ Alimentation de 5V / 720 mA
▪ 1Go de RAM
▪ Fonctionne sous Linux et Windows
Configuration matérielle de la carte Raspberry Pi 3
Formation Prototypage Matlab & Raspberry Pi
Composition générale de la carte Raspberry Pi 3
Composants
 Audio/Vidéo composite
❖ Connectique caméra (CSI)

HDMI (avec support du son 5.1) et
vidéo composite
 Alimentation (Micro-USB)
 Connectique écran (DSI)
 GPIO (General Purpose Input Output)
 Broadcom BCM2837 (CPU/GPU/RAM/WIFI)
 SMSC LAN9514 (USB/Ethernet)
 USB 2.0
 Ethernet 10/100 Mbit/s
Formation Prototypage Matlab & Raspberry Pi
Accessoires indispensables
▪ Carte mémoire SD ou MicroSD (4 Go ou plus de préférence)
permettant d'accueillir le système d'exploitation de l'ordinateur.
Formation Prototypage Matlab & Raspberry Pi
Accessoires indispensables
▪ Câble d'alimentation USB pour insuffler l'énergie électrique dont
aura besoin le Mini-PC.
Formation Prototypage Matlab & Raspberry Pi
Accessoires indispensables
▪ Boitier de protection contre la poussière
Formation Prototypage Matlab & Raspberry Pi
Mise en route
Comment brancher les périphériques de la carte Raspberry Pi :
Formation Prototypage Matlab & Raspberry Pi
GPIO (General Purpose Input Output)
Formation Prototypage Matlab & Raspberry Pi
Conclusion
Raspberry Pi une plateforme idéale à embarquer et programmer avec Matlab
afin de réaliser :
▪ Robotique (robot suiveur, bras motorisé...)
▪ Domotique (station météo, pilotage de volets roulants, centrale
d'alarme...)
▪ Tout autre projet de recherche que vous voulez réaliser
Formation Prototypage Matlab & Raspberry Pi
Matériel nécessaire pour Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Liste du matériel nécessaire
▪ Description de la caméra module
▪ Contrôler un servomoteur avec un Raspberry Pi
▪ Principe de fonctionnement de PWM
Formation Prototypage Matlab & Raspberry Pi
Liens utiles
▪ http://www.framboise314.fr
▪ http://uk.rs-online.com
▪ https://www.kubii.fr
▪ http://www.raspberrypi-france.fr
Formation Prototypage Matlab & Raspberry Pi
Liste du matériel nécessaire
Plaquette de câblage (breadbord) Résistances électriques 470 Ω & 10 k Ω
Fils de câblage mâle-femelle & mâle-mâle LED rouge
Formation Prototypage Matlab & Raspberry Pi
Liste du matériel nécessaire
Moteur DC Carte de puissance L298N
Servomoteur Webcam USB & Caméra module Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Description de la caméra module
▪ Le module Raspberry Pi Camera est un petit circuit (2,5cm x 2,5cm)
doté d’un capteur photo de 2592 x 1944 pixels.
▪ Capable d’enregistrer en 1080p à 30 images par secondes (ou 60
fps en 720p).
▪ Ce module se branche directement sur le port CSI du Pi prévu à cet
effet.
Formation Prototypage Matlab & Raspberry Pi
Contrôler un servomoteur avec un Raspberry Pi
▪ Le servomoteur est contrôlé de façon à lui faire prendre une
position angulaire très précise.
▪ Cette position se contrôle au moyen d'un signal en modulation en
largeur d'impulsion (PWM) :
Il s'agit d'une succession de signaux logiques hauts (5 V) et bas (0 V).
Formation Prototypage Matlab & Raspberry Pi
PWM = Pulse Width Modulation
U : tension du PWM (5 V)
t : largeur d’impulsion (en ms)
T : période (en ms)
Principe de fonctionnement :
▪ La modulation de largeur d’impulsions est une technique couramment utilisée pour synthétiser des
signaux continus à l’aide de circuits à fonctionnement tout ou rien.
▪ On applique une succession d’impulsion (passage de l’état 0 à 1) pendant des durées bien choisies.
Formation Prototypage Matlab & Raspberry Pi
Présentation du servomoteur
▪ Le servomoteur est muni de trois connecteurs:
Le fil noir (ou marron) est la masse (GND), le fil rouge est l'alimentation (5 V)
et le fil jaune (ou autre couleur) transmet le signal PWM.
▪ Il est recommandé d’utiliser une alimentation externe pour votre servomoteur :
Alimenter directement votre servomoteur avec une sortie 5 V du Raspberry Pi, pourrait consommer un
courant trop intense.
Formation Prototypage Matlab & Raspberry Pi
Ajouter des packages sur Matlab 2017a
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Présentation générale de Matlab 2017a
▪ Filtrer les packages par catégorie
▪ Chercher des packages par mots-clés
Formation Prototypage Matlab & Raspberry Pi
Présentation de Matlab 2017a
Formation Prototypage Matlab & Raspberry Pi
Add-Ons
Formation Prototypage Matlab & Raspberry Pi
Filtrer les packages par catégorie
Formation Prototypage Matlab & Raspberry Pi
Chercher des packages par mots-clés
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Installer les packages pour la carte Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Introduction Générale
▪ Découvrir les packages de Raspberry Pi
▪ Etapes d’installation des packages
Formation Prototypage Matlab & Raspberry Pi
Présentation de Matlab 2017a
Formation Prototypage Matlab & Raspberry Pi
Add-Ons
Formation Prototypage Matlab & Raspberry Pi
Support Package Installer
Formation Prototypage Matlab & Raspberry Pi
Liste des Packages pour Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Installation de Matlab Support Packages pour Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Confirmation de l’installation de Matlab Support Packages
Formation Prototypage Matlab & Raspberry Pi
Installation du système d’exploitation Raspbian Jessie
Formation Prototypage Matlab & Raspberry Pi
Etapes d’installation du système d’exploitation Raspbian Jessie
Formation Prototypage Matlab & Raspberry Pi
Etapes d’installation du système d’exploitation Raspbian Jessie
Formation Prototypage Matlab & Raspberry Pi
Etapes d’installation du système d’exploitation Raspbian Jessie
Formation Prototypage Matlab & Raspberry Pi
Fin de l’installation du système d’exploitation Raspbian Jessie
Formation Prototypage Matlab & Raspberry Pi
Vérification de l’installation de Matlab Support Package
Formation Prototypage Matlab & Raspberry Pi
Installation de Simulink Support Packages pour Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Confirmation de l’installation de Simulink Support Packages
Formation Prototypage Matlab & Raspberry Pi
Etapes d’installation de Simulink Support Packages
Formation Prototypage Matlab & Raspberry Pi
Fin de l’installation de Simulink Support Packages
Formation Prototypage Matlab & Raspberry Pi
Vérification de l’installation de Simulink Support Packages
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Installer le système d’exploitation sur la carte
microSD
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Etapes d’installation du système sur la carte microSD
▪ Choix de la configuration réseau de la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Gestionnaire des packages Matlab
Formation Prototypage Matlab & Raspberry Pi
Choix du type de la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Configuration réseau : Connexion à un réseau local (LAN)
Formation Prototypage Matlab & Raspberry Pi
Configuration réseau : Connexion à un réseau local sans fils (WLAN)
Formation Prototypage Matlab & Raspberry Pi
Configuration réseau : WLAN
Adresse IP
dynamique
Formation Prototypage Matlab & Raspberry Pi
Configuration réseau : WLAN
Adresse IP
statique (fixe)
Formation Prototypage Matlab & Raspberry Pi
Configuration réseau : Connexion directe par câble Ethernet
Formation Prototypage Matlab & Raspberry Pi
Configuration manuelle des paramètres réseau
Formation Prototypage Matlab & Raspberry Pi
Configuration manuelle des paramètres réseau
Nom de
Raspberry Pi
Adresse IP
dynamique
Formation Prototypage Matlab & Raspberry Pi
Configuration manuelle des paramètres réseau
Adresse IP
statique (fixe)
Formation Prototypage Matlab & Raspberry Pi
Sélection de la carte microSD
Formation Prototypage Matlab & Raspberry Pi
Installation du firmware
Formation Prototypage Matlab & Raspberry Pi
Installation du firmware
Formation Prototypage Matlab & Raspberry Pi
Fin de l’installation
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Vérifier et tester la connexion réseau avec
la carte Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Méthodes de vérification de la connexion à la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Connexion à la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Détection de la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Confirmation de la configuration de la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Confirmation de la configuration de la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Fin de l’installation
Formation Prototypage Matlab & Raspberry Pi
Vérification de la connexion à la carte Raspberry Pi
Taper la commande :
>> !ping @IP RPi
>> !ping 192.168.1.100
Formation Prototypage Matlab & Raspberry Pi
Vérification de la connexion à la carte Raspberry Pi
Taper la commande :
>> raspi()
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Créer une connexion à la carte Raspberry Pi
et vérifier sa configuration réseau
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Créer une connexion à la carte Raspberry Pi
▪ Vérifier la configuration réseau de la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Création d’une connexion
▪ Création d’une connexion à la carte Raspberry Pi sans authentification :
>> mypi=raspi()
▪ Création d’une connexion à la carte Raspberry Pi avec authentification :
>> mypi = raspi('192.168.1.10','pi','raspberry')
Formation Prototypage Matlab & Raspberry Pi
Configuration réseau de la carte Raspberry Pi
▪ La commande ifconfig permet de vérifier la configuration locale ou à distance
des interfaces réseau de tous types d'équipements (unité centrale, routeur, ..) :
>> system(mypi, 'sudo ifconfig')
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Faire clignoter la LED Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Connexion à la carte Raspberry Pi
▪ Allumer et Éteindre la LED Raspberry Pi
▪ Faire clignoter la LED du Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Connexion à la carte Raspberry Pi
▪ Etablir une connexion à la carte :
mypi = raspi();
Ou
mypi = raspi(L’adresse IP ,Nom d’utilisateur, Mot de passe)
Formation Prototypage Matlab & Raspberry Pi
Allumer et Éteindre la LED Raspberry Pi
▪ La propriété ‘AvailableLEDs’ affiche le nom de la LED contrôlable par
l'utilisateur
▪ Afficher l'emplacement de la LED contrôlable par l'utilisateur sur la carte,
showLEDs(mypi)
▪ Activer la LED spécifiée en définissant sa valeur à 0/1 ou à ‘true/false’.
writeLED(mypi,'led0',1) ou writeLED(mypi,'led0',true)
Formation Prototypage Matlab & Raspberry Pi
Faire clignoter la LED Raspberry Pi
▪ Clignoter la LED 5 fois chaque seconde :
for i = 1:5 % Nombre de clignotement
writeLED(mypi,'led0',1) % Allumer la LED
pause(1) % Arrêt pendant une seconde
writeLED(mypi,'led0',0) % Eteindre la LED
pause(1) % Arrêt pendant une seconde
end
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Faire clignoter une LED avec les ports GPIO
du Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Connexion à la carte Raspberry Pi
▪ Schéma de câblage
▪ Allumer et Éteindre une LED avec les ports GPIO de Raspberry Pi
▪ Faire clignoter une LED avec les ports GPIO de Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Connexion à la carte Raspberry Pi
▪ Etablir une connexion à la carte :
mypi = raspi();
Ou
mypi = raspi(L’adresse IP ,Nom d’utilisateur, Mot de passe)
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Afficher et configurer les propriétés des pins GPIO de Raspberry Pi
▪ La propriété AvailableDigitalPins affiche la liste des pins GPIO numériques
disponibles.
▪ Afficher l'emplacement des pins GPIO :
showPins(mypi)
Formation Prototypage Matlab & Raspberry Pi
Afficher et configurer les propriétés des pins GPIO de Raspberry Pi
▪ Configurez une pin GPIO comme entrée numérique, sortie numérique ou
sortie PWM :
configurePin(mypi, numéro de la pin GPIO, mode)
mode = configurePin(mypi, pinNumber)
- Les modes utilisés sont : 'DigitalInput' | 'DigitalOutput' | 'PWM‘
configurePin(mypi,4,'DigitalInput‘)
Formation Prototypage Matlab & Raspberry Pi
Allumer et Éteindre une LED avec les ports GPIO de Raspberry Pi
Clear;
mypi= raspi();
configurePin(mypi,24, 'DigitalOutput') % GPIO 24 est configuré
comme sortie
writeDigitalPin(mypi, 24, 1); % Mise à 1 du GPIO 24
Formation Prototypage Matlab & Raspberry Pi
Faire clignoter une LED avec les ports GPIO de Raspberry Pi
▪ Clignoter la LED 10 fois chaque seconde :
configurePin(mypi,24, 'DigitalOutput')
for i = 1:10 % Nombre de clignotement
writeDigitalPin(mypi, 24, 1); % Allumer la LED
pause(1); % Arrêt pendant une seconde
writeDigitalPin(mypi, 24, 0);% Eteindre la LED
pause(1); % Arrêt pendant une seconde
end
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Utiliser le port série du Raspberry Pi pour se
connecter à un périphérique
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Identifier et vérifier les pins Tx et Rx de la carte Raspberry Pi
▪ Créer une connexion au périphérique série
▪ Lire et écrire des données sur le périphérique série avec Matlab
Formation Prototypage Matlab & Raspberry Pi
Ports séries de la carte Raspberry Pi
▪ GPIO 14 (UART0_TXD) transmet des
données au pin RxD sur le périphérique.
▪ GPIO 15 (UART0_RXD) reçoit des données
du pin TxD sur le périphérique.
Formation Prototypage Matlab & Raspberry Pi
Vérification des pins Tx et Rx de la carte Raspberry Pi
▪ Afficher l'emplacement des pins Tx et Rx, GPIO 14 (UART0_TXD) et
GPIO 15 (UART0_RXD), sur la carte Raspberry Pi.
rpi = raspi(); % Connexion à la carte
showPins(rpi); % Afficher l'emplacement des pins Tx et Rx
openShell(rpi); % Activer l’interface série
pi@raspberrypi:~ $ sudo raspi-config
Formation Prototypage Matlab & Raspberry Pi
Créer une connexion au périphérique série
S = serialdev(rpi,port,baudRate,dataBits,parity,stopBits);
S = serialdev(rpi,'/dev/ttyAMA0',9600,8,'none',1)
S =
serialdev with properties:
Port: '/dev/ttyAMA0'
BaudRate: 9600
DataBits: 8
Parity: 'none'
StopBits: 1
Timeout: 10
Formation Prototypage Matlab & Raspberry Pi
Lire et écrire des données sur le périphérique série
▪ Ecriture de données sur un périphérique série ne fournit aucune
indication de succès ou d'échec.
E = write(myserialdevice,[10 12],'uint16')
▪ Lire des données sur le périphérique série
L = read(myserialdevice,100)
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Mesure d'humidité et de température avec Matlab
sur Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Installer les librairies Adafruit DHT sur Raspberry Pi
▪ Câblage du capteur DHT11 avec Raspberry Pi
▪ Lire la valeur d'humidité et de température avec Matlab
Formation Prototypage Matlab & Raspberry Pi
Installer les librairies Adafruit DHT sur Raspberry Pi
▪ Etapes :
$ git clone https://github.com/adafruit/Adafruit_Python_DHT.git
$ cd Adafruit_Python_DHT
$ sudo apt-get install build-essential python-dev
$ sudo python setup.py install
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Mesure de distance par ultrasons avec le Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Câblage du capteur HC-SR04 avec Raspberry Pi
▪ Lire la distance entre le capteur et un objet avec Matlab
Formation Prototypage Matlab & Raspberry Pi
Matériel nécessaire
▪ Un module ultrasons HC-SR04
▪ Deux résistances de 1 kΩ et 2,2 kΩ
▪ Des câbles de connexion
▪ Une plaquette de câblage rapide
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
On connecte le capteur :
▪ 5V (PIN 2) : Vcc
▪ GPIO 14 (PIN 8) : Trigger
▪ GPIO 15 (PIN 10) : Echo
▪ GND (PIN 6) : Gnd
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Distance
Objet
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Utiliser la caméra module du Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Créer une connexion au module caméra
▪ Capturer une image ou vidéo avec la caméra
Formation Prototypage Matlab & Raspberry Pi
Créer une connexion au module caméra de la carte Raspberry Pi
mycamera = cameraboard(mypi,Propriété,Valeur)
Propriétés : Taille, résolution, orientation, exposition et autres effets spéciaux.
Exemple :
cam = cameraboard(mypi,'Resolution','1280x720')
Formation Prototypage Matlab & Raspberry Pi
Capturer une image ou vidéo avec la caméra
img = snapshot(cam)
Capture d’images :
Capture de vidéo :
Record(cam,fichier,durée)
▪ Arrêter l'enregistrement immédiatement.
stop(cam)
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Utiliser la Webcam USB avec Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Créer une connexion à la webcam USB avec Raspberry Pi
▪ Capturer une image
Formation Prototypage Matlab & Raspberry Pi
Créer une connexion à la webcam USB Raspberry Pi
▪ Etape 1 : Connexion Raspberry Pi
mypi = raspi('192.168.1.5','pi','raspberry');
▪ Etape 2 : Connexion à la webcam
wcam = webcam(mypi);
▪ Etape 3 : Capture d’une image
img = snapshot(wcam);
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Utiliser la Modulation de largeur d'impulsion
(PWM) pour varier la luminosité d'une LED
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Schéma de câblage
▪ Créer des signaux (PWM) sur les pins GPIO
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Créer des signaux (PWM) sur les pins GPIO
▪ Créer un signal carré avec un rapport de cyclique de 50%, une fréquence
de 2000 hertz et une tension moyenne de 1,65 V.
writePWMFrequency(mypi, N° GPIO, Fréquence)
Exemple:
ConfigurePin(mypi, 24, 'PWM'); % La sortie GPIO21
writePWMDutyCycle(mypi, 24, 0.5); % Le rapport cyclique de 50%
writePWMFrequency(mypi, 24, 2000); % Appliquer la fréquence PWM sur GPIO 21
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Commander un servomoteur avec Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Créer une connexion au servomoteur
▪ Faire pivoter le servomoteur
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
▪ Rouge : pour l’alimentation positive (4.5V à 6V en général)
▪ Noir ou marron : pour la masse (0V)
▪ Orange, jaune, blanc, … : entrée du signal de commande
Formation Prototypage Matlab & Raspberry Pi
Créer une connexion au servomoteur
▪ Créer un objet de type servo
servo(mypi, N° GPIO)
Exemple:
mypi = raspi('192.168.1.100','pi','raspberry'); % Connexion à Raspberry Pi
s = servo(mypi,14) % Commander le servomoteur sur GPIO 14
Formation Prototypage Matlab & Raspberry Pi
Faire pivoter le servomoteur
▪ Pivoter le servomoteur jusqu'à une position spécifiée.
writePosition(s, position)
Exemple:
writePosition(s, 45) % Pivoter le servomoteur de 45°
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Contrôler un moteur DC avec le Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Câblage de la carte de puissance L298N avec RPi et Moteur DC
▪ Contrôler un moteur DC avec Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Contrôler un moteur DC avec Raspberry Pi
▪ Commande de moteur DC d’un robot.
▪ On utilise la carte de puissance L298N
Formation Prototypage Matlab & Raspberry Pi
Câblage de la carte de puissance L298N avec RPi et Moteur DC
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Exécuter des commandes Shell Linux avec MATLAB
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Ouvrir un terminal Shell avec Matlab
▪ Lancer une commande linux à partir de Matlab sur Raspberry Pi
▪ Gestion des fichiers entre l'ordinateur et Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Ouvrir un terminal Shell avec Matlab
▪ Syntaxe
openShell(rpi)
Formation Prototypage Matlab & Raspberry Pi
Exécuter une commande linux à partir de Matlab sur Raspberry Pi
▪ Syntaxe
system(rpi,commande)
▪ Passer une commande en tant que super-utilisateur
system(rpi,commande,sudo)
▪ Exemple :
system(rpi, 'ls -al');
Formation Prototypage Matlab & Raspberry Pi
Gestion des fichiers entre l'ordinateur et Raspberry Pi
▪ Transférer un fichier du Raspberry Pi vers l'ordinateur
getFile(rpi,source,destination)
▪ Transférer un fichier de l'ordinateur vers Raspberry Pi
putFile(rpi,source,destination)
▪ Supprimer un fichier de la carte Raspberry Pi
deleteFile(rpi,Fichier)
Exemple :
getFile(rpi,'/home/pi/*.png','C:/formation/)
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Utiliser le capteur de mouvement PIR avec
Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Caractéristiques du détecteur de mouvements à infra rouge
▪ Pins du détecteur de mouvement PIR (Passive Infra Red)
▪ Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Caractéristiques du détecteur de mouvement HC-SR501
▪ Alimentation : 4.5V à 20V DC
▪ Sortie : Niveau haut 3.3V, Niveau Bas 0V
▪ Délai de sortie et sensibilité ajustable par
potentiomètre
▪ Déclenchement avec ou sans répétition
▪ Portée de 7 m et angle de 120°
Formation Prototypage Matlab & Raspberry Pi
Pins du détecteur de mouvement PIR
Les trois connecteurs du détecteur sont identifiés comme suit :
▪ Alimentation du détecteur (5V) : PIR-VCC
▪ Sortie numérique : PIR-OUT
▪ Masse (0V) : PIR-GND
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Prise en main de Simulink : Modèles et blocs utilisés
pour la carte Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Objectifs
▪ Blocs utilisés pour la carte Raspberry Pi
▪ Déploiement d’un programme sur la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Objectifs
▪ Développer des algorithmes dans Simulink s'exécutant de manière
autonome sur la carte Raspberry Pi
▪ Utiliser est un environnement de programmation par blocs pour la
modélisation de systèmes dynamiques
▪ Utiliser le bloc MATLAB Function pour incorporer du code
MATLAB dans un modèle Simulink
Formation Prototypage Matlab & Raspberry Pi
Blocs utilisés pour la carte Raspberry Pi
Formation Prototypage Matlab & Raspberry Pi
Déploiement d’un programme sur la carte Raspberry Pi
▪ Développer l'algorithme dans Simulink et le déployer sur la carte Raspberry Pi à
l'aide de la génération de code automatique.
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Compiler et déployer un modèle Simulink sur
Raspberry Pi
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Configuration de l’environnement Simulink
▪ Compilation et exécution du modèle Simulink
▪ Faire clignoter la LED Raspberry Pi avec Simulink
Formation Prototypage Matlab & Raspberry Pi
Configuration de l’environnement Simulink
Formation Prototypage Matlab & Raspberry Pi
Configuration de l’environnement Simulink
Formation Prototypage Matlab & Raspberry Pi
Faire clignoter la LED Raspberry Pi avec Simulink
Formation Prototypage Matlab & Raspberry Pi
Compilation et exécution du modèle Simulink
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Commander une LED avec un capteur de
mouvement PIR
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Description du modèle Simulink et le schéma de câblage
▪ Compilation et exécution du système de commande d’une LED
avec un capteur de mouvement PIR (Passive Infra Red)
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Modèle Simulink
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Commander ma maison intelligente
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Schéma de câblage
▪ Création de l’interface graphique de l’application avec Matlab
Formation Prototypage Matlab & Raspberry Pi
Matériel requis
▪ Raspberry Pi 3
▪ Une alimentation en mini USB de 5V et d’intensité 2.0 à 2.5A
▪ Une carte mémoire micro SD classe 10 8Go minimum
▪ Capteur de température DHT11
▪ Un câble réseau & fils de connexion
▪ 3 LEDs rouges et 3 résistances de 330 Ω
▪ Un Module relais
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Interface graphique de l’application
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?
Formation Prototypage Matlab & Raspberry Pi
Système de vidéosurveillance et contrôle d'accès
Préparée par:
Slim ABDELHEDI
Formateur et Consultant en Ingénierie
systèmes et réseaux
Formation Prototypage Matlab & Raspberry Pi
Plan
▪ Schéma de câblage
▪ Création de l’interface graphique de l’application
Formation Prototypage Matlab & Raspberry Pi
Matériel requis
▪ Raspberry Pi 3
▪ Une alimentation en mini USB de 5V
▪ Une carte mémoire micro SD
▪ Un câble réseau & fils de connexion
▪ Webcam USB
▪ Détecteur de mouvement PIR
Formation Prototypage Matlab & Raspberry Pi
Schéma de câblage
Formation Prototypage Matlab & Raspberry Pi
Interface graphique de l’application
Formation Prototypage Matlab & Raspberry Pi
Comment faire ?

Contenu connexe

Tendances

Cours CyberSécurité - Concepts Clés
Cours CyberSécurité - Concepts ClésCours CyberSécurité - Concepts Clés
Cours CyberSécurité - Concepts ClésFranck Franchin
 
Mise en place d'une solution VOIP sécurisée
Mise en place d'une solution VOIP sécuriséeMise en place d'une solution VOIP sécurisée
Mise en place d'une solution VOIP sécuriséeOlivierMawourkagosse
 
Projet réalisé par ameny Khedhira & Arij Mekki
Projet réalisé par  ameny Khedhira & Arij MekkiProjet réalisé par  ameny Khedhira & Arij Mekki
Projet réalisé par ameny Khedhira & Arij MekkiAmeny Khedhira
 
Rapport de stage nagios
Rapport de stage nagiosRapport de stage nagios
Rapport de stage nagioshindif
 
Sécurité des réseaux sans fil WIFI
Sécurité des réseaux sans fil WIFISécurité des réseaux sans fil WIFI
Sécurité des réseaux sans fil WIFISoukaina Boujadi
 
Conception et développement d’une plateforme d'import-export avec paiement en...
Conception et développement d’une plateforme d'import-export avec paiement en...Conception et développement d’une plateforme d'import-export avec paiement en...
Conception et développement d’une plateforme d'import-export avec paiement en...Karim Ben Alaya
 
Rapport pfe Conceptionet Developpement d'une Application web et Mobile
Rapport pfe Conceptionet Developpement d'une Application web et  Mobile Rapport pfe Conceptionet Developpement d'une Application web et  Mobile
Rapport pfe Conceptionet Developpement d'une Application web et Mobile Raoua Bennasr
 
Rapport de stage TOIP/VOIP
Rapport de stage TOIP/VOIPRapport de stage TOIP/VOIP
Rapport de stage TOIP/VOIPMounir Kaali
 
Présentation PFE (Conception et développement d'une application web && mobile...
Présentation PFE (Conception et développement d'une application web && mobile...Présentation PFE (Conception et développement d'une application web && mobile...
Présentation PFE (Conception et développement d'une application web && mobile...Ramzi Noumairi
 
Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...
Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...
Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...Mohammed JAITI
 

Tendances (20)

Cours CyberSécurité - Concepts Clés
Cours CyberSécurité - Concepts ClésCours CyberSécurité - Concepts Clés
Cours CyberSécurité - Concepts Clés
 
Mise en place d'une solution VOIP sécurisée
Mise en place d'une solution VOIP sécuriséeMise en place d'une solution VOIP sécurisée
Mise en place d'une solution VOIP sécurisée
 
Projet réalisé par ameny Khedhira & Arij Mekki
Projet réalisé par  ameny Khedhira & Arij MekkiProjet réalisé par  ameny Khedhira & Arij Mekki
Projet réalisé par ameny Khedhira & Arij Mekki
 
Rapport de stage nagios
Rapport de stage nagiosRapport de stage nagios
Rapport de stage nagios
 
Rapport pfe licence
Rapport pfe licenceRapport pfe licence
Rapport pfe licence
 
Tout atm
Tout atmTout atm
Tout atm
 
Sécurité des réseaux sans fil WIFI
Sécurité des réseaux sans fil WIFISécurité des réseaux sans fil WIFI
Sécurité des réseaux sans fil WIFI
 
Présentation pfe finale
Présentation pfe finalePrésentation pfe finale
Présentation pfe finale
 
Conception et développement d’une plateforme d'import-export avec paiement en...
Conception et développement d’une plateforme d'import-export avec paiement en...Conception et développement d’une plateforme d'import-export avec paiement en...
Conception et développement d’une plateforme d'import-export avec paiement en...
 
Rapport pfe Conceptionet Developpement d'une Application web et Mobile
Rapport pfe Conceptionet Developpement d'une Application web et  Mobile Rapport pfe Conceptionet Developpement d'une Application web et  Mobile
Rapport pfe Conceptionet Developpement d'une Application web et Mobile
 
Rapport PFE
Rapport PFERapport PFE
Rapport PFE
 
Rapport du stage
Rapport du stageRapport du stage
Rapport du stage
 
Présentation Cryptographie
Présentation CryptographiePrésentation Cryptographie
Présentation Cryptographie
 
Présentation PFE
Présentation PFEPrésentation PFE
Présentation PFE
 
Rapport de stage TOIP/VOIP
Rapport de stage TOIP/VOIPRapport de stage TOIP/VOIP
Rapport de stage TOIP/VOIP
 
wifi securite
wifi securite wifi securite
wifi securite
 
Rapport finiale
Rapport finialeRapport finiale
Rapport finiale
 
Présentation PFE (Conception et développement d'une application web && mobile...
Présentation PFE (Conception et développement d'une application web && mobile...Présentation PFE (Conception et développement d'une application web && mobile...
Présentation PFE (Conception et développement d'une application web && mobile...
 
Sécurité-Wifi
Sécurité-WifiSécurité-Wifi
Sécurité-Wifi
 
Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...
Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...
Soutenance de Mon PFE - Interaction Homme Machine par geste avec Python - Jai...
 

Similaire à Support formation vidéo : Prototypage Matlab et Raspberry Pi

Programmez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdf
Programmez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdfProgrammez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdf
Programmez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdflaminemhamed
 
The iTronics Internet of things Workshop 27-05-2017 - get started
The iTronics Internet of things Workshop 27-05-2017 - get startedThe iTronics Internet of things Workshop 27-05-2017 - get started
The iTronics Internet of things Workshop 27-05-2017 - get startedRomaric Saounde Tsopnang
 
Kiwiparty 2011 - Optimisation des sites internet
Kiwiparty 2011 - Optimisation des sites internetKiwiparty 2011 - Optimisation des sites internet
Kiwiparty 2011 - Optimisation des sites internetDevclic
 
Presentation de nagios mohamed bouhamed
Presentation de nagios mohamed bouhamedPresentation de nagios mohamed bouhamed
Presentation de nagios mohamed bouhamedTECOS
 
Meetup intro techno big data
Meetup intro techno big dataMeetup intro techno big data
Meetup intro techno big dataRomain Jouin
 
Vpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editions
Vpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editionsVpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editions
Vpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editionsCERTyou Formation
 
Isbs slides 2010
Isbs slides 2010Isbs slides 2010
Isbs slides 2010RMwebsite
 
Architecture des ordinateurs
Architecture des ordinateursArchitecture des ordinateurs
Architecture des ordinateursRMwebsite
 
Monitoring applicatif : Pourquoi et comment ?
Monitoring applicatif : Pourquoi et comment ?Monitoring applicatif : Pourquoi et comment ?
Monitoring applicatif : Pourquoi et comment ?Kenny Dits
 
Deployer PHP et MariaDB dans Azure - TechDays
Deployer PHP et MariaDB dans Azure - TechDaysDeployer PHP et MariaDB dans Azure - TechDays
Deployer PHP et MariaDB dans Azure - TechDaysChristophe Villeneuve
 
Déployez votre site PHP / MariaDB, simplement et rapidement dans Azure
Déployez votre site PHP / MariaDB, simplement et rapidement dans AzureDéployez votre site PHP / MariaDB, simplement et rapidement dans Azure
Déployez votre site PHP / MariaDB, simplement et rapidement dans AzureMicrosoft
 
Alphorm.com Formation Cisco CCNA v3 : mise à jour
Alphorm.com Formation Cisco CCNA v3 : mise à jourAlphorm.com Formation Cisco CCNA v3 : mise à jour
Alphorm.com Formation Cisco CCNA v3 : mise à jourAlphorm
 
Comment développer pour Linux avec Delphi
Comment développer pour Linux avec DelphiComment développer pour Linux avec Delphi
Comment développer pour Linux avec Delphipprem
 
wallabag, comment on a migré vers symfony3
wallabag, comment on a migré vers symfony3wallabag, comment on a migré vers symfony3
wallabag, comment on a migré vers symfony3Nicolas Lœuillet
 
raspberry pi
 raspberry pi raspberry pi
raspberry piTECOS
 

Similaire à Support formation vidéo : Prototypage Matlab et Raspberry Pi (20)

Raspberry Pi: Les utilisations
Raspberry Pi: Les utilisationsRaspberry Pi: Les utilisations
Raspberry Pi: Les utilisations
 
Le raspberry pi
Le raspberry piLe raspberry pi
Le raspberry pi
 
Programmez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdf
Programmez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdfProgrammez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdf
Programmez un Raspberry Pi - Initiation avec Python (Simon Monk) (z-lib.org).pdf
 
The iTronics Internet of things Workshop 27-05-2017 - get started
The iTronics Internet of things Workshop 27-05-2017 - get startedThe iTronics Internet of things Workshop 27-05-2017 - get started
The iTronics Internet of things Workshop 27-05-2017 - get started
 
Kiwiparty 2011 - Optimisation des sites internet
Kiwiparty 2011 - Optimisation des sites internetKiwiparty 2011 - Optimisation des sites internet
Kiwiparty 2011 - Optimisation des sites internet
 
Presentation de nagios mohamed bouhamed
Presentation de nagios mohamed bouhamedPresentation de nagios mohamed bouhamed
Presentation de nagios mohamed bouhamed
 
Meetup intro techno big data
Meetup intro techno big dataMeetup intro techno big data
Meetup intro techno big data
 
Vpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editions
Vpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editionsVpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editions
Vpbce5 fr formation-visualage-pacbase-standard-batch-cinematique-et-editions
 
Isbs slides 2010
Isbs slides 2010Isbs slides 2010
Isbs slides 2010
 
Presentation
PresentationPresentation
Presentation
 
Architecture des ordinateurs
Architecture des ordinateursArchitecture des ordinateurs
Architecture des ordinateurs
 
Monitoring applicatif : Pourquoi et comment ?
Monitoring applicatif : Pourquoi et comment ?Monitoring applicatif : Pourquoi et comment ?
Monitoring applicatif : Pourquoi et comment ?
 
Drupal dans l'internet des objets
Drupal dans l'internet des objetsDrupal dans l'internet des objets
Drupal dans l'internet des objets
 
Deployer PHP et MariaDB dans Azure - TechDays
Deployer PHP et MariaDB dans Azure - TechDaysDeployer PHP et MariaDB dans Azure - TechDays
Deployer PHP et MariaDB dans Azure - TechDays
 
Déployez votre site PHP / MariaDB, simplement et rapidement dans Azure
Déployez votre site PHP / MariaDB, simplement et rapidement dans AzureDéployez votre site PHP / MariaDB, simplement et rapidement dans Azure
Déployez votre site PHP / MariaDB, simplement et rapidement dans Azure
 
Alphorm.com Formation Cisco CCNA v3 : mise à jour
Alphorm.com Formation Cisco CCNA v3 : mise à jourAlphorm.com Formation Cisco CCNA v3 : mise à jour
Alphorm.com Formation Cisco CCNA v3 : mise à jour
 
Comment développer pour Linux avec Delphi
Comment développer pour Linux avec DelphiComment développer pour Linux avec Delphi
Comment développer pour Linux avec Delphi
 
wallabag, comment on a migré vers symfony3
wallabag, comment on a migré vers symfony3wallabag, comment on a migré vers symfony3
wallabag, comment on a migré vers symfony3
 
raspberry pi
 raspberry pi raspberry pi
raspberry pi
 
Ccna4
Ccna4Ccna4
Ccna4
 

Plus de SmartnSkilled

Formation : Comment rendre une réunion efficace ?
Formation : Comment rendre une réunion efficace ?Formation : Comment rendre une réunion efficace ?
Formation : Comment rendre une réunion efficace ?SmartnSkilled
 
Support cours : Les Data Sciences avec Python Langage - Partie II
Support cours : Les Data Sciences avec Python Langage - Partie IISupport cours : Les Data Sciences avec Python Langage - Partie II
Support cours : Les Data Sciences avec Python Langage - Partie IISmartnSkilled
 
Support tutoriel : Initiation à SAP ERP
Support tutoriel : Initiation à SAP ERPSupport tutoriel : Initiation à SAP ERP
Support tutoriel : Initiation à SAP ERPSmartnSkilled
 
Support formation : Construire et administrer vos conteneurs avec Docker
Support formation : Construire et administrer vos conteneurs avec DockerSupport formation : Construire et administrer vos conteneurs avec Docker
Support formation : Construire et administrer vos conteneurs avec DockerSmartnSkilled
 
Support formation : Maîtriser la comptabilité des opérations de fin d'exercice
Support formation : Maîtriser la comptabilité des opérations de fin d'exerciceSupport formation : Maîtriser la comptabilité des opérations de fin d'exercice
Support formation : Maîtriser la comptabilité des opérations de fin d'exerciceSmartnSkilled
 
Support cours : Comment rédiger un rapport ?
Support cours : Comment rédiger un rapport ?Support cours : Comment rédiger un rapport ?
Support cours : Comment rédiger un rapport ?SmartnSkilled
 
Support formation : Maîtriser les Data Sciences avec Python Language - Partie I
Support formation : Maîtriser les Data Sciences avec Python Language - Partie ISupport formation : Maîtriser les Data Sciences avec Python Language - Partie I
Support formation : Maîtriser les Data Sciences avec Python Language - Partie ISmartnSkilled
 
Support cours : Rédigez vos emails professionnels
Support cours : Rédigez vos emails professionnelsSupport cours : Rédigez vos emails professionnels
Support cours : Rédigez vos emails professionnelsSmartnSkilled
 
Support cours : Les phares du marketing
Support cours : Les phares du marketingSupport cours : Les phares du marketing
Support cours : Les phares du marketingSmartnSkilled
 
Support formation : La négociation commerciale coté vendeur
Support formation : La négociation commerciale coté vendeurSupport formation : La négociation commerciale coté vendeur
Support formation : La négociation commerciale coté vendeurSmartnSkilled
 
Support cours : Initiation à SAP ERP
Support cours : Initiation à SAP ERPSupport cours : Initiation à SAP ERP
Support cours : Initiation à SAP ERPSmartnSkilled
 
Tutoriel : Online English Expertise
Tutoriel : Online English ExpertiseTutoriel : Online English Expertise
Tutoriel : Online English ExpertiseSmartnSkilled
 
Formation : Mettre en place une stratégie commerciale
Formation : Mettre en place une stratégie commercialeFormation : Mettre en place une stratégie commerciale
Formation : Mettre en place une stratégie commercialeSmartnSkilled
 
Support cours : Cours d'Espagnol Débutant (A1-A2)
Support cours : Cours d'Espagnol Débutant (A1-A2)Support cours : Cours d'Espagnol Débutant (A1-A2)
Support cours : Cours d'Espagnol Débutant (A1-A2)SmartnSkilled
 
Support cours : Vos premiers pas avec le pare feu CISCO ASA
Support cours : Vos premiers pas avec le pare feu CISCO ASASupport cours : Vos premiers pas avec le pare feu CISCO ASA
Support cours : Vos premiers pas avec le pare feu CISCO ASASmartnSkilled
 
Support Tutoriel : Online English Expertise
Support Tutoriel : Online English ExpertiseSupport Tutoriel : Online English Expertise
Support Tutoriel : Online English ExpertiseSmartnSkilled
 
Support formation en ligne : Manager et auditer les risques informatiques
Support formation en ligne : Manager et auditer les risques informatiquesSupport formation en ligne : Manager et auditer les risques informatiques
Support formation en ligne : Manager et auditer les risques informatiquesSmartnSkilled
 
Support Tutoriel : Art oratoire et prise de parole en public
Support Tutoriel : Art oratoire et prise de parole en publicSupport Tutoriel : Art oratoire et prise de parole en public
Support Tutoriel : Art oratoire et prise de parole en publicSmartnSkilled
 
Support formation en ligne: L'estime de soi
Support formation en ligne: L'estime de soiSupport formation en ligne: L'estime de soi
Support formation en ligne: L'estime de soiSmartnSkilled
 
Support formation vidéo : Les phares du marketing
Support formation vidéo : Les phares du marketingSupport formation vidéo : Les phares du marketing
Support formation vidéo : Les phares du marketingSmartnSkilled
 

Plus de SmartnSkilled (20)

Formation : Comment rendre une réunion efficace ?
Formation : Comment rendre une réunion efficace ?Formation : Comment rendre une réunion efficace ?
Formation : Comment rendre une réunion efficace ?
 
Support cours : Les Data Sciences avec Python Langage - Partie II
Support cours : Les Data Sciences avec Python Langage - Partie IISupport cours : Les Data Sciences avec Python Langage - Partie II
Support cours : Les Data Sciences avec Python Langage - Partie II
 
Support tutoriel : Initiation à SAP ERP
Support tutoriel : Initiation à SAP ERPSupport tutoriel : Initiation à SAP ERP
Support tutoriel : Initiation à SAP ERP
 
Support formation : Construire et administrer vos conteneurs avec Docker
Support formation : Construire et administrer vos conteneurs avec DockerSupport formation : Construire et administrer vos conteneurs avec Docker
Support formation : Construire et administrer vos conteneurs avec Docker
 
Support formation : Maîtriser la comptabilité des opérations de fin d'exercice
Support formation : Maîtriser la comptabilité des opérations de fin d'exerciceSupport formation : Maîtriser la comptabilité des opérations de fin d'exercice
Support formation : Maîtriser la comptabilité des opérations de fin d'exercice
 
Support cours : Comment rédiger un rapport ?
Support cours : Comment rédiger un rapport ?Support cours : Comment rédiger un rapport ?
Support cours : Comment rédiger un rapport ?
 
Support formation : Maîtriser les Data Sciences avec Python Language - Partie I
Support formation : Maîtriser les Data Sciences avec Python Language - Partie ISupport formation : Maîtriser les Data Sciences avec Python Language - Partie I
Support formation : Maîtriser les Data Sciences avec Python Language - Partie I
 
Support cours : Rédigez vos emails professionnels
Support cours : Rédigez vos emails professionnelsSupport cours : Rédigez vos emails professionnels
Support cours : Rédigez vos emails professionnels
 
Support cours : Les phares du marketing
Support cours : Les phares du marketingSupport cours : Les phares du marketing
Support cours : Les phares du marketing
 
Support formation : La négociation commerciale coté vendeur
Support formation : La négociation commerciale coté vendeurSupport formation : La négociation commerciale coté vendeur
Support formation : La négociation commerciale coté vendeur
 
Support cours : Initiation à SAP ERP
Support cours : Initiation à SAP ERPSupport cours : Initiation à SAP ERP
Support cours : Initiation à SAP ERP
 
Tutoriel : Online English Expertise
Tutoriel : Online English ExpertiseTutoriel : Online English Expertise
Tutoriel : Online English Expertise
 
Formation : Mettre en place une stratégie commerciale
Formation : Mettre en place une stratégie commercialeFormation : Mettre en place une stratégie commerciale
Formation : Mettre en place une stratégie commerciale
 
Support cours : Cours d'Espagnol Débutant (A1-A2)
Support cours : Cours d'Espagnol Débutant (A1-A2)Support cours : Cours d'Espagnol Débutant (A1-A2)
Support cours : Cours d'Espagnol Débutant (A1-A2)
 
Support cours : Vos premiers pas avec le pare feu CISCO ASA
Support cours : Vos premiers pas avec le pare feu CISCO ASASupport cours : Vos premiers pas avec le pare feu CISCO ASA
Support cours : Vos premiers pas avec le pare feu CISCO ASA
 
Support Tutoriel : Online English Expertise
Support Tutoriel : Online English ExpertiseSupport Tutoriel : Online English Expertise
Support Tutoriel : Online English Expertise
 
Support formation en ligne : Manager et auditer les risques informatiques
Support formation en ligne : Manager et auditer les risques informatiquesSupport formation en ligne : Manager et auditer les risques informatiques
Support formation en ligne : Manager et auditer les risques informatiques
 
Support Tutoriel : Art oratoire et prise de parole en public
Support Tutoriel : Art oratoire et prise de parole en publicSupport Tutoriel : Art oratoire et prise de parole en public
Support Tutoriel : Art oratoire et prise de parole en public
 
Support formation en ligne: L'estime de soi
Support formation en ligne: L'estime de soiSupport formation en ligne: L'estime de soi
Support formation en ligne: L'estime de soi
 
Support formation vidéo : Les phares du marketing
Support formation vidéo : Les phares du marketingSupport formation vidéo : Les phares du marketing
Support formation vidéo : Les phares du marketing
 

Dernier

systeme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertsysteme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertChristianMbip
 
7 PPT sue le project de fin d'étude.pptx
7 PPT sue le project de fin d'étude.pptx7 PPT sue le project de fin d'étude.pptx
7 PPT sue le project de fin d'étude.pptxrababouerdighi
 
Fondation Louis Vuitton. pptx
Fondation      Louis      Vuitton.   pptxFondation      Louis      Vuitton.   pptx
Fondation Louis Vuitton. pptxTxaruka
 
Guide Final de rédaction de mémoire de fin d'étude
Guide Final de rédaction de mémoire de fin d'étudeGuide Final de rédaction de mémoire de fin d'étude
Guide Final de rédaction de mémoire de fin d'étudeBenamraneMarwa
 
Evaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. MarocpptxEvaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. MarocpptxAsmaa105193
 
Cours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSETCours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSETMedBechir
 
Formation M2i - Comprendre les neurosciences pour développer son leadership
Formation M2i - Comprendre les neurosciences pour développer son leadershipFormation M2i - Comprendre les neurosciences pour développer son leadership
Formation M2i - Comprendre les neurosciences pour développer son leadershipM2i Formation
 
A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.Franck Apolis
 
Cours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSETCours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSETMedBechir
 
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .
Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .Txaruka
 
Saint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptxSaint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptxMartin M Flynn
 
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptxSAID MASHATE
 
Présentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptxPrésentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptxrababouerdighi
 

Dernier (15)

systeme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expertsysteme expert_systeme expert_systeme expert
systeme expert_systeme expert_systeme expert
 
7 PPT sue le project de fin d'étude.pptx
7 PPT sue le project de fin d'étude.pptx7 PPT sue le project de fin d'étude.pptx
7 PPT sue le project de fin d'étude.pptx
 
Fondation Louis Vuitton. pptx
Fondation      Louis      Vuitton.   pptxFondation      Louis      Vuitton.   pptx
Fondation Louis Vuitton. pptx
 
Guide Final de rédaction de mémoire de fin d'étude
Guide Final de rédaction de mémoire de fin d'étudeGuide Final de rédaction de mémoire de fin d'étude
Guide Final de rédaction de mémoire de fin d'étude
 
Evaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. MarocpptxEvaluation du systeme d'Education. Marocpptx
Evaluation du systeme d'Education. Marocpptx
 
Cours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSETCours SE Gestion des périphériques - IG IPSET
Cours SE Gestion des périphériques - IG IPSET
 
Formation M2i - Comprendre les neurosciences pour développer son leadership
Formation M2i - Comprendre les neurosciences pour développer son leadershipFormation M2i - Comprendre les neurosciences pour développer son leadership
Formation M2i - Comprendre les neurosciences pour développer son leadership
 
A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.A3iFormations, organisme de formations certifié qualiopi.
A3iFormations, organisme de formations certifié qualiopi.
 
Cours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSETCours SE Le système Linux : La ligne de commande bash - IG IPSET
Cours SE Le système Linux : La ligne de commande bash - IG IPSET
 
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .
Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .Annie   Ernaux  Extérieurs. pptx. Exposition basée sur un livre .
Annie Ernaux Extérieurs. pptx. Exposition basée sur un livre .
 
Saint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptxSaint Georges, martyr, et la lègend du dragon.pptx
Saint Georges, martyr, et la lègend du dragon.pptx
 
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
666148532-Formation-Habilitation-ELECTRIQUE-ENTREPRISE-MARS-2017.pptx
 
Pâques de Sainte Marie-Euphrasie Pelletier
Pâques de Sainte Marie-Euphrasie PelletierPâques de Sainte Marie-Euphrasie Pelletier
Pâques de Sainte Marie-Euphrasie Pelletier
 
Présentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptxPrésentation_ Didactique 1_SVT (S4) complet.pptx
Présentation_ Didactique 1_SVT (S4) complet.pptx
 
Evaluación Alumnos de Ecole Victor Hugo
Evaluación Alumnos de Ecole  Victor HugoEvaluación Alumnos de Ecole  Victor Hugo
Evaluación Alumnos de Ecole Victor Hugo
 

Support formation vidéo : Prototypage Matlab et Raspberry Pi

  • 1. Formation Prototypage Matlab & Raspberry Pi Formation Prototypage Matlab & Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 2. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Présentation Générale ▪ Présentation du formateur ▪ Plan de formation ▪ Prérequis ▪ Public concerné ▪ Objectifs visés
  • 3. Formation Prototypage Matlab & Raspberry Pi Présentation générale Création des projets pour Raspberry Pi : ▪ Simulink : Modélisation par blocs▪ Matlab : Langage de programmation haut niveau
  • 4. Formation Prototypage Matlab & Raspberry Pi Présentation formateur Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux ▪ Certifié formateur Microsoft (MCT) : Microsoft Certified Trainer ▪ Consultant IT : Conseil et implémentation des solutions d’infrastructure réseau pour entreprises Email : slim.abdelhedi@gmail.com Linkedin : https://www.linkedin.com/in/slimabdelhedi/
  • 5. Formation Prototypage Matlab & Raspberry Pi Plan de formation ▪ Les chapitres Chapitre I: Introduction à la carte Raspberry Pi Chapitre II: Comment ajouter un nouveau package Matlab et Simulink? Chapitre III: MATLAB Support Package pour Raspberry Pi Chapitre IV: SIMULINK Support Package pour Raspberry Pi Chapitre V: Créer pas à pas ma maison intelligente connectée
  • 6. Formation Prototypage Matlab & Raspberry Pi Prérequis ▪ Matlab et commande de base ▪ Linux et commande de base ▪ L’électronique de base ▪ Notions réseau : L'adressage IP et le protocole SSH
  • 7. Formation Prototypage Matlab & Raspberry Pi Public concerné ▪ Ingénieurs et enseignants de Sciences et Techniques de l'Ingénieur STI ▪ Chercheur développeur de solutions embarquées ▪ Ingénieurs de Recherche et Développement pour faire du prototypage rapide en électronique avec Matlab & Simulink ▪ Informaticiens pour le traitement d'images, vidéos, et signaux avec Matlab & Simulink
  • 8. Formation Prototypage Matlab & Raspberry Pi Objectifs visés ▪ Lecture, écriture et analyse des données à partir des capteurs et caméras Raspberry Pi ▪ Développement de programmes s'exécutant de manière autonome sur la carte Raspberry Pi ▪ Réalisation des prototypes avec la carte Raspberry Pi et Matlab
  • 10. Formation Prototypage Matlab & Raspberry Pi Présentation matérielle de la carte Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 11. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Présentation de la carte Raspberry Pi ▪ Configuration matérielle de la carte Raspberry Pi 3 ▪ Accessoires indispensables
  • 12. Formation Prototypage Matlab & Raspberry Pi Liens utiles ▪ http://www.raspberrypi.org/ ▪ https://www.element14.com/ ▪ http://uk.rs-online.com
  • 13. Formation Prototypage Matlab & Raspberry Pi Références bibliographiques
  • 14. Formation Prototypage Matlab & Raspberry Pi Qu’est-ce que la carte Raspberry Pi ?
  • 15. Formation Prototypage Matlab & Raspberry Pi Présentation de la carte Raspberry Pi ▪ Sorti officiellement le 29 février 2012, le Raspberry Pi est développé par la Raspberry Pi Foundation : http://www.raspberrypi.org/ ▪ Il s’agit d’un nano-ordinateur dont la taille est comparable à celle d’une carte de crédit ▪ Initialement destiné pour l'apprentissage de l'informatique chez les jeunes ▪ Il est actuellement décliné en trois modèles se différenciant par leurs composants et ainsi leur prix
  • 16. Formation Prototypage Matlab & Raspberry Pi ▪ Processeur Broadcom BCM2837, 4 cœurs et cadencé à 1.2 GHz ▪ Port Ethernet, USB, HDMI/Composite, GPIO (General Purpose Input Output), Interface I2C, SPI et Serie ▪ Wifi 802.11 b/g/n ▪ Bluetooth 4.1 Low Energy ▪ Alimentation de 5V / 720 mA ▪ 1Go de RAM ▪ Fonctionne sous Linux et Windows Configuration matérielle de la carte Raspberry Pi 3
  • 17. Formation Prototypage Matlab & Raspberry Pi Composition générale de la carte Raspberry Pi 3 Composants  Audio/Vidéo composite ❖ Connectique caméra (CSI)  HDMI (avec support du son 5.1) et vidéo composite  Alimentation (Micro-USB)  Connectique écran (DSI)  GPIO (General Purpose Input Output)  Broadcom BCM2837 (CPU/GPU/RAM/WIFI)  SMSC LAN9514 (USB/Ethernet)  USB 2.0  Ethernet 10/100 Mbit/s
  • 18. Formation Prototypage Matlab & Raspberry Pi Accessoires indispensables ▪ Carte mémoire SD ou MicroSD (4 Go ou plus de préférence) permettant d'accueillir le système d'exploitation de l'ordinateur.
  • 19. Formation Prototypage Matlab & Raspberry Pi Accessoires indispensables ▪ Câble d'alimentation USB pour insuffler l'énergie électrique dont aura besoin le Mini-PC.
  • 20. Formation Prototypage Matlab & Raspberry Pi Accessoires indispensables ▪ Boitier de protection contre la poussière
  • 21. Formation Prototypage Matlab & Raspberry Pi Mise en route Comment brancher les périphériques de la carte Raspberry Pi :
  • 22. Formation Prototypage Matlab & Raspberry Pi GPIO (General Purpose Input Output)
  • 23. Formation Prototypage Matlab & Raspberry Pi Conclusion Raspberry Pi une plateforme idéale à embarquer et programmer avec Matlab afin de réaliser : ▪ Robotique (robot suiveur, bras motorisé...) ▪ Domotique (station météo, pilotage de volets roulants, centrale d'alarme...) ▪ Tout autre projet de recherche que vous voulez réaliser
  • 24. Formation Prototypage Matlab & Raspberry Pi Matériel nécessaire pour Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 25. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Liste du matériel nécessaire ▪ Description de la caméra module ▪ Contrôler un servomoteur avec un Raspberry Pi ▪ Principe de fonctionnement de PWM
  • 26. Formation Prototypage Matlab & Raspberry Pi Liens utiles ▪ http://www.framboise314.fr ▪ http://uk.rs-online.com ▪ https://www.kubii.fr ▪ http://www.raspberrypi-france.fr
  • 27. Formation Prototypage Matlab & Raspberry Pi Liste du matériel nécessaire Plaquette de câblage (breadbord) Résistances électriques 470 Ω & 10 k Ω Fils de câblage mâle-femelle & mâle-mâle LED rouge
  • 28. Formation Prototypage Matlab & Raspberry Pi Liste du matériel nécessaire Moteur DC Carte de puissance L298N Servomoteur Webcam USB & Caméra module Raspberry Pi
  • 29. Formation Prototypage Matlab & Raspberry Pi Description de la caméra module ▪ Le module Raspberry Pi Camera est un petit circuit (2,5cm x 2,5cm) doté d’un capteur photo de 2592 x 1944 pixels. ▪ Capable d’enregistrer en 1080p à 30 images par secondes (ou 60 fps en 720p). ▪ Ce module se branche directement sur le port CSI du Pi prévu à cet effet.
  • 30. Formation Prototypage Matlab & Raspberry Pi Contrôler un servomoteur avec un Raspberry Pi ▪ Le servomoteur est contrôlé de façon à lui faire prendre une position angulaire très précise. ▪ Cette position se contrôle au moyen d'un signal en modulation en largeur d'impulsion (PWM) : Il s'agit d'une succession de signaux logiques hauts (5 V) et bas (0 V).
  • 31. Formation Prototypage Matlab & Raspberry Pi PWM = Pulse Width Modulation U : tension du PWM (5 V) t : largeur d’impulsion (en ms) T : période (en ms) Principe de fonctionnement : ▪ La modulation de largeur d’impulsions est une technique couramment utilisée pour synthétiser des signaux continus à l’aide de circuits à fonctionnement tout ou rien. ▪ On applique une succession d’impulsion (passage de l’état 0 à 1) pendant des durées bien choisies.
  • 32. Formation Prototypage Matlab & Raspberry Pi Présentation du servomoteur ▪ Le servomoteur est muni de trois connecteurs: Le fil noir (ou marron) est la masse (GND), le fil rouge est l'alimentation (5 V) et le fil jaune (ou autre couleur) transmet le signal PWM. ▪ Il est recommandé d’utiliser une alimentation externe pour votre servomoteur : Alimenter directement votre servomoteur avec une sortie 5 V du Raspberry Pi, pourrait consommer un courant trop intense.
  • 33. Formation Prototypage Matlab & Raspberry Pi Ajouter des packages sur Matlab 2017a Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 34. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Présentation générale de Matlab 2017a ▪ Filtrer les packages par catégorie ▪ Chercher des packages par mots-clés
  • 35. Formation Prototypage Matlab & Raspberry Pi Présentation de Matlab 2017a
  • 36. Formation Prototypage Matlab & Raspberry Pi Add-Ons
  • 37. Formation Prototypage Matlab & Raspberry Pi Filtrer les packages par catégorie
  • 38. Formation Prototypage Matlab & Raspberry Pi Chercher des packages par mots-clés
  • 39. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 40. Formation Prototypage Matlab & Raspberry Pi Installer les packages pour la carte Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 41. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Introduction Générale ▪ Découvrir les packages de Raspberry Pi ▪ Etapes d’installation des packages
  • 42. Formation Prototypage Matlab & Raspberry Pi Présentation de Matlab 2017a
  • 43. Formation Prototypage Matlab & Raspberry Pi Add-Ons
  • 44. Formation Prototypage Matlab & Raspberry Pi Support Package Installer
  • 45. Formation Prototypage Matlab & Raspberry Pi Liste des Packages pour Raspberry Pi
  • 46. Formation Prototypage Matlab & Raspberry Pi Installation de Matlab Support Packages pour Raspberry Pi
  • 47. Formation Prototypage Matlab & Raspberry Pi Confirmation de l’installation de Matlab Support Packages
  • 48. Formation Prototypage Matlab & Raspberry Pi Installation du système d’exploitation Raspbian Jessie
  • 49. Formation Prototypage Matlab & Raspberry Pi Etapes d’installation du système d’exploitation Raspbian Jessie
  • 50. Formation Prototypage Matlab & Raspberry Pi Etapes d’installation du système d’exploitation Raspbian Jessie
  • 51. Formation Prototypage Matlab & Raspberry Pi Etapes d’installation du système d’exploitation Raspbian Jessie
  • 52. Formation Prototypage Matlab & Raspberry Pi Fin de l’installation du système d’exploitation Raspbian Jessie
  • 53. Formation Prototypage Matlab & Raspberry Pi Vérification de l’installation de Matlab Support Package
  • 54. Formation Prototypage Matlab & Raspberry Pi Installation de Simulink Support Packages pour Raspberry Pi
  • 55. Formation Prototypage Matlab & Raspberry Pi Confirmation de l’installation de Simulink Support Packages
  • 56. Formation Prototypage Matlab & Raspberry Pi Etapes d’installation de Simulink Support Packages
  • 57. Formation Prototypage Matlab & Raspberry Pi Fin de l’installation de Simulink Support Packages
  • 58. Formation Prototypage Matlab & Raspberry Pi Vérification de l’installation de Simulink Support Packages
  • 59. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 60. Formation Prototypage Matlab & Raspberry Pi Installer le système d’exploitation sur la carte microSD Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 61. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Etapes d’installation du système sur la carte microSD ▪ Choix de la configuration réseau de la carte Raspberry Pi
  • 62. Formation Prototypage Matlab & Raspberry Pi Gestionnaire des packages Matlab
  • 63. Formation Prototypage Matlab & Raspberry Pi Choix du type de la carte Raspberry Pi
  • 64. Formation Prototypage Matlab & Raspberry Pi Configuration réseau : Connexion à un réseau local (LAN)
  • 65. Formation Prototypage Matlab & Raspberry Pi Configuration réseau : Connexion à un réseau local sans fils (WLAN)
  • 66. Formation Prototypage Matlab & Raspberry Pi Configuration réseau : WLAN Adresse IP dynamique
  • 67. Formation Prototypage Matlab & Raspberry Pi Configuration réseau : WLAN Adresse IP statique (fixe)
  • 68. Formation Prototypage Matlab & Raspberry Pi Configuration réseau : Connexion directe par câble Ethernet
  • 69. Formation Prototypage Matlab & Raspberry Pi Configuration manuelle des paramètres réseau
  • 70. Formation Prototypage Matlab & Raspberry Pi Configuration manuelle des paramètres réseau Nom de Raspberry Pi Adresse IP dynamique
  • 71. Formation Prototypage Matlab & Raspberry Pi Configuration manuelle des paramètres réseau Adresse IP statique (fixe)
  • 72. Formation Prototypage Matlab & Raspberry Pi Sélection de la carte microSD
  • 73. Formation Prototypage Matlab & Raspberry Pi Installation du firmware
  • 74. Formation Prototypage Matlab & Raspberry Pi Installation du firmware
  • 75. Formation Prototypage Matlab & Raspberry Pi Fin de l’installation
  • 76. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 77. Formation Prototypage Matlab & Raspberry Pi Vérifier et tester la connexion réseau avec la carte Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 78. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Méthodes de vérification de la connexion à la carte Raspberry Pi
  • 79. Formation Prototypage Matlab & Raspberry Pi Connexion à la carte Raspberry Pi
  • 80. Formation Prototypage Matlab & Raspberry Pi Détection de la carte Raspberry Pi
  • 81. Formation Prototypage Matlab & Raspberry Pi Confirmation de la configuration de la carte Raspberry Pi
  • 82. Formation Prototypage Matlab & Raspberry Pi Confirmation de la configuration de la carte Raspberry Pi
  • 83. Formation Prototypage Matlab & Raspberry Pi Fin de l’installation
  • 84. Formation Prototypage Matlab & Raspberry Pi Vérification de la connexion à la carte Raspberry Pi Taper la commande : >> !ping @IP RPi >> !ping 192.168.1.100
  • 85. Formation Prototypage Matlab & Raspberry Pi Vérification de la connexion à la carte Raspberry Pi Taper la commande : >> raspi()
  • 86. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 87. Formation Prototypage Matlab & Raspberry Pi Créer une connexion à la carte Raspberry Pi et vérifier sa configuration réseau Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 88. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Créer une connexion à la carte Raspberry Pi ▪ Vérifier la configuration réseau de la carte Raspberry Pi
  • 89. Formation Prototypage Matlab & Raspberry Pi Création d’une connexion ▪ Création d’une connexion à la carte Raspberry Pi sans authentification : >> mypi=raspi() ▪ Création d’une connexion à la carte Raspberry Pi avec authentification : >> mypi = raspi('192.168.1.10','pi','raspberry')
  • 90. Formation Prototypage Matlab & Raspberry Pi Configuration réseau de la carte Raspberry Pi ▪ La commande ifconfig permet de vérifier la configuration locale ou à distance des interfaces réseau de tous types d'équipements (unité centrale, routeur, ..) : >> system(mypi, 'sudo ifconfig')
  • 91. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 92. Formation Prototypage Matlab & Raspberry Pi Faire clignoter la LED Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 93. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Connexion à la carte Raspberry Pi ▪ Allumer et Éteindre la LED Raspberry Pi ▪ Faire clignoter la LED du Raspberry Pi
  • 94. Formation Prototypage Matlab & Raspberry Pi Connexion à la carte Raspberry Pi ▪ Etablir une connexion à la carte : mypi = raspi(); Ou mypi = raspi(L’adresse IP ,Nom d’utilisateur, Mot de passe)
  • 95. Formation Prototypage Matlab & Raspberry Pi Allumer et Éteindre la LED Raspberry Pi ▪ La propriété ‘AvailableLEDs’ affiche le nom de la LED contrôlable par l'utilisateur ▪ Afficher l'emplacement de la LED contrôlable par l'utilisateur sur la carte, showLEDs(mypi) ▪ Activer la LED spécifiée en définissant sa valeur à 0/1 ou à ‘true/false’. writeLED(mypi,'led0',1) ou writeLED(mypi,'led0',true)
  • 96. Formation Prototypage Matlab & Raspberry Pi Faire clignoter la LED Raspberry Pi ▪ Clignoter la LED 5 fois chaque seconde : for i = 1:5 % Nombre de clignotement writeLED(mypi,'led0',1) % Allumer la LED pause(1) % Arrêt pendant une seconde writeLED(mypi,'led0',0) % Eteindre la LED pause(1) % Arrêt pendant une seconde end
  • 97. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 98. Formation Prototypage Matlab & Raspberry Pi Faire clignoter une LED avec les ports GPIO du Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 99. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Connexion à la carte Raspberry Pi ▪ Schéma de câblage ▪ Allumer et Éteindre une LED avec les ports GPIO de Raspberry Pi ▪ Faire clignoter une LED avec les ports GPIO de Raspberry Pi
  • 100. Formation Prototypage Matlab & Raspberry Pi Connexion à la carte Raspberry Pi ▪ Etablir une connexion à la carte : mypi = raspi(); Ou mypi = raspi(L’adresse IP ,Nom d’utilisateur, Mot de passe)
  • 101. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 102. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 103. Formation Prototypage Matlab & Raspberry Pi Afficher et configurer les propriétés des pins GPIO de Raspberry Pi ▪ La propriété AvailableDigitalPins affiche la liste des pins GPIO numériques disponibles. ▪ Afficher l'emplacement des pins GPIO : showPins(mypi)
  • 104. Formation Prototypage Matlab & Raspberry Pi Afficher et configurer les propriétés des pins GPIO de Raspberry Pi ▪ Configurez une pin GPIO comme entrée numérique, sortie numérique ou sortie PWM : configurePin(mypi, numéro de la pin GPIO, mode) mode = configurePin(mypi, pinNumber) - Les modes utilisés sont : 'DigitalInput' | 'DigitalOutput' | 'PWM‘ configurePin(mypi,4,'DigitalInput‘)
  • 105. Formation Prototypage Matlab & Raspberry Pi Allumer et Éteindre une LED avec les ports GPIO de Raspberry Pi Clear; mypi= raspi(); configurePin(mypi,24, 'DigitalOutput') % GPIO 24 est configuré comme sortie writeDigitalPin(mypi, 24, 1); % Mise à 1 du GPIO 24
  • 106. Formation Prototypage Matlab & Raspberry Pi Faire clignoter une LED avec les ports GPIO de Raspberry Pi ▪ Clignoter la LED 10 fois chaque seconde : configurePin(mypi,24, 'DigitalOutput') for i = 1:10 % Nombre de clignotement writeDigitalPin(mypi, 24, 1); % Allumer la LED pause(1); % Arrêt pendant une seconde writeDigitalPin(mypi, 24, 0);% Eteindre la LED pause(1); % Arrêt pendant une seconde end
  • 107. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 108. Formation Prototypage Matlab & Raspberry Pi Utiliser le port série du Raspberry Pi pour se connecter à un périphérique Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 109. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Identifier et vérifier les pins Tx et Rx de la carte Raspberry Pi ▪ Créer une connexion au périphérique série ▪ Lire et écrire des données sur le périphérique série avec Matlab
  • 110. Formation Prototypage Matlab & Raspberry Pi Ports séries de la carte Raspberry Pi ▪ GPIO 14 (UART0_TXD) transmet des données au pin RxD sur le périphérique. ▪ GPIO 15 (UART0_RXD) reçoit des données du pin TxD sur le périphérique.
  • 111. Formation Prototypage Matlab & Raspberry Pi Vérification des pins Tx et Rx de la carte Raspberry Pi ▪ Afficher l'emplacement des pins Tx et Rx, GPIO 14 (UART0_TXD) et GPIO 15 (UART0_RXD), sur la carte Raspberry Pi. rpi = raspi(); % Connexion à la carte showPins(rpi); % Afficher l'emplacement des pins Tx et Rx openShell(rpi); % Activer l’interface série pi@raspberrypi:~ $ sudo raspi-config
  • 112. Formation Prototypage Matlab & Raspberry Pi Créer une connexion au périphérique série S = serialdev(rpi,port,baudRate,dataBits,parity,stopBits); S = serialdev(rpi,'/dev/ttyAMA0',9600,8,'none',1) S = serialdev with properties: Port: '/dev/ttyAMA0' BaudRate: 9600 DataBits: 8 Parity: 'none' StopBits: 1 Timeout: 10
  • 113. Formation Prototypage Matlab & Raspberry Pi Lire et écrire des données sur le périphérique série ▪ Ecriture de données sur un périphérique série ne fournit aucune indication de succès ou d'échec. E = write(myserialdevice,[10 12],'uint16') ▪ Lire des données sur le périphérique série L = read(myserialdevice,100)
  • 114. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 115. Formation Prototypage Matlab & Raspberry Pi Mesure d'humidité et de température avec Matlab sur Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 116. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Installer les librairies Adafruit DHT sur Raspberry Pi ▪ Câblage du capteur DHT11 avec Raspberry Pi ▪ Lire la valeur d'humidité et de température avec Matlab
  • 117. Formation Prototypage Matlab & Raspberry Pi Installer les librairies Adafruit DHT sur Raspberry Pi ▪ Etapes : $ git clone https://github.com/adafruit/Adafruit_Python_DHT.git $ cd Adafruit_Python_DHT $ sudo apt-get install build-essential python-dev $ sudo python setup.py install
  • 118. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 119. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 120. Formation Prototypage Matlab & Raspberry Pi Mesure de distance par ultrasons avec le Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 121. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Câblage du capteur HC-SR04 avec Raspberry Pi ▪ Lire la distance entre le capteur et un objet avec Matlab
  • 122. Formation Prototypage Matlab & Raspberry Pi Matériel nécessaire ▪ Un module ultrasons HC-SR04 ▪ Deux résistances de 1 kΩ et 2,2 kΩ ▪ Des câbles de connexion ▪ Une plaquette de câblage rapide
  • 123. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage On connecte le capteur : ▪ 5V (PIN 2) : Vcc ▪ GPIO 14 (PIN 8) : Trigger ▪ GPIO 15 (PIN 10) : Echo ▪ GND (PIN 6) : Gnd
  • 124. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage Distance Objet
  • 125. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 126. Formation Prototypage Matlab & Raspberry Pi Utiliser la caméra module du Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 127. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Créer une connexion au module caméra ▪ Capturer une image ou vidéo avec la caméra
  • 128. Formation Prototypage Matlab & Raspberry Pi Créer une connexion au module caméra de la carte Raspberry Pi mycamera = cameraboard(mypi,Propriété,Valeur) Propriétés : Taille, résolution, orientation, exposition et autres effets spéciaux. Exemple : cam = cameraboard(mypi,'Resolution','1280x720')
  • 129. Formation Prototypage Matlab & Raspberry Pi Capturer une image ou vidéo avec la caméra img = snapshot(cam) Capture d’images : Capture de vidéo : Record(cam,fichier,durée) ▪ Arrêter l'enregistrement immédiatement. stop(cam)
  • 130. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 131. Formation Prototypage Matlab & Raspberry Pi Utiliser la Webcam USB avec Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 132. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Créer une connexion à la webcam USB avec Raspberry Pi ▪ Capturer une image
  • 133. Formation Prototypage Matlab & Raspberry Pi Créer une connexion à la webcam USB Raspberry Pi ▪ Etape 1 : Connexion Raspberry Pi mypi = raspi('192.168.1.5','pi','raspberry'); ▪ Etape 2 : Connexion à la webcam wcam = webcam(mypi); ▪ Etape 3 : Capture d’une image img = snapshot(wcam);
  • 134. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 135. Formation Prototypage Matlab & Raspberry Pi Utiliser la Modulation de largeur d'impulsion (PWM) pour varier la luminosité d'une LED Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 136. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Schéma de câblage ▪ Créer des signaux (PWM) sur les pins GPIO
  • 137. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 138. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 139. Formation Prototypage Matlab & Raspberry Pi Créer des signaux (PWM) sur les pins GPIO ▪ Créer un signal carré avec un rapport de cyclique de 50%, une fréquence de 2000 hertz et une tension moyenne de 1,65 V. writePWMFrequency(mypi, N° GPIO, Fréquence) Exemple: ConfigurePin(mypi, 24, 'PWM'); % La sortie GPIO21 writePWMDutyCycle(mypi, 24, 0.5); % Le rapport cyclique de 50% writePWMFrequency(mypi, 24, 2000); % Appliquer la fréquence PWM sur GPIO 21
  • 140. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 141. Formation Prototypage Matlab & Raspberry Pi Commander un servomoteur avec Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 142. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Créer une connexion au servomoteur ▪ Faire pivoter le servomoteur
  • 143. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage ▪ Rouge : pour l’alimentation positive (4.5V à 6V en général) ▪ Noir ou marron : pour la masse (0V) ▪ Orange, jaune, blanc, … : entrée du signal de commande
  • 144. Formation Prototypage Matlab & Raspberry Pi Créer une connexion au servomoteur ▪ Créer un objet de type servo servo(mypi, N° GPIO) Exemple: mypi = raspi('192.168.1.100','pi','raspberry'); % Connexion à Raspberry Pi s = servo(mypi,14) % Commander le servomoteur sur GPIO 14
  • 145. Formation Prototypage Matlab & Raspberry Pi Faire pivoter le servomoteur ▪ Pivoter le servomoteur jusqu'à une position spécifiée. writePosition(s, position) Exemple: writePosition(s, 45) % Pivoter le servomoteur de 45°
  • 146. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 147. Formation Prototypage Matlab & Raspberry Pi Contrôler un moteur DC avec le Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 148. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Câblage de la carte de puissance L298N avec RPi et Moteur DC ▪ Contrôler un moteur DC avec Raspberry Pi
  • 149. Formation Prototypage Matlab & Raspberry Pi Contrôler un moteur DC avec Raspberry Pi ▪ Commande de moteur DC d’un robot. ▪ On utilise la carte de puissance L298N
  • 150. Formation Prototypage Matlab & Raspberry Pi Câblage de la carte de puissance L298N avec RPi et Moteur DC
  • 151. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 152. Formation Prototypage Matlab & Raspberry Pi Exécuter des commandes Shell Linux avec MATLAB Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 153. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Ouvrir un terminal Shell avec Matlab ▪ Lancer une commande linux à partir de Matlab sur Raspberry Pi ▪ Gestion des fichiers entre l'ordinateur et Raspberry Pi
  • 154. Formation Prototypage Matlab & Raspberry Pi Ouvrir un terminal Shell avec Matlab ▪ Syntaxe openShell(rpi)
  • 155. Formation Prototypage Matlab & Raspberry Pi Exécuter une commande linux à partir de Matlab sur Raspberry Pi ▪ Syntaxe system(rpi,commande) ▪ Passer une commande en tant que super-utilisateur system(rpi,commande,sudo) ▪ Exemple : system(rpi, 'ls -al');
  • 156. Formation Prototypage Matlab & Raspberry Pi Gestion des fichiers entre l'ordinateur et Raspberry Pi ▪ Transférer un fichier du Raspberry Pi vers l'ordinateur getFile(rpi,source,destination) ▪ Transférer un fichier de l'ordinateur vers Raspberry Pi putFile(rpi,source,destination) ▪ Supprimer un fichier de la carte Raspberry Pi deleteFile(rpi,Fichier) Exemple : getFile(rpi,'/home/pi/*.png','C:/formation/)
  • 157. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 158. Formation Prototypage Matlab & Raspberry Pi Utiliser le capteur de mouvement PIR avec Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 159. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Caractéristiques du détecteur de mouvements à infra rouge ▪ Pins du détecteur de mouvement PIR (Passive Infra Red) ▪ Schéma de câblage
  • 160. Formation Prototypage Matlab & Raspberry Pi Caractéristiques du détecteur de mouvement HC-SR501 ▪ Alimentation : 4.5V à 20V DC ▪ Sortie : Niveau haut 3.3V, Niveau Bas 0V ▪ Délai de sortie et sensibilité ajustable par potentiomètre ▪ Déclenchement avec ou sans répétition ▪ Portée de 7 m et angle de 120°
  • 161. Formation Prototypage Matlab & Raspberry Pi Pins du détecteur de mouvement PIR Les trois connecteurs du détecteur sont identifiés comme suit : ▪ Alimentation du détecteur (5V) : PIR-VCC ▪ Sortie numérique : PIR-OUT ▪ Masse (0V) : PIR-GND
  • 162. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 163. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 164. Formation Prototypage Matlab & Raspberry Pi Prise en main de Simulink : Modèles et blocs utilisés pour la carte Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 165. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Objectifs ▪ Blocs utilisés pour la carte Raspberry Pi ▪ Déploiement d’un programme sur la carte Raspberry Pi
  • 166. Formation Prototypage Matlab & Raspberry Pi Objectifs ▪ Développer des algorithmes dans Simulink s'exécutant de manière autonome sur la carte Raspberry Pi ▪ Utiliser est un environnement de programmation par blocs pour la modélisation de systèmes dynamiques ▪ Utiliser le bloc MATLAB Function pour incorporer du code MATLAB dans un modèle Simulink
  • 167. Formation Prototypage Matlab & Raspberry Pi Blocs utilisés pour la carte Raspberry Pi
  • 168. Formation Prototypage Matlab & Raspberry Pi Déploiement d’un programme sur la carte Raspberry Pi ▪ Développer l'algorithme dans Simulink et le déployer sur la carte Raspberry Pi à l'aide de la génération de code automatique.
  • 169. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 170. Formation Prototypage Matlab & Raspberry Pi Compiler et déployer un modèle Simulink sur Raspberry Pi Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 171. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Configuration de l’environnement Simulink ▪ Compilation et exécution du modèle Simulink ▪ Faire clignoter la LED Raspberry Pi avec Simulink
  • 172. Formation Prototypage Matlab & Raspberry Pi Configuration de l’environnement Simulink
  • 173. Formation Prototypage Matlab & Raspberry Pi Configuration de l’environnement Simulink
  • 174. Formation Prototypage Matlab & Raspberry Pi Faire clignoter la LED Raspberry Pi avec Simulink
  • 175. Formation Prototypage Matlab & Raspberry Pi Compilation et exécution du modèle Simulink
  • 176. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 177. Formation Prototypage Matlab & Raspberry Pi Commander une LED avec un capteur de mouvement PIR Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 178. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Description du modèle Simulink et le schéma de câblage ▪ Compilation et exécution du système de commande d’une LED avec un capteur de mouvement PIR (Passive Infra Red)
  • 179. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 180. Formation Prototypage Matlab & Raspberry Pi Modèle Simulink
  • 181. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 182. Formation Prototypage Matlab & Raspberry Pi Commander ma maison intelligente Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 183. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Schéma de câblage ▪ Création de l’interface graphique de l’application avec Matlab
  • 184. Formation Prototypage Matlab & Raspberry Pi Matériel requis ▪ Raspberry Pi 3 ▪ Une alimentation en mini USB de 5V et d’intensité 2.0 à 2.5A ▪ Une carte mémoire micro SD classe 10 8Go minimum ▪ Capteur de température DHT11 ▪ Un câble réseau & fils de connexion ▪ 3 LEDs rouges et 3 résistances de 330 Ω ▪ Un Module relais
  • 185. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 186. Formation Prototypage Matlab & Raspberry Pi Interface graphique de l’application
  • 187. Formation Prototypage Matlab & Raspberry Pi Comment faire ?
  • 188. Formation Prototypage Matlab & Raspberry Pi Système de vidéosurveillance et contrôle d'accès Préparée par: Slim ABDELHEDI Formateur et Consultant en Ingénierie systèmes et réseaux
  • 189. Formation Prototypage Matlab & Raspberry Pi Plan ▪ Schéma de câblage ▪ Création de l’interface graphique de l’application
  • 190. Formation Prototypage Matlab & Raspberry Pi Matériel requis ▪ Raspberry Pi 3 ▪ Une alimentation en mini USB de 5V ▪ Une carte mémoire micro SD ▪ Un câble réseau & fils de connexion ▪ Webcam USB ▪ Détecteur de mouvement PIR
  • 191. Formation Prototypage Matlab & Raspberry Pi Schéma de câblage
  • 192. Formation Prototypage Matlab & Raspberry Pi Interface graphique de l’application
  • 193. Formation Prototypage Matlab & Raspberry Pi Comment faire ?