اطلاعیه

Collapse
No announcement yet.

پروژه LC متر با میکروکنترلر STM8

Collapse
X
 
  • فیلتر
  • زمان
  • Show
Clear All
new posts

    پروژه LC متر با میکروکنترلر STM8

    با سلام و وقت بخیر خدمت دوستان عزیز و گرامی ،
    پیرو قولی که در تاپیک « سلف سنج دقیق و ارزان با STM8 » داده بودم ، پروژه فعلی که یک LC متر دارای فرکانس متر هست رو بعد از مونتاژ و تست موفقیت آمیز ، به شکل عمومی منتشر میکنم.
    کلیه مراحل طراحی مدار ، طراحی PCB ، برنامه نویسی میکروکنترلر و مونتاژ نهایی توسط خود بنده انجام شده و فایل های مورد نیاز برای ساخت پروژه ( شامل شماتیک ، لیست قطعات ، فایل PCB و ... ) در لینک زیر موجود هستن :
    STM8 based LC meter with Frequency Meter. Contribute to Electronic-6502/LC_S8 development by creating an account on GitHub.

    توضیح پوشه های در github:
    Docs شامل فایل هایی مثل لیست قطعات و نتایج مقایسه
    HEX_Build شامل فایل های آماده پروگرام کردن HEX
    Hardware شامل فایل های شماتیک و PCB

    #2
    در فایل LC_S8_Placement واقع در پوشه Hardware چیدمان قطعات مشخص هست ، با این حال لازمه توضیحاتی رو ارائه کنم تا یکسری ابهامات از بین بره.
    روی برد 3 عدد کانکتور XH و یک ترمینال KF128 وجود داره ، J1 برای تامین تغذیه برد استفاده میشه ، پیشنهاد میکنم از باتری لیتیوم یونی به همراه افزاینده ولتاژ برای تامین تغذیه مدار استفاده کنید ، استفاده از آداپتور برای تغذیه ، باعث ناپایداری نتایج در حالت خازن سنج میشه.
    کانکتور J4 به ماژول PCF8574 پشت LCD کاراکتری 1602 متصل میشه ، نام هر پین کنارش نوشته شده.
    کانکتور SW1 به شستی فشاری متصل میشه ، نکته مهم اینه که از بین وسط استفاده نشده و باید با دم باریک پین وسطی رو از کانکتور نری خارج کنید.
    ترمینال J5 هم به پراب های اندازه گیری متصل میشه.
    در ادامه به مشخصات فنی میپردازیم :
    ولتاژ تغذیه : 9 الی 12 ولت ( پیشنهاد بنده 9 ولت هست )
    جریان مصرفی : حداکثر 150 میلی آمپر

    فرکانس متر :
    اندازه گیری فرکانس از 2 هرتز تا 8000 کیلوهرتز با خطای زیر 0.1 درصد
    رزولوشن : 1 هرتز برای فرکانس زیر 10 کیلوهرتز --- 0.01 کیلوهرتز برای فرکانس برابر یا بالاتر از 10 کیلوهرتز

    خازن سنج :
    اندازه گیری خازن با ظرفیت 5 پیکوفاراد تا 50000 میکروفاراد با حداکثر خطای 5 درصد
    اندازه گیری ESR خازن از 0.01 اهم تا 100 اهم
    نکته : برای اندازه گیری ESR ظرفیت خازن حداقل باید 1 میکروفاراد باشه.
    قابلیت اندازه گیری مقاومت از 0.01 اهم تا 100 اهم با خطای زیر 5 درصد

    سلف سنج :
    اندازه گیری سلف با اندوکتانس 0.01 میکروهانری تا 999 هانری

    احتمالا تا الان متوجه شدید که این مدار دارای 3 حالت فرکانس ، خازن و سلف هست. پس از روشن شدن ، حالت پیشفرض فرکانس متر هست که با فشار دادن دکمه ، به حالت بعدی ( خازن سنج ) میره ، در صورت فشار مجدد دکمه ، به حالت سلف سنج میره و این چرخه ادامه داره.
    در صورتی که در حالت خازن سنج یا سلف سنج دکمه فشرده بشه و به مدت چند ثانیه نگه داشته بشه ، مدار به حالت کالیبره میره.
    کالیبره کردن خازن سنج :
    مدار رو در حالت خازن سنج قرار بدید ، دکمه رو فشار داده و نگه دارید ، هنگامی که صفحه نمایش LCD پاک شد میتونید دکمه رو رها کنید. پیام Short Probes and Press Button نمایش داده میشه که باید پراب های اندازه گیری رو به هم اتصال کوتاه کنید و دکمه رو فشار بدید. در این حال پیام Open Probes and Press Button نمایش داده میشه که باید پراب ها رو از هم جدا کنید و مجدد دکمه رو فشار بدید. در این حال پیام Calibration Success نمایش داده میشه که به معنی موفقیت آمیز بودن عملیات کالیبره هست.
    کالیبره کردن سلف سنج:
    مدار رو در حالت سلف سنج قرار بدید و پراب ها رو اتصال کوتاه کنید ، دکمه رو فشار داده و نگه دارید تا زمانی که پیام Calibrated نمایش داده بشه ، نمایش این پیام به معنی موفقیت آمیز بودن عمل کالیبره هست.

    دیدگاه


      #3
      نوشته اصلی توسط HS1386 نمایش پست ها
      در فایل LC_S8_Placement واقع در پوشه Hardware چیدمان قطعات مشخص هست ، با این حال لازمه توضیحاتی رو ارائه کنم تا یکسری ابهامات از بین بره.....
      سلام
      من مدتیه از اکانت گیت‌هابم استفاده نمی‌کنم. این توضیحات شما رو به انگلیسی ترجمه کردم. خواستم خواهش کنم شما یا یکی از دوستان یک فایل بنام readme.md در مسیر /Docs/ در پروژه ایجاد کنید و این رو داخلش past کنید تا از طریق گیت‌هاب‌هم در دسترس باشه.

      کد:
      There are 3 XH connector and 1 KF128 terminal on the PCB.
      J1 (KF128) is used for power supply. It is suggested to use Litium-ion battery with a boost converter for power supply. Using adapter for power supply, could lead to instability in measuring capacitance operation.
      `J4` connector is connected to `PCF8574` module (in the back 1602 LCD). Name of each pin is written beside.
      `SW1` connector, connects to the push button. Important notice is middle pin is not used and it should be removed (with a plier) from male connector.
      `J5` terminal is connected to measuring probes.
      
      # usage, calibration and first uses
      
      This PCB have 3 modes for measuring:
      - Frequency
      - Capacitance
      - Inductor
      
      After turn on, the deafult mode is Frequency meter. with pressing button, it will go to next mode (Capacitor) and with another press it will go to next (Inductance) and this cycle will will continue.
      If in either Capacitor or Inductor mode, if the button is hold for some seconds, PCB goes into calibration mode.
      
      ## Calibrating Capacitor Meter
      Put the PCB into Capacitance mode. Press and hold the button for some seconds. When LCD is wiped out, you can release the button. the message `Short Probes and Press Button` will appear on the LCD which you should short-circuit the measuring probes and then press the button.
      then `Open Probes and Press Button` message will appear which you have to separate the probes and press the buttom again. then the message `Calibration Success` is shown and it means the successfull calibration.
      
      ## Calibrating Inductor Meter
      Put the PCB into Capacitance mode and short circuit the probes.
      Then press and hold the button, untill the message `Calibrated` is shown which means successfully calibrated.​

      دیدگاه


        #4
        نوشته اصلی توسط epsi1on نمایش پست ها

        سلام
        من مدتیه از اکانت گیت‌هابم استفاده نمی‌کنم. این توضیحات شما رو به انگلیسی ترجمه کردم. خواستم خواهش کنم شما یا یکی از دوستان یک فایل بنام readme.md در مسیر /Docs/ در پروژه ایجاد کنید و این رو داخلش past کنید تا از طریق گیت‌هاب‌هم در دسترس باشه.

        کد:
        There are 3 XH connector and 1 KF128 terminal on the PCB.
        J1 (KF128) is used for power supply. It is suggested to use Litium-ion battery with a boost converter for power supply. Using adapter for power supply, could lead to instability in measuring capacitance operation.
        `J4` connector is connected to `PCF8574` module (in the back 1602 LCD). Name of each pin is written beside.
        `SW1` connector, connects to the push button. Important notice is middle pin is not used and it should be removed (with a plier) from male connector.
        `J5` terminal is connected to measuring probes.
        
        # usage, calibration and first uses
        
        This PCB have 3 modes for measuring:
        - Frequency
        - Capacitance
        - Inductor
        
        After turn on, the deafult mode is Frequency meter. with pressing button, it will go to next mode (Capacitor) and with another press it will go to next (Inductance) and this cycle will will continue.
        If in either Capacitor or Inductor mode, if the button is hold for some seconds, PCB goes into calibration mode.
        
        ## Calibrating Capacitor Meter
        Put the PCB into Capacitance mode. Press and hold the button for some seconds. When LCD is wiped out, you can release the button. the message `Short Probes and Press Button` will appear on the LCD which you should short-circuit the measuring probes and then press the button.
        then `Open Probes and Press Button` message will appear which you have to separate the probes and press the buttom again. then the message `Calibration Success` is shown and it means the successfull calibration.
        
        ## Calibrating Inductor Meter
        Put the PCB into Capacitance mode and short circuit the probes.
        Then press and hold the button, untill the message `Calibrated` is shown which means successfully calibrated.​
        درود بر شما،
        انجام شد

        دیدگاه

        لطفا صبر کنید...
        X