Yuav ua li cas lub potentiometer tswj lub cev muaj zog ceev Arduino?
Yuav ua li cas lub potentiometer tswj lub cev muaj zog ceev Arduino?

Video: Yuav ua li cas lub potentiometer tswj lub cev muaj zog ceev Arduino?

Video: Yuav ua li cas lub potentiometer tswj lub cev muaj zog ceev Arduino?
Video: Tupao Xiong & Nhia Chang - Kuv Tsis Paub Yuav Ua Li Cas (Original) 2024, Tej zaum
Anonim

100k ohm potentiometer yog txuas nrog analog input tus pin A0 ntawm tus Arduino UNO thiab DC motor yog txuas nrog 12th tus pin Arduino (uas yog pin PWM). Piv txwv li, yog tias peb pub 256 tus nqi rau cov tswv yim analog, ces lub sij hawm HIGH yuav yog 768ms (1024-256) thiab LOW lub sij hawm yuav yog 256ms.

Xav txog qhov no, koj ua li cas tswj qhov ceev ntawm DC lub cev muaj zog siv PWM Arduino?

Thaum lub ceev yog varied ntawm 1 mus rau 9, lub ceev nce, nrog tus nqi 9 teev raws li qhov siab tshaj plaws ceev ntawm lub cev muaj zog . A PWM DC motor controller technology yog siv rau tswj tus ceev . Hauv PWM , cov Arduino xa cov nthwv dej pulsating uas zoo ib yam li astable hom 555 timer IC.

Ib tug kuj nug, Kuv puas tuaj yeem siv lub ntsuas hluav taws xob kom txo tau qhov hluav taws xob? A potentiometer , los yog "lub lauj kaub" yog qhov sib txawv ntawm cov resistor nrog peb lub terminals thiab ib tug ncej uas ua tau tig mus rau hauv ob qho tib si. Siv ib qho kawg terminals thiab cov wipers, tsim ib tug kuj sib txawv resistor rau tswj los yog kho tam sim no. Siv tag nrho peb terminals los tsim ib hluav taws xob faib rau tswj los yog kho hluav taws xob.

Ntxiv mus, koj yuav hloov qhov ceev ntawm Arduino DC lub cev muaj zog li cas?

Koj tsuas muaj peev xwm tswj tau lub ceev ntawm a DC lub cev muaj zog with PWM if the lub cev muaj zog muaj ib qho tseem ceeb mechanical load. Ib unloaded lub cev muaj zog yuav cia li khiav tsis cuam tshuam thaum lub sijhawm tawm ntawm PWM lub voj voog. Txuas lub lauj kaub los tswj tus nqi PWM thiab pinch tus lub cev muaj zog spindle nruab nrab ntawm koj cov ntiv tes. Ces koj yuav hnov tus ceev hloov.

Kuv tuaj yeem siv lub dimmer hloov los tswj lub cev muaj zog?

Tsis yog koj ua tau 't siv lub dimmer hloov los tswj ib DC lub cev muaj zog . A dimmer siv diac thiab triac thiab tsuas yog ua haujlwm nrog AC uas commutates triac OFF thaum kawg ntawm txhua ib nrab voj voog. Kuj tseem nco ntsoov universal lub cev muaj zog tsis txhob ceev tswj Txawm li cas los xij zoo heev thiab yuav tsum muaj lub nra hnyav kom tswj tau qhov ceev kom tshwm sim.

Pom zoo: