Posts

DS3231 Real Time Clock Interfacing With Arduino

Image
In today's world, time plays a critical role in almost every aspect of life. The ability to track time with precision and accuracy is essential, whether you are managing a large corporation or building a small hobby project. A real-time clock (RTC) is an electronic device that is used to track time with high accuracy. The DS3231 RTC module is one of the most popular RTC modules available in the market. This article will provide an in-depth overview of the DS3231 Real-Time Clock and discuss how it can be used in an RTC project with Arduino interfacing. DS3231 Real-Time Clock: The DS3231 is a low-cost, highly accurate, and highly stable real-time clock (RTC) module. It is a popular choice among hobbyists and professionals alike due to its ease of use and low power consumption. The module is designed to provide accurate timekeeping and datekeeping in a wide range of applications, including time-based functions, alarms, and calendars. The DS3231 RTC module is a highly integrated

FM Transmitter Project

Image
 FM Transmitter Circuit FM Transmitter circuit uses radio waves to communicate data across space, FM means Frequency Modulation this modulation works when ever there is a data that is to be transmitted over a Radio Frequency which could be as low as 3k Hz or as high as 300 G Hz data alters the carries signal frequency according to its high and low peaks, frequency variations in carrier signal is now actually data which is being transmitted over it. Data which is transmitted over FM transmitter could be of Analogue or Digital nature depending on what is being transmitted, for example Analogue data could be Sound from microphone, Temperature form lm 35 which is analogue temperature sensor, Light intensity variations from LDR or FM transmitter might be used for transmitting Digital Data sound stream from digital microphone, file being transmitted, internet data. Circuit Diagram Starting from the LHS first transistor 2n2222 is for microphone and second transistor is for FM oscillator and t

Ultra Sonic Sensor HC-SR04

Image
HC-SR04 Ultra Sonic Sensor Ultra Sonic Sensor HC-SR04 is a sensor which is used for measuring distance, this Ultra Sonic Sensor HC-SR04 could be used in different types of projects for example it could be used for Obstacle avoiding robot measuring water level in water tank. Ultra Sonic Sensor HC-SR04 sensor has got 4 pins, those are VCC which need to be connected with 5 volts, Trig which is trigger which is needed to be defined as output, this pin is need to be defined as Input, and GND which is ground and needed to be connected with ground of Arduino. Ultra Sonic Sensor HC-SR04 working is as follows with Arduino, when trigger pin is set high ultra sonic sound wave is emitted from the sensor this wave then travels some distance hits the objects and returns back, when this signal returns back Echo pin gives high input to Arduino meanwhile Arduino keeps on measuring the duration from since the Trigger pin of Ultra Sonic Sensor HC-SR04 has turned high and then low till when Echo pin g

Temperature Reading Using LM35 Temperature Sensor

Image
Connecting LM35 Temperature Sesnor With Arduino Image below shows pinout of LM35 when viewed from back side vout is the pin which gives output in response for changing voltages.  LM35 has linear vout changes in response to changing temperature, LM35 has got sensitivity of 10mV / Celsius following are the connections of lm35 with Arduino for the code given below. 1) VCC = Arduino 5V 2) Vout = Arduino Pin A3 3) GND = Arduino Ground For display I am using I2C LCD for my I have used following connections as shown in diagram given below this diagram shows connection of I2C module with LCD and with Arduino. To see how temperature sensor lm35 works with Arduino you could see this video given below. Code For Arduino #include <LiquidCrystal_I2C.h> const int sensor=A3;                                       // Assigning analog pin A3 to variable 'sensor' float tempc;                                                          //variable to store temperature in degree Celsius float temp

Arduino LCD Scroll Function For Opposite Directions And One Row Scroll

Image
This article discusses scroll function for Arduino lcd 16*2 name of this function is scroller and it takes in certain arguments before it could function. Scroller has the capability to scroll Left scroll Right and both rows in Opposite Directions it can also scroll only one row while keeping other row static. scroller(Char Array 1, Size of Array 1, Char Array 2 , Size of Array 2 , Direction , Row , Delay)  To See The Functionality Of it You May Like To See This Video This is the function it requires following as arguments  Two Char type arrays their sizes  Direcrion which could be L = Left R= Right and B = Both Directions  Row of LCD 0 or 1 Delay for speed of scroll #include <LiquidCrystal_I2C.h> // Working with I2C LCD char arr1[] = "Tech School";  // Char Array 1  char arr2[] = "Scroll Function"; // Char Array 2 int col = 16; int row = 2; char dir=' '; // For Direction L = Left R = Right B =  Both LiquidCrystal_I2C lcd(0x27, col, row); // Defining LC

4 Way Traffic Signal Using Flip Flops

Image
 Digital Electronics Project 4 Way Traffic Signal Construction For this project of 4 way traffic signal we will be seeing all design steps necessary for its development. Digital circuits can be categorized in two main categories one is Combination and other is Sequential, our project of traffic signal includes both of these. steps required to make combination circuits are as follows Truth Table K Maps Boolean Expression Logic Diagram Implementation steps required to make sequential circuits are as follows State Diagram State Table Choice of Flip Flop to be used and Its Excitation Table K maps Boolean Expression Logic Diagram Implementation So we will be considering combination part of our 4 way traffic signal project first. Figure 1: Truth Table 4 Way Traffic Signal.   Figure 1 shows the sequence of signal lights which are required, it is quite evident that in a 4 way traffic signal at any one time one signal should be green only while other 3 should be red and just before green light

I2C LCD Interfacing with Arduino Nano

Image
I2C LCD Advantages With Arduino I2C Module reduces number of pins used to connecting LCD to 4, it relies on serial communication with your controller, apart from this you could also connect multiple I2C devices on same pins on your controller and then address them you may find on Serial monitor from your Arduino IDE. I2C Module contains SDA this is the pin for Serial Data communication and other one is SCL which is used to provide for Serial clock input, rest of the two pins are for powering your LCD and I2C.  You May Watch This Video to understand how I2C module works with LCD and Arduino. Steps For Using I2C LCD, And For Connecting I2C With Arduino Nano Step 1. connect your LCD with I2C Module and Arduino as shown in images below.  Step 2. Set you Arduino IDE for Arduino nano as shown in image you are also required to download LiquidCrystal I2C library as shown in image. Step 3. We will check for address assigned to our I2C LCD, using serial monitor using the following code as given