Posts

IC555: Astable Multivibrator- LED blinking/Dancing

Image
The  555 Timer IC  can be connected either in its Monostable mode thereby producing a precision timer of a fixed time duration, or in its Bistable mode to produce a flip-flop type switching action. But we can also connect the 555 timer IC in an Astable mode to produce a very stable  555 Oscillator  circuit for generating highly accurate free running waveforms whose output frequency can be adjusted by means of an externally connected RC tank circuit consisting of just two resistors and a capacitor. Below video shows implemented circuit in Proteus design suite. You can see the LEDs connected to output pin are blinking continuously.  In the  555 Oscillator  above video, pin 2 and pin 6 are connected together allowing the circuit to re-trigger itself on each and every cycle allowing it to operate as a free running oscillator. During each cycle capacitor,  C  charges up through both timing resistors,  R1  and  R2  but discharge...

Python: Program for Area of Rectangle, Circle, and Square

 Below is the program which calculates the areas of Rectangle, Circle, and Square. It takes the inputs from user such as length and width for Rectangle, radius for Circle, and side of Square for Square. Code: length = int ( input ( "Enter the length of the Rectangle " )) width = int ( input ( "Enter the width of the Rectangle " )) radius = int ( input ( "Enter radius of Circle " )) side = int ( input ( "Enter side of the Square " )) class Area :     def __init__ ( self , length, width, radius, side,):         self . length = length         self . width = width         self . radius = radius         self . side = side       def Rect_area ( self ):         rect_area = self . length * self . width         p...

Python: Finding area of rectangle

The program shown below calculates the area of the rectangle for given user inputs of length and width. #Program: length = int ( input ( "Enter the length of the Rectangle " )) width = int ( input ( "Enter the width of the Rectangle " )) class Rectangle :     def __init__ ( self , length, width):         self . length = length         self . width = width     def area ( self ):         rect_area = self . length * self . width         print ( "Area of the Rectangle = " , rect_area)   area1 = Rectangle(length, width) area1 . area() Output: Enter the length of the Rectangle 7 Enter the width of the Rectangle 9 Area of the Rectangle =  63

BJT: RC coupled single stage amplifier

Image
  Common emitter RC coupled amplifier. The common emitter RC coupled amplifier is one of the simplest and elementary transistor amplifier that can be made. Don’t expect much boom from this little circuit, the main purpose of this circuit is pre-amplification i.e to make weak signals strong enough for further processing or amplification. If designed properly, this amplifier can provide excellent signal characteristics. The circuit diagram of a single stage common emitter RC coupled amplifier using transistor is shown below. Capacitor C1 is the input DC decoupling capacitor which blocks any DC component if present in the input signal from reaching the Q1 base. If any external DC voltage reaches the base of Q1, it will alter the biasing conditions and affects the performance of the amplifier. R1 and R4 are the biasing resistors. This network provides the transistor Q1’s base with the necessary bias voltage to drive it into the active region. The region of operation where the tran...

Python: Reminder Alerts program

Image
 This program will give you Attention message for every time interval you set in time.sleep(time_in_seconds) import os import time from plyer import notification   if __name__ == "__main__" :     while True :         notification . notify(title = "ATTENTION!!!" ,         message = "Take a break! It has been an hour!" ,          timeout = 10 )         time . sleep( 3600 ) Output:

Voltage follower using Op-amp IC TL082

Image
  What is a Voltage Follower? A voltage follower (also known as a buffer amplifier, unity-gain amplifier, or isolation amplifier) is an op-amp circuit whose output voltage is equal to the input voltage (it “follows” the input voltage). Hence a voltage follower op-amp does not amplify the input signal and has a voltage gain of 1. The voltage follower provides no attenuation or amplification—only buffering. A voltage follower circuit has a very high input impedance. This characteristic makes it a popular choice in many different types of circuits that require isolation between the input and output signal. Below figures shows implementation of Voltage follower in Proteus design suite. You can see how the output voltage is approximately equal to the given input voltages.

Python: Anagram check program

  def anagram (s1, s2):     #s1 and s2 are two strings which are to be checked for anagram     s1 = s1.replace( ' ' , '' ).lower() # s1 is reaasigned with removing spaces and then made all lowercase       s2 = s2.replace( ' ' , '' ).lower() # s2 is reaasigned with removing spaces and then made all lowercase     return sorted (s1) == sorted (s2)  # sorted both s1 and s2 and checked, if equal then returns True else False print (anagram( 'this is right', 'is this right' )) #printed True for anagram and False for not anagram Output: >> True