Você está na página 1de 3

24/04/2017 microcontrollerEasiestwaytogofromanaloginputtoPWMoutput?

ElectricalEngineeringStackExchange

inscreverse logem turn ajuda

_
EngenhariaEltricaStackExchange Vejacomofunciona:
umsitedeperguntaserespostaspara
profissionaisdeeletrnicaeengenharia
eltrica,estudanteseentusiastas.
Junteseaeleslevaapenasum
minuto:
Qualquerpessoa Qualquerum Asmelhoresrespostasso
podefazeruma poderesponder votadaseascendemao
Inscrevase pergunta topo

AmaneiraamaisfcildeirdaentradaanlogasadadePWM?

Projetodefundo:Euestouconstruindoumaltofalanteplasma.HvriosexemplosonlineusandoumTL494fontede
alimentaoICealimentaodeudioemseupinodefeedbackparaobtersomfora.Umexemplodeesquema:

Euestouquerendosabersehumamaneiramelhordefazeristo.Eusouumhobbyist,assimqueeunosouterrivelmente
interessadonomtodoomaisbaratoabsolutodesdequeumoneoff,eeuigualmentesereitolerantedascoisaspotencial
perigosasouesboadodesdequeeunotenhoquecomearacertificaoparaqualquercoisa.

Eutenhoacessoaalgunsmicros,maspoucaexperinciacomeles.EuconseguiumLaunchpad,emeuentendimentoum
dosMSP430squeveiocomeletemumbuiltinADC.EnquantovaideanalgicoparaPWMpareceumpoucounderwhelming
paraummicrocontrolador,eutenhoumrequisitoadicionalqueeudevolimitaromeuciclodedeversuperiorpara
permanecerabaixodecercade95%paraevitarasaturaodotransformadorflyback.Freqnciadeoperao120
150khz.

Pararesumirminhapergunta:

Existemmaneirasmaissimplesdeirdeumsinaldeentradadealtaimpedncia1VPPparaumsinaldesada150khzcom
PWMproporcional,tampadoemumciclodetrabalhomximode95%?Amenosquesejaconstrudonativamenteparao
dispositivo,estareiconstruindomeuprprioestgiodesadaparaconduziroMOSFETdepotncia.

microcontrolador adc PWM

perguntou02deagosto'12s20:10
Insta
1.024 7 18

3Respostas

https://electronics.stackexchange.com/questions/37079/easiestwaytogofromanaloginputtopwmoutput 1/3
24/04/2017 microcontrollerEasiestwaytogofromanaloginputtoPWMoutput?ElectricalEngineeringStackExchange

Surpreendentementeosuficiente,euestavaliteralmenteapenasolhandopara
geradoresPWMdechipnicoparaomeutrabalho.

SeseuinteressepodeseraLinearLTC6992TimerBlox:PulsoVoltageControlled
Larguramodulador(PWM)

Vocdlheumaentradade01V,evocrecebeumPulserPWMfora.Tambm
podelimitarinternamenteociclodetrabalhoa5%95%,ou0100%.

Youwouldneedaopamportwotoscaleyourinputtothechip'sinputrange,but
youwouldneedtodothatanyways,becauseveryfewADCsarebipolar(assuming
youweregoingthemicroprocessorroute).

Lookingatthereferenceschematicyouprovided,Iwouldalsorecommendusinga
MOSFETdriverofsomesort,toimproveswitchingtimes,ifnothingelse.
Itwouldalsolikelyprovidelevelshiftingforthegatevoltage.

answeredAug2'12at23:00
ConnorWolf
25.6k 5 57 115

TheTL494isdesignedspecificallyforSMPSandincludesalowsideMOSFETdriver.However,LTC6992
looksamazing,assumingIcanslowitdownto150kHz. insta Aug3'12at18:24

Holypoopscicle,thatthingisperfect. insta Aug3'12at20:48

FrequencyRange:3.81**Hz**to1MHz SoIwouldimaginethatitwon'tbehardtogetittorun
150kHz.ConnorWolfAug3'12at20:52

IhadasignalprocessingprojectwhereIusedanoldcheapPICtosamplean
incomingsinewaveandoutputaPWMsignal.ThePWMconfigurationwasallpretty
muchtakencareofbythemicro.Cappingtheoutputdutycyclewouldjustbea
matterofsignalfiltering,whichyoucandointhemicro.

IwouldsayIMOthatusingamicrotodothisisprettystraightforwardonitsown.
Youwouldneedtoregulatethepowerforthemicro,andmaybeaddanopampinput
stagetoprotecttheADConyourmicro.

AfterquickglanceattheusermanualforyourMSP430,itshoulddoPWMonits
own,buthavingneverdealtwithTImicros,Icanttellyouspecificallyhowtodoit.

Thatbeingsaid,whatyouhaveseemssimpleenough.Ihaven'tworkedwithaPWM
controlchipbefore,butreadingthedatasheetitshoulddothejob.

Byusingamicro,yourswappingexternalcomponentsforinternalprogramming.
TheupshotisyougainbettercontrolovertheoutputPWMifyouarewillingtowork
forit(program).

answeredAug2'12at20:34
Michael
578 1 4 20

YoumightwanttoreadsomearticlesaboutClassDAmplifiers.Seeforinstance:
http://www.maximintegrated.com/appnotes/index.mvp/id/3977

Theseamplifiers(theonesusedforamplifyinganalogsignals)usuallyhaveafirst
stagewheretheinputsignalisfedintoacomparator,whosesecondinputisfedwith
asawtooth/trianglewave.ThiseffectivelyconvertstheanaloginputtoaPWM
signal.

Creatingatrianglewaveisalsoaneasytask.

https://electronics.stackexchange.com/questions/37079/easiestwaytogofromanaloginputtopwmoutput 2/3
24/04/2017 microcontrollerEasiestwaytogofromanaloginputtoPWMoutput?ElectricalEngineeringStackExchange
answeredOct30'13at0:31
Sagie
73 6

Euuseiarotadetringuloonda+comparadorantesemoutrosprojetos,mascomaspeasqueeu
tinhanamoeunopoderiaobterafreqnciaaltaosuficiente.Possotentarnovamentecomuma
tensomaisbaixaassimqueosopampsnoestobalanandotodistante. insta 30deoutubro'13s
15:30

https://electronics.stackexchange.com/questions/37079/easiestwaytogofromanaloginputtopwmoutput 3/3