Yuav Ua Li Cas Txuas Cov Digital Potentiometer Rau Arduino

Cov txheej txheem:

Yuav Ua Li Cas Txuas Cov Digital Potentiometer Rau Arduino
Yuav Ua Li Cas Txuas Cov Digital Potentiometer Rau Arduino

Video: Yuav Ua Li Cas Txuas Cov Digital Potentiometer Rau Arduino

Video: Yuav Ua Li Cas Txuas Cov Digital Potentiometer Rau Arduino
Video: Управление цифровым потенциометром с использованием Arduino - X9C103 2024, Kaum ib hlis
Anonim

Tsab ntawv xov xwm no tham txog yuav ua li cas tswj hwm cov digital potentiometer siv Arduino, ntxiv rau thaj chaw hauv daim ntawv thov twg cov cuab yeej no tuaj yeem muaj. Cia peb siv cov qauv tsim nyog uas tau them tsawg dua $ 1.

X9C103S digital potentiometer module
X9C103S digital potentiometer module

Tsim nyog

  • - Digital potentiometer X9C;
  • - Arduino;
  • - khoos phis tawm nrog Arduino IDE ib puag ncig kev loj hlob;
  • - qauv pawg thawj coj saib thiab xov hlau sib dhos.

Cov Lus Qhia

Kauj ruam 1

Lub tshuab hluav taws xob (potentiometer), lossis cov hluav taws xob tsis sib xws, yog cov khoom siv hluav taws xob uas tso cai rau koj hloov qhov tsis kam ntawm cov hluav taws xob. Classic (tshuab) potentiometer muaj ob qho kev sib cuag, nyob nruab nrab ntawm uas muaj tus thib peb - txav tau. Los ntawm kev txav mus rau lub chaw sib cuag, peb hloov qhov tsis kam ntawm nws thiab txhua qhov sib tiv tauj.

Ib qho hluav taws xob potentiometer yog ib qho piv txwv ntawm cov neeg kho tshuab potentiometer, tab sis nrog tus naj npawb ntawm qhov ua tau zoo: nws tsis muaj cov khoom siv tshuab, nws tuaj yeem tswj tau nyob deb siv, piv txwv li, microcontroller, thiab nws yog me me hauv qhov loj me.

Sab hauv txheej ntawm potentiometer
Sab hauv txheej ntawm potentiometer

Kauj ruam 2

Cov digital potentiometer hom X9C tuaj yeem yog ib qho ntawm cov ntsuas hauv qab no: X9C102 = 1kΩ, X9C103 = 10kΩ, X9C104 = 100kΩ. Cov nqi no yog qhov ua tau siab tshaj plaws rau cov thev khoom. Nruab nrab ntawm 0 thiab tus nqi siab tshaj plaws hauv cov kauj ruam ntawm 1/100 ntawm qhov siab tshaj plaws, koj tuaj yeem kho qhov tsis kam ntawm qhov thib peb "tsiv".

Txoj hauj lwm ntawm "kev txav mus sib cuag" raug tswj hwm los ntawm cov ntsuas ntawm cov pulses tsis zoo. Txhua lub zog siab hloov tus nqi tsis kam los ntawm 1 kauj ruam hauv cov kev taw qhia ntawm nce los yog qis dua. Qhov nce lossis poob qis hauv kev tawm tsam yog tswj hwm los ntawm tus taw tshwj xeeb microcircuit.

Cov tsos ntawm cov qauv nrog potentiometer X9C
Cov tsos ntawm cov qauv nrog potentiometer X9C

Kauj ruam 3

Cia peb sib sau ua ke ntawm Circuit Court raws li nyob hauv daim duab. Peb xav tau lub zog xa hluav taws xob thiab 3 cov tswj kev tswj hwm: CS - kev xaiv ntaus ntawv (qib qis), INC - cov khoom tawm tiv thaiv kev hloov pauv (qib qis pulses), U / D - kev taw qhia ntawm kev hloov (U - nce - qhov voltage ntawm microcircuit ceg muaj qhov siab qib theem, D - sau - qib qis).

Daim duab thaiv hluav taws xob rau digital potentiometer X9C rau Arduino
Daim duab thaiv hluav taws xob rau digital potentiometer X9C rau Arduino

Kauj ruam 4

Tam sim no cia peb sau li tus kos duab thiab thauj nws rau hauv lub cim xeeb ntawm Arduino board.

Cov duab kos no muaj cov teeb meem nram qab no: nce qhov kev tawm tsam txhua 100 ms hauv 10% cov kauj ruam ntawm 0 txog 100% ntawm lub zog ntawm potentiometer.

Cov cim ntsiab lus rau X9C102 / X9C103 potentiometer hluav taws xob tswj
Cov cim ntsiab lus rau X9C102 / X9C103 potentiometer hluav taws xob tswj

Kauj ruam 5

Yog tias tam sim no, nrog kev pab ntawm cov multimeter, peb tshawb xyuas qhov tsis kam ntawm qhov nruab nrab thiab ib qho ntawm cov lus xaus, tom qab ntawd peb yuav kho qhov hloov pauv ntawm kev tsis kam.

Kuv yuav siv 5 qhov hluav taws xob rau lub potentiometer thiab ntsuas qhov ntsuas hluav taws xob nrog lub oscilloscope. Daim duab qhia txog qhov tshwm sim.

Pom zoo: