Hello friends, ceramic capacitor are widely used in
electronic circuit. But when it comes to know the value of the capacitor it
becomes difficult sometimes, since on ceramic capacitor value is not written
directly. There is a code on the capacitor and you have to decode that code to
know the value.
So how can you know the value of ceramic capacitor? Before
moving ahead get to know some units used in capacitor values.
Unit of capacitor is Farad. But lower value of capacitors are
used in circuits.
First is Pico Farad, 1 pico is equal to 10-12
Second is Nano Farad, 1 nano is equal to 10-9
Third is Micro Farad, 1 micro is equal to 10-6
A ceramic capacitor, usually, have 3 digit code, for example
we have a capacitor having code 105.
First 2 digits (1 & 0) are significant figures, and third
one (5) is multiplier. Multiplier is considered with power of 10 as 105.
After putting all values we have the value in pF (picoFarad)
Pattern of to decode the value
First Figure Second Figure x 10multiplier
Value is in pF
Let’s decode the code
Marking on capacitor ‘105’
Pattern to decode, 10 x 105 = 1000000 pF
Now we have the value in pF, we can change it into nF by
multiplying it by 10-3. Since, It is in pF, which is equal to 10-12 and we are changing it into
nF which is equal to 10-9, difference in these multiplier is of 3.
After multiplying it by 10-3 We have value in nF
= 1000000 x 10-3 nF =1000 nF
But if you want value in micro Farad (μF) then multiply it by 10-6.
Seven-Segment Displays are used to
display the information; these are widely used in industries due to their
visibility and life.
There are two types of seven-segment
displays: common anode and common cathode. The Internal structure of each of
these types almost same. But, the polarity of the LEDs and common terminal are
different.
In most standard cathode
seven-segment, all seven LEDs, with a dot LED, have the cathodes connected to the
pins 3 and pin 8. To use it, we must connect GND to the pin 3 and pin 8, then
connect +5V to the other pins and make each of the individual segments glow.
The diagram below shows the internal structure of the common cathode
seven-segment display:
While, the common anode display is
opposite in respect of common connection. In a common anode display, the Anode
of the eight-shaped LEDs are connected together. They are then connected to pin
3 and pin 8. To glow an individual segment (LED), respective pin is to be
grounded. The diagram below shows the internal structure of the common anode
seven-segment display.
The dot is labelled as “dp”, while
the seven segments are labelled as a, b, c, d, e, f, g, as shown in the figure
below:
An analog signal can take on any number of values. To measure
the value of analog signals, Arduino has a built-in analog-to-digital converter
(ADC). The ADC turns the analog voltage into a digital value.
There is an inbuilt function to read Analog value;
analogRead(pin_number). This function converts the value of the voltage on the
analog input pin and returns a digital value ranges from 0 to 1023, relative to
the reference value. The default reference voltage is 5 V (for 5 V Arduino
boards) or 3.3 V (for 3.3 V Arduino boards). This function has only one
parameter, which is the pin number.
The Arduino does not have any built-in digital-to-analog
converter (DAC), but it can do pulse-width modulation (PWM); a digital signal
to achieve some of the functions of an analog output.
The function analogWrite(pin, value) is used to output a PWM
signal.
In the function ‘pin’ is the pin number used for the PWM
output. ‘value’ is a number proportional to the duty cycle of the signal.
When value is 0, then signal is always off. When value is
255, the signal is always on.
On Uno, Nano, Mini – PWM pins are 3, 5, 6, 9, 10, 11; PWM
Frequency is 490 Hz (Pin 5 & 6 : 980Hz)
On Mega- PWM Pins are 2-13, 44-46; PWM Frequency is
490 Hz (Pin 4 & 13: 980Hz)
For mapping an analog input value, which ranges from 0 to
1023 to a PWM output signal, which ranges from 0 - 255, there is an inbuilt
function ‘map(value, fromLow, fromHigh, toLow, toHigh)’. This function has five
parameters, one parameter is the variable in which the analog value is stored,
while the others are 0, 1023, 0 and 255 respectively.
This experiment will demonstrate how to use a PWM pin as
Analog Output.
For mapping an analog input value, which ranges from 0 to
1023 to a PWM output signal, which ranges from 0 - 255, there is an inbuilt
function ‘map(value, fromLow, fromHigh, toLow, toHigh)’. This function has five
parameters, one parameter is the variable in which the analog value is stored,
while the others are 0, 1023, 0 and 255 respectively.
Hardware Required
1 x LED
1 x 330 ohm resistor
1x Bread Board
1 x Arduino UNO
2 x jumper Wires
As you can see from the diagram above, we are now using one
Arduino PWM Pin 11. An LED is connected to pin 11, through a resistor of 330
Ohm value, which is a PWM Pin. When we
write the value on PWM pin corresponding to the value brightness of the LED
changes.