WOW !! MUCH LOVE ! SO WORLD PEACE !
Fond bitcoin pour l'amélioration du site: 1memzGeKS7CB3ECNkzSn2qHwxU6NZoJ8o
  Dogecoin (tips/pourboires): DCLoo9Dd4qECqpMLurdgGnaoqbftj16Nvp


Home | Publier un mémoire | Une page au hasard

 > 

Optimisation de l'efficacité énergétique et conception d'un système électrique de secours (cas du bà¢timent agronomie-bunker de l'Unikin)


par Stéphane SIBITALI
Université de Kinshasa - Diplôme d'ingénieur en Pétrole, Gaz et Énergies Renouvelable  2020
  

précédent sommaire

Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy

ANNEXE 3 : Remplacement des lampes fluorescentes et tubes aux lampes LED

- IV -

ANNEXE 4 : Script code Arduno

WIFI & BLUETOOTH

volatile char MY_DATA1[60];

volatile unsigned char k1 = 0,CC1=0,RX1 = 0,D = 0;

void setup()

{

// relay out put pin control.//

pinMode(A0,OUTPUT);

pinMode(A1,OUTPUT);

pinMode(A2,OUTPUT);

pinMode(A3,OUTPUT);

digitalWrite(A0,HIGH);

digitalWrite(A1,HIGH);

digitalWrite(A2,HIGH);

digitalWrite(A3,HIGH);

// Initial setup //

Serial.begin(115200);

// Initial ESP8266 //

ESP8266_INIT();

}

void loop()

{

// receive data from ESP8266 //

if(Serial.available())

{

MY_DATA1[k1] = Serial.read(); // read receive data from wi-fi module.

CC1 = MY_DATA1[k1];

if(CC1 == ':')D = k1;// check weather data scan start or not.

k1++;

if(CC1 == '\n'){k1=0;RX1 = 1;} // chaeck new line character are receive or not.

}

// Processing data which are receiving from ESP8266 //

if(RX1 == 1)

{

if(MY_DATA1[D] == ':')

{

MY_DATA1[D] = '0';

if(MY_DATA1[D+1] == 'F')

{

MY_DATA1[D+1] = '0';

if(MY_DATA1[D+2] == 'A')//switch 1 on {

MY_DATA1[D+2] = '0';

digitalWrite(A0,LOW);

RX1 = 0;

}

else if(MY_DATA1[D+2] == 'B')//switch 1 off

{

MY_DATA1[D+2] = '0';

digitalWrite(A0,HIGH);

else if(MY_DATA1[D+2] == 'E')//switch 3 on {

MY_DATA1[D+2] = '0';

digitalWrite(A2,LOW);

RX1 = 0;

}

else if(MY_DATA1[D+2] == 'F')//switch 1 off {

MY_DATA1[D+2] = '0';

digitalWrite(A2,HIGH);

RX1 = 0;

}

else if(MY_DATA1[D+2] == 'G')//switch 1 on

{

MY_DATA1[D+2] = '0';

digitalWrite(A3,LOW);

RX1 = 0;

}

else if(MY_DATA1[D+2] == 'H')//switch 1 off

{

MY_DATA1[D+2] = '0';

digitalWrite(A3,HIGH);

RX1 = 0;

}

}

}

RX1 = 0;

}

}

void ESP8266_INIT()// initializing wi-fi module.

{

Serial.println("AT");// check AT mode.

delay(1000);

Serial.println("AT+RST");//RESET module.

delay(3000);

Serial.println("AT+CWSAP=\"Home Automation\",\"2231anto\",3,2");//set the

ssid and password.

delay(1500);

Serial.println("AT+CWMODE=3");// set ESP8266 in MODE 3 (Both mode

AP+station).

delay(1400);

Serial.println("AT+CIPMUX=1");// set ESP8266 in MUX 1 (allow multiple

connection).

delay(1400);

Serial.println("AT+CIPSERVER=1,80");// start communication ESP8266 on

PORT80.

delay(1500);

}

//[14:09, 25/11/2021] Constant Kunambu @ Aniteck-Glob: Notes:

- V -

RX1 = 0;

}

else if(MY_DATA1[D+2] == 'C')//switch 2 on

{

MY_DATA1[D+2] = '0';

digitalWrite(A1,LOW);

RX1 = 0;

}

else if(MY_DATA1[D+2] == 'D')//switch 1 off

{

MY_DATA1[D+2] = '0';

digitalWrite(A1,HIGH);

RX1 = 0;

}

//Code upload time disconnect your bluetooth module (RX,TX) Code:

char Incoming_value = 1;

void setup()

{

Serial.begin(9600);

pinMode(10, OUTPUT);

}

void loop()

{

if(Serial.available() > 0)

{

Incoming_value = Serial.read();

Serial.print(Incoming_value);

Serial.print("\n");

if(Incoming_value == '0')

digitalWrite(10, HIGH);

else if(Incoming_value == '1')

digitalWrite(10, LOW);

}

}

ANNEXE 5 : Présentation du logiciel Conçu et Prototype

précédent sommaire






Extinction Rebellion







Changeons ce systeme injuste, Soyez votre propre syndic



"La première panacée d'une nation mal gouvernée est l'inflation monétaire, la seconde, c'est la guerre. Tous deux apportent une prospérité temporaire, tous deux apportent une ruine permanente. Mais tous deux sont le refuge des opportunistes politiques et économiques"   Hemingway