11/01/2025
Smart Parking System with Arduino and 2 IR sensors
How It Works
Initial State: The system starts by initializing the LCD and sensors.
Parking Spot Status:
Sensors connected to p1 and p2 detect vehicles in the respective parking spots.
The LCD displays "P1 Free" or "P1 Full" for parking spot 1, and similarly for parking spot 2.
LED Alert:
Lights up when both parking spots are occupie
1-Code1
2-Code2
3-Connections
4- Add the GND for VSS and RW
5- Demonstration
electronics
06/01/2025
مشروع تصفيف السيارات parking lot
الكود 👇
/*ParkingL02.pde
Arduining.com 08 JUL 2012
Code used in the production of the Youtube material.
*/
Servo myservo; // create servo object to control a servo
ServoM 12 //Connected to the servo motor.
Bright 11 //servo library disable PWM on pins 9 and 10.
Exit 9 //Pin connected to the EXIT button.
In 8 //Pin connected to the IN button.
BarLow 177 //Low position of the barrier.
BarUp 95 //Up position of the barrier.
CAPACITY 8 //Capacity of the parking lot.
INTEN 80 //Display intensity %
//Pins conections to segments (cathodes).
segA 0
segB 1
segC 2
segD 3
segE 4
segF 5
segG 6
//Array with the segments to represent the decimal numbers (0-9).
byte segments[10] = {
// pgfedcba
06/01/2025
آخر اصدار من برنامج 7.8.3.24 Visuino😍
للذين يعانون من صعوبه برمجه الاردوينو واخطاء الاكواد المتكررة نقدم لكم برنامج Visuino لتوليد الاكواد البرمجيه للاردوينو معا عليك الا ان تقوم بتوصيل المخطط الخاص بدارتك وبكبسه زر ترسل الكود لبيئه الاردوينو واشتغل بكل سهوله.
الاشياء الجديدة في الاصدار الاخير
--------------------------------------------
رابط التحميل⬇️:
https://visuino.com/download
06/01/2025
مشروع المنزل الذكي القائم على IOT باستخدام ESP8266 (NodeMcu) مع Blynk
الكود👇
BLYNK_PRINT Serial
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "7c9d873ab07c49cd8de99675f1dbff2d";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "pcnet-386";
char pass[] = "3rdbencher3c";
int relay1 = 16; //GPIO16 D0 pin
int relay2 = 5; //GPIO5 D1 pin
int relay3 = 4; //GPIO4 D2 pin
int relay4 = 0; //GPIO0 D3 pin
void setup()
{
// Debug console
Serial.begin(115200);
pinMode(relay1,OUTPUT);
pinMode(relay2,OUTPUT);
pinMode(relay3,OUTPUT);
pinMode(relay4,OUTPUT);
digitalWrite(relay1, HIGH);
digitalWrite(relay2, HIGH);
digitalWrite(relay3, HIGH);
digitalWrite(relay4, HIGH);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
}
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);
• }
06/01/2025
مشروع مراقبة الطقس 😎😍
الكود
/*
Pin Configuration
Rain Drop A0
Soil Humidity A1
SDA A4
SCL A5
DHT11 Data D2
*/
int result [5]; //Sensor result array
//Including wire library
//Including BMP180 library
ALTITUDE 3 //Altitude where I live (change this to your altitude)
SFE_BMP180 pressure; //Creating an object
//Including DHT11 library
DHTPIN 2 //Define DHT11 digital pin
DHTTYPE DHT11 //Define DHT TYPE which is DHT11
DHT dht(DHTPIN, DHTTYPE); //Execute DHT11 library
void setup() {
Serial.begin(9600); //Starting serial communication
Serial.println("Program started");
//Analog setup
pinMode(A0, INPUT); //Soil
pinMode(A1, INPUT); //Rain
//BMP180 Setup
if (pressure.begin()) //If initialization was successful, continue
{Serial.println("BMP180 init success");
Serial.print("AWS :");
Serial.print("\t");
Serial.print("Rain Drop\t");
Serial.print("Soil Hum\t");
Serial.print("Pressure \t");
Serial.print("Air Hum\t");
Serial.print("\t");
Serial.println("Temp \t");}
else //Else, stop code forever
{
Serial.println("BMP180 init fail");
while (1);
}
//DHT11 setup
dht.begin();
}
void loop() {
//analog setup
int A_Rain = analogRead(A0);
int A_Soil = analogRead(A1);
A_Rain = map(A_Rain, 800, 1023, 100, 0);
A_Soil = map(A_Soil, 400, 1023, 100, 0);
result[0]=A_Soil;
result[1]=A_Rain;
//bmp180 setup
char status;
double T, P, p0;
status = pressure.startTemperature();
if (status != 0) {
delay(status);
status = pressure.getTemperature(T);
if (status != 0) {
status = pressure.startPressure(3);
if (status != 0) {
delay(status);
status = pressure.getPressure(P, T);
if (status != 0) {
p0 = pressure.sealevel(P, ALTITUDE);
result[2]=p0;
}}}}
result[3] = dht.readHumidity();
result[4] = dht.readTemperature();
Serial.print("AWS : ");
Serial.print(" \t");
Serial.print(result[0]);
Serial.print(" %\t");
Serial.print("\t");
Serial.print(result[1]);
Serial.print(" %\t");
Serial.print("\t");
Serial.print(result[2]);
Serial.print(" hPa \t");
Serial.print(result[3]);
Serial.print(" %\t");
Serial.print("\t");
Serial.print(result[4]);
Serial.println("C \t");
delay(5000);
}
06/01/2025
Arduino Projects
Interesting Arduino projects for students and makers. For detailed guide on how to make these arduino projects, check the detailed DIY guides explained with ...
06/01/2025
سيارة ذاتيه القيادة Arduino car
مرحبا بكم في هذا المشروع سنقوم ببناء سيارة ذاتية القيادة عن طريق أردوينو، بأستخدام الآتي:أردوينو _ ARDUINO unoدرايفر محركات _ l293dمحركات جير _ Gear Motorمح...