Cov txheej txheem:

Android On-The-Go (OTG) LC-Meter: 5 Kauj Ruam
Android On-The-Go (OTG) LC-Meter: 5 Kauj Ruam

Video: Android On-The-Go (OTG) LC-Meter: 5 Kauj Ruam

Video: Android On-The-Go (OTG) LC-Meter: 5 Kauj Ruam
Video: Man Falls OVERBOARD and Boat Keeps Going! | Wavy Boats | Haulover Inlet 2024, Kaum ib hlis
Anonim
Android On-The-Go (OTG) LC-Meter
Android On-The-Go (OTG) LC-Meter
Android On-The-Go (OTG) LC-Meter
Android On-The-Go (OTG) LC-Meter
Android On-The-Go (OTG) LC-Meter
Android On-The-Go (OTG) LC-Meter
Android On-The-Go (OTG) LC-Meter
Android On-The-Go (OTG) LC-Meter

Ntau xyoo dhau los kuv tau tsim LC-Meter raws qhov qhib-tsim tsim ntawm "Qhov Zoo Tshaj Plaws LC meter" los ntawm Phil Rice VK3BHR ntawm

Tshaj tawm ntawm no yog hloov kho raws li Microchip PIC18F14K50 USB Flash Microcontroller uas txuas nrog lub xov tooj Android siv On-The-Go (OTG) hom. Lub xov tooj muab lub zog rau kev siv hluav taws xob thiab Android Daim Ntawv Thov muab Cov Duab-Cov Neeg Siv-Interface (GUI).

Cov hauv qab no yog qhov tseem ceeb ntawm kev tsim:

  1. Tib PIC18F14K50 microcontroller nrog USB interface thiab sab hauv analog sib piv
  2. Yooj yim c-code ntawm microcontroller siv tus lej ntsuas zaus yooj yim
  3. GUI Test code hauv Qt Creator thiab Android daim ntawv thov siv Android Studio
  4. Txhua qhov kev suav suav ua hom lus siab dua
  5. Tsawg zog siv ~ 18 mA ntawm +5V
  6. Tsim kev txheeb xyuas los ntawm kev tsim lub khob cij-board thiab chav ua haujlwm

Kuv xav lees paub siv Usb cov lej tswj hwm rau Android v4.5 piv txwv tus lej hauv kev siv OTG txuas.

Kauj Ruam 1: Kev Xav Txog Kev Ua Haujlwm & Circuit Schematic

Theory of Operation & Circuit Schematic
Theory of Operation & Circuit Schematic
Theory of Operation & Circuit Schematic
Theory of Operation & Circuit Schematic
Theory of Operation & Circuit Schematic
Theory of Operation & Circuit Schematic

Txoj haujlwm ua haujlwm

Lub hauv paus ntsiab lus ntawm kev ua haujlwm yog txiav txim siab los ntawm kev txiav txim siab zaus ntawm LC sib txuas ua ke hauv Circuit Court.

Rov hais dua qhov sib npaug hauv Circuit Court: Tus sib piv sab hauv tau teeb tsa ua oscillator uas nws qhov zaus tau txiav txim los ntawm LC ua haujlwm sib nqus resonant Circuit.

L1/C7 tsim lub hauv paus resonant Circuit oscillating ntawm ~ 50 kHz. Cia peb hu qhov no F1

Lub peev xwm ntawm tus nqi raug, C6 tau ntxiv ua ke thaum lub sijhawm ntsuas ntsuas. Tom qab ntawd hloov mus rau ~ 30 kHz. Cia peb hu tus F2 no.

Qhov hloov pauv zaus tshwm sim thaum ib qho tsis paub inductor LX txuas nrog hauv L1 lossis tsis paub lub tshuab hluav taws xob CX txuas nrog ua ke nrog C7. Cia peb hu qhov no F3.

Ntsuas F1, F2 & F3 nws tuaj yeem suav qhov tsis paub LX lossis CX siv cov zauv pom.

Qhov suav thiab tso tawm qhov txiaj ntsig rau ob yam xwm txheej 470 nF thiab 880 uH tau qhia.

Circuit Schematic

PIC18F14K50 yog ib qho kev daws teeb meem rau OTG-LC Meter raws li nws muab cov kev sib piv sab hauv uas tuaj yeem siv rau LC-Oscillator thiab ib qho txuas hauv USB tso cai txuas rau PC-USB chaw nres nkoj lossis Android Phone OTG Port.

Kauj ruam 2: Android Daim Ntawv Thov

Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov
Android Daim Ntawv Thov

Cov Txheej Txheem Ua Haujlwm:

  1. Tom qab teeb tsa lub xov tooj Android rau kev txhim kho hom, teeb tsa app-debug.apk los ntawm cov kauj ruam software siv PC thiab tsim USB cable.
  2. Txuas lub LC-meter mus rau lub xov tooj Android siv OTG adapter.
  3. Qhib daim ntawv thov LC meter (Daim duab 1)
  4. Nias lub khawm Txuas, ua rau thov kev sib txuas (Daim duab 2)
  5. Nrog soj ntsuam qhib hauv C-Hom lossis luv hauv L-Mode, nias Calibrate, ua tiav hauv Kev Npaj (Daim duab 3)
  6. Hauv C-Hom, txuas tsis paub lub tshuab hluav taws xob (470 nF) thiab nias Khiav, (Daim duab 4, 5)
  7. Hauv L-Hom, txuas qhov tsis paub inductor (880 uH) thiab nias Run (Daim duab 6, 7)

Kauj Ruam 3: Kev Siv Hluav Taws Xob

Kev Siv Hluav Taws Xob
Kev Siv Hluav Taws Xob
Kev Siv Hluav Taws Xob
Kev Siv Hluav Taws Xob
Kev Siv Hluav Taws Xob
Kev Siv Hluav Taws Xob

PIC18F14K50 yog USB Flash Microcontrollers nrog nanoWatt XLP Technology.

Peb daim duab qhia tam sim no kos los ntawm LC-Meter kho vajtse hauv OTG-Hom thaum lub sijhawm sib txawv ntawm kev ua haujlwm:

  1. Thaum kho vajtse txuas nrog lub xov tooj Android tab sis daim ntawv thov tsis tau pib, 16.28 mA
  2. Thaum daim ntawv thov pib thiab nyob hauv RUN hom, 18.89 mA
  3. Tsuas yog 2 vib nas this thaum pib ntsuas ntsuas, 76 mA (txuas ntxiv tam sim no)

Zuag qhia tag nrho daim ntawv thov thaum khiav rub tsawg dua 20 mA uas yuav yog qhov kev txiav txim kos los ntawm 'Torch' hauv lub xov tooj Android.

Kauj ruam 4: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Kev tsim PCB tau ua nyob rau hauv Eagle-7.4 thiab CAD cov ntaub ntawv tau txuas nrog hauv. Zip daim ntawv. Lawv muaj txhua cov ntsiab lus suav nrog Gerber cov ntaub ntawv.

Txawm li cas los xij rau txoj haujlwm no, qauv ua khob cij tau xub tsim. Tom qab ua tiav cov txheej txheem ntawm cov txheej txheem ntxaws ntxaws tau ua tiav hauv CADSOFT Eagle 7.4 thiab PCB tsim los siv cov txheej txheem toner-transfer.

Kev ntsuas qib daim npav tau ua tiav siv Qt software ntsuas ua ntej ntim daim npav rau hauv lub thawv yas.

Kev tsim thiab ntsuas ntawm ob chav nyob hauv pab txheeb xyuas qhov rov ua tau ntawm qhov tsim.

Kauj ruam 5: Software

Txoj haujlwm no koom nrog kev txhim kho cov cai ntawm peb txoj kev txhim kho:

  1. Kev tsim kho cov lej kos rau PIC18F14K50 microcontroller
  2. PC raws kev sim/daim ntawv thov ywj siab hauv Qt ntawm Linux
  3. Android daim ntawv thov siv Android Studio ntawm Linux

Microcontroller Code

C-Code rau PIC18F14K50 tau tsim nyob hauv MPLAB 8.66 siv CCS-C WHD Compiler. Cov cai thiab cov ntaub ntawv fuze tau txuas nrog:

  1. 037_Android_2_17 Cuaj hlis 17.rar
  2. PIC_Android_LC-Meter.hex (qhib hauv MPLAB nrog kev kuaj xyuas 0x8a3b)

Qt xeem daim ntawv thov ntawm Linux

Daim ntawv thov Qt tau tsim los ntawm Qt Creator 4.3.1 nrog Qt 5.9.1 hauv qab "Debian GNU/Linux 8 (jessie)". Cov cai yog txuas nrog:

Aj_LC-Meter_18 Cuaj hlis 17. Zip

Qhov no tuaj yeem siv ua lub PC ywj pheej raws li kev thov siv LC-meter kho vajtse

Android daim ntawv thov ntawm Linux

Tsim tawm hauv Android Studio 2.3.3 nrog sdk 26.0.1.

Xeem ntawm Android xov tooj, Radmi MH NOTE 1LTE nrog Android version 4.4.4 KTU84P

LC-Meter_19 Cuaj hlis 17.zip

apk cov ntaub ntawv app-debug.apk

Pom zoo: