Experiment No3
Experiment No3
AIM
COMPONENTS REQUIRED
Arduino Uno Board, bread board, R1 (any resistor in the range 0 to 1K), R2 =1K, connecting
wires
PRINCIPLE
In this experiment, a basic voltage divider circuit is used to calculate the resistance. The
voltage divider is made of two resistances (R1 and R2) in series where R1 is the unknown
resistance and R2 is the known resistance. The value of R2 is chosen such that it is always
greater than the unknown resistance connected. If Vin is the supply voltage to the circuit,
the output voltage in the middle point of the voltage divider is
Vout = [R2/(R1+R2)]Vin.
Using this formula and knowing the value of R2, It is easy to calculate the value of R1 once
Vout is measured properly. Vout is measured by applying the concept of voltage
measurement using Arduino described in Experiment 2.
CONNECTION DIAGRAM
AIM
To set up a simple circuit to measure the unknown capacitance and to display the result onto
serial monitor
COMPONENTS REQUIRED
PRINCIPLE
Arduino capacitance meter relies on the basic property of capacitors- the time constant. The
time constant of a capacitor is defined as the time it takes for the voltage across the capacitor
to reach 63.2% of its input supply voltage. Larger capacitors take longer to charge, and
therefore have larger time constants. An Arduino can measure capacitance because the time a
capacitor takes to charge is directly related to its capacitance by the next equation:
To measure the unknown capacitance, a simple RC circuit is made where R is a known high
value. Supply voltage of 5V is fed to this circuit and time taken by the capacitor to charge up
to 63.2% of the supply is measured using Arduino code. Afterwards, using the formula, the
unknown capacitance is calculated
CONNECTION DIAGRAM
CODE
float C=0.00;
void setup()
Serial.begin(9600);
pinMode(12,OUTPUT);
void loop()
digitalWrite(12,HIGH);
while(analogRead(A0)<=646){
digitalWrite(12,LOW);
T=micros()-strtime;
C=float(T/R);
Serial.println(C);
delay(5000);
RESULT
A simple capacitance meter is set up, the circuit is tested and verified the value of capacitance