Preview

Measurement Of Capacitance Using Arduino Lab Report

Better Essays
Open Document
Open Document
963 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Measurement Of Capacitance Using Arduino Lab Report
Measurement of Capacitance using Arduino – An Interrupt-based Approach: Part I

SAIKAT PATRA, SHIBENDU MAHATA

Introduction

Capacitive sensors are widely employed to measure various physical and chemical process parameters such as displacement, acceleration, thickness, force, pressure, stress, level, and humidity. The measured value of capacitance is then calibrated in terms of the process parameter for indication and/or control applications. This project presents an interrupt-based approach by employing a 555 timer operating in astable multivibrator mode and an Arduino Uno to continuously measure capacitance in the range of 1 µF - 1 mF and provide local indication using a liquid crystal display (LCD) and data acquisition using personal computer
…show more content…
The timer is powered with +5V from the Arduino board, thus eliminating the need for an external dc power supply. The timer generates a square-wave output of amplitude +5V at a specific frequency (depending on the values of R1, R2 and Cx) through pin no. 3. The output of the timer is connected to pin no. 2 of the Arduino. Since this pin of the Arduino is a hardware interrupt pin (called Interrupt 0), the source code (“capacitance.ino”) uploaded to the Arduino uses an interrupt-handler which is executed whenever the timer output makes a LOW-to-HIGH transition. Thus, the time-period of the square wave is continuously obtained by calculating the time difference between two such consecutive transitions. The time-period (T) of oscillation for the square-wave output from the 555 timer is given …show more content…
4: 555 timer connection in our breakout board

Arduino Uno Board: Arduino Uno is an AVR ATmega328P microcontroller based development board with 6 analog input pins and 14 digital I/O pins. The microcontroller has 32 KB of ISP flash memory, 2 KB RAM and 1 KB EEPROM. The board provides capability of serial communication via UART, SPI and I2C. The microcontroller can operate at a clock frequency of 16 MHz. In our project, the digital I/O pins 3, 4, 5, 6, 11, and 12 of the Arduino are connected with pin nos. 14, 13, 12, 11, 6, and 4, respectively, of the LCD.

16×2 character LCD: Since our Arduino program (“capacitance.ino”) uses the LCD in 4-bit mode, only the LCD data lines D3-D7 are configured for reading data from Arduino. Pin nos. 1 and 2 of the LCD are connected to GND and 5V, respectively, from the Arduino board. The Read/Write pin (pin no. 5) of the LCD is connected to GND. A 10 KΩ potentiometer is provided for adjusting the contrast of the display.

The entire list of components used for this project is shown in Table I.

Table I. Parts list

Name
No. of

You May Also Find These Documents Helpful

  • Good Essays

    M19 Lab

    • 548 Words
    • 3 Pages

    2. Calculate and record the reactance (XC) of the 0.1 μF capacitor when connected to a 100 Hz AC voltage.…

    • 548 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Measure the length of the following objects using the most appropriate units. Record your measurements. Convert this unit into the other units in the table.…

    • 1018 Words
    • 11 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Components Used: i)AT90S8535 Micro controller ii)LED‟S iii)Ground Code: #include int timeCount = 0; interrupt[TIM0_OVF] void timer0_ovf_isr(void) { TCNT0 = 6; if(++timeCount == 1000) { PORTA =PORTA ^ 0x01; timeCount = 0; } } void main(void) { DDRA = 0x01; PORTA = 0x01; TCCR0 = 0x02; TIMSK = 0x01; #asm("sei"); while(1); } Description: A variable timecount is initialized to 0. In the main function the LSB of PORTA is chosen for output and it is set to 1. Then the TIMER COUNTER CONTROL REGISTER (TCCR0) is initialized in such a way that divide by 8 (CK/8)clock source is selected again the “timer interrupt mask is set to enable the timer0 counter. “#asm” is a assembly language instruction „sei‟ stands for set enable interrupts to enable all the interrupts. Finaly ainfinite while loop.Then the function with keword interrupt is created.This function will be called automatically when the timer0 overflow interrupt takes place. This function returns nothing, since it is not called by any function and you cant pass any thing to function for the same reason .The timer0 is initialized to 6 in this function .As we have chosen ck/8 system as mentioned above and the clock frequency is 4 Mhz that‟s why 4/8 Mhz so 500 Khz(0.5 Mhz) will be the effective frequency so for one tick of counter 1/0.5 micro sec are required(1/freq.= time) that equals to 2 micro secondes. A timer can…

    • 742 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Unit 3 Assignment 1

    • 383 Words
    • 2 Pages

    This video clip described the different types of monitors and the different specifications of each type. It also described how via Windows Display Properties you may change video resolutions, add an additional monitor. Also shown were the various video connectors. The video discusses video busses, video cards and gives a warning to never open a CRT monitor.…

    • 383 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    The purpose of this experiment was to learn about the international system of units, to become more familiar with common laboratory equipment and techniques, to gain proficiency in determining the volume, mass, lenth, and temperature of a variety of items using common laboratory measurement devices, to learn to combine units to determine density and concentration and to use laboratory equipment to create serial dilutions and determine the density and concentration of each dilution.…

    • 624 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Laboratory Techniques & Measurements Observations from Procedures Data Table 1 – Length measurements Object|Length (cm)|Length (mm)| CD|12|120| Key|5|50| Spoon|17|170| Fork|19|190| Metric Ruler|30|300| Data Table 2 – Temperature measurements Hot water from tap (44ºC )|Boiling water (70ºC)|Boiling water – 5 minutes (100ºC)| ]111.2 F|158 F|212 F|…

    • 318 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    PURPOSE: The purpose of this experiment is for the students to get a better knowledge with the laboratory tools and techniques. This experiment taught me how to convert between SI units and standard American units of mass, length, temperature, volume and time as well as how to measure the units. Students become proficient in laboratory techniques such as measuring temperature and volume and calculating within them.…

    • 1411 Words
    • 11 Pages
    Satisfactory Essays
  • Powerful Essays

    Altera Quartus Experiment

    • 19294 Words
    • 78 Pages

    5. Since the above operations were all completed correctly, this step aimed to program and tests the designed circuit with the DE1 development board and record the numbers showed by 7-segment displays.…

    • 19294 Words
    • 78 Pages
    Powerful Essays
  • Better Essays

    RC Circuits Lab Report

    • 1500 Words
    • 6 Pages

    The purpose of this lab is to learn and understand RC Circuits. An RC circuit is composed of at least one resistor and at least one capacitor. A capacitor is composed of two plates with either air or an insulator also known as a dielectric between the plates. We do not want the plates to be touching, because then we would only have a conductor. The insulator between the plates is also known as the dialectic, which affect how the capacitor will store charge. In an RC circuit, voltage will flow from the battery to the capacitor and through the resistor. When the capacitor is charging, the voltage across the battery is decreasing until the capacitor is fully charged. When the capacitor is fully charged, then the voltage through the battery is zero. That would also mean that the voltage of the circuit would drop until it is also zero. Now when the capacitor completely discharges, the voltage through the battery increases. We were able to measure the half-time of the charging and discharging of the capacitor by connecting the circuit to the oscilloscope with the signal generator providing the potential for the circuit. The time constant was calculated from the half-time of charging and discharging. The time constant is a measure of the length of time a capacitor took to charge and discharge. We used the average of the charging and discharging time constants to calculate the capacitance by using the equation τ = RC. Since we know the resistance and the time constant, we are able to solve for the capacitance and compared the observed and theoretical values in order to verify the capacitance. For the RC circuit with one capacitor, we compared the theoretical and observed time constant and obtained a percent difference of 9.5%. For the RC circuit with two capacitor in series and the RC circuit with two capacitors in parallel, percent differences between the observed and theoretical values were all 9.5%. So…

    • 1500 Words
    • 6 Pages
    Better Essays
  • Satisfactory Essays

    she changed me

    • 837 Words
    • 4 Pages

    1. How did the first Texans arrive here? How do we know anything of what their lives and cultures were like? What do we learn from the pictographs in the Pecos River area? Migrated from Siberia to North America and downwards towards the plains of North America and then down further to the plains that are now known as the panhandle of Texas.-By their behavior and their ability to survive during this time/ says that most people now a days couldn’t.- Settled in west Texas( very dry plains, hot days/cool nights)…

    • 837 Words
    • 4 Pages
    Satisfactory Essays
  • Better Essays

    Most people get married because they love their partner. They like the way they are with each other, honest, loving, understanding, fun, etc. Some are arranged marriage as they are unable to find the love of their life. However some get divorced as they are no longer compatible and they get turn off very easily. They are frustrated and bored.…

    • 1011 Words
    • 5 Pages
    Better Essays
  • Better Essays

    The objective of this experiment is to find out the accurate mass of a solid and to calculate the moles of an unknown.…

    • 842 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Electrostatics Lab Report

    • 864 Words
    • 4 Pages

    1. Tape a piece of string to a Styrofoam cup and hang it from the edge of the desk so that it can move freely. Rub the outside of the cup with fur. Rub a PVC pipe with fur and bring it near the hanging cup.…

    • 864 Words
    • 4 Pages
    Good Essays
  • Good Essays

    This project describes how to make a digital voltmeter using a PIC microcontroller. A HD44780 based character LCD is used to display the measured voltage. The PIC microconotroller used in this project is PIC16F688 that has 12 I/O pins out of which 8 can serve as analog input channels for the in-built 10-bit ADC. The voltage to be measured is fed to one of the 8 analog channels. The reference voltage for AD conversion is chosen to be the supply voltage Vdd (+5 V). A resistor divider network is used at the input end to map the range of input voltage to the ADC input voltage range (0-5 V). The technique is demonstrated for input voltage ranging from 0-20 V, but it can be extended further with proper selection of resistors and doing the math described below.…

    • 717 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    abbrevation

    • 443 Words
    • 2 Pages

    FIBCOM 6320 Technical Description 1.3 Abbreviations and Definition of Terms Abbreviations ADM AGGR AIS AUX CF CID CMI CPE CRC-4 DCC ECC ECL EE EEE EMC EOW ER ES ETH ETSI FIT HDB3 HISI ID IEC I/ O ITU-T ITU LED LOF MRTIE MSOH MTBF MLM NA NE NRZ OE OEE OEO OHA OS PCB Add/Drop Multiplexer Aggregate Alarm Indication Signal Auxiliary Alarm Connection Field Consecutive Identical Digit Coded Mark Inversion Customer Premises Equipment Cyclic Redundancy Check - 4th order generator polynomial Data Communication Channel Embedded Communications Channel Emitter Coupled logic TM Module with Electrical Aggr, Electrical Trib ADM Module with Electrical Aggr Electri, cal…

    • 443 Words
    • 2 Pages
    Satisfactory Essays