Arduino Projects

Smart City Project Using Arduino


In This Project, I will Show You How to make a Smart City Using The Arduino Nano Board. I  use the IR sensor, flame sensor and LDR sensor. the LDR sensor finds out the light density and is controlling the led light, the flame sensor fined out the fire, and the ir sensor Detect when any person comes To the home then is automatic gate will open and close.

In This Project, I used Multiple Sensor To Monitoring The Light Density, Fire Alert, Gate Open and Close Automated.

Bill Of Materials




Link To Buy


Arduino nano



16x2 LCD Display



Sg-90 Servo Motor









IR Sensor



LDR Sensor



Fire Sensor



Zero PCB


Component’s For Smart City

Here I used the Arduino Nano Microcontroller board because it is low-cost and has many digital and analog pins available.

20220430 151905

And I display All parameters to a 16×2 LCD display I mean if your light will on they LCD will display the on-and-off conduction, and also display the fire alter information.

20220430 151915

IR Sensor

20220430 151914

Here is IR Sensor Pin Diagram It operates in 5v and digital pin going to Arduino nano D3 Pin Number.

When Any Person crosses the IR Sensor the Servo Motor will gate open And Automatic Close The Door After a few Second.

iIr Sensor.png

LDR Sensor

20220430 151910

LDR Sensor Is Light Dependent Sensor Is find Out the light Density in Digital format Light Density is More The LDR Given High Signal To Arduino Nano And if Light Density Is LOW Then The LDR Given LOW Signal To Arduino Nano Board.

LDR Sensor Will Be Connected To The Pin Number D11 to Arduino Nano Microcontroller

pin out of ldr 1000x1000 1

Flame Sensor

20220430 151920

This one is the flame sensor pin Diagram and is used The Photodiode to detect the fire , is any fire conduction in the smart home then the flame sensor will be high and is given to signal to the Arduino board.

The flame Sensor will be connected to the Arduino nano D5 PinNumber.

IR Flame Sensor Pinout

20220430 151845

20220430 151955


If You Interested To More Arduino Project

Block Diagram

In this Block Diagram, I will show the input and output devices, Ir Sensor, Flame Sensor, And LDR Sensor they all Input devices And Output Sides I used the led for indication, LCD Display And Servo Motor.

I will give a 5v Dc Power supply with the Help Of a USB Cable Through In Arduino Nano Board.

Smart city block diagram 1

Circuit Diagram

The Circuit diagram I will Design With the Help Of EasyEDA Software is Open Source online And Offline Tolls.

You just Select All the components properly way and do this connection and you just convert in PCB Layout Format.

In This Project, I Used 3 Digital sensors IR Sensor, LDR Sensor And Flame Sensor in Output Side I will Display All  Sensor Information In a 16×2 LCD display.

I will Also Use The Red Led, Green Led And Piezo Buzzer and they will be Connected To The Pin Numbers D6, D7 And D8 in Arduino nano Board.

Screenshot 2022 12 17 at 11.34.44 PM

PCB Design

This Image Is the Final PCB Desing You just Print Out The PCB ANd Put All components in the given respectively slots.

Screenshot 2022 12 17 at 11.33.49 PM

Screenshot 2022 12 17 at 11.37.10 PM

Source Code

Before You Upload the code is first required to add The library first LiquidCrystal_I2C.h Then You Select the Proper Uploading Arduino Code.

Demo Of Projects

20220430 151950 1

20220430 151841

20220430 151924

20220430 151845 1

Video Tutorial 


Hi, Prateek Here I’m interested in Electronics That's why I Make Soo Many Projects, I’m currently Pursuing M Tech.. if you Relay Like To My Blog Plz Comment Below...Thanks To All Electronics Lover...❤️

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please consider supporting us by disabling your ad blocker