SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Downloaden Sie, um offline zu lesen
Test D’Un Port GPIO
4.0
Osistar
p. 1
Test Des Ports Gpio
Bon on va Modif un peu le schéma on va remplacer le Brochages
Don On Va pce positionnée entre la pin 18 pour la commande enfin celle que l’on va pouvoir
modifié sont états logiques et la 23 qui est la Masse
On fait un petit Readall pour voire les états des ports
gpio readall
Et Là on voit Ceci
+----------+-Rev2-+------+--------+------+-------+
| wiringPi | GPIO | Phys | Name | Mode | Value |
+----------+------+------+--------+------+-------+
| 0 | 17 | 11 | GPIO 0 | IN | Low |
| 1 | 18 | 12 | GPIO 1 | IN | Low |
| 2 | 27 | 13 | GPIO 2 | IN | Low |
| 3 | 22 | 15 | GPIO 3 | IN | Low |
| 4 | 23 | 16 | GPIO 4 | IN | Low |
| 5 | 24 | 18 | GPIO 5 | IN | Low |
| 6 | 25 | 22 | GPIO 6 | IN | Low |
| 7 | 4 | 7 | GPIO 7 | IN | Low |
| 8 | 2 | 3 | SDA | IN | High |
| 9 | 3 | 5 | SCL | IN | High |
| 10 | 8 | 24 | CE0 | IN | Low |
| 11 | 7 | 26 | CE1 | IN | Low |
| 12 | 10 | 19 | MOSI | IN | Low |
| 13 | 9 | 21 | MISO | IN | Low |
| 14 | 11 | 23 | SCLK | IN | Low |
| 15 | 14 | 8 | TxD | ALT0 | High |
| 16 | 15 | 10 | RxD | ALT0 | High |
| 17 | 28 | 3 | GPIO 8 | IN | Low |
| 18 | 29 | 4 | GPIO 9 | IN | Low |
| 19 | 30 | 5 | GPIO10 | IN | Low |
| 20 | 31 | 6 | GPIO11 | IN | Low |
+----------+------+------+--------+------+-------+
Test D’Un Port GPIO
4.0
Osistar
p. 2
Et la on l’active en tant que sortie et non entrée avec la commande :
gpio mode 0 out
Et après on commande l’état du port avec les deux commande suivantes :
1- Mettre la pin en mode “out”
pi@rpi:~ $ gpio -g mode 24 out
2- Changer l’état de la pin
pi@rpi:~ $ gpio -g write 24 1
pi@rpi:~ $ gpio -g write 24 0

Weitere ähnliche Inhalte

Andere mochten auch

I don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry piI don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry piadelegue
 
Maisons Intelligentes ( Projet bibliographique )
Maisons Intelligentes ( Projet bibliographique ) Maisons Intelligentes ( Projet bibliographique )
Maisons Intelligentes ( Projet bibliographique ) Hamza Ibrahmi
 
Rapport Projet Application Web De Domotique Arduino - Liotard Roulleau
Rapport Projet Application Web De Domotique Arduino - Liotard RoulleauRapport Projet Application Web De Domotique Arduino - Liotard Roulleau
Rapport Projet Application Web De Domotique Arduino - Liotard RoulleauNicolas Roulleau
 
Présentation Projet de fin d'année
Présentation Projet de fin d'annéePrésentation Projet de fin d'année
Présentation Projet de fin d'annéeYassine DAHMANE
 
Gateway d’un système de monitoring
Gateway d’un système de monitoringGateway d’un système de monitoring
Gateway d’un système de monitoringGhassen Chaieb
 

Andere mochten auch (6)

I don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry piI don't always write reactive application but when I do, it run on raspberry pi
I don't always write reactive application but when I do, it run on raspberry pi
 
Maisons Intelligentes ( Projet bibliographique )
Maisons Intelligentes ( Projet bibliographique ) Maisons Intelligentes ( Projet bibliographique )
Maisons Intelligentes ( Projet bibliographique )
 
Rapport Projet Application Web De Domotique Arduino - Liotard Roulleau
Rapport Projet Application Web De Domotique Arduino - Liotard RoulleauRapport Projet Application Web De Domotique Arduino - Liotard Roulleau
Rapport Projet Application Web De Domotique Arduino - Liotard Roulleau
 
Présentation Projet de fin d'année
Présentation Projet de fin d'annéePrésentation Projet de fin d'année
Présentation Projet de fin d'année
 
Gateway d’un système de monitoring
Gateway d’un système de monitoringGateway d’un système de monitoring
Gateway d’un système de monitoring
 
Présentation des IoT
Présentation des IoTPrésentation des IoT
Présentation des IoT
 

Mehr von Osi Pallière

1.0 réduction d'un resultat sous forme de fraction
1.0 réduction d'un resultat sous forme de fraction1.0 réduction d'un resultat sous forme de fraction
1.0 réduction d'un resultat sous forme de fractionOsi Pallière
 
6.0 rdp sur raspberry
6.0 rdp sur raspberry6.0 rdp sur raspberry
6.0 rdp sur raspberryOsi Pallière
 
6.0 modif repertoire destination vsftpd
6.0 modif repertoire destination vsftpd6.0 modif repertoire destination vsftpd
6.0 modif repertoire destination vsftpdOsi Pallière
 
5.0 install ubuntu server config chemin de apache
5.0 install ubuntu server config chemin de apache5.0 install ubuntu server config chemin de apache
5.0 install ubuntu server config chemin de apacheOsi Pallière
 
4.0 install de ubuntu server changement theme webmin
4.0 install de ubuntu server changement theme webmin4.0 install de ubuntu server changement theme webmin
4.0 install de ubuntu server changement theme webminOsi Pallière
 
3.0 install de ubuntu server + tasksel + ftp
3.0 install de ubuntu server + tasksel + ftp3.0 install de ubuntu server + tasksel + ftp
3.0 install de ubuntu server + tasksel + ftpOsi Pallière
 
1.0 install de ubuntu server + ssh + webmin
1.0 install de ubuntu server + ssh + webmin1.0 install de ubuntu server + ssh + webmin
1.0 install de ubuntu server + ssh + webminOsi Pallière
 
5.0 install de webiopi
5.0 install de webiopi5.0 install de webiopi
5.0 install de webiopiOsi Pallière
 
3.0 install wiring pi (control ports gpio manu )
3.0 install wiring pi (control ports gpio manu )3.0 install wiring pi (control ports gpio manu )
3.0 install wiring pi (control ports gpio manu )Osi Pallière
 
2.0 activé desactivé hdmi rasp
2.0 activé desactivé hdmi rasp2.0 activé desactivé hdmi rasp
2.0 activé desactivé hdmi raspOsi Pallière
 
1.0 commande linux mod graph + supp
1.0 commande linux mod graph + supp1.0 commande linux mod graph + supp
1.0 commande linux mod graph + suppOsi Pallière
 
5.0 topologie réseaux
5.0 topologie réseaux5.0 topologie réseaux
5.0 topologie réseauxOsi Pallière
 
3.0 similitude entre les differents réseaux
3.0 similitude entre les differents réseaux3.0 similitude entre les differents réseaux
3.0 similitude entre les differents réseauxOsi Pallière
 
2.0 interet d'un reseaux
2.0 interet d'un reseaux2.0 interet d'un reseaux
2.0 interet d'un reseauxOsi Pallière
 

Mehr von Osi Pallière (16)

2.0 Tracez un sinus
2.0 Tracez un sinus2.0 Tracez un sinus
2.0 Tracez un sinus
 
1.0 réduction d'un resultat sous forme de fraction
1.0 réduction d'un resultat sous forme de fraction1.0 réduction d'un resultat sous forme de fraction
1.0 réduction d'un resultat sous forme de fraction
 
6.0 rdp sur raspberry
6.0 rdp sur raspberry6.0 rdp sur raspberry
6.0 rdp sur raspberry
 
6.0 modif repertoire destination vsftpd
6.0 modif repertoire destination vsftpd6.0 modif repertoire destination vsftpd
6.0 modif repertoire destination vsftpd
 
5.0 install ubuntu server config chemin de apache
5.0 install ubuntu server config chemin de apache5.0 install ubuntu server config chemin de apache
5.0 install ubuntu server config chemin de apache
 
4.0 install de ubuntu server changement theme webmin
4.0 install de ubuntu server changement theme webmin4.0 install de ubuntu server changement theme webmin
4.0 install de ubuntu server changement theme webmin
 
3.0 install de ubuntu server + tasksel + ftp
3.0 install de ubuntu server + tasksel + ftp3.0 install de ubuntu server + tasksel + ftp
3.0 install de ubuntu server + tasksel + ftp
 
2.0 webmin
2.0 webmin2.0 webmin
2.0 webmin
 
1.0 install de ubuntu server + ssh + webmin
1.0 install de ubuntu server + ssh + webmin1.0 install de ubuntu server + ssh + webmin
1.0 install de ubuntu server + ssh + webmin
 
5.0 install de webiopi
5.0 install de webiopi5.0 install de webiopi
5.0 install de webiopi
 
3.0 install wiring pi (control ports gpio manu )
3.0 install wiring pi (control ports gpio manu )3.0 install wiring pi (control ports gpio manu )
3.0 install wiring pi (control ports gpio manu )
 
2.0 activé desactivé hdmi rasp
2.0 activé desactivé hdmi rasp2.0 activé desactivé hdmi rasp
2.0 activé desactivé hdmi rasp
 
1.0 commande linux mod graph + supp
1.0 commande linux mod graph + supp1.0 commande linux mod graph + supp
1.0 commande linux mod graph + supp
 
5.0 topologie réseaux
5.0 topologie réseaux5.0 topologie réseaux
5.0 topologie réseaux
 
3.0 similitude entre les differents réseaux
3.0 similitude entre les differents réseaux3.0 similitude entre les differents réseaux
3.0 similitude entre les differents réseaux
 
2.0 interet d'un reseaux
2.0 interet d'un reseaux2.0 interet d'un reseaux
2.0 interet d'un reseaux
 

4.0 test d’un port gpio

  • 1. Test D’Un Port GPIO 4.0 Osistar p. 1 Test Des Ports Gpio Bon on va Modif un peu le schéma on va remplacer le Brochages Don On Va pce positionnée entre la pin 18 pour la commande enfin celle que l’on va pouvoir modifié sont états logiques et la 23 qui est la Masse On fait un petit Readall pour voire les états des ports gpio readall Et Là on voit Ceci +----------+-Rev2-+------+--------+------+-------+ | wiringPi | GPIO | Phys | Name | Mode | Value | +----------+------+------+--------+------+-------+ | 0 | 17 | 11 | GPIO 0 | IN | Low | | 1 | 18 | 12 | GPIO 1 | IN | Low | | 2 | 27 | 13 | GPIO 2 | IN | Low | | 3 | 22 | 15 | GPIO 3 | IN | Low | | 4 | 23 | 16 | GPIO 4 | IN | Low | | 5 | 24 | 18 | GPIO 5 | IN | Low | | 6 | 25 | 22 | GPIO 6 | IN | Low | | 7 | 4 | 7 | GPIO 7 | IN | Low | | 8 | 2 | 3 | SDA | IN | High | | 9 | 3 | 5 | SCL | IN | High | | 10 | 8 | 24 | CE0 | IN | Low | | 11 | 7 | 26 | CE1 | IN | Low | | 12 | 10 | 19 | MOSI | IN | Low | | 13 | 9 | 21 | MISO | IN | Low | | 14 | 11 | 23 | SCLK | IN | Low | | 15 | 14 | 8 | TxD | ALT0 | High | | 16 | 15 | 10 | RxD | ALT0 | High | | 17 | 28 | 3 | GPIO 8 | IN | Low | | 18 | 29 | 4 | GPIO 9 | IN | Low | | 19 | 30 | 5 | GPIO10 | IN | Low | | 20 | 31 | 6 | GPIO11 | IN | Low | +----------+------+------+--------+------+-------+
  • 2. Test D’Un Port GPIO 4.0 Osistar p. 2 Et la on l’active en tant que sortie et non entrée avec la commande : gpio mode 0 out Et après on commande l’état du port avec les deux commande suivantes : 1- Mettre la pin en mode “out” pi@rpi:~ $ gpio -g mode 24 out 2- Changer l’état de la pin pi@rpi:~ $ gpio -g write 24 1 pi@rpi:~ $ gpio -g write 24 0