UNIT 5- Memory and Programmable Logic
UNIT 5- Memory and Programmable Logic
INTRODUCTION: In this project we will design a digital circuit that controls a street light
depending on the time of the day, the digital circuit will employ Programmable logic devices
1. Project Overview
We need to design a digital circuit that controls a street light. The light should:
To achieve this, we’ll use a Programmable Logic Device (PLD) to simplify the design and
increase flexibility.
A. Real-Time Clock (RTC): this will provides accurate time data to our circuit, we will
utilize the DS3231 RTC, a Highly Accurate RTC to completely manage all
B. Light-Emitting Diode (LED) or Bulb: we will require an LED Street Light as the
C. Relay Module: we will also require a relay module which will act as a switch to
D. Programmable Logic Device (PLD): The heart of the circuit is a PLD Receives time
signals from the RTC and controls the relay by sending Low or High singal to manage
the light.
E. Power Supply: we will require a 12V power supply to provide power to all
components.
The PLD will handle the decision-making. Here’s how we program it:
The digital clock module(RTC) provides the current hour in binary format to the PLD
If the time is between 6:00 PM (18:00) and 6:00 AM (06:00), the PLD outputs a
High signal to turn the relay ON, otherwise, it sends a Low output to the relay which
turns it OFF.
The Output signal is a single digital output signal (1(high) for ON, 0(low) for OFF)
PLD Programming
programmer. The logic functions for programming the ATF22V10 are specified using
o Flexibility: PLDs can be reprogrammed to modify the logic easily, there’s No need to
o Compact Design: The PLD reduces the need for multiple logic components,hence
o Cost-Effectiveness: Simplifies hardware, and this ATF22V10 model comes with low
o Scalability: Allows for future enhancements, like adding motion sensors or other
features.
5
UNIT 5: Memory and Programmable Logic
timing parts that can wear out with time. According to Alldatasheet.com, this PLD
Easy Integration: PLD’s can replace multiple Gate components in the circuit,
this reduces the circuit’s complexity and minimizes space requirements. This
assembly cost.
Conclusion:
Our design shows how a PLD may streamline tasks that would otherwise call for a number of
timing components and logic integrated circuits. While producing a practical gadget, it offers
novices a hands-on introduction to programmable logic. Future extensions, like the addition
of light sensors or motion detection capabilities, are also made possible by the design's
modularity.
6
UNIT 5: Memory and Programmable Logic
Reference:
Dejan. (2022, February 18). Arduino and DS3231 Real Time Clock Tutorial. How to
Mechatronics. https://howtomechatronics.com/tutorials/arduino/arduino-ds3231-real-
time-clock-tutorial/
Mike. (2024, September 8). A first look at programmable logic. Mike’s Software Blog.
https://mike42.me/blog/2021-08-a-first-look-at-programmable-logic
https://www.alldatasheet.com/datasheet-pdf/pdf/56313/ATMEL/ATF22V10.html