Editor Version ×

1.Easy to use and quick to get started

2.The process supports design scales of 300 devices or 1000 pads

3.Supports simple circuit simulation

4.For students, teachers, creators


1.Brand new interactions and interfaces

2.Smooth support for design sizes of over 30,000 devices or 100,000 pads

3.More rigorous design constraints, more standardized processes

4.For enterprises, more professional users

Std edition KM409 L/C CE meter


License: Public Domain

Published Time: 2022-04-29 21:28:20
  • 3.8k
  • 0
  • 19
![cover.jpg](//image.easyeda.com/pullimage/Ac7m7xQpJRLQ4E4LGg5utV5lW3BXupEPqWTSVvVY.jpeg) # NEW & OLD VERSION ![01.jpg](//image.easyeda.com/pullimage/oOxqekxvN3p4886OmjiKUUfjFLaY8sxxVa9dKUwS.jpeg) ![02.jpg](//image.easyeda.com/pullimage/vaUVABYOYTM9Kuxzvz2DUAEA9CtrPIM37KPWp7nw.jpeg) ![03.jpg](//image.easyeda.com/pullimage/tdxspnEgssoakIjU07Re8MOncHIoKSaHGN7xZiVV.jpeg) # MEASURE ![04.jpg](//image.easyeda.com/pullimage/RofDrEeLGIOIPu1h2fJdp4ygya2LICM4F5eO6z8Z.jpeg) ![05.jpg](//image.easyeda.com/pullimage/SMnDIC3tJGLVEdlVyZly4M0fRcPleBBGahTBHUyg.jpeg) ![06.jpg](//image.easyeda.com/pullimage/UDEwNTx2UcMxeWxlpeDno4usTRB9cqbuppY0SaQe.jpeg) ![07.jpg](//image.easyeda.com/pullimage/LYvW1bkFXB2I4SM3xMohIjKO3btZ3U8SgnWjJjj5.jpeg) # PCB & ASSEMBLY ![KM409 01.jpg](//image.easyeda.com/pullimage/bceQrkM8J6YTOj4Qc5GcBueLXxEPVInclZBa2db5.jpeg) ![KM409 02.jpg](//image.easyeda.com/pullimage/dNIA2jZQFk5gctRz1d5M7en5Kz2wTZ41TAmwyuak.jpeg) ![KM409 03.jpg](//image.easyeda.com/pullimage/FiOu2CYg8NJG076CKADZxmXE5NcVFnKNrlMqEsYT.jpeg) ![KM409 04.jpg](//image.easyeda.com/pullimage/ffkXvRBAgx9TySwNSV6niKQx0EKD2Ika2tsCjnOm.jpeg) ![KM409 05.jpg](//image.easyeda.com/pullimage/Kgk0CdCShoGCsK1GsBdbsOEoaK0OXyLRtCqjPAoa.jpeg) ![km409 06.jpg](//image.easyeda.com/pullimage/KuZtlgwCembeaM1bshr8Rzugit6T3OhSHu5Vkkvf.jpeg) ![03.jpg](//image.easyeda.com/pullimage/tdxspnEgssoakIjU07Re8MOncHIoKSaHGN7xZiVV.jpeg) ![cover.jpg](//image.easyeda.com/pullimage/Ac7m7xQpJRLQ4E4LGg5utV5lW3BXupEPqWTSVvVY.jpeg) # OLD VERSION ![old version LX.jpg](//image.easyeda.com/pullimage/8xx4bvCygblI45CDk9Ca3YAgg76aJYWPM4Pc405h.jpeg) ![old version CX.jpg](//image.easyeda.com/pullimage/fqmY7aAhBOfTz4GAkiGXUKEtYU3DDiDCiA2B0DFu.jpeg) ![km409 old version top.jpg](//image.easyeda.com/pullimage/wr2hH0WckkzUluNNIQm5YiDkdTh7NkkzphR1DOFO.jpeg) ![km409 old versionbottom.jpg](//image.easyeda.com/pullimage/sE13nsLCJbRpfZdH9wCo41IVVNm0tO2Hp0EBnNYm.jpeg) # NEW VERSION Some changes with power supply, better double side PCB, added diode bridge, replaced ARK connector to socket 2.1mm... ![top.png](//image.easyeda.com/pullimage/eYskJatbMmNA98ueltsfMIgo1qix90ZA2DJ4Z7Tt.png) ![bott.png](//image.easyeda.com/pullimage/SyU4doWzzPqDrNV2kn4OiGfK4omHMsIljxKm7NFD.png) # A LOGIC IDEA ![KMM.png](//image.easyeda.com/pullimage/VRsDjNp3eucsEBM4G7exXjGraTbKNu5aistZfZYa.png) ![Schematic_KM409 L_C CE meter_2021-10-18.png](//image.easyeda.com/pullimage/LBhMk9BA7Vw21GS3kqn8h3mVl4L8cVTsRRfJbIQI.png) # L/C METER **Theory** A capacitance + inductance they form a resonant circuit. He is vibrating. The frequency of vibrations depends on the capacity and inductance. When we add to the resonant LC circuit, the coil (in series to the coil) - or the capacitor (parallel to the capacitor), then the resonant frequency will decrease. **Practice (resonant method)** L/C circuit is cooperates with the LM393D comparator, from which the output is fed back loop to the LC circuit. Thanks to this, the vibrations do not expire. The comparator output also gives a rectangular signal to the input pin of the microcontroller. This signal has the resonance frequency of the LC circuit. The frequency of this signal is measured by the microcontroller. Knowing the inductance values and capacities of the LC generator based on the frequency difference, we can calculate the value of the attached capacitance or inductance to the LC circuit. **Used formulas**: ![003 formula cown.png](//image.easyeda.com/pullimage/KTj4T33EckX9Gk8kc7Ocx3Mfm3sLRcc1VuOtaatG.png) **Where:** **Cown** – capacitance of LC circuit [pF] **Cref** - a referential knowing value of capacitance which was added to LC circuit (generator) [pF] **F1** – a resonant frequency of LC circuit **before** add Cref capacitor [Hz] **F2** – a resonant frequency of LC circuit **after** add Cref capacitor [Hz] ![004 formula Lown.png](//image.easyeda.com/pullimage/XAiRuNGqMpG7HZPGx5K7RXpYJcTxWYOrd2yrRUr5.png) **Where:** **Lown** – a own inductance of LC circuit (without added any other inductor) [uH] **Cown** – a own capacitance of LC circuit (without added any other capacitor) [uF] **F1** – a frequency of resonant LC circuit [Hz] ![005 formula cx.png](//image.easyeda.com/pullimage/nAKFRCv7bguTzEJKIsTh8oPXdB5AwZtTyvu9Lx7a.png) **Where:** **Cx** - is a unknown value of capacitance which was added to LC circuit (generator) [pF] **Cown** – a own capacitance of LC circuit [pF] **F1** – a resonant frequency of LC circuit before add Cx capacitor [Hz] **F2** – a resonant frequency of LC circuit after add Cx capacitor [Hz] ![006 formulaLx.png](//image.easyeda.com/pullimage/i2wDlXFmulsDWxKo5kc1w5cVd47ByR1iS5OeS5y5.png) **Where:** **Lx** - is a unknown value of inductance which was added to LC circuit (generator) [uH] **Lown** – a own inductance of LC circuit [uH] **F1** – a resonant frequency of LC circuit before add Lx inductor [Hz] **F2** – a resonant frequency of LC circuit after add Lx inductor [Hz] # MEASURE FOR BIGGER CAPACITORS - ELECTROLYTIC **Charging time to capacitance by constant voltage.** ``` When we charging capacitor by constant voltage we can observed a curve of charge: ``` ![007 exponent.png](//image.easyeda.com/pullimage/rhL7tmM8rnsIPWYQcCJAM0YobbwWsAdrR6yMw25l.png) We can see the charging time if depend from resistance and capacitance. And these two values form a time constant called tau τ which units is the seconds [s] So from above diagram we can get the known: After one τ the voltage on the capacitor get the 0.632 E value So if our E have 5V, after the τ time on the capacitor voltage will present 3.16V. **AND FINALLY – when we charge the capacitor up to 0.632E, knowing the value of R and measuring the charging time, we can very easily calculate the capacity of the capacitor.** ![008 heureca.png](//image.easyeda.com/pullimage/vpMu3BYI984AgwyojTec0H2cr5Bftu1eAKFQ1Zmt.png) If we look at the diagram, notice that the capacitor can be charged by one or two parallel resistors RES1 and RES2. Therefore, the program uses one more formula: ![009 res3.png](//image.easyeda.com/pullimage/Xn458F6rNMtYP7qBuKBJLUqqarVVSH3zJTOO2z20.png) # WHAT YOU MUST DO TO GET A HIGH ACCURACY OF MEASUREMENT. Start with RES1 and RES3 soldering, and then measure and store their values. After assembling the whole and connecting the power supply, the VCC supply value should be measured, then the PR1 potentiometer should be set to 0.632 VCC at TP (arround 3.16V). # The FIRMWARE Wrote in assembler in two options – for ATmega8A or ATmega328P – why 328P? Cause I got a few unused Arduino  so I don’t need to purchase M8A  After power on we can see three screens: ![010 AFTER RESET.PNG](//image.easyeda.com/pullimage/QJQC9sD4c036Ncu6qhpLEaGCPu9x6OeDu0uvPYdD.png) Honestly, after the first power on third screen going to calibrate menu, which I’ll describe later. After reset we can put capacitor into the socket and measure capacitance. After pressed the left button we can see the L measure screen or the second one after put inductor into the **left socket**. ![011 L measure.png](//image.easyeda.com/pullimage/h7LGCgBXCrAtr6tfAW2JEICR8cypMow7UDIdibIK.png) Next one press the left button invoke the third menu for CE measure: In the **right socket** we can do measure of electrolytic capacitors. ![012 CE measure.png](//image.easyeda.com/pullimage/ob0EtDQ4HUzrD9ZOHvxOXfj9xv7LAGx92qRZw74h.png) After this, the left button go back to small capacitors measure menu. Al the time by press right button we can invoke 7 specials menu. In this mode the right button select menu, and after the select any one by pressing left button execute it and go inside. How the program calculate capacitance: 1. Simply start charge of the capacitor and counting the clocks edges. 2. After charging capacitor program multiply by 125 value of counted clock edges, cause crystal have 8MHZ for translate to decimal relation to seconds. And divide by 10. 3. After that value is divided by RES2*100 (for better precision) or by RES3 (two parallely connected resistors RES3=RES1*RES2/[RES1+RES2] ) – result in [uF] or in 0.01 [uF] # MEASURE MENU ![013 menus.png](//image.easyeda.com/pullimage/iSjUGx0vTFGqbLqiDQ4w6xglOarCel4e7Z508Olf.png) # MENU COMPENSATE: ![014 MENU COMPENSATE.png](//image.easyeda.com/pullimage/lEGKniOVBwPZxtkV88nhvaIvnutVVThUfdJAITAf.png) After select his menu program compensate the frequency value, which can be a bit floating depend from thermical values. And go back to last used menu of measure. # MENU RESET: ![015 MENU RESET.png](//image.easyeda.com/pullimage/ptNRHxZ0MrlKmzpAHKESCXXyVR6S9e0pt7vFAHR4.png) Simply restart of firmware, and lose the compensate value. # MENU CALIBRATE: ![016 MENU CALIBRATE.png](//image.easyeda.com/pullimage/mcoXfdOiOjwU3zN320IsDZZj1DTFto63VqnKQ6oL.png) Most probably don’t need describe this menu, everything is on the following step by step screens. Note: You can choose in the next menu the reference value of the calibrate capacitor, which you’ll use. # MENU SET REF VALUE # – you can change the referential value your cap. for calibrate if you need. ![017 MENU CREF.png](//image.easyeda.com/pullimage/vFpFjClh3FecQqrWENm3tICoRaB2smUzOAgAlBAi.png) # MENU SET COWN VALUE: You can change the value of capacitor in LC generator circuit, after this the coil value will be recalculated. **In the last 4 menu you can set the value by pressing left button and right button for confirm.** ![018 MENU COWN.png](//image.easyeda.com/pullimage/foH1Ro7hjfhTJRXP58924rChZnQRZtXdFYzJMzPn.png) # MENU SET RES1 VALUE: Here you should set the RES1 value, which you measured after soldered RES1. ![019 MENU RES1.png](//image.easyeda.com/pullimage/6FoqgTlFunYa5VVfxoeQVFYEdhqFv9zufbbV4jjd.png) # MENU SET RES2 VALUE: Here you should set the RES2 value, which you measured after soldered RES2. ![020 MENU RES2.png](//image.easyeda.com/pullimage/Y52ZTsFmrK0mWmhTBbRIzWsku4BbpFnEhBUNNYdU.png) # ADDITIONS and CURIOS A bit unrolling the second one formula for clarity and understand how to do it on the integers numbers. ![021 formula Lown constant.png](//image.easyeda.com/pullimage/B9EDlD8CAqyZ9jkmEpuufgVepJX9EwuMbTHMZNr7.png) We got here a constant 1/4PI^2, also we dividing by [pF] so we can do sth like that: 100 000 000 000 000 000 000/4/Pi/Pi = 2 533 029 591 058 444 286 And now: 2 533 029 591 058 444 286 /F1/F1/C **BECAUSE the 2 533 029 591 058 444 286 value is oversized by a few decades the result is in 0.01 [uH] what gave resolution in 10 [nH].** Just for example how program calculate Cx or Lx and don’t going to to lower values using integers: Cx = (Cown x [(F1 x F1)-(F2 x F2)])/F2/F2 So the first result = (Cown x [(F1 x F1)-(F2 x F2)]) is huge enough to divide by square of F2… # KNOWN PROBLEMS: C9 10uF doesn’t work properly, breaking oscillations – solution – replaced to unpolarized LM393D damaged under soldering probably – breaking oscillations – replaced to new. eot
Design Drawing
schematic diagram
1 /
1 /
ID Name Designator Footprint Quantity
2 1000u C1 CAP-D13.0XF5.0 1
3 100u C2 CAP 1
4 100nF C3,C4,C5 1206 3
5 100n C6 1206 1
6 33p C7,C8 1206 2
7 10u C9 CASE-A_3216 1
8 470nF C10 RAD-0.1 1
9 1nF 2% C11 RAD-0.1 1
10 2W10 D1 BRIDGE-WOB 1
11 LL4148 D2 LL-34 1
14 10uH L1 AXIAL-0.4 1
15 100uH L2 AXIAL-0.4 1
16 10k PR1,PR2,PR3 HELITRIM 329Y 3
17 1M R1 1206 1
18 100k R2,R3,R4 1206 3
19 10k R5,R6,R10 1206 3
20 2.2k R7 1206 1
21 4.7k R8,R9,R15 1206 3
22 3k R11 1206 1
23 300 R12 1206 1
24 1k R13 1206 1
26 BC857 T1 SOT-23 1
27 BC847 T2,T3 SOT23-3 2
28 MEGA8-P U3 DIP28-300 1
29 16x2 LCD (HD44780) U4 LCD1602 1
30 LM7805CT U7 TO-220_HORIZONTAL 1
32 8MHz X1 HC-49S 1
33 LM393D U1 SOIC-8_L4.9-W3.9-P1.27-LS6.0-BL 1


Project Attachments
Order File name Download times

KM409 M8A.bin


KM409 M328P.bin





Project Members
Add to album ×


reminder ×

Do you need to add this project to the album?


周一至周五 9:00~18:00
  • 0755 - 2382 4495
  • 153 6159 2675


周一至周五 9:00~18:00
  • 立创EDA微信号


  • QQ交流群


  • 立创EDA公众号