Friday 19 October 2012

Pascal Triangle Through Python Recursive Program


Math has always been an interesting subject. Different interesting facts and theorems have made this subject even more interesting. One of them is the contribution of pascal in the form o f the what world call today "The Pascal Triangle". This triangle consists of rows of numbers with each row linked and completely dependent on the previous row.

 

In a row each number (except the 1's on the end points of the rows) is the sum of the two numbers that are above that number in the previous row.

Recursive Program: 

                                 Recursive program is a program that calls itself. This sort of program are capable of  solving problems in a lesser lines of code as compared to a simple program. Now here is a code that is written in python that calculates the pascal triangle for n number of rows and uses a recursive approach for doing this:

Monday 8 August 2011

Temperature Controlled Fan Using Micro controller 8051/8052 ( C Program)

I have recently made a temperature controlled DC fan whose speed increases with the rise in temperature and decrease as the temperature falls !  It has got a lot of practical usage as it  does not require to manually operated and it turns off as the temperature falls below a certain threshold ! and the temperatures on which you want to change the speed or turn off the fan are completely user defined !!
The components required are:
1.AT89S51/AT89S52
2.ADC0804
3.LM35
4.L293D


LM 35:
            Temperature sensor whose output voltage varies with the change in the temperature. The output voltage increases by 10mV  for 1 degree rise in temperature.


ADC 0804:
              It is an analogue to digital converter who converts the provided analogue signal into corresponding digital signal. It uses the provided reference voltage to provide digital output from analogue input.

Monday 25 July 2011

"CARS 2" free download


CARS 2 the new craze among the youngsters.Available in 3d now the animation can be enjoyed by becoming a part of it.



This movie is getting awsome reviews and critics are considering it as the best animated movie of 2011 .

so! what are you waiting for???? CLICK here to download and enjoy it !

Saturday 23 July 2011

Harry Potter and the deathly hallows part 2 free download


The final chapter begins as Harry, Ron, and Hermione continue their quest of finding and destroying the Dark Lord's three remaining Horcruxes, the magical items responsible for his immortality. But as the mystical Deathly Hallows are uncovered, and Voldemort finds out about their mission, the biggest battle begins and life as they know it will never be the same again.
click here to download it free.

Monday 13 June 2011

Pulse Position Modulation PPM using 555 timers

 Pulse-position modulation (PPM) is a form of signal modulation in which M message bits are encoded by transmitting a single pulse in one of 2M possible time-shifts. This is repeated every T seconds, such that the transmitted bit rate is M/T bits per second. It is primarily useful for optical communications systems, where there tends to be little or no multipath interference
          Pulse position modulation (PPM) use pulses that are of uniform height and width but displaced in time from some base position according to the amplitude of the signal at the instant of sampling. The position of each pulse, in relation to the position of a recurrent reference pulse, is varied by each instantaneous sampled value of the modulating wave. Pulse position modulation is also sometimes known as pulse-phase modulation



ADVANTAGE OF PPM:

Pulse position modulation has the advantage over pulse amplitude modulation (PAM) and pulse duration modulation (PDM) in that it has a higher noise immunity since all the receiver needs to do is detect the presence of a pulse at the correct time; the duration and amplitude of the pulse are not important.

Thursday 28 April 2011

VERILOG CODE FOR CLOCK DIVIDER

In some of the applications we don't want a very high speed clock and the problem occurs when we have a fixed frequency clock then we have to use a module that divide the frequency of the clock by a certain factor that satisfies the requirement .It seems to b a difficult task but believe me it is a very simple thing to do and it can solve your problems.Clock Divider can be used in many applications like if you are implementing a Traffic signal on spartan board then you want to divide your clock frequency as you don't like the signals to change their states in less than a thousand part of a second the simple solution is he CLOCK DIVIDER.so,here is the verilog cod for the code.

Thursday 14 April 2011

Bisection Method For Finding Roots Of equation Matlab Code

fed up of doing calculations by hand to find the roots of an equation by "BISECTION METHOD" (one of  the bracketing techniques to solve an equation) the solution is simple and reliable write a piece of MATLAB code.Cant do this???? thats what i am here for !! here is the required code !! this code will
1.find the mean value at each iteration
2.plot the graph of true error
3.plot graph of approximate error
change the function and initial bracket according to your requirements!!
here is the code