Capacitance meter with FRDM-KL05Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Capacitance meter with FRDM-KL05Z

Capacitance meter with FRDM-KL05Z

This is a Processor Expert project created by CodeWarrior for MCUs v10.6 which implements the charge-discharge time of a RC circuit for measuring capacitance.

The charge-discharge sequence is performed by TPM0 operating in PWM mode, while the time is measured by TPM1 operating in Input Capture mode.

A 100K ohm series resistor is being used, and the result is expressed on nF. It is also using the LCDHTA component from Erich Styger for showing the measurements on a 16x2 LCD, connected to the FRDM-KL05Z through a proto shield.

The project is attached, and the pictures shows the measurements of three different capacitors: 10nF, 47nF and 1uF.

DSC_1670.JPG.jpg

DSC_1671.JPG.jpg

DSC_1673.JPG.jpg

Attachments
Comments

You might find this old project from MERL - Mitsubishi Electric Research Laboratories of interest:

http://www.merl.com/publications/docs/TR2003-35.pdf

"Very Low-Cost Sensing and Communication

Using Bidirectional LEDs" by

Paul Dietz, William Yerazunis, Darren Leigh

TR2003-35 July 2003

Replace your capacitor with a LED.  The capacitance of the LED varies with the incident light on it.

%3CLINGO-SUB%20id%3D%22lingo-sub-1108607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ECapacitance%20meter%20with%20FRDM-KL05Z%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1108607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20is%20a%20Processor%20Expert%20project%20created%20by%20CodeWarrior%20for%20MCUs%20v10.6%20which%20implements%20the%20charge-discharge%20time%20of%20a%20RC%20circuit%20for%20measuring%20capacitance.%3C%2FP%3E%3CP%3EThe%20charge-discharge%20sequence%20is%20performed%20by%20TPM0%20operating%20in%20PWM%20mode%2C%20while%20the%20time%20is%20measured%20by%20TPM1%20operating%20in%20Input%20Capture%20mode.%3C%2FP%3E%3CP%3EA%20100K%20ohm%20series%20resistor%20is%20being%20used%2C%20and%20the%20result%20is%20expressed%20on%20nF.%20It%20is%20also%20using%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FErichStyger%2Fmcuoneclipse%2Ftree%2Fmaster%2FBeans%2FLCDHTA%22%20title%3D%22LCDHTA%20Component%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3ELCDHTA%20component%3C%2FA%3E%20from%20%3CA%20_jive_internal%3D%22true%22%20data-avatarid%3D%2227153%22%20data-externalid%3D%22%22%20data-online%3D%22false%22%20data-presence%3D%22null%22%20data-userid%3D%2211093%22%20data-username%3D%22BlackNight%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fpeople%2FBlackNight%22%20target%3D%22_blank%22%3EErich%20Styger%3C%2FA%3E%20for%20showing%20the%20measurements%20on%20a%2016x2%20LCD%2C%20connected%20to%20the%20FRDM-KL05Z%3CSPAN%20class%3D%22short_text%22%20lang%3D%22en%22%3E%3CSPAN%20class%3D%22hps%22%3E%20through%20a%20proto%20shield.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThe%20project%20is%20attached%2C%20and%20the%20pictures%20shows%20the%20measurements%20of%20three%20different%20capacitors%3A%2010nF%2C%2047nF%20and%201uF.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22DSC_1670.JPG.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22DSC_1670.JPG.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111417i7D16F52E5747AE39%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DSC_1670.JPG.jpg%22%20alt%3D%22DSC_1670.JPG.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22DSC_1671.JPG.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22DSC_1671.JPG.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111418iE647CFC130C920A1%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DSC_1671.JPG.jpg%22%20alt%3D%22DSC_1671.JPG.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22DSC_1673.JPG.jpg%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22DSC_1673.JPG.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111419i167FF1F10AEDAFA2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DSC_1673.JPG.jpg%22%20alt%3D%22DSC_1673.JPG.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1108607%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EFreedom%20Development%20Platform%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EKinetis%20L%20Series%20MCUs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1108608%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Capacitance%20meter%20with%20FRDM-KL05Z%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1108608%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EYou%20might%20find%20this%20old%20project%20from%20%3CSPAN%20class%3D%22site-title-text%22%20style%3D%22padding-top%3A%209px%3B%20font-size%3A%2016px%3B%20border-left-color%3A%20%23bbbbbb%3B%20border-left-width%3A%201px%3B%20border-left-style%3A%20solid%3B%22%3EMERL%20-%20Mitsubishi%20Electric%20Research%20Laboratories%20of%20interest%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22http%3A%2F%2Fwww.merl.com%2Fpublications%2Fdocs%2FTR2003-35.pdf%22%20title%3D%22http%3A%2F%2Fwww.merl.com%2Fpublications%2Fdocs%2FTR2003-35.pdf%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttp%3A%2F%2Fwww.merl.com%2Fpublications%2Fdocs%2FTR2003-35.pdf%3C%2FA%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%22Very%20Low-Cost%20Sensing%20and%20Communication%3C%2FP%3E%3CP%3EUsing%20Bidirectional%20LEDs%22%20by%3C%2FP%3E%3CP%3EPaul%20Dietz%2C%20William%20Yerazunis%2C%20Darren%20Leigh%3C%2FP%3E%3CP%3ETR2003-35%20July%202003%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EReplace%20your%20capacitor%20with%20a%20LED.%26nbsp%3B%20The%20capacitance%20of%20the%20LED%20varies%20with%20the%20incident%20light%20on%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎04-15-2014 01:49 PM
Updated by: