Inst ToolsInst ToolsInst Tools
  • Courses
  • Videos
  • Q & A
    • Interview
      • Instrumentation
      • Electronics
      • Electrical
      • Practical Questions
    • MCQ
      • Instrumentation MCQ
      • Electrical MCQ
      • Electronics MCQ
      • Control Systems MCQ
      • Analog Electronics MCQ
      • Digital Electronics MCQ
      • Power Electronics MCQ
      • Microprocessor MCQ
      • Multiple Choice Questions
  • EE
    • Electronics
      • Electronics Q & A
      • Electronic Basics
      • Electronic Devices & Circuits
      • Electronics Animation
      • Digital Electronics
    • Electrical
      • Electrical Basics
      • Electrical Q & A
      • Power Electronics
      • Electrical Machines
      • Electrical Animation
      • Power Systems
      • Switchgear & Protection
      • Transmission & Distribution
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Search
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Reading: Motion Detection based Street Light: PLC Logic Solution
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • PLC Tutorials
  • Control Systems
Search
  • Courses
  • Videos
  • Q & A
    • Interview
    • MCQ
  • EE
    • Electronics
    • Electrical
  • Measure
    • Control Valves
    • Calibration
    • Temperature
    • Pressure
    • Flow
    • Level
    • Analyzers
    • Switches
    • Vibration
    • Solenoid Valve
  • Control
    • PLC Tutorials
    • Control Systems
    • Safety Instrumented System (SIS)
    • Communication
    • Fire & Gas System
  • More
    • Design
    • Tools
    • Animation
    • Basics
    • Formulas
    • Standards
    • TextBooks
    • Common
    • Software
    • Excel Tools
    • Erection & Commissioning
    • Process Fundamentals
    • Videos
    • Books
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > PLC Tutorials > Motion Detection based Street Light: PLC Logic Solution

Motion Detection based Street Light: PLC Logic Solution

In this article. you will learn the motion detection-based street light control using a sensor with PLC logic solution.

Last updated: May 1, 2024 11:52 am
Editorial Staff
PLC Tutorials
No Comments
Share
8 Min Read
SHARE

In this article. you will learn the motion detection-based street light control using a sensor with PLC logic solution.

Contents
Motion Detection based Street LightPLC Logic SolutionInputs/OutputsLadder DiagramProgramming ExplanationSimulation Result: When the Sensor detects movementAdvanced Street Lights PLC Program

Note: This PLC logic is prepared for learning purposes. It can be used to learn ladder logic programming.

Motion Detection based Street Light

Problem Statement:

Design a PLC ladder logic for the following application.

We are using one motion detection sensor to control Street Light.

The Street Light gets ON for 20 seconds when there is any movement detected and then blinks with an interval of 2 seconds, and gets turned OFF after 30 seconds.

Note: In this example, the timings are reduced for easy learning purposes. In real-time, the timings are in hours.

PLC Logic Solution

Instrumentation Tools provides PLC logic solutions for simple and advanced programming examples.

This PLC video explains the street lights programming from scratch.

Inputs/Outputs

Digital Inputs:

Sensor: I0.0

Digital Outputs:

Street Light: Q0.0

Ladder Diagram

Motion Detection based Street Light PLC Logic Solution

Programming Explanation

We have used Normally Open Contacts for Sensor (I0.0), Memory Bit 1 (M0), Memory Bit 2 (M1), and Memory Bit 4 (M3).

In Rung 0:

  1. Normally Open Contacts are used for Sensor (I0.0) to Turn ON  Memory Bit 1 (M0) and Memory Bit 2 (M1).
  2. Timer Function Block type TP is used to Turn ON Memory Bit 1 (M0) for a limited time.
  3. Timer Function Block type TON is used to delay the turning ON time of Memory Bit 2 (M1) for some time.
  4. Timer Function Block type TP is used to Turn ON Memory Bit 2 (M1) for a limited time.

In Rung 1:

  1. Normally Open Contacts are used for Memory Bit 2 (M1) to Turn ON  Memory Bit 4 (M3) and  Memory Bit 3 (M2).
  2. Normally Closed Contact is used for Memory Bit 3 (M2) to turn OFF Memory Bit 4 (M3).
  3. Timer Function Block type TP is used to Turn ON Memory Bit 4 (M3) for a limited time.
  4. Normally Closed Contact is used for Street Light (Q0.0) to turn ON Memory Bit 3 (M2).
  5. Timer Function Block type TON is used to delay the turning ON time of Memory Bit 3 (M2) for some time.

In Rung 2:

  1. Normally Open Contacts are used for Memory Bit 1 (M0) and Memory Bit 4 (M3) to turn ON the output Street Light (Q0.0).

Simulation Result: When the Sensor detects movement

Now we simulate the PLC program and discuss the results. We show the partial logic with different simulation steps. We recommend you to watch the above video for detailed explanation.

When Sensor (I0.0) gets activated (Sensor detects movement), Memory Bit 1 (M0) turns ON as Normally Open Contact used for Sensor (I0.0) allows the signal to through it.

Motion Sensor based Street Lights Automation

When Memory Bit 1 (M0) turns ON in Rung0, Normally Open Contact used for Memory Bit 1 (M0) will be in True state and pass the signal to turn ON the output Street Light (Q0.0) or Street Light turns ON.

PLC motion detection street light

In Rung0, Memory Bit 1 (M0) will turn OFF after 20 seconds as Timer Function Block type TP is used to turn ON Memory Bit 1 (M0) for a limited time. The time is set to 20 seconds.

After 20 seconds, Memory Bit 1 (M0) turns OFF.

Automated street light control system

When Sensor (I0.0) gets activated (Sensor detects movement), Memory Bit 2 (M1) turns ON but after 20 seconds (i.e immediately after Memory Bit 1 (M0) turns OFF) as Timer Function Block type TON is used to delay the turning ON time of Memory Bit 2 (M1).

Sensor-controlled street lighting solution

The time is set to 20 seconds. After 20 seconds, Memory Bit 2 (M1) will turn ON but only for a limited time as Timer Function Block Type TP is used to turn ON Memory Bit 2 (M1) for a limited time.

Motion-sensing street light automation

When Memory Bit 2 (M1) turns ON in Rung0, Normally Open Contact used for Memory Bit 2 (M1) will be in True state and pass the signal through it.

In a false state, Memory Bit 3 (M2)  also passes the signal to turn ON Memory Bit 4 (M3).

Street light program with PLC

When Memory Bit 4 (M3) turns ON in Rung1, Normally Open Contact used for Memory Bit 4 (M3) will be in True state and the output Street Light (Q0.0) still remains ON.

Memory Bit 4 (M3) in Rung1 turns OFF after some time as Timer Function Block type TP is used to turn ON Memory Bit 4 (M3) for a limited time.

PLC logic for street light control

The time is set to 2 seconds. After 2 seconds, Memory Bit 4 (M3) turns OFF.

When Memory Bit 4 (M3) turns OFF in Rung1, Normally Open Contact used for Memory Bit 4 (M3) in Rung2 will be in a False state and the output street Light (Q0.0) turns OFF.

PLC programming for street light automation

When the output Street Light (Q0.0) turns OFF in Rung2, Normally Closed Contact used for Street Light in Rung0 will be in a False state and passes the signal to turn ON Memory Bit 3 (M2) and Memory Bit 3 (M2) turns ON but it will turn OFF within no time because in Rung1, Normally Closed Contact is used for Memory Bit 3 (M2).

Smart street light control with PLC

In Rung1, Normally Closed Contact used for Memory Bit 3 (M2) will also turn ON and OFF within no time and the whole process in Rung1 and Rung2 will restart and will run in a loop till the Timer Function Block type TP used for Memory Bit 2 (M1) in Rung0 will reach its time limit.

Street light control using motion sensor

The time is set to 30 seconds. After 30 seconds, Memory Bit 2 (M1) will turn OFF. When Memory Bit 2 (M1) turns OFF in Rung0, Normally Open Contact used for Memory Bit 2 (M1) will be in a False state and does not allow the signal to pass through it and the whole process stops.

Motion-triggered street light on and off

Advanced Street Lights PLC Program

This video explains the advanced Street Lights PLC programming concept. The video explains the project objective, PLC wiring, logic brief, and PLC programming with HMI design and simulation.

If you liked this article, please subscribe to our YouTube Channel for PLC and SCADA video tutorials.

You can also follow us on Facebook and Twitter to receive daily updates.

Read Next:

  • PLC Programming for Motor Feedback Fail Logic
  • PLC Example Programming using LogixPro Simulator
  • Ladder Logic Program for Push Button and Motor
  • PLC Programming Multi-Motor Control Ladder Logic
  • Conveyor Operation with a Backup Motor using PLC
Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Recommended Articles

PLC Analog Input Sampling Ladder Logic
Muting Functions of Safety Control Circuits – PLC Example
PLC Sequencer Instruction with Example
Basics of Loop Checks
Understanding Braking Theory in VFD
Things to Take Care of When Designing SCADA System
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

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

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
208kSubscribersSubscribe
38kFollowersFollow

Categories

Recent Comments

  • William Snyder on Top Non-PLC Certification Courses for Automation Professionals
  • Kamli on Top Free PLC Software
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals
  • Guifty Shimica on Top Non-PLC Certification Courses for Automation Professionals

Related Articles

PLC railway crossing program

Automatic Railway Crossing Gate Control PLC Program

Star-Delta PLC programming with 1 button

How to Program a Star-Delta System using 1 Button in PLC?

Two Hand Press PLC

Two Hand Press Safety Control Circuit

Surface Grinding Process using PLC Program

Surface Grinding Process using PLC Program

Types of Cables used in Industrial Automation

Types of Cables used in Industrial Automation

Earthing Calculations

Electrical Earthing Calculations

PLC Raw Count Calculation formula for Pressure Transmitter

PLC Raw Count Calculation for Pressure Transmitter

Configuration of Siemens Scada and PLC

#12 PLC Best Practices – Validate Inputs based on Physical Plausibility

More Articles

pi filter Operation

pi filter Operation

Twisted Pair Cable Noise Supression

Why We use Shielded Cable and Twisted Pair Cables ?

Cable Schedule

What is Cable Schedule and Junction Box Schedule?

Electrical Machines Questions and Answers

MCQ on Rotating Electrical Machines

Power Electronics Objective Questions

Choppers MCQ

Control Valves Multiple Choice Questions

Control Valves Multiple Choice Questions

Face Mask Making Machine using PLC and HMI

Face Mask Making Machine using PLC and HMI

CNC Custom Machining

What is Custom Machining in CNC? Why Should You Choose It?

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?