The P5.js code provided creates a dynamic canvas animation, where ellipses follow the mouse cursor, featuring random colors and sizes. The setup begins with the setup() function, initializing a canvas of 600x600 pixels (lines 2-3) and positioning it at the top-left corner (line 4). The background color is set to a dark gray (line 5),...

# Author: J2Geek

## Build 2 bits Serial Adder

The serial adder system efficiently handles two input bits, X1 and X2, to compute the sum and carry. This system guarantees accuracy with two separate outputs: S for sum and C for carry, all synchronized smoothly by a single clock. The input sequence begins with the least significant bit (LSB) and progresses to the most...

## LM331 voltage to frequency converter

If we use a single input RC filter the output square wave voltage frequency is [math]F=\frac{V_{in}}{2.09} \frac{R_2+R_7}{R_4} \frac{1}{R_1 C_1}=0.08134 \frac{V_{in}}{R_{1n}C_{1n}}[/math] with n possible values are 0,1,2 and 3. To change the Frequency range we use the two switches to aligne each resistor with each corresponding capacitor. To maintain stability over time and temperature, observe the...

## Build your own code for Fast Fourrier Transform (FFT)

The Fast Fourier Transform (FFT) is a highly efficient algorithm for computing the Discrete Fourier Transform (DFT) and its inverse. The DFT transforms a sequence of complex numbers, typically representing time-domain signals, into a sequence of complex numbers representing the frequency domain. The FFT dramatically reduces computation time compared to directly calculating the DFT, making...

## Boost Converter

A boost converter is a DC-DC converter designed to increase the output voltage to a fixed value using a switching device, often a MOSFET. This crucial electronic component efficiently steps up voltage levels in various applications. While the output voltage is typically fixed, it can be adjusted with specific modifications and control techniques. The basic...