Working of Capacitor and Resistor:
A resistor is a passive two-terminal electrical component that implements controlled amounts of resistance into electrical circuits meaning it restricts the amount of current flowing through a device. It doesn’t do anything actively to any electronic circuit; in fact, it’s simply hooked into a circuit to have the currents and voltages that you want precisely in your circuit. A capacitor, on the other hand, stores potential energy in an electric field and gives it back to the circuit when required. Simply put, it charges and discharges the electric charge stored in the circuit.
Function of Capacitor and Resistor:
A resistor is a little resistance package which controls the flow of current to other components in an electrical circuit. It’s not only used to amplify signals but to limit the flow of current, adjust signal levels, terminate transmission lines, etc. It limits the current flow to a safe value. A capacitor consists of two or more parallel conductor plates with an insulator between them. The function of a capacitor is to keep the positive and negative charges separated from each other. The effect of a capacitor is known as capacitance.