This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#rpi serial connections | |
#Python app to run a S8 Sensor | |
import serial | |
import time | |
#RPi pin connections: | |
#pin 6 GND | |
#pin 4 5v | |
#pin 8 TXD: UART data to S8 | |
#pin 10 RXD: UART data from S8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <PubSubClient.h> | |
//déclaration des lampes | |
#define lampe1 D1 | |
#define lampe2 D2 | |
#define lampe3 D3 | |
#define lampe4 D0 | |
#define lampe5 D5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SPI.h> | |
#include <nRF24L01.h> | |
#include <RF24.h> | |
RF24 radio(7, 8); // Sélectionner les broches CE, CSN | |
struct Signal { | |
byte throttle; | |
byte pitch; | |
byte roll; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//importation des libraries | |
#include <ESP8266WiFi.h> // http://arduino.esp8266.com/stable/package_esp8266com_index.json | |
#include <PubSubClient.h> //https://downloads.arduino.cc/libraries/github.com/knolleary/PubSubClient-2.8.0.zip | |
#include "DHT.h" //https://downloads.arduino.cc/libraries/github.com/adafruit/DHT_sensor_library-1.4.2.zip | |
//definition du type de capteur de température et humidité | |
#define DHTTYPE DHT11 // DHT 11 | |
b | |
// (paramétre à adapter pr vous) configuration des variables pour la connection wifi et les identifiants serveur mqtt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//importation des libraries | |
#include <ESP8266WiFi.h> // http://arduino.esp8266.com/stable/package_esp8266com_index.json | |
#include <PubSubClient.h> //https://downloads.arduino.cc/libraries/github.com/knolleary/PubSubClient-2.8.0.zip | |
#include "DHT.h" //https://downloads.arduino.cc/libraries/github.com/adafruit/DHT_sensor_library-1.4.2.zip | |
//definition du type de capteur de température et humidité | |
#define DHTTYPE DHT11 // DHT 11 | |
// (paramétre à adapter pr vous) configuration des variables pour la connection wifi et les identifiants serveur mqt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Projet d'apprentissage d'un objet connecté (IoT) pour réaliser un système d'allumage de lampe à distance | |
Wemos d1 mini + Relais + MQTT + node-red or mqttdash (android) | |
Reprise par Mamadou Diallo Email: diallo@bloctechno.com | |
la majeur partie du code à était puisé du site Projets DIY (https://www.projetsdiy.fr) | |
Licence : MIT | |
*/ | |
#include <ESP8266WiFi.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
DESCRIPTION : FR => c'est un projet interactif de "Chambre d'écoute", | |
on n'a un capteur ultrasound installer sous une porte | |
et qui permet de detecter la présence d'une personne afin | |
de déclancher une musique qui sort des haut-parleurs lorsqu'on | |
entre à l'intérieur | |
EN => it's an interactive project of "listening room", | |
we have an ultrasound sensor installed under a door | |
and that allows to detect the presence of a person |