Arduino And Electronics Arabic Projects Djerba Tunisia

Arduino And Electronics Arabic Projects Djerba Tunisia

Share

Contact information, map and directions, contact form, opening hours, services, ratings, photos, videos and announcements from Arduino And Electronics Arabic Projects Djerba Tunisia, Education, Djerba.

Photos from Arduino And Electronics Arabic Projects Djerba Tunisia's post 06/01/2025

مشروع تنبيه عن طريق تشغيل المصباح اذا ارتفعت درجة الحراره 😍يمكن ضبط درجة الحرارة
الكود 👇
• //Programa: Arduino e DHT11 controle de rele por temperatura
• //Autor: Arduino e Cia

• "U8glib.h"


• U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE);

• int posicao = 0;
• int temp_max = 20;

• pino_aumenta 5
• pino_diminui 4
• pino_rele 7
• pino_DHT A0
• DHTTYPE DHT11

• DHT dht(pino_DHT, DHTTYPE);

• int temperatura;
• int aumenta, diminui;

• unsigned long previousMillis = 0;
• //Intervalo de medicao temperatura
• const long interval = 2000;

• void draw()
• {
• //Retangulo temperatura atual
• u8g.drawRFrame(0, 17, 84, 46, 2);
• u8g.setFont(u8g_font_fub20);
• //Atualiza a temperatura no display
• u8g.setPrintPos(13, 50);
• u8g.print(temperatura);
• //Circulo grau
• u8g.drawCircle(51, 33, 3);
• u8g.drawStr( 56, 50, "C");

• //Box superior amarelo
• u8g.setFont(u8g_font_8x13B);
• u8g.drawRBox(0, 0, 127, 16, 2);
• u8g.setColorIndex(0);
• u8g.drawStr( 21, 13, "TEMPERATURA");
• u8g.setColorIndex(1);

• //box temperatura maxima
• u8g.drawRFrame(86, 17, 42, 46, 2);
• if (temp_max = interval)
• {
• temperatura = dht.readTemperature();
• previousMillis = currentMillis;
• }

• //Testa botao aumenta temperatura
• aumenta = digitalRead(pino_aumenta);
• if (aumenta == 1)
• {temp_max++;}
• while (digitalRead(pino_aumenta) == 1)
• {delay(10);}

• //testa botao diminui temperatura
• diminui = digitalRead(pino_diminui);
• if (diminui == 1)
• {temp_max--;}
• while (digitalRead(pino_diminui) == 1)
• {delay(10);}

• u8g.firstPage();
• // Chama a rotina de desenho na tela
• do
• {
• draw();
• }
• while ( u8g.nextPage() );
• delay(50);
• }

Photos from Arduino And Electronics Arabic Projects Djerba Tunisia's post 06/01/2025

Sensors الحساسات

Want your school to be the top-listed School/college in Djerba?
Click here to claim your Sponsored Listing.

Category

Telephone

Website

Address


Djerba
4145