您的当前位置:首页 >74ACT08 >VS-UFB280FA40-VISHAY 正文

VS-UFB280FA40-VISHAY

时间:2021-04-23 01:32:18 来源:网络整理编辑:74ACT08

核心提示

DescriptionTheMMBT3904LT1GisaNPNsiliconBipolarTransistor,designedforuseinlinear,lowerpowersurfacemountandswitchingapplications.MMBT3904LT1GHowdoesatransistorwork?CatalogMMBT3904LT1GDescriptionMMBT3904LT1GPinoutMMBT3904LT1GFeaturesMMBT3904LT1GMarkingDiagramMMBT3904LT1GCADModelsMMBT3904LT1GFunctionalEquivalentsMMBT3904LT1GPackageOutlinesMMBT3904LT1GPopularitybyRegionMMBT3904LT1GMarketingPriceAnalysisMMBT3904LT1GManufacturerComponentDatasheetFAQOrdering&QuantityMMBT3904LT1GPinoutMMBT3904LT1GFeaturesTheseDevicesarePbFree,HalogenFree/BFRFreeandareRoHSCompliantSPrefixforAutomotiveandOtherApplicationsRequiringUniqueSiteandControlChangeRequirements;AECQ101QualifiedandPPAPCapableMMBT3904LT1GMarkingDiagramMMBT3904LT1GCADModelsPartSymbolFootprint3DModelMMBT3904LT1GFunctionalEquivalentsMMBT3904LT1GPackageOutlinesMMBT3904LT1GPopularitybyRegionMMBT3904LT1GMarketingPriceAnalysisMMBT3904LT1GManufacturerONSemiconductor(Nasdaq:ON)isdrivingenergyefficientinnovations,empoweringcustomerstoreduceglobalenergyuse.Thecompanyoffersacomprehensiveportfolioofenergyefficientpowerandsignalmanagement,logic,discreteandcustomsolutionstohelpdesignengineerssolvetheiruniquedesignchallengesinautomotive,communications,computing,consumer,industrial,LEDlighting,medical,military/aerospaceandpowersupplyapplications.ONSemiconductoroperatesaresponsive,reliable,world-classsupplychainandqualityprogram,andanetworkofmanufacturingfacilities,salesofficesanddesigncentersinkeymarketsthroughoutNorthAmerica,Europe,andtheAsiaPacificregions.ComponentDatasheetMMBT3904LT1GDatasheetFAQWhatisMMBT3904LT1G?TheMMBT3904LT1GisaNPNsiliconBipolarTransistor,designedforuseinlinear,lowerpowersurfacemountandswitchingapplications.Whatisatransistor?Atransistorisasemiconductordeviceusedtoamplifyorswitchelectronicsignalsandelectricalpower.Itiscomposedofsemiconductormaterialusuallywithatleastthreeterminalsforconnectiontoanexternalcircuit.WhatisPNPtransistor?APNPtransistorisabipolarjunctiontransistorconstructedbysandwichinganN-typesemiconductorbetweentwoP-typesemiconductors.APNPtransistorhasthreeterminalsaCollector(C),Emitter(E)andBase(B).ThePNPtransistorbehavesliketwoPNjunctionsdiodesconnectedbacktoback.Whatdoesatransistordo?Atransistor,alsoknownasaBJT(BipolarJunctionTransistor),isacurrentdrivensemiconductordevicewhichcanbeusedtocontroltheflowofelectriccurrentinwhichasmallamountofcurrentintheBaseleadcontrolsalargercurrentbetweentheCollectorandEmitter.Howmanytypesoftransistorarethere?Transistorsarebasicallyclassifiedintotwotypes;theyareBipolarJunctionTransistors(BJT)andFieldEffectTransistors(FET).TheBJTsareagainclassifiedintoNPNandPNPtransistors.TheFETtransistorsareclassifiedintoJFETandMOSFET.Whatistransistordiagram?DiagramAshowsanNPNtransistorwhichisoftenusedasatypeofswitch.Asmallcurrentorvoltageatthebaseallowsalargervoltagetoflowthroughtheothertwoleads(fromthecollectortotheemitter).ThecircuitshownindiagramBisbasedonanNPNtransistor.Whentheswitchispressedacurrentpassesthroughtheresistorintothebaseofthetransistor.Thetransistorthenallowscurrenttoflowfromthe+9voltstothe0vs,andthelampcomeson.Thetransistorhastoreceiveavoltageatitsbaseanduntilthishappensthelampdoesnotlight.Whatarethetwomainappilcationsoftransistor?Transistorsarecommonlyusedindigitalcircuitsaselectronicswitcheswhichcanbeeitherinanonoroffstate,bothforhigh-powerapplicationssuchasswitched-modepowersuppliesandforlow-powerapplicationssuchaslogicgates.

DescriptionTheMMBT3904LT1GisaNPNsiliconBipolarTransistor,designedforuseinlinear,lowerpowersurfacemountandswitchingapplications.MMBT3904LT1GHowdoesatransistorwork?CatalogMMBT3904LT1GDescriptionMMBT3904LT1GPinoutMMBT3904LT1GFeaturesMMBT3904LT1GMarkingDiagramMMBT3904LT1GCADModelsMMBT3904LT1GFunctionalEquivalentsMMBT3904LT1GPackageOutlinesMMBT3904LT1GPopularitybyRegionMMBT3904LT1GMarketingPriceAnalysisMMBT3904LT1GManufacturerComponentDatasheetFAQOrdering&QuantityMMBT3904LT1GPinoutMMBT3904LT1GFeaturesTheseDevicesarePbFree,HalogenFree/BFRFreeandareRoHSCompliantSPrefixforAutomotiveandOtherApplicationsRequiringUniqueSiteandControlChangeRequirements;AECQ101QualifiedandPPAPCapableMMBT3904LT1GMarkingDiagramMMBT3904LT1GCADModelsPartSymbolFootprint3DModelMMBT3904LT1GFunctionalEquivalentsMMBT3904LT1GPackageOutlinesMMBT3904LT1GPopularitybyRegionMMBT3904LT1GMarketingPriceAnalysisMMBT3904LT1GManufacturerONSemiconductor(Nasdaq:ON)isdrivingenergyefficientinnovations,empoweringcustomerstoreduceglobalenergyuse.Thecompanyoffersacomprehensiveportfolioofenergyefficientpowerandsignalmanagement,logic,discreteandcustomsolutionstohelpdesignengineerssolvetheiruniquedesignchallengesinautomotive,communications,computing,consumer,industrial,LEDlighting,medical,military/aerospaceandpowersupplyapplications.ONSemiconductoroperatesaresponsive,reliable,world-classsupplychainandqualityprogram,andanetworkofmanufacturingfacilities,salesofficesanddesigncentersinkeymarketsthroughoutNorthAmerica,Europe,andtheAsiaPacificregions.ComponentDatasheetMMBT3904LT1GDatasheetFAQWhatisMMBT3904LT1G?TheMMBT3904LT1GisaNPNsiliconBipolarTransistor,designedforuseinlinear,lowerpowersurfacemountandswitchingapplications.Whatisatransistor?Atransistorisasemiconductordeviceusedtoamplifyorswitchelectronicsignalsandelectricalpower.Itiscomposedofsemiconductormaterialusuallywithatleastthreeterminalsforconnectiontoanexternalcircuit.WhatisPNPtransistor?APNPtransistorisabipolarjunctiontransistorconstructedbysandwichinganN-typesemiconductorbetweentwoP-typesemiconductors.APNPtransistorhasthreeterminalsaCollector(C),Emitter(E)andBase(B).ThePNPtransistorbehavesliketwoPNjunctionsdiodesconnectedbacktoback.Whatdoesatransistordo?Atransistor,alsoknownasaBJT(BipolarJunctionTransistor),isacurrentdrivensemiconductordevicewhichcanbeusedtocontroltheflowofelectriccurrentinwhichasmallamountofcurrentintheBaseleadcontrolsalargercurrentbetweentheCollectorandEmitter.Howmanytypesoftransistorarethere?Transistorsarebasicallyclassifiedintotwotypes;theyareBipolarJunctionTransistors(BJT)andFieldEffectTransistors(FET).TheBJTsareagainclassifiedintoNPNandPNPtransistors.TheFETtransistorsareclassifiedintoJFETandMOSFET.Whatistransistordiagram?DiagramAshowsanNPNtransistorwhichisoftenusedasatypeofswitch.Asmallcurrentorvoltageatthebaseallowsalargervoltagetoflowthroughtheothertwoleads(fromthecollectortotheemitter).ThecircuitshownindiagramBisbasedonanNPNtransistor.Whentheswitchispressedacurrentpassesthroughtheresistorintothebaseofthetransistor.Thetransistorthenallowscurrenttoflowfromthe+9voltstothe0vs,andthelampcomeson.Thetransistorhastoreceiveavoltageatitsbaseanduntilthishappensthelampdoesnotlight.Whatarethetwomainappilcationsoftransistor?Transistorsarecommonlyusedindigitalcircuitsaselectronicswitcheswhichcanbeeitherinanonoroffstate,bothforhigh-powerapplicationssuchasswitched-modepowersuppliesandforlow-powerapplicationssuchaslogicgates.

I.IntroductionL293DisamotorcontroldeviceproducedbyTexasInstruments.Thedevicehas4high-currenthalf-Hdrivestructures.Thisstructurecanprovideupto600mAofcurrentatavoltageof4.5Vto36V.Thisdeviceismainlyusedtodriveinductiveloads,suchasrelays,solenoids,DCorbipolarsteppermotors.CatalogI.IntroductionII.L293DFeaturesIII.L293DPinoutConfigurationIV.CircuitDesign4.1IntroductiontoMobileNurseRobot4.2PeripheralCircuitDesignofMotorDriveDevice4.3NurseRobotCircuitDesign4.4MicrocontrollerandItsPeripheralCircuitDesign4.5TheDesignofPowerSupplyanditsDeviceSelection4.6HardwareConnectionDiagramandSoftwareDesignV.ConclusionFAQOrdering&QuantityII.L293DFeaturesWideSupply-VoltageRange:4.5Vto36VSeparateInput-LogicSupplyInternalESDProtectionHigh-Noise-ImmunityInputsOutputCurrent1APerChannel(600mAforL293D)PeakOutputCurrent2APerChannel(1.2AforL293D)OutputClampDiodesforInductiveTransientSuppression(L293D)III.L293DPinoutConfigurationThepinarrangementofL293DisshowninFigure1.Pins1A,2A,3A,and4Aarecontrolsignalinputterminals,whichareusedtocontroltheworkingstateofthemotor.Thepins1Y,2Y,3Y,and4Yaremotorcontroloutputterminals,whichareusedtodirectlycontroltheactionsofthemotor.Figure1L293DpinoutAllinputsofthedeviceareTTLcompatible,anditsoutputadoptsatotempoledrivecircuitcomposedofaDarlingtontransistorreceiverandapseudoDarlingtonsource.Themotordriveenableiscontrolledbypins1and2ENtocontrolmotor1,andpins3and4ENtocontrolmotor2.WhentheENpinissettohighlevel,themotorcorrespondingtoitisintheenabledstate,therebyactivatingthemotorcontroloutput.TheVCC1portisolatedfromtheVCC2portcanprovidelogicinputstoreducepowerconsumption.L293Dcanworkintherangeof0℃~70℃.IV.CircuitDesign4.1IntroductiontoMobileNurseRobotThemainpurposeofthemobilenurserobotistotreatpatientswithmedicalstaff,trytoavoidcontactwithgerms,reducegerminfection,reducemedicalstaffsconcerns,andreplacemedicalstafftodosomesimpletasks.Inotherindustries,therobotcanalsodosimpletasksforpeople,savelabor,andimprovesocialworkefficiency.Themobilenurserobotisvoice-controlled,andcanautomaticallynavigateaccordingtothevirtualtrack,andautomaticallydetectmetalduringthenavigationprocess,sothattherobotcanstopatapredeterminedpositionandpromptthepatientthattheitemsneededhavebeendelivered.Therefore,themobilenurserobothasthefollowingcharacteristics:Voicecontrolfunction.Themaincontroldeviceoftherobotisintegratedwithavoicerecognitionmodule,whichreceivesvoicecontrolfromaspecificperson,andtherobotperformsdifferentoperationsaccordingtodifferentcommands;Virtualtracknavigationfunction.Therobotreadsthedataaccordingtotheinfraredsensorinstalledonthemainbody,judgeswhetheritdeviatesfromthepredeterminedtrack,andcorrectsittorealizethefunctionofvirtualtracknavigation;Fixed-pointpositioningfunction.Thetailoftherobotdetectsmetalaccordingtothemetalsensor,andperformscorrespondingstopandforwardoperations,soastoachievethefunctionofpositioningtherobotatapredeterminedpoint;Voiceplaybackfunction.Thepre-inputvoiceisplayedoutatthefixedpointtoplaythevoicepromptfunction.4.2PeripheralCircuitDesignofMotorDriveDeviceTheexternalcircuitmustbeconnectedtoahigh-speedoutputclampdiodefortransientsuppression,asshowninFigure2,justusetheordinaryIN4001.Whentheinputenableislow,themotorcontroloutputofthedeviceisshielded.Atthistime,themotorcontroloutputofthedeviceisclosedandinahighimpedancestate.Whenthecontrolsignalisinputtotheinputterminalofthedevice,allHreversibledrivecontrolsolenoidormotorapplicationcircuit.Figure2LEDexternalcircuitdiagram4.3NurseRobotCircuitDesignThemaincontrolcircuitboardofthenursemobilerobotperformsthefollowingfunctions:ItcandirectlydrivetheDCmotorofthemobilenurserobottocontrolitsactions;ItcanprovidecorrespondingpowertotheDCmotor,sensor,single-chipandswitchontherobot;Itcanreceiveremotecontrolsignals.4.4MicrocontrollerandItsPeripheralCircuitDesignWhenselectingthesingle-chipmicrocomputer,therelevantmaterialsoftheobstacleavoidancemobilerobotwereconsulted.Takingintoaccountthedesignrequirementsofthenursemobilerobot,thecost-effectiveandpowerfulSunplusMicrocontrollerSPCE061Awasadopted.Theperipheralcircuitofthesingle-chipmicrocomputerinthisdesignmainlyreferstotheSPCE061Asimplifiedboardcircuit.4.5TheDesignofPowerSupplyandItsDeviceSelectionTheintegrationofthepowersupplypartmainlyusesthethree-terminalintegratedvoltagestabilizer7805.Theoutputofthe78seriesispositivevoltage,andtheoutputpowerisdifferentaccordingtothedifferentmodels.Theoutputcurrentof78Lseriescanreach0.1A;theoutputcurrentof78Mseriescanreach0.5A.Takingintoaccounttheactualpowerconsumptionofthemicrocontroller,a78M05isselectedtoconvertthe12VDCvoltageintoa5VDCvoltage.SunplussSPY0029canefficientlyconvertDC5VtoDC3.3V.Aftertesting,itisfoundthattheoutputDCrippleissmall,whichcanreliablyensuretheCPUs3.3Vpowersupply.Whentheinputvoltagefluctuatesto7V,thehigh-quality3.3VDCoutputcanstillbeguaranteed.TheintegratedpowersupplycanprovidethemaincontrolcircuitboardwithDC12V,DC5VandDC3.3Vthreepowersources,respectively,tosupplypowertotheDCmotor,sensor,andCPUofthemaincontrolboardtomeetthedesignrequirements.4.6HardwareConnectionDiagramandSoftwareDesignUseSPCE061Atocontroltherobot,useIOB3~IOB6andIOA0~IOA11ports,aswellasspeakerinfraredsensor,metalsensor,triggerswitch,remotecontrolmodule,etc.Figure3showsthecircuitconnectionofthemaincontrolboardofthenursemobilerobot.Figure4showsthedesignflowchartofthemaincontrolsoftwareofthenursemobilerobot.Themaincontrolboardismainlyusedtoreceivecontrolsignals(thenursemobilerobotsensitivelyreceivesthecontrolsignalssentbythepart)andperformcorrespondingoperations.Theactionsofforward,turnleft,andturnrightarerelativelysimpleandwillnotbedescribedindetailhere.Figure3BlockdiagramofmaincontrolboardcircuitconnectionFigure4FlowchartofthesoftwaredesignofthemaincontrolboardoftherobotThevirtualtracknavigationpartinvolvesthereadingandjudgmentofsensorsignalsandthecompletionofthenavigationprocess,whicharethecoreofthisdesign.ThefollowingistheinterfaceprogramcodeoftheMCUtocontrolthemotorthroughtheL293D:V.ConclusionThemobilenurserobotcombinesmechanicaltechnology,electroniccircuitdesignandsoftwaredesign,andexpandspartofthedrivecircuitoftheDCmotoronthebasisofthesingle-chipSPCE061A.Inpracticalapplications,thecombinationofL293Dandsingle-chipmicrocomputerhasgoodcontroleffectandhighsensitivityonDCmotors,andcancompletevirtualtracknavigation。FAQWhatisl293d?L293DICisadualH-bridgemotordriverIC.OneH-bridgeiscapabletodriveadcmotorinbidirectional.L293DICisacurrentenhancingICastheoutputfromthesensorisnotabletodrivemotorsitselfsoL293Disusedforthispurpose.Whichisbetterl293dvsl298n?L293DDriversOperatesat4.5Vto36VwhereasL298NcanbeOperatesatupto46V.Maximum600mACurrentcanbedrawnthroughbothchannelsofL293DwhereasL298NMotorDrivercandrawupto2Afrombothchannels.WhatistheuseofEnablepininl293d?L293DhasanenablefacilitywhichhelpsyouenabletheICoutputpins.Ifanenablepinissettologichigh,thenstateoftheinputsmatchthestateoftheoutputs.Ifyoupullthislow,thentheoutputswillbeturnedoffregardlessoftheinputstates.HowmanyDCmotorscanbecontrolledbyanICl293d?TheL293Disa16-pinMotorDriverICwhichcancontroluptotwoDCmotorssimultaneously,inanydirection.HowdoIconnectmyArduinotol293d?Connect5VtoEnable1,Vss,andVsontheL293D.Connectdigitaloutputpins(wereusing6and7)toinput1andinput2ontheL293D.ConnectyourArduinosGNDtobothGNDpinsonthesamesideoftheL293D.Finally,connectoutput1andoutput2oftheL293Dtoyourmotorpins.WhatisHbridgeinl293d?H-BridgeCircuit.AHbridgeisanelectroniccircuitthatallowsavoltagetobeappliedacrossaloadinanydirection.H-bridgecircuitsarefrequentlyusedinroboticsandmanyotherapplicationstoallowDCmotorstorunforwardbackward.WhatisthefunctionofHbridge?AnH-bridgeisanelectroniccircuitthatswitchesthepolarityofavoltageappliedtoaload.ThesecircuitsareoftenusedinroboticsandotherapplicationstoallowDCmotorstorunforwardsorbackwards.Whatisl293dmotordrivershield?L293DshieldisadriverboardbasedonL293IC,whichcandrive4DCmotorsand2stepperorServomotorsatthesametime.Eachchannelofthismodulehasthemaximumcurrentof1.2Aanddoesntworkifthevoltageismorethan25vorlessthan4.5v.HowdoIusethel293dmotordrivermodule?Connect5VtoEnable1,Vss,andVsontheL293D.Connectdigitaloutputpins(wereusing6and7)toinput1andinput2ontheL293D.ConnectyourArduinosGNDtobothGNDpinsonthesamesideoftheL293D.Whatisthedifferencebetweenl293dandl298n?L293isquadruplehalf-HdriverwhileL298isdualfull-Hdriver,i.e,inL293allfourinput-outputlinesareindependentwhileinL298,ahalfHdrivercannotbeusedindependently,onlyfullHdriverhastobeused....Hence,heatsinkisprovidedinL298.

VS-UFB280FA40-VISHAY

DescriptionUC3842isacurrentcontrolpulsewidthmodulationchipwithexcellentperformance.UC3842modulatorsingle-endedoutputcandirectlydriveabipolarpowertubeorfield-effecttube.CatalogUC3842BDocumentsandMediaUC3842BAdvantagesUC3842BFeaturesUC3842BSimplifiedBlockDiagramUC3842BPinoutUC3842BPackageInformationUC3842BBlockDiagramUC3953BTimingDiagramUC3953BPackagesUC3842BCircuitProductManufacturerOrdering&QuantityUC3842BDocumentsandMediaPCNAssembly/OriginPDIP-8AssemblyRevised03/Sep/2013DatasheetsUC384(2,3)B,UC284(2,3)BHTMLDatasheetUC384(2,3)B,UC284(2,3)BEnvironmentalInformationMaterialDeclarationUC3842BNGEDA/CADModelsDownloadfromUltraLibrarianOnlineCatalogMulti-TopologyUC3842BAdvantagesTheUC3842B,UC3843Bseriesarehighperformancefixedfrequencycurrentmodecontrollers.TheyarespecificallydesignedforOffLineandDCDCconverterapplicationsofferingthedesigneracosteffectivesolutionwithminimalexternalcomponents.Theseintegratedcircuitsfeatureatrimmedoscillatorforprecisedutycyclecontrol,atemperaturecompensatedreference,highgainerroramplifier,currentsensingcomparator,andahighcurrenttotempoleoutputideallysuitedfordrivingapowerMOSFET.Alsoincludedareprotectivefeaturesconsistingofinputandreferenceundervoltagelockoutseachwithhysteresis,cyclebycyclecurrentlimiting,programmableoutputdeadtime,andalatchforsinglepulsemetering.Thesedevicesareavailableinan8pindualinlineandsurfacemount(SOIC8)plasticpackageaswellasthe14pinplasticsurfacemount(SOIC14).TheSOIC14packagehasseparatepowerandgroundpinsforthetotempoleoutputstage.TheUCX842BhasUVLOthresholdsof16V(on)and10V(off),ideallysuitedforofflineconverters.TheUCX843BistailoredforlowervoltageapplicationshavingUVLOthresholdsof8.5V(on)and7.6V(off).UC3842BFeaturesTrimmedOscillatorforPreciseFrequencyControlOscillatorFrequencyGuaranteedat250kHzCurrentModeOperationto500kHzAutomaticFeedForwardCompensationLatchingPWMforCycleByCycleCurrentLimitingInternallyTrimmedReferencewithUndervoltageLockoutHighCurrentTotemPoleOutputUndervoltageLockoutwithHysteresisLowStartupandOperatingCurrentThisisaPbFreeandHalideFreeDeviceUC3842BSimplifiedBlockDiagramUC3842BPinout8Pin14PinFunctionDescription11CompensationThispinistheErrorAmplifieroutputandismadeavailableforloopcompensation.23VoltageFeedbackThisistheinvertinginputoftheErrorAmplifier.Itisnormallyconnectedtotheswitchingpowersupplyoutputthrougharesistordivider.35CurrentSenseAvoltageproportionaltoinductorcurrentisconnectedtothisinput.ThePWMusesthisinformationtoterminatetheoutputswitchconduction.47RT/CTTheOscillatorfrequencyandmaximumOutputdutycycleareprogrammedbyconnectingresistorRTtoVrefandcapacitorCTtoground.Operationto500kHzispossible.5GNDThispinisthecombinedcontrolcircuitryandpowerground.610OutputThisoutputdirectlydrivesthegateofapowerMOSFET.Peakcurrentsupto1.0Aaresourcedandsunkbythispin.712VCCThispinisthepositivesupplyofthecontrolIC.814VrefThisisthereferenceoutput.ItprovideschargingcurrentforcapacitorCTthroughresistorRT8PowerGroundThispinisaseparatepowergroundreturnthatisconnectedbacktothepowersource.Itisusedtoreducetheeffectsofswitchingtransientnoiseonthecontrolcircuitry.11VCTheOutputhighstate(VOH)issetbythevoltageappliedtothispin.Withaseparatepowersourceconnection,itcanreducetheeffectsofswitchingtransientnoiseonthecontrolcircuitry.9GNDThispinisthecontrolcircuitrygroundreturnandisconnectedbacktothepowersourceground.2,4,6,13NCNoconnection.Thesepinsarenotinternallyconnected.UC3842BPackageInformationDocumentTitleDocumentID/SizeRevisionRevisionDate8LEADPDIP626-05(51kB)POct,2019SOIC-14NB751A-03(49kB)LOct,2019SOIC-8NarrowBody751-07(53kB)AKOct,2019UC3842BBlockDiagramUC3953BTimingDiagramUC3953BPackagesUC3842BCircuitOscillatorConfigurationExternalClockSynchronizationExternalDutyCycleClampandMulti-UnitSynchronizationAdjustableReductionofClampLevelSoft-StartCircuitAdjustableBufferedReductionofClampLevelwithSoft-StartCurrentSensingPowerMOSFETCurrentWaveformSpikeSuppressionMOSFETParasiticOscillationsBipolarTransistorDriveIsolatedMOSFETDriveLatchedShutdownErrorAmplifierCompensationSlopCompensation27WOff-LineFlybackRegulatorProductManufacturerONSemiconductor(Nasdaq:ON)isdrivingenergyefficientinnovations,empoweringcustomerstoreduceglobalenergyuse.Thecompanyoffersacomprehensiveportfolioofenergyefficientpowerandsignalmanagement,logic,discreteandcustomsolutionstohelpdesignengineerssolvetheiruniquedesignchallengesinautomotive,communications,computing,consumer,industrial,LEDlighting,medical,military/aerospaceandpowersupplyapplications.ONSemiconductoroperatesaresponsive,reliable,world-classsupplychainandqualityprogram,andanetworkofmanufacturingfacilities,salesofficesanddesigncentersinkeymarketsthroughoutNorthAmerica,Europe,andtheAsiaPacificregions.IDescriptionThisblogintroducesasimplemethodtodrivesteppermotorsusingL297andL298chips.Thesteppingmotordrivesystemdesignedbythismethodhasthefollowingcharacteristics:simplehardwarestructure,easysoftwareprogrammingandlowprice.IDescriptionIIIntroductionIIIL297andL298Hardwarecircuit3.1L297Overview3.2L298Overview3.3L297andL298CircuitIVSoftwaredesignFAQOrdering&QuantityIIIntroductionSteppermotorisoneofthecommonlyusedembeddedmotioncontrolequipmentinindustrialcontrol.Thisisbecausesteppermotorscanmoveatdiscretesteps,provideaccurateangularpositioninformation,andareeasiertocontrol.WiththeuseofL297andL298chipstogether,arelativelylowpricecanbeusedtoformasteppermotordrivecircuitwithgoodperformance.StandardsteppermotordriverusingL297andL298ICIIIL297andL298Hardwarecircuit3.1L297OverviewL297isasteppermotorcontroller.Itissuitableforthecontrolofbipolartwo-phasesteppermotorsorunipolarfour-phasesteppermotors.Therearethreedrivemodes:half-step,full-step,andwave.Theon-chipPWMchoppercircuitallowsswitchingcontrolofthewindingcurrent.Anotablefeatureofl297isthatonlyclock,direction,andmodeinputsignalsarerequired.Thephaserequiredbythesteppingmotorisgeneratedinsidethecircuit,whichgreatlyreducestheburdenontheCPU.L297hasthefollowingcharacteristics:Normal/wavedriveHalf/fullstepmodesClockwise/anticlockwisedirectionSwitchmodeloadcurrentregulationProgrammableloadcurrentFewexternalcomponentsResetinputhomeoutputEnableinput3.2L298OverviewL298isahigh-voltageandhigh-currentdualfull-bridgedriverwithtwoH-bridges.ItacceptsstandardTTLlogiclevelsignalsandcandrivesteppermotorswithavoltageof46Vand2.5Aperphaseorbelow.Eachbridgehasanenableinput,whichallowsorprohibitsthedevicetoworkwithoutbeingaffectedbytheinputsignal.Theemittersofthetwolow-endtransistorsofeachbridgeareconnectedtogetherandledoutforexternaldetectionresistance.Itsetsanadditionalpowerinputterminaltomakethelogicpartworkatlowvoltage.Figure1.L298internallogicdiagram(halfofthediagram)L298hasthefollowingcharacteristics:Operatingsupplyvoltageupto46vTotalDCcurrentupto4A25wratedpower2enablecontrolterminalstoenableordevicewithoutinputtingsignals.Abletodriveatwo-phasesteppermotor,four-phasesteppermotorortwoDCmotorsBuilt-instabilivolttube78M05canbeusedtoobtain5vfrompowersupply.(Mustbeusedwithanexternal5vlogicsupplywhendrivevoltageisgreaterthan12vtoprotectthechip)LowsaturationvoltageOvertemperatureprotectionLogical0inputvoltageupto1.5V(highnoiseimmunity)Operatingtemperature:-23Cto130CStorageTemperature:-40Cto150C3.3L297andL298CircuitL297andL298canbeusedtomakeatwo-phasebipolarsteppermotordrivecircuit.Itisdrivenbyaconstantcurrentmode,andthepeakcurrentofeachphasecanreach2A.L297isasteppermotorcontrollerthatisusedtogeneratetwo-phasebipolar.Drivesignal(A,B,C,D)andmotorcurrentsettings.L298isusedtodrivethepoweroutputofthesteppermotor.Itisdrivenbyadoublefullbridgemode.Duetothebipolardrive,themotorcoilisfullyutilizedtoenableintothemotorcanachievethebestdrive.WhentwopiecesofL297areusedtodrivethetwowindingsofasteppingmotorthroughL298,andtheVrefcorrespondingtoeachwindingischangedthroughtwoD/Aconverters,asteppingmotorsubdivisiondrivingcircuitisformed.TheprincipleofL297+L298drivewiringisshowninFigure2.PortsP0~P4arerespectivelyconnectedtothecorrespondingcontrolterminalsofL297.Then,throughthereasonablearrangementofthesoftware,thepurposeofcontrollingthemotortorotateintheexpecteddirectionisachieved.Figure2.ElectricalschematicdiagramInaddition,theterminal1ofL297isthesynchronousterminal,whichcanbeconnectedtotheterminal1ofanothergroupofL297andL298drivecircuits.Inthisway,thetwosetsofdriverscanbesynchronizedtoachievetheeffectofdrivingmultiplemotorsatthesametime.IVSoftwaredesignUseClanguagetowriteprogramcode:P0_0=1;//CWP0_1~1;//HALFP0_3=1;//ENABLEP0_2=1;//RESETP0_7=1;//CLOCKTMODone0X01;//TlTH0=(a4000/256);TL0=one(4000%256);TR0=1;for(;;){TH0=one(4000/256);TL0=one(4000%256);do{}while(!TF0);P0_7=!P0_7;//CLOCKTF0=0;}Thespeedofthemotorspeedcanbecontrolledbythetimer.Figure3.WaveformdiagramgeneratedbyL297AccordingtothewaveformgeneratedbyL297,infact,whentheCPUportresourcesarenottight,theCPUcanbeusedtosimulateoutput.Theabovehardwarecircuitsandsoftwareprogramshavebeentestedandarecompletelypractical.FAQWhatisl298n?ThisL298NMotorDriverModuleisahighpowermotordrivermodulefordrivingDCandStepperMotors.ThismoduleconsistsofanL298motordriverICanda78M055Vregulator.L298NModulecancontrolupto4DCmotors,or2DCmotorswithdirectionalandspeedcontrol.WhatisL297?TheL297integratesallthecontrolcircuitryrequiredtocontrolbipolarandunipolarsteppermotors.UsedwithadualbridgedriversuchastheL298Nformsacompletemicroprocessor-to-bipolarsteppermotorinterface.Howdoesl298ncontrolDCmotorspeed?1.IfyousendaHIGHsignaltotheenable1pin,motorAisreadytobecontrolledandatthemaximumspeed;2.IfyousendaLOWsignaltotheenable1pin,motorAturnsoff;3.IfyousendaPWMsignal,youcancontrolthespeedofthemotor.Themotorspeedisproportionaltothedutycycle.Whatisl298nmotordrivermodule?ThisL298NMotorDriverModuleisahighpowermotordrivermodulefordrivingDCandStepperMotors.ThismoduleconsistsofanL298motordriverICanda78M055Vregulator.L298NModulecancontrolupto4DCmotors,or2DCmotorswithdirectionalandspeedcontrol.Howdoesl298nmotordriverwork?TheL298NisadualH-BridgemotordriverwhichallowsspeedanddirectioncontroloftwoDCmotorsatthesametime.ThemodulecandriveDCmotorsthathavevoltagesbetween5and35V,withapeakcurrentupto2A.Howdoiuseal298motordriverwithArduino?Startbyconnectingpowersupplytothemotors.InourexperimentweareusingDCGearboxMotors(alsoknownasTTmotors)thatareusuallyfoundintwo-wheel-driverobots.Theyareratedfor3to12V.So,wewillconnectexternal12VpowersupplytotheVCCterminal.WhatisthefunctionofHbridge?AnH-bridgeisanelectroniccircuitthatswitchesthepolarityofavoltageappliedtoaload.ThesecircuitsareoftenusedinroboticsandotherapplicationstoallowDCmotorstorunforwardsorbackwards.Whatistheuseofl298n?TheL298NisadualH-BridgemotordriverwhichallowsspeedanddirectioncontroloftwoDCmotorsatthesametime.ThemodulecandriveDCmotorsthathavevoltagesbetween5and35V,withapeakcurrentupto2A.I.IntroductiontoGalvanometerThegalvanometerisanimportanttestinginstrument.Itisahigh-sensitivitymechanicalindicatingmeterfordetectingweakelectricity.Itisusedasazero-pointinginstrumentinbridgesandpotentiometers.Itcanalsobeusedtomeasureweakcurrents,voltagesandcharges..Accordingtotheinputmode,itcanbedividedintovoltagetypeandcurrenttype.Generally,voltagetypeismorecommonlyused.Fromthepaneldisplaymodeofthegalvanometer,itcanbedividedintothreetypes:pointertype,digitaltype,andmixedtype.Figure1ThegalvanometerThepointergalvanometercanconvenientlyobservethecontinuouslychangingcurrent,andintuitivelyjudgethedirectionofthecurrentfromthedeflectiondirection,soithasitsuniqueadvantagesinthebridgeexperiment.Thepointergalvanometerscurrentlyusedinphysicalexperimentshavethefollowingshortcomings:(1)Use9Vlaminatedbatterywithsmallcapacity,shortbatterylifeandhighcost;(2)ItsinternalamplifyingcircuitadoptsOP07orICL7650design,withoutpowermanagementcapability,itiseasytocausethebatterytobeconsumedunnecessarily;(3)Duetotheuseofmanydiscretecomponents,theamplifierispronetodriftandunstable.Thispaperusesagalvanometerdesignedbasedonthethree-op-amphighcommon-moderejectionratioandhighstabilityinstrumentationamplifierAD620andMicrochips6-pinMCUPIC10F206tosolvetheaboveproblems.CatalogI.IntroductiontoGalvanometerII.HardwareSystemDesign2.1HardwareSystemBlockDiagram2.2InstrumentationAmplifierAD6202.3MicrocontrollerPIC10F2062.4AmplifyingCircuitofGalvanometer2.5PowerMonitoringandPowerManagementCircuitofGalvanometerIII.SoftwareSystemIV.ConclusionFAQOrdering&QuantityII.HardwareSystemDesign2.1HardwareSystemBlockDiagramTheblockdiagramofthehardwaresystemisshowninFigure2.TheDCvoltagesignalfirstpassesthroughananti-radiofrequencyinterferencelow-passfiltercircuit,weakenstheinterferencesignal,andthensendsittotheinstrumentationamplifierAD620fordifferentialamplification,andthendrivesthepointermetertodisplay.The6-pinmicrocontrollerPIC10F206isresponsibleforthepowermonitoringandpowermanagementofthegalvanometer.Thewholegalvanometeronlyuses3VDCpowersupplyconnectedinserieswithtwoAAbatteries.Figure2Thehardwaresystemblockdiagramofthegalvanomete2.2InstrumentationAmplifierAD620AD620isalow-costandhigh-precisioninstrumentationamplifierlaunchedbytheAmericanADIcompany.Ithasthecharacteristicsofhighaccuracy,lowoffsetvoltage(maximum50uV)andlowoffsetdrift(maximum0.6uV℃/),anditsmaximumoperatingcurrentisonly1.3mA,onlyanexternalresistorisneededtosetthegain,andthegainrangeis1to10000.Inaddition,AD620adopts8-pinSOICandDIPpackage,thesizeissmallerthanthediscretecircuitdesign,andthepowerconsumptionislower,soitissuitableforbattery-poweredinstrumentapplications.Figure3AD620BecauseitsinputstageusesSuperetaprocessing,itcanachievealowinputbiascurrentofupto1.0nA.AD620hasalowinputvoltagenoiseof9nV/Hzat1kHz,apeak-to-peaknoiseof0.28Vinthefrequencybandfrom0.1Hzto10Hz,andaninputcurrentnoiseof0.1pA/Hz,soitcanbeusedasapreamplifierwell.Atthesametime,the0.01%settlingtimeofAD620is15s,whichisverysuitableformultiplexingapplications;andthecostisverylow,enoughtorealizethedesignofaninstrumentationamplifierperchannel.2.3MicrocontrollerPIC10F206PIC10F206isalow-cost,6-pin8-bitflashmicrocontrollerintroducedbytheUSMicrochipcompanythatusesRISCarchitecture.PIC10F206has512wordsofFLASH,24bytesofSRAM,watchdogtimer(WDT),power-onresetcircuit(POR)anddeviceresettimer(DRT)and4MHzinternaloscillator,thuseliminatingtheneedforexternalresetcircuitandthecrystaloscillator,reducessystemcostandpowerconsumption,andenhancessystemreliability.Italsohasawideoperatingvoltagerange(20Vto5.5V).Theabovecharacteristicsmakeitsuitableforapplicationsinprice-sensitiveandbattery-poweredareas.Figure4PIC10F2062.4AmplifyingCircuitofGalvanometerTheamplifyingcircuitofgalvanometertakestheinstrumentamplifierAD620asthecoreelement,asshowninFigure5.ThedifferentialsignaloutputbytheDCbridgeisinputfromthesocketJ1,passesthroughtheanti-radiofrequencyinterferencelow-passfiltercircuit[2]formedbyR1,R2,C1,C2,C3,andreachestheinstrumentationamplifierAD620afterweakeningtheinterferencesignal.D1,D2andR1,R2togetherformtheinputprotectioncircuitofthegalvanometer,whichcanwithstandinputvoltagesoftensofvolts.R3,R4providealoopfortheinputbiascurrentofAD620[1]toensurethatitcanworkstablyandreliably.TheresistanceR0andpotentiometerRP1betweenpin1andpin8ofAD620aregainadjustmentresistors,denotedasRG.R0isconnectedinserieswithRP1tolimittheupperlimitofthemagnificationto495times.ThepotentiometerRP2andR5,R6formthezeroadjustmentcircuitofthegalvanometertogether,realizezeroadjustmentbychangingthevoltageoftheREFpinofAD620.R7andC7formtheoutputlow-passfilterofAD620.R7,D3,D4constitutetheprotectioncircuitofthepointermeterhead.Figure5TheamplifyingcircuitofgalvanometerThemaximumsensitivityofagalvanometerisusually10uV/degreeto15uV/degree,whichcanwellmeettherequirementsoftheexperiment.TheinternalresistanceRgofthegalvanometermeterheadis4.7k,thegainadjustmentresistanceRG=R0+RP1,takeR0=100,R7=1k,whenRP1is0,theamplificationfactorofAD620isTakingintoaccountthepartialpressureofR7andtheinternalresistanceRgofthemeter,themagnificationofthegalvanometerisThecurrentsensitivityofthemeterheadis1Aminute/degree,sothevoltagesensitivityofthemeterheadis4700Vminute/degree.ThesensitivityofthegalvanometerisS=4700/G=115V/divisionMeettherequirementsofphysicalexperiments.2.5PowerMonitoringandPowerManagementCircuitofGalvanometerFigure6isthepowermonitoringandpowermanagementcircuitofthegalvanometer.TheGP2pinofthemicrocontrollerPIC10F206isconnectedwiththeP-channelMOSFETtubeQ1,thepurposeistocontrolwhethertosupplypowertotheamplifyingcircuitofthegalvanometer.WhenGP2outputislowlevel,Q1isturnedon,andthesystemsuppliespowertotheamplifiercircuit.TheroleofICL7660inpowerconversionhereistoconvert+VSto-VS.R8,R9andtheanalogcomparatorinsidePIC10F206togetherformthepowersupplyvoltagemonitoringcircuit.ThenegativeinputterminalCINoftheanalogcomparatorisconnectedtotheinternalreferencevoltageofthesingle-chipmicrocomputer(thenominalvalueofthevoltageis06V),andthepositiveinputterminalCIN+isconnectedwiththepartialpressureofR8andR9.BecausethelowestoperatingvoltageofAD620is23V,fromaconservativepointofview,thelowerlimitoftheoperatingvoltageissetto2.5V.Whenthepositivepowersupplyvoltageislessthan2.5V,thevoltageofCIN+islessthan0.6V,andthecomparatoroutputisreversed.Afterthemirocontrollerdetectsthisevent,theGP2outputshighlevel,turnsoffthepowersupplyoftheamplifiercircuit,andthenexecutestheSLEEPinstructiontomakethemicrocontrollerentersleepstatus.Figure6PowermonitoringandpowermanagementcircuitofgalvanometerInordertosavepowerconsumption,whentheworkingvoltageisnormal,thegalvanometershouldenterthesleepstate(iesoftshutdown)afterworkingforaperiodoftime,anditcanbeawakenedatanytimewhenitneedstowork.ButtonS1issetforthisfunction.Theworkingtimeofthegalvanometerispresetto15minutes.Whentheworkingtimeisup,theGP2ofthesingle-chipmicrocomputeroutputsahighlevel,shutsoffthepowersupplyoftheamplifyingcircuit,andthenexecutestheSLEEPinstructiontomakethemicrocontrollerenterssleepstate.Inthesleepstate,ifS1ispressed,thepinlevelofGP3willchange.Thiseventwillresetthemicrocontroller(note:PIC10F206hasnoconventionalinterruptfunction)andwakeupthemicrocontroller.Inthesleepstate,thecurrentconsumptionofthegalvanometerislessthan0.1A,whichisverypower-saving,sothereisnoneedtoworryaboutforgettingtoturnoffthepowersupplyofthegalvanometerandconsumingthebattery.III.SoftwareSystemWhenthegalvanometerispoweredon,themicrocontrollerfirstperformssysteminitialization,thensuppliespowertoICL7660andAD620,andthenturnsontheanalogcomparatortocheckwhetherthesupplyvoltageisappropriate.Ifthevoltageisappropriate,continuetosupplypowertotheamplifiercircuit,andthenexecutea15-minutecountdown.IfS1ispressedduringthisperiod,thetimingtimeisresetto15minutes.Whenthe15-minutecountdownisup,thesingle-chipmicrocomputerturnsoffthepowersupplyoftheamplifiercircuit,andthenentersthesleepstate(ie,softshutdown).TheflowchartoftheprocedureisshownasinFig.7.Figure7FlowchartoftheprocedureIV.ConclusionThisarticlediscussesthegalvanometerbasedoninstrumentationamplifierAD620andmicrocontrollerPIC10F206,whichhasstableperformanceandlowpowerconsumption.Thecurrentisabout4mAduringnormaloperation,andthecurrentconsumedinsleepmodeislessthan0.1uA,whichisverysuitableforbatterypowersupply.TheuseoftwoAAbatteriesforpowersupplysavesbatterycost.Thesoftshutdownfunctioncaneffectivelypreventbatteryconsumptioncausedbyforgettingtoturnoffthepower.FAQWhatisAD620?AD620isalow-cost,high-precisioninstrumentationamplifier.Itonlyrequiresanexternalresistortosetthegain.Thegainrangeis1to10,000.CanIchangeAD620toAD623whenmakingMCUproducts?BothAD620andAD623aresingleinstrumentationamplifiers,andthepinarrangementisexactlythesame.Themaindifferenceis:AD620mustusepositiveandnegativepowersupplies,AD623canbeapositiveandnegativepowersupplyorasinglepowersupply.IftheoriginalboardisAD620,youcanreplaceitwith623;iftheoriginalboardisAD623,youmaynotbeabletoreplaceitwith620(itdependsonwhetherthepowersupplyoftheoriginalboardcircuitisdualpowersupplyorsinglepowersupply).AfterreplacingAD620andAD623insingle-chipproducts,theprogramcanworknormallywithoutmodification.WhatisthedifferencebetweenAD620BRandAD620AN?Theirpackagesaredifferent.WhatistheoutputresistanceofAD620?Howtoadjustit?AD620isakindoflowpowerconsumptioninstrumentamplifier,itsoutputresistanceisabout10K,thisistheinherentcharacteristicofthischip,generallyitisdifficulttoadjust.Ifyouhaverequirementsforoutputresistance,youcangenerallyuseanexternalcircuittosolveit.IsAD620apositivephaseamplificationorareversephaseamplification?AD620isaninstrumentamplifier,theoutputvoltageis[(Vin+)-(Vin-)]*gain.Ifthedesiredsignalis(Vin+)-(Vin-),thegainispositive,whichisequivalenttopositiveamplification.Conversely,ifthedesiredsignalis(Vin-)-(Vin+),thegainisequivalenttonegative,whichisequivalenttoreverseamplification.Whatisaninstrumentationamplifier?Instrumentationamplifier,animprovementofthedifferentialamplifier,hasaninputbuffer,doesnotrequireinputimpedancematching,sothattheamplifierissuitableformeasurementandelectronicinstruments

VS-UFB280FA40-VISHAY

IDescriptionTheperformanceandstructureofthesteppermotordriverchipL297/L298areanalyzed.Atthesametime,combinedwiththeAT89C52single-chipmicrocomputer,asimplemethodofdrivingasteppermotorisintroduced.Thisbloggivesthecontrolschematicdiagram.Theactualmeasurementshowsthatthesteppingmotordrivesystemdesignedbythismethodhasthecharacteristicsofsimplehardwarestructure,easysoftwareprogrammingandlowprice.CatalogIDescriptionIIIntroductionIIIWorkingprincipleVIHardwareVSoftwareCompositionVIConclusionOrdering&QuantityIIIntroductionWhatisasteppingmotor?Asteppingmotorisaprecisionactuatorthatconvertselectricalpulsesignalsintoangulardisplacementorlineardisplacement.Thesteppingmotorhasthecharacteristicsofconvenientcontrolandsmallsize.Therefore,itiswidelyusedinnumericalcontrolsystems,automaticproductionlines,automaticinstruments,plotters,andcomputerperipherals.L297andL298caneasilyformasteppingmotordriver,andcombinedwithAT89C52single-chipmicrocomputerforcontrol.Thatis,itispossibletoformasteppermotordrivecircuitwithgoodperformanceatarelativelycheapprice.IIIWorkingprincipleSinceasteppermotorisanactuatorthatconvertselectricalpulsesignalsintolinearorangulardisplacement,itcannotbedirectlyconnectedtoACandDCpowersupplies.Instead,aspecialdevice,asteppingmotor,mustbeusedtocontrolthedriver.AtypicalsteppingmotorcontrolsystemisshowninFigure1.Thecontrollercansendoutpulsesignalswhosepulsefrequencycanbecontinuouslychangedfromafewhertztotensofkilohertz.Itprovidesapulsetrainfortheringdistributor.Themainfunctionoftheringdistributoristodistributethepulsesequencefromthecontrollinkaccordingtoacertainrule.Thenitisamplifiedbythepoweramplifierandaddedtotheinputterminalsofthesteppingmotordrivepowersupplytodrivetherotationofthesteppingmotor.Therearetwomaincategoriesofringdistributors:Oneistousecomputersoftwaredesignmethodstoachievethefunctionsrequiredbytheringdivider,usuallycalledasoftringdivider.Theotherisaringdistributorcomposedofhardware.Usuallycalledahardringdistributor.Thepoweramplifiermainlyamplifiesthesmalleroutputsignaloftheringdistributortoachievethepurposeofdrivingthesteppermotor.Figure1.TypicalsteppermotorcontrolblockdiagramVIHardwarehesteppermotorcontrolledintheblogisafour-phaseunipolar35BY48HJ120decelerationsteppermotor.TheblockdiagramofthesteppermotorcontroldriverdesignedinthisblogisshowninFigure2.ItconsistsofAT89C52single-chipmicrocomputer,optocoupler,integratedchipsL297andL298.Figure2.BlockdiagramofsteppermotorcontroldriverThesteppermotorintroducedintheblogisafour-phaseunipolar35BY48HJ120decelerationsteppermotor.TheblockdiagramofthesteppermotorcontroldriverdesignedinthisarticleisshowninFigure2.ItiscomposedofAT89C52single-chipmicrocomputer,photoelectriccoupler,integratedchipsL297andL298.AT89C52isalow-voltage,high-performance8-bitCMOSmicrocontrollerfromATMELintheUnitedStates.Thechiphasabuilt-in8Kbytesofre-erasableFlashmemory,256bytesofRAM,three16-bittimers,andaprogrammableserialUARTchannel.Therefore,itissufficienttocompletethesimplecontrolofthesteppermotor.L297isasteppingmotorcontroller(includingringdistributor).L298isadoubleHbridgedriver.Theinterfaceofthemicroprocessortothedouble-bridgesteppingmotorcomposedofthemisshowninFigure3.Theadvantageofthiscombinationisthatitrequiresfewcomponents.Asaresult,theassemblycostislow,thereliabilityishigh,andthespaceissmall.Andthroughsoftwaredevelopment,theburdenofmicrocomputerscanbesimplifiedandreduced.Inaddition,L297andL298areindependentchips,sotheapplicationisveryflexible.TheL297chipisahardwareloopintegratedchipthatcangeneratefour-phasedrivesignalsforcomputer-controlledtwo-phasebipolarorfour-phaseunipolarsteppermotors.TheheartoftheL297isasetofdecodersthatcangeneratevariousrequiredphasesequences.Thispartiscontrolledbytwoinputmodes,directioncontrol(CW/CCW)andHALF/FULL,andsteppingclockCLOCK.Itadvancesthedecoderfromonesteptoanother.Thedecoderhasfouroutputpointsconnectedtotheoutputlogicsectiontoprovidethephasesequencerequiredbythesuppressionandchoppingfunctions.Therefore,L297cangeneratethree-phasesequencesignals,correspondingtothreedifferentworkingmodes:thehalf-stepmode(HALFSTEP).Basicstep(FULLSTEP,fullstep)one-phaseexcitationmethod.Basicsteptwo-phaseexcitationmethod.Insidethepulse,thedistributorisa3bitreversiblecounter,plussomecombinationallogictogenerate8stepsofGraycodetimingsignalpercycle.Thisisthetimingsignalofthehalf-stepworkingmode.Atthistime,theHALF/FULLsignalishigh.IfHALF/FULLissettoalowlevel,thebasicstepworkingmodeisobtained,thatis,thedoublefour-beatfull-stepworkingmode.Figure3.L297PictureAnotherimportantcomponentofL297isthetwoPWMchopperstocontrolthephasewindingcurrentstoachieveconstantcurrentchoppingcontroltoobtaingoodtorque-frequencycharacteristics.Eachchopperconsistsofacomparator,anRSflip-flopandanexternalsamplingresistor.Acommonoscillatorisalsoprovidedtoprovidetriggerpulsesignalstothetwochoppers.InFigure5,thefrequencyfisdeterminedbytheexternal16-pinRCnetwork.WhenR10k,f=1/0.69RC.Whentheclockoscillatorpulsesetsthetriggerto1,themotorwindingphasecurrentrises.WhenthevoltageonRsofthesamplingresistorrisestothereferencevoltageUref,thecomparatorflipstoresettheflip-flop,thepowertransistoristurnedoff,andthecurrentdrops,waitingforthearrivalofthenextoscillationpulse.Inthisway,theoutputofthetriggerisaconstantfrequencyPWMsignal,whichmodulatestheoutputsignalofL297,andthepeakvalueofthewindingphasecurrentisdeterminedbyUref.TheinputoftheCONTROLterminalofL297determinesthatthechopperactsonthephaselinesA,B,C,DorthesuppressionlinesINH1andINH2.WhenCONTROLishigh,ithascontroleffectonA,B,C,D;Whenitislowlevel,itcontrolsINH1andINH2,sothatthesteeringandtorqueofthemotorcanbecontrolled.TheL298chipisahigh-voltage,high-currentdualfull-bridgedriver.L298isdesignedtoacceptstandardTTLlogiclevelsignalsanddriveinductiveloads.Forexample,relays,cylindricalcoils,DCmotorsandsteppingmotors.Ithastwosuppressinputstomakethedeviceimmunetotheinputsignal.Theemittersofthetriodesofeachbridgeareconnectedtogether,andthecorrespondingexternalterminalscanbeusedtoconnectperipheralsensingresistors.Anotherinputpowersupplycanbeinstalledtoenablethelogictoworkunderlowvoltage.TheL298chipisanintegratedchipinamulti-wattin-linepackagewith15leads.Figure4.L298PictureInFigure5,AT89C52isconnectedtothemicrocomputerthroughtheserialportafterMAX232levelconversion,andacceptsinstructionsfromthehostcomputer.Thensendclocksignal,positiveandnegativesignal,resetsignalandenablecontrolsignaltoL297.Inthecircuit,resistorsR13andR15areusedtoadjustthereferencevoltageofthechoppercircuit.Thisvoltagewillbecomparedwiththemagnitudeofthepotentialfedbackthroughthepins13,14todeterminewhethertoperformchoppingcontrol.Inordertoachievethepurposeofcontrollingthepeakvalueofthemotorwindingcurrentandprotectingthesteppermotor.BecauseL297hasachoppingconstantcurrentcircuitinside,thepeakvalueofthewindingphasecurrentisdeterminedbyUref.WhentwopiecesofL297areusedtodrivethetwowindingsofthesteppingmotorthroughL298,andtheUrefofeachphasewindingischangedthroughtwoD/Aconverters,thesteppingmotorsubdivisiondrivingcircuitisformed.Inaddition,inordertoeffectivelysuppresselectromagneticinterferenceandimprovethereliabilityofthesystem,anisolationcircuitcomposedoftwo16-pinphotoelectriccouplingdevicesTLP521-4isusedinthesingle-chipandsteppingmotordrivecircuit.AsshowninFigure5.Figure5.SchematicdiagramofsteppermotorcontroldriverItsfunctionistocutoffthedirectelectricalconnectionbetweenthemicrocontrollerandthesteppingmotordrivecircuit.Inthisway,theseparateconnectionofthesingle-chipmicrocomputerandthedrivingcircuitsystemgroundisrealized,andtheinterferencesignalgeneratedbythedrivingcircuitworkingunderthehigh-currentinductiveloadandtheinterferencesignalgeneratedbythesuddenchangeofthegridloadisseriallyconnectedtothesingle-chipmicrocomputerthroughtheline,whichaffectsthenormaloperationofthesingle-chipmicrocomputer.VSoftwareCompositionInthiscircuit,setP1.0portasthemotorstartbutton.P1.1,P1.2,P1.3arespeedselectionbuttons,thespeedisfromlowtohigh.P1.4isthemotorstopbutton.Themaximumspeedofthethreespeedsis500pps,1000pps,and2000pps.RXD,TXDhavebeenconnectedtotheserialportbyMAX232levelconversion.Inaddition,thestartandstopfrequencyofasteppermotorislow,generallybetween100-250Hz.Themaximumoperatingfrequencyisrequiredtobehigher,usually1-3kHz.Inordertoensurethatitwillnotlosestepduringthewholeprocessofstarting,runningandstopping,butalsocanreachthetargetpositionaccuratelyassoonaspossible,therunningspeedmusthaveanacceleration-constantspeed-decelerationprocess.Here,thecommonlyuseddiscretemethodisusedtoapproximatetheidealtrapezoidalaccelerationanddecreasecurve,asshowninFigure5.Thatis,thetimerinterruptmodeisusedtocontinuouslychangethesizeofthetimerloadvalue.Inthisexample,fortheconvenienceofcalculation,theloadingvaluerequiredforthespeedofeachdiscretepointisconvertedintotherequiredtimingtimebytheformulaandsolidifiedintheROMofthesystem.Here,TH0=(65536-time)/256,TL0=(65536-time)%256isusedtocalculatetheloadingvalue,andtimerepresentsthetimingtimerequiredforeachstep.Thesystemusesthelook-uptablemethodtofindoutthetimerequiredduringoperation,therebygreatlyreducingthetimeoccupiedbytheCPUandimprovingthecorrespondingspeedofthesystem.Therefore,theprogramismainlycomposedofcontrolmainprogram,accelerationanddecelerationsubroutine,andthemainprogramblockdiagramisshowninFigure6.Figure6.MainblockdiagramVIConclusionTheinnovationofthisblogistoproposetheapplicationofsingle-chipmicrocomputerandL297,L298integratedcircuitstoformasteppermotorcontroldriver.Ithastheadvantagesoffewercomponents,highreliability,lessspace,andlowassemblycost.IDescriptionDoyouknowtheDCregulatedpowersupply?DCregulatedpowersupplyiswidelyusedinindustrialproductionanddailylife,anditsdesignoccupiesaveryimportantpositioninpowersupplytechnology.Therefore,basedontheanalysisoftheproblemsofthetraditionalDCstabilizedpowersupply,themethodandcalculationofeachpartofthe5V,1ADCstabilizedpowersupplybasedonL7805CTaredescribed.Besides,itcanalsoprovidea5VDCpowersupplyforcounters,decoders,anddigitaltubestorealizeadditionandsubtractioncounting.ThesystemcircuitbasedonL7805CTintroducedinthisblogissimple,stable,easytocontrol,cost-effective,andisofhighuse-value.CatalogIDescriptionIIIntroductionIIIDesignrequirementsforDCstabilizedpowersupplyIVHardwareunitcircuitdesign4.1Overallstructureofthepowersupply4.2ComponentselectionVApplicationVIConclusionFAQOrdering&QuantityIIIntroductionWiththecontinuousdevelopmentofelectronictechnology,thedesignrequirementsofelectronicequipmentforpowersupplyaregettinghigherandhigher,fromtraditionalrequirementstohigh-quality,high-efficiency,andhigh-stabilitytomeettheneedsofobjects.ThenormaloperationofelectronicdevicesrequiresDCpower.DCpowersourcesincludesolarbatteries,accumulators,anddrybatteries.Butdoyouknowwhichoneisthemostcost-effective?Ofcourse,themostcost-effectivemethodistoconverttheACpowerprovidedbythegridintotherequiredDCpower.Mostelectronicequipmentusesthismode,andthethree-terminalregulatoristhemostwidelyused.AlthoughpeopleusemanytypesofDCstabilizedpowersupplieswithdifferentfunctions,theprinciplesaresimilar.ThevoltageregulatorchipusedinthesystemintroducedinthisblogisL7805CT.L7805CThastheadvantagesofsmallsize,simpleexternalwiring,stableoperationandstrongapplicability.Itcanmeetpeoplesrequirementsinlife,study,andwork.IIIDesignrequirementsforDCstabilizedpowersupplyThedesignrequirementsoftheDCregulatedsingle-channelpowersupplybasedonL7805CTareasfollows:InputACvoltage220V;OutputDCvoltage+5V;OutputDCcurrent1A;Theoutputrippleofthecircuitislessthan50mV;Theequivalentinternalresistanceislessthan0.15;Ripplecoefficientislessthan0.002%;Voltageadjustmentrate0.001%;Voltagestabilizationcoefficient0.005%.IVHardwareunitcircuitdesign4.1OverallstructureofthepowersupplyThisdesignfocusesontheknowledgeandskillsinvolvedinthemainlinksoftheDCpowersupply,andcompletesthecircuitdesignandproductionof220VACinputand5V,1ADCoutput.TheDCpowersupplyisusuallycomposedoffourlinks:PowerTransformers;Rectifiercircuit;Filtercircuit;Regulatorcircuit.AsshowninFigure1.Figure1.BlockdiagramofDCpowersupply4.1.1PowertransformerThepowertransformerconvertsthehigh-voltageACmainspowerintotheappropriatevoltageACandsendsittothesingle-phasebridgerectifiercircuit.Whenchoosingapowertransformermodel,theparametersweneedtoconsiderarecapacityandoutputvoltage.4.1.2RectifiercircuitTherectifiercircuitusestheunidirectionalconductivityofthediodetocompletetherectification.Commonlyusedrectifiercircuitsareasfollows:single-phasehalf-waverectifiercircuit,single-phasefull-waverectifiercircuitandsingle-phasebridgerectifiercircuit.Throughcomparativeresearch,inordertoovercometheshortcomingsofhalf-waverectification,theL7805CT-basedsystemusesasingle-phasebridgerectifiercircuit.Itconsistsof4diodesVD1~VD4connectedintheformofabridge.Whetheritisapositivehalf-cycleoranegativehalf-cycle,thedirectionofthecurrentflowingtotheloadRListhesame.BothtransformtheACvoltageoutputbythesecondarywindingofthepowertransformerintoapulsatingDCvoltage.Thereversevoltagethateachdevicebearsisthepeakvalueofthepowersupplyvoltage,andsymmetricalcurrentflowsthroughthepositiveandnegativehalfcyclesofthetransformer,theutilizationrateishigherthanthatofthefull-waverectifiercircuit,andthecurrentrippleisreduced.Therefore,thereisnounidirectionalmagnetization.4.1.3FiltercircuitTherectifieddirectcurrentcontainsarelativelylargealternatingcurrentcomponent,andthepulsationcoefficientisrelativelylarge,soitcannotbedirectlyusedasthepowersupplyforelectroniccircuits.FiltercircuitsarecommonlyusedtoremoveorreducetheACcomponentintheoutputvoltage,sothatpureACpowerisusedonthedevice.Thisdesignusestheenergystoragecharacteristicsofcapacitorsandinductorstosetappropriateparameters.Whenthecircuitvoltagerises,theenergystorageelementstoresenergy.Whenthevoltagedrops,theenergystorageelementreleasesenergy,soastoachievethepurposeofreducingpulsation.Thecapacityofthecapacitorisrelatedtothedischargetime.Tomakethefilteringeffectbetter,acapacitorwithalargercapacitycanbeusedasthefiltercapacitor.ThefiltercapacitorisgenerallyselectedasRLC(3~5)T/2.4.1.4VoltagestabilizingcircuitTheDCvoltageobtainedaftertheACpowerisrectifiedandfilteredoftenfluctuateswiththefluctuationofthegridvoltage,temperaturechanges,andloadresistancechanges.Then,thequalityofpowersupplywillbereduced,affectingtheoperationoftheequipment.Therefore,avoltagestabilizingcircuitneedstobeaddedbetweenthefiltercircuitandtheloadlinktoachievethepurposeofstabilizingpowersupply.ThechipL7805CThasthecharacteristicsofgoodvoltageregulationperformance,highreliability,easyinstallationandlowcost.Therefore,thelinearstabilizedpowersupplyreplacesthediscretestabilizedcircuitandiswidelyused.Inordertoreducetheinterferenceandmakethevoltagestabilizingcircuitworknormally,theinputvoltageshouldbeatleast2.5~3Vhigherthantheoutputvoltage.4.2Componentselection4.2.1SelectionofpowertransformerConsideringthediodeforwardvoltagedrop,wireresistance,andpowergridfluctuations,theoutputvoltageUIofthethree-terminalintegratedregulatorshouldmeet:Where:Uomaxisthemaximumoutputofregulatedpowersupply;(UI-UO)ministheminimumvoltagedifferencebetweentheinputandoutputoftheintegratedregulator;UIisthechangeoftheinputvoltagecausedbythefluctuationofthepowergrid(generallytakenas10%ofthesumofUO,(UI-UO)min,andUIP).Fortheintegratedthree-terminalregulator,when(UI-UO)min=2~10V,ithasbettervoltageregulationcharacteristics.WhenU1=10VWhenU2=9VInasingle-phasebridgerectifiercircuit,therelationshipbetweenthetransformersecondarywindingcurrentI2andthecapacitorfilteroutputcurrentIIis:Insummary,chooseatransformerwithacapacityof15VAand9V.4.2.2SelectionofrectifierdiodeBecause,thecurrentflowingthrougheachrectifierdiodeinthebridgecircuitis:Themaximumreversepeakvoltageofeachrectifierdiodeis:Insummary,selectthetransistorIN4001,itsparametersare:ID=1A,URM=50V.4.2.3SelectionoffiltercapacitorAlthoughthecurrentpassingthroughthediodeisapulsatingcurrent,becausethecapacitorChasanenergystorageanddischargefunction,thisreducesthedegreeofvoltagepulsationacrosstheloadRLandincreasestheaveragevalue.TheaveragevalueandsmoothnessoftheDCvoltageontheloadarerelatedtothedischargetimeconstant=RLC.ThelargerthevalueofCorRL,theslowerthedischargeofC.ThelargertheoutputDCvoltagevalue,thebetterthefilteringeffect;otherwise,theworse.Generallytake:TheACpowersupplyinsomeAsiancountriesisa50Hzsinewave,with50identicalwaveformspersecond.Afterfull-waverectification,boththepositiveandnegativehalfwavesbecomepulsatingdirectcurrentinthesamedirection.Atthistime,thereare100identicalwaveformspersecond,thatis,f=100Hz.Sothefiltercapacitorcapacityis:amongthem,TheoutputDCvoltageofthecapacitorfiltercircuitisestimatedas:Insummary,twoelectrolyticcapacitorsof2200Fand50Vcanbeused,andtheyareconnectedinparallel.Inordertofilterouttheinterferenceofhigh-frequencysignalsandimprovethedynamiccharacteristicsofthepowersupply,a105pF,50Vhigh-frequencyceramiccapacitorisconnectedinparallelatbothendsofthefiltercapacitor.4.2.4Howtochooseathree-terminalintegratedvoltageregulatorTheconditionthatthepowerconsumptionofthethree-terminalintegratedvoltageregulatormustmeetisgreaterthan5Wandtheoutputvoltageis5V.ThisdesignchoosesL7805CT,theoutputvoltageis4.8~5.2V,thequiescentcurrentis4.2~8mA,andthemaximumoutputcurrentcanbe1.5A,whichmeetsthedesignrequirements.Consideringthelargeoutputcurrent,aheatsinkneedstobeadded.VApplicationAdoptthedesignbasedonL7805CTtoprovide5VDCpowersupplyforcounter,decoderanddigitaltube.Usethebuttontogenerateasingleclock,realizethecountofmodulo10throughthestandardcountercircuit,andgeneratethecorrespondingcode.Thevalueisoutputtotheintegrateddecodingcircuitthroughthedecodertodisplaythenumbers0-9.UsetheDPsectionoftheintegrateddecodingcircuitasapower-onindication.Thecounterhasaresetbutton,andtheintegrateddecodingcircuitadoptsacommoncathodestructuretorealizeadditionandsubtractioncounting.asshowninfigure2.Figure2.L7805CircuitVIConclusionThe5V,1ADCpowersupplydesignbasedontheL7805CTdescribedinthisblogcanprovide5VDCpowersupplyforcounters,decoders,anddigitaltubestoachieveadditionandsubtractioncounting.ThedesigncircuitoftheL7805CTissimple,withfewcomponents,lowpowerconsumptionandstable.Therefore,itcanbeextendedtootherobjectapplicationsasaDCstabilizedpowersupplytoprovideelectricalenergy.FAQWhatisl7805?AvoltageregulatorICmaintainstheoutputvoltageataconstantvalue.7805IC,amemberof78xxseriesoffixedlinearvoltageregulatorsusedtomaintainsuchfluctuations,isapopularvoltageregulatorintegratedcircuit(IC)....7805ICprovides+5voltsregulatedpowersupplywithprovisionstoaddaheatsink.WhatistheworkingprincipleofIC7805?AvoltageregulatorICmaintainstheoutputvoltageataconstantvalue.7805IC,amemberof78xxseriesoffixedlinearvoltageregulatorsusedtomaintainsuchfluctuations,isapopularvoltageregulatorintegratedcircuit(IC).Thexxin78xxindicatestheoutputvoltageitprovides.HowdoItesta7805withamultimeter?TurnontheDCpowersupplyandadjusttheoutputvoltageofabout8Vorslightlylarger.Oralternativelyyoucanuseabattery9V-12Vasvoltagesource.Lookatthevoltmeterpanelwhenyousetthevoltage.PrepareaDCvoltmeterreadingsonvoltagerange50VtomeasuretheoutputvoltageoftheIC7805.Howdoes7805regulatevoltage?For7805IC,itis+5VDCregulatedpowersupply.ThisregulatorICalsoaddsaprovisionforaheatsink.Theinputvoltagetothisvoltageregulatorcanbeupto35V,andthisICcangiveaconstant5Vforanyvalueofinputlessthanorequalto35Vwhichisthethresholdlimit.

VS-UFB280FA40-VISHAY

I.74HC164Introduction74HC164adoptsDIP-14,SO-14,SSOP-14andTSSOP-14packagepinconfiguration.ItiscomplementarytoMOS8-bitserialinputandparalleloutputunidirectionalshiftregister,thelogicsymbolisshowninthefigure1.Thepowersupplyvoltageis2~6V.Inthefigure1,AandBaretheserialcodeinputterminals;CLRistheclearinputterminal;CLKistheclockpulseinputterminal.Withthearrivaloftherisingedgeoftheclockpulse,thestateofphaseA,phaseBandthesubsequentphaseshiftsfromQAtoQHinturn.CatalogI.74HC164IntroductionII.74HC164LogicSymbolIII.CircuitDesignIV.HowtoCheckandRepairtheCircuitFAQOrdering&QuantityII.74HC164LogicSymbolFigure174HC164LogicSymbolIII.CircuitDesignFigure2isaninstrumentcircuitcomposedofserialinputandparalleloutputdigitalintegratedcircuits.T2-T5,C5andresistancetogetherformaturnsignalflashingoscillationcircuit.WhentheDR(connectedtotheturnswitch)inJ8isdisconnected,thiscircuitwillnotworkandtheturnsignalwillnotflash;whenDRison,theoscillationcircuitstarttowork,theturnsignalstartstoflash.Figure2MetercircuitdiagramDRisathree-positionswitch,onepoleisconnectedtotheleftturnsignal,onepoleisconnectedtotherightturnsignal,onepoleissuspendedintheair,andtheotherendofthepolehitstheground.Theswitch-offcircuitiscomposedofTl,DLRllandR12.Aswitch-typeHallelementisinstalledinthefrontandrearbrakesoftheelectricbicycle.Whentheswitchisswitched,theHallelementoutputsalowpotential,thatis,theBRKterminalintheplugJ2isgrounded,Tlisturnedon,andthereisavoltageofnearly5VonthecollectorofTl.ThisvoltageissenttothecontrollerthroughtheBRKterminalinJ2,andthepowersupplycircuitofthemotoristurnedoff.Themotorstopsworkingandactsasabrake.Onthecontrary,whenthebrakeisnotpinched,theHallelementoutputsahighpotential,Tliscutoff,andthemotorrunsnormally.Because74HC164isan8-bitserialinputandparalleloutputshiftregister,itformsamovementmodeandbatterypowerdisplaycircuitwithlight-emittingdiodes.74HC164soutputpin13,pin11,andD5-D7formthesideofthesportsmodedisplaycircuit,andpins6and10andD8-D12formthebatterypowerdisplaycircuit.Thedisplaysignalfromthecontrollerissenttotheserialinputterminals1and2ofthe74HC164throughtheDATAterminalintheJ2,andthenshiftedbytheinternalcircuit,thedrivingsignalisoutputfromtherelevantoutputterminaltolightupthecorrespondinglight-emittingdiode,soastocompletethecontrolofthedisplaycircuit.IV.HowtoCheckandRepairtheCircuitThiscircuitisrelativelysimpleandeasytorepair.Themainbasisforrepairingistojudgethequalityof74HC164.First,checkwhetherthe+5Vvoltageisnormal,andthencheckwhetherthevoltageatpin③ofthe74HC164sclocksignalinputiscloseto+5V.Ifitislowerthan+5V,andafterdisconnectingR73,theCLKterminalvoltageofJ2isnormal,andthe74HC164isdamaged.IfthevoltageoftheCLKportisabnormal,thefaultisinthecontroller.Next,measurewhetherthevoltageoftheserialinputterminals①and②changesduringthetransitionofthemotionmode.Ifnot,thefaultisinthecontroller;ifthereis,the74HC164isdamaged.Fromtheactualrepairsituation,mostofthe74HC164failuresarecausedbydamagetotheinternalcircuitofthe⑩pin(powersupplyterminal).Inaddition,whenpurchasing74HC164,youcanfirstmeasuretheresistanceofthe⑩pin.Theresistancevalueshouldbeabout4kDinthepositivetestandinfiniteinthereversetest.FAQHowdoesthe74HC164transmitdatainthemicrocontrollercircuit?Onepinofthesingle-chipmicrocomputerislikeafaucet,andthedataissentonebyone,thatis,likethewaterfromthefaucet,drippingdropbydrop.The74H164islikeasmallbowlreceivingwater.Itisjustfullafterreceiving8dropsofwater.Atthistime,itissenttothedigitaltube.Thesingle-chipmicrocomputermustsendan8-bit(ormore)data,ifitissentatthesametime,itisaparalleltransmission,ifitisabitbybit,itisaserialtransmission.Thedataofthesingle-chipmicrocomputerissenttothe74HC164bitbybit,whichisserial,andthe74HC164sendsthedatatothedigitaltubeatonce,whichisparallel.So74HC164playsarolefromserialtransmissiontoparalleltransmission.Whatisthedifferencebetween74HC164Dand74HC164NMCU?TheDin74HC164Drepresentsachippackage.TheNin74HC164Nmeansdualin-lineplasticpackaging.Whatisthedifferencebetween74HC164and74LS164,cantheybeusedtogether?74ls164isaTTLcircuit,thepowersupplyvoltageis5V,thehigh-leveloutputcurrentIohis-0.4MA,andthelow-leveloutputcurrentis8MA.74HC164isaCMOScircuit,thepowersupplyvoltageis2V~6V,theoutputdrivecurrentcanreachplusorminus20MA.Ifthepowersupplyvoltageyouuseis5Vandtheoutputdrivecurrentissuitablefor74ls164,theycanbeusedtogether.Whatdevicescan74hc164bereplacedwith?74HC164isaCMOSdevicewithapowersupplyvoltageof2V-6V.Itcanbedirectlyreplacedby74HCT164,40H164.Ifthepowersupplyvoltageis5Vandtheoutputdrivecurrentissmall,itcanalsobereplacedby74164,74LS164,74F164,74ALS164.Whichof74LS164and74HC164hashigherdrivingcapability?74LS164isaTTLdevicewithahigh-leveldrivingcapabilityofabout0.4mAandalow-leveldrivingcapabilityofabout8mA.74HC164isaCMOSdevice,withhigh-levelandlow-leveldrivecapabilityupto20mA.TheabovedatacomesfromDATASHEET.Butgenerallyspeaking,thehigh-leveloutputcapabilityofmanyCMOSdevicesisweak,smallerthanTTL,andthelow-leveldrivecapabilityisstronger.Can74hc164nbeusedtodrivethedigitaltube?Ofcourse,youcanusethe164chiptodrivethenixietube,whichismostlyusedinsituationswheretheIOportresourcesaretightandthedisplaydatarefreshofthenixietubeisslow.Whendesigningthecircuit,multiple164chipsareusedincascade,nomatterhowmanydigitaltubesaredriven,only2IOportsofthesingle-chipmicrocomputerareoccupied.ItcanbesaidthatitisthemostIOport-savingdrivingmethod,anditisstilldrivenstatically,withoutstrobeandbrightnessLowphenomenon.Thedisadvantageisthatmultiple164sareusedincascadeconnection,whichwillcausethesingle-chipmicrocomputertosendalargeamountofdisplaydata(1bytepernixietube)atonetimewhenrefreshingthedisplaydata.Duringthisprocess,thenixietubewillbeallon,althoughthedataissentTheprocessdurationisveryshort,butitstillaffectsthedisplayeffect.Itisrecommendedtoturnoffthedigitaltubewhenrefreshingthedata.

I.DescriptionAutomaticgaintechnology(AGC)iswidelyusedinthefieldofindustrialautomationclosed-loopcontrol.Inindustrialcontrol,time-varyinggainamplifiersareoftenneededtomeetproductionneeds,ormadeithasacertainregularitytoensurethestabilityofthecontroloutputamplitude,therebyreducingtheinterferenceoftheinputinterferencenoisesignal.Forthesystemtoadjustquikly,thispaperdesignsanAGCcontrollerbasedonthecombinationofAGCchipAD603andswitchingpowersupplychipMC34063,cleverlyusingMC34063sstablereferencevoltageanddynamicvoltageadjustmentoutputtoaccessAD603gaincontrolterminaltocontroltheamplificationgain,thereforeachievethegoalofconstantsystemoutputamplitude.AD603CatalogI.DescriptionII.WorkingPrincipleoftheSystemIII.AD603IV.MC34063V.SystemHardwareCircuitDiagram5.1InputBufferAttenuationCircuit5.2AD603AutomaticGainAmplifier5.3OutputAmplitudeDetector5.4MC34063FeedbackCircuitVI.SystemOperationResultsVII.ConclusionFAQOrdering&QuantityII.WorkingPrincipleoftheSystemThesystemusesAD603asthecorecontroldevice,supplementedbytheswitchingpowersupplychipMC34063tocollecttheoutputofthecontroller,theoutputvoltageistransferredtothevoltagecontrolterminalofAD603throughMC34063tochangetheamplificationgain.ThesystemworkingprincipleblockdiagramisshownasinFig.1.Figure1SystemBlockdiagramInthisclosed-loopcontrolsystem,theMC34063circuitisusedasitsfeedbacklinktodynamicallycollecttheamplitudeoftheoutputsignalofthesystem,andcontroltheamplificationgainofAD603byadjustingthedutycycleoutputvoltageoftheinternalsignal.Thefeedbacklinkinthefigurecanbereplacedwithamicroprocessor.ThemicroprocessorcollectstheoutputvoltageamplitudethroughA/D,transfersittothemicroprocessorchipforsignalprocessing,andthenfeedsbacktotheinputoftheentiresystemthroughD/Aoutputcontrolvoltage.However,thismethodistoocomplicated,becausetheriseandfallofthedigitalchiptakealongtimetosetup,whichaffectstheresponsespeedoftheentiresystem,andrequiresrelativelyhighsignalprocessingalgorithms.Theswitchingpowersupplychipwidelyusedinpowersupplytechnologyisdynamicallyadjustedtoimproveitsoperatingspeed.Inaddition,itsdevelopmentcostislow,whichisconducivetothepromotionoftheindustrialcontrolfield.III.AD603AD603isachipwithprogrammablegain,lownoise,ithas3workingmodes,correspondingtodifferentgainranges.Inordertomakethecontrolmoreextensive,themaximumbandwidthmodeisselectedas90MHz.Thegainisexpressedindecibels,theamplificationgainiscontrolledbythecontrolvoltagetoalinearrelationshipof25mV/dB,andtheslewrateis275V/s.Thegaincontrolvoltageneedstobeinputduringnormaloperation.Thegainformulais:Intheformula:Gisthegain,dB;G0isthestartingpointofthegain,andthesizeofG0isdeterminedbythepinconnection.Thecircuitdesignedinthispapershort-circuitsVOUTandFDBK,G0=10dBisthewidebandmode(90MHzwideband),thegainrangeGofAD603is-11.09~+31.05dB,andVGisinthelinearrangewhentherangeis-500~500mV.ThegaincontrolvoltageVGiscontrolledbytheMC34063output.AD603inputsignalamplitudeUINP1.4V,theactualindustrialcontrolfieldofteninputplusinterferencesumisgreaterthan1.4V,ifthissignalisdirectlyaddedtothesystem,thedistortionislargeandlong-timeworkwilldamagetheAD603,soyoumustaddaninputbufferandattenuationcircuit.IV.MC34063MC34063isamonolithicbipolarintegratedcircuitusedinthefieldofDC-DCconvertercontrol.Itischeapandwidelyusedinthefieldofswitchingpowersupplies.Itcanuseaminimumofexternalcomponentstoachieveswitchingboostandbuck.Itsoperatingfrequencyis0.1-100kHz.ThetraditionalAGCcontrollerconstitutesaclosed-loopcontrolsystem,whichgenerallyneedstoperformA/Dsamplingontheoutputofthesystem,andthentransferthedatatothesingle-chiporcomputerforalgorithmdataprocessing,andjudgetheexecutionsignalD/Aoutputtomaketheactuatorexecute.Inthisfeedbackprocess,sampling,algorithmprocessingandexecutionobviouslyconsumetoomuchtime,andforsomecomplexcontrolsignals,algorithmdataprocessingrequirementsarehigh,andspecialDSPchipsarerequired,whichiscostly.Therefore,theuseofasingleanalogelectroniccircuittoachieveaclosed-loopcontrolsystemhashigherefficiencyandlowercost.InspiredbytheworkingmodeoftheMC34063step-downcircuit,itisanewdesignideatorealizethechangeoftheAD603gaincontrolvoltagebyusingthecharacteristicsoftheMC34063todynamicallyadjusttheoutputvoltage.Theexperimentalverificationisfeasibleanditissimplerandfasterthantheprogramcontrolmethod.Figure2showstheMC34063step-downcircuit.Figure2MC34063step-downcircuitAsshowninFigure2,theinputis+12V,theoutputis+5V,thereferencevoltageofpin5togroundis+1.25V,theresistanceofpin5togroundisR1=1.2k,andtheoutputandpin5areconnectedtoR2=3.6k,Accordingtotheresistancedividerratio,theoutputisclampedat+5V,thusachievingaregulatedoutput.AppliedinthefieldofAGCcontrol,youcanconnecttheoutputofMC34063tothecontrollergaincontrolterminal,andtheinputtotheoutputterminalofthecontroller.Accordingtoitsworkingprinciple,MC34063collectstheoutputoftheAGCcontrollerandtransmitsittopin5.ItsinternaldynamicallyadjuststhePWMdutycycle,dynamicallychangestheAD603gaincontrolvoltage,andcanavoidtheinterferenceofthesystem,andrealizethefunctionsimilartothePIDalgorithm.Itreplacesthealgorithmicdataprocessingmechanism,whichissimpleandeffective,andhascertainreferencesignificancetothefieldofindustrialautomationcontrol.V.SystemHardwareCircuitDiagramFigure3isthesystemhardwarecircuitdiagram.Thesystemismainlydividedintoinputbufferattenuationcircuit,AD603automaticgainamplifier,outputamplitudedetectorandMC34063feedbackcircuit.Figure3SystemHardwarecircuitdiagram5.1InputBufferAttenuationCircuitBecausetheAD603inputsignalamplitudeVINPislessthanorequalto1.4V,fourdiodeclampsareused.Accordingtotheunidirectionalconductivityofthediodeandtheforwardconductionvoltagedropofsilicon,theinputcharacteristicsarelimitedtomeettherequirementsofAD603.Theinputvoltagerequirements,thefollowerplaystheroleofisolatingthechip.AsshowninFigure3,part①.5.2AD603AutomaticGainAmplifierThe3pinofAD603isthesignalinputterminal,the2and4pinsareconnectedtothegroundwithR4=0,R5=0resistancetomakeitworkmorestable.The5and7pinsareconnectedtotheoutput,whichisthesystemoutputoftheAGCcontroller.Pin1isthegaincontrolvoltageVGterminal,thiscontrolvoltageisconnectedtotheoutputterminalofMC34063,MC34063generatesthecorrespondinggaincontrolvoltageVGaccordingtotheoutputofthesystem.5.3OutputAmplitudeDetectorInthefieldofindustrialcontrol,thesignalisonlyintheformofDC,andtheACsignalalsooccupiesacertainproportion.ForthecontroloftheDCsignal,thesystemoutputcanbedirectlytransmittedtotheMC34063forprocessing,buttheamplitudeoftheACsignalmustbedetected,sothedesignisshowninFigure3inpart③.Commonamplitudedetectors,suchasdioderectifierbridges,areonlysuitableforsituationswheretheinputvoltageisfargreaterthanthediodeconductionvoltagedrop.InAGCcontrol,thesignalinthesystemisoftenlowvoltage,soitcannotbeused,soitisverynecessarytodesignanamplitudedetectorthatcanavoiddiodeconductionvoltagedrop.AfterRCcharging,theDCvoltagevaluewithacertainrelationshipisobtained.InFigure3,thevoltageattheintermediatenodeofR13andR14isUf,andtheexpressionis:Intheformula,UINPistheinputamplitude,V.5.4MC34063FeedbackCircuitTheintermediatenodevoltageUfofR13andR14isproperlycalculatedbyasame-invertingamplifierandanadder,andthenconnectedtopin5ofMC34063.Atthistime,itisclampedat5V,andUf=1Vwhenreversed,thentheAGCcontrollersystemcanbedynamicallymaintainedstabilityofoutputvoltageamplitude.Whenthesysteminputisunstableorthereisnoiseinterference,MC34063dynamicallychangestheoutputvoltagevalueaccordingtotheamplitudedetectionresult,soastoachievethepurposeofchangingthegaincontrolvoltageVG.AsshowninthelowerpartofFigure3,theoutputvoltageofpin2ischargedanddischargedthroughswitchingandspecificSchottkydiodes,andtheattenuatedpartialvoltageistransmittedtopin1ofAD603,whichrealizestheautomaticadjustmentoftheamplificationgainandsuccessfullyrealizestheswitchingpowersupplytechnologyapplicationinthefieldofautomaticcontrolgain.VI.SystemOperationResultsTheexperimentalsettingisthatifthesysteminputsaDCsignal,theoutputwillbeaconstant+1VDC;ifanACsignalisinput,theoutputwillbeanACsignalwithaconstantamplitudeof+1V.Intheexperiment,twoinputmethodsweretestedandverified,andbothmetthedesignrequirements.Table1ispartoftheexperimentaldataoftheinputDCsignal.Intheexperiment,theinputoftheAGCcontrollerisconnectedtothevoltageregulatorsource,andtheinputvoltageiscontinuouslyadjusted.Table2ispartoftheexperimentaldataoftheinputACsignal.Intheexperiment,theAGCcontrollerinputisconnectedtotheUTG9002Csignalgenerator,theamplitudeoftheinputsinewaveiscontinuouslyadjusted,andtheoutputisconnectedtotheoscilloscopetoobservethewaveform.Observationfoundthatnomattertheinputamplitudebecomeslargerorsmaller,theoscilloscopewaveformisbasicallyunchanged.ReadtheoscilloscopewaveformamplitudeandfillinTable2.VII.ConclusionThisarticlesummarizesthedesignoftheAGCcontrollerbasedonAD603andMC34063.ExperimentshaveverifiedthattheAGCcontrolleriseffectiveandmeetsthedesignrequirements.Anewapplicationofswitchingpowersupplychipsinthecontrolfieldisproposed.BecausetheinternalPWMdutycycleisfaster,itcanreplacethetraditionalprogrammableAGCcontroller.Amongthem,MC34063canalsobereplacedbyotherswitchingpowersupplychips.Ithastheadvantagesofuniversalapplicability,simpledesign,lowcost,andithasimportantpracticalvalue.FAQWhatisAD603?AD603isalow-noise,voltage-controlledamplifierforradiofrequency(RF)andintermediatefrequency(IF)automaticgaincontrol(AGC)systems.Itprovidesprecisepin-selectablegain,withagainrangeof-11dBto+31dBat90MHzbandwidth,andagainrangeof+9dBto+51dBat9MHzbandwidth.Anyintermediategainrangecanbeobtainedwithanexternalresistor.Thenoisespectraldensityreferredtotheinputisonly1.3nV/Hz,andthepowerconsumptionis125mWwhenusingtherecommended5Vpowersupply.WhataretheproblemsthatneedtobepaidattentiontowhenusingAD603?Thevoltagecannotbetoohigh.Generally,thevoltageisplusorminus5V,andthemaximumvoltagecannotexceedplusorminus7.5V.Theoutputvoltagecannotexceed2V.Howtosolvetheself-oscillationproblemofAD603?Forhigh-frequencyoperationalamplifiers,thefollowingpointsarethebasicwaystosolveself-excitation.Thepowersupplyisstableandnoripple.Theelectricalconnectionwiresareasshortaspossible.Thead603circuitshouldbefarawayfromthepowercircuit,especiallyawayfromthetransformer.Thepowertransformerandthecircuitboardofad603shouldbeshieldedwithametalboxandgroundedifpossible.Onepointisveryimportant.Foropamps,toolargemagnificationcaneasilycauseself-excitation,soreducethemagnificationasmuchaspossibleandminimizethenumberofmagnificationlevels(generallynotgreaterthan4).Reverseamplificationcansuppressself-excitationinmulti-stageamplification.Ifyouwanttoconnecttothepoweramplifierandthenamplify,itisbesttousetwopowersupplies,andthecircuitshouldbeconnectedtothesameground.WhatisthedifferencebetweenAD603AQandAD603AR?Theirdifferencesareinmodel,Temperature,Package.AD603AQ-40Cto+85C8-LeadCERDIPAD603AR-40Cto+85C8-LeadSOIC_NAfterinputtinganACsignalandbeingamplifiedbyAD603,whydoestheoutputcontainaDCsignal?HowtoeliminatetheDCsignal?WhentheDCblockingcapacitorisnotused,thebiasvoltageoftheinputcircuitneedstobeadjustedforcompensation.IftheDCvoltageoftheACsignalisnotfixed,onlyaDCblockingcapacitorcanbeused,ortheaveragevaluecanbeusedtoeliminateitaftersamplingthenumber.IDescriptionThisblogmainlydiscussesandsolvesthefollowingproblem:HowtouseLM339voltagecomparatortomakeareservoirwaterlevelgauge?Accordingtowaterlevel,thisdesignperformssignalprocessingandcontrolsthepotentialofmultiplevoltagecomparators,sotheoutputwillchangeaccordingly.Therefore,underitsdrive,LEDcannotonlyemitlight,butalsoachievetheeffectofindicatingthewaterlevel.Figure1.LM339CatalogIDescriptionIIIntroductionIIIWokingPrincipleIVDeviceselectionandComponentProduction4.1deviceselection4.2PartProductionVInstallationandDebugging5.1DetectionPart5.2DisplayPartVIConclusionFAQOrdering&QuantityIIIntroductionDuetoinsufficientwatersupplyinsomeresidentialareas,pumpworkersmustfirststorewaterinthereservoirandthensupplywaterinaregularmanner.Inthisway,thepumpworkermustknowthewaterlevelofthereservoiratanytimeinthepumproom.Inthepast,electrodessuchascopperrodsorstainlesssteelwereusedtodetectthewaterlevelofthepool.However,duetoelectriccorrosion,thefunctionoftheelectrodeislostsoonafteruse.Forthisreason,thisblogusesLM339voltagecomparatortomakewaterlevelgauge.Thisnotonlyeliminatesthepainofoftenchangingelectrodes,butalsosimpleandeasy.Howsimpleisit?Onlytwowiresneedtobeconnectedfromthereservoirtothepumproom.Aftermorethantwoyearsofoperation,itsperformancehasbeenstableandreliable,achievingtheexpectedresults.IIIWokingPrincipleThemaincircuitofthewaterlevelgaugeiscomposedof4LM339voltagecomparators.Thiskindofintegratedcircuithasthecharacteristicsofeasypurchase,lowprice,singlepowersupplyoperationandwidedifferentialrange.EachLM339has4independentvoltagecomparators(15inthisdesign).Aslongasthepotentialdifferencebetweenthepositiveandnegativeinputterminalsis10mV,theoutputterminalcanbereliablyswitchedfromonestatetoanother.Whenthepositiveinputterminalis10mVhigherthanthenegativeinputterminal,itsoutputterminalishigh;Whenthenegativeinputis10mVhigherthanthepositiveinput,itsoutputislow.Inaddition,LEDscanbedrivendirectly.ThenhowtomaketheoutputendofLM339havehighandlowlevelchanges?Inspecificuse,anappropriateresistanceisgenerallyaddedbetweentheoutputterminalandthepositivepowersupply.Thisresistoriscalledapull-upresistor.Thatis,whentheoutputterminalofLM339isinahighimpedancestate,thepotentialoftheoutputterminalispulledupbytheresistor.Figure2.BlockDiagramofWaterLevelGaugeTheprincipleblockdiagramofthedeviceisshowninFigure2.Thevoltagesignalmeasurementconsistsofareedswitchandavoltagedividerresistor.Theringmagnetssuspendedinthewaterareindifferentpositions.Duetotheprincipleofelectromagneticinduction,notonlythecorrespondingdryreedswitchnormallyopencontactsareclosed,butalsothecorrespondingvoltagedividerresistorisconnected.Therefore,thecircuitwillpickupdifferentvoltagesignals.Thepotentialofthenegativeinputterminalofthecomparatorisformedbyafixedvoltagedividerresistor.Themeasuredvoltagesignaliscomparedwiththesetpotential.TheresultofthisisthattheLEDdisplaysthewaterlevelwhendriven.Inaddition,analarmisissuedwhenthehighestwaterlevelisreachedtoremindthepumpertostopwaterinjectiontopreventwateroverflow.TheconcretecircuitisshownasinFig.3.Figure3.WaterLevelGaugeCircuitDiagramInFigure3,thepowersupplyis+12V,andthedepthofthepoolisdividedinto15segmentsfordisplay.Inthispicture:A1~A15arevoltagecomparatorscomposedofLM339;GK1~GK15aredryreedswitches,thenormallyopencontactisclosedwhentheringmagnetisclosetoacertaindryreedswitch;ThevoltagedividercircuitcomposedofresistorsR1toR15determinesthepotentialofthepositiveinputterminalofeachcomparator.ThevoltageofthepositiveinputterminalofLM339changesduetothedifferentpositionsofthemagneticsteel.ThevoltagedividercircuitcomposedofresistorsR01~R030determinesthepotentialofthenegativeinputterminalofeachcomparator.Thepotentialofeachnegativeinputterminalisfixedafterdetermination.Whenthemagneticsteelfloatingonthewatersurfaceisclosetoacertaindryreedswitch,duetothepartialpressureofR1,R2,,R15,thepositiveinputterminalsofthecomparatorsA1,A2,,A15havedifferentinputs.Afterthissignaliscomparedwiththepotentialsetatthenegativeinputofthecomparator,therewillbeacorrespondingoutput.FromFigure3,whenGK1pullsin,itisequivalenttoholdingthemagneticsteelfloatattheupperlimitwaterlevel.Thepositiveinputofeachcomparatorisequaltothegroundpotential,whichislowerthantheirnegativeinput.Therefore,theoutputterminalsarealllowlevel,sothatallLEDsarelit.Atthistime,theoutputofA1dropsfromhighleveltolowlevel,andNE555istriggeredthroughcapacitorC.NE555isconnectedasamonostablecircuit.Oncetriggered,its3pinwilloutputahighlevel,whichwilldrivethebuzzertoalarm.ItsdurationisdeterminedbytheRCcomponentsconnectedtothe6and7pins.WhenGK2isclosed,LED2~LED15shouldbeonandLED1shouldbeoff.Atthistime,thepotentialofthepositiveinputterminalofeachcomparatorishigherthanthepotentialofthenegativeinputterminalofA1andlowerthanthepotentialofthenegativeinputterminalofA2~A15,andsoon.IVDeviceselectionandComponentProduction4.1deviceselectiona.SetthenegativeinputpotentialofeachcomparatortoVsh.Thenegativeinputpotentialofeachcomparatorissetartificiallyaccordingtothenumberofsegmentsdividedintopowersupplyandwaterdepth.Becausethepooldepthhasbeendividedinto15segmentsfordisplay,startingfrom2.0V,thedifferencebetweeneachadjacentnegativeinputterminalis0.4V.AsshowninthefirstrowinTable1.b.Selecttheresistancebetweenthenegativeinputterminalofeachcomparatorandthepowersupply,thatis,thevoltagedividerresistanceR01=R03==R029=20k,settoR.c.CalculatethegroundresistanceR02,R04,...,R030,whichisRr.SupposetheresistanceofthenegativeinputterminaltogroundisRr,andthepotentialofeachnegativeinputterminalisVsh,accordingtocircuitdiagram3:(1)Fromthisformula:(2)Forexample,tomakethepotentialofthenegativeinputterminalofthevoltagecomparatorA1Vsh=2V,accordingtoequation(2),wecangetAsshowninthesecondrowandthefirstcolumninTable1.TheselectionoftheotherresistorsR04,R06,,R030canbecalculatedaccordingtotheaboveformula(theresultisatheoreticalvalue,seethedatashowninthesecondrowinTable1fordetails).d.DeterminethenominalresistanceRbfromRr.Infact,thenominalvalueofcommerciallyavailableresistorsisdifferentfromthiscalculatedvalue.Inspecificapplications,anominalresistanceRbwithasimilarresistancevaluecanbeselected.ThespecificvalueisshowninthethirdrowofTable1.e.DeterminethepotentialVofthenegativeinputterminalofeachcomparatorAbyRb.WhenthenominalvalueofresistanceRbisselected,usethefollowingformulatocheckthepotentialVgeneratedbythisresistance.(3)Thespecificpotentialvalueisshowninthe4throwofTable1,comparedwiththesetvalueinthe1strow,aslongasitdoesnotexceed0.1V.f.DeterminetheresistancesR1,R2,,R15ofthepositiveinputterminalsofeachcomparatorandsetthemasRzh.FirstfindR1,setthepositiveinputpotentialofeachcomparatorasVzh,whenGK1pullsin,itcanbeseenfromTable1that2VVzh2.4V,setVzh=2.2V,R=20k,accordingtoformula(3),itcanbelistedThesolutionisthatRzh=R14.5k.Thisresistanceisnotthenominalvalue.Chooseasimilarnominalvalueof4.8k.ThenfindtheotherresistancesR2,R3,,R15,whichcanallbecalculatedbythismethod.Theresultisthetheoreticalvalue,whichhasaslightdeviationinpractice.Aftercorrection,thevalueisshowninthefifthrowofTable1.Aftertheaboveparametersareselectedinthisway,itcanbeensuredthatwhenthewaterlevelinthepoolreachesthelowestlimitandthefloatholdingthemagneticsteelsinkstothelowestposition,themagneticsteelseparatesfromallthereedswitchesandtheLEDsareallextinguished;AndwhenthefirstreedswitchGK1isclosed(equivalenttothewaterlevelinthepoolreachesthehighestlimit,thefloatholdingthemagneticsteelrisestothehighestposition)LEDsareallon.Whenthefloatisatacertainpositioninthemiddle,thecorrespondingLEDandtheLEDsbelowareallon,andtheLEDaboveitisoff,toshowthewaterlevel.Aftertheabovecalculation,thespecificdatashowninTable1isobtained.4.2PartProductionItisnecessarytomeasuretheheightfromthelowestwaterlevelofthereservoirtothelimitwaterlevel,anddividethisheightinto15segments.Thedistanceofeachsegmentislessthan200mm,thisdistancecanensurethatthemagneticsteelcanalwaysattractanadjacentdryreedswitch,soastoavoiddisplaybreakpoints.Thatistopreventthemagneticsteelfromnotattractingtheupperdryreedpipeorthelowerdryreedpipeduringoperation,sothattheLEDdisplayisallextinguished,causingtheillusionofwaterlessness.FortheconnectionsofGK1,R1~GK15,R15,firstsolderthemtoasmallprintedcircuitboardwithawidthlessthanorequalto20mm,andthenusewirestoconnectthematadistanceoflessthanorequalto200mm,andencapsulatethemina25mmhardplastictube..Theupperandlowermouthsofthepipeshouldbetightlysealedtopreventwaterleakage.Thetubeiscoveredwitharing-shapedmagnet.Afterdroppinganon-ferromagneticheavyobjectonthelowerendofthehardplasticpipe,theplasticpipeisverticallysunkintothebottomofthereservoir.Aringfloatisplacedunderthemagneticsteelandissleevedonthetube,andtheupperendofthetubeisfixedontheobservationportabovethereservoir.Duetothefunctionofthefloat,themagneticsteelisalwayssuspendedonthewatersurface,risingandfallingwiththewatersurface.Notethattheplaneofthemagneticsteelshouldalwaysbeparalleltothewatersurface,andtheplasticpipeshouldbeverticaltothewatersurfacetopreventthemagneticsteelfrombeingstuckbyfrictionwiththepipewallwhenthewaterlevelrisesandfalls.VInstallationandDebuggingThewholedeviceconsistsoftwoparts:Itisadetectionpartcomposedofareedswitchandvariousvoltagedividers;ItisthesignalprocessingdisplaypartcomposedofLM339.5.1DetectionPartBeforeencapsulatingtheplastictube,putsomesilicagelinthetubetoabsorbthemoistureinthetubeandpreventthelineinthetubefromgettingdamp.Ifring-shapedmagneticsteelisusedasthedetectionelement,thereedpipeconnectedinseriesintheplastictubeshouldberealizedbytwostaggeredreedpipes.Accordingtotheelectromagneticinductiontheory,theanalysisofthemagneticfieldlinesofthemagneticsteelshowsthatthereareasmallsectionofmagneticfieldlinesparalleltotheplaneofthemagneticsteelattheupperandloweropeningsofthemagneticsteel.Whenthissectionisclosetothereedswitch,thedirectionofitsmagneticfieldlineisperpendiculartothedirectionofthereedofthereedswitch.Atthistime,althoughthereedswitchisveryclosetothemagneticsteel,thecontactisstillreleasedanddisconnected,whichwillmakealltheLEDsgoout.Iftwostaggeredreedpipesareusedinstead,theproblemcanbesolved,andthestaggereddistancecanbedeterminedinexperiments.5.2DisplayPartThewaterlevelofeachsegmentisdisplayedbygreen10LED,andthelimitwaterlevelisdisplayedbyeye-catchingredLED.IftheLEDsarearrangedneatlytogether,thewaterlevelinthepoolcanbeclearlyseenaccordingtotheonoroffoftheLEDs.Equippedwithabuzzer,itwillgivethepumpworkeraclearerreminder.Note:Fromthedetectorinthepooltothecircuitboardofthepumproom,itisbesttouseshieldedwiretopreventinterferencesignalsfromentering.Weshouldalsonotethatthepowersupplymustberegulated.Fugure4.lm339VIConclusionThenegativeinputpotentialofthevoltagecomparatorA1~A15composedofLM339shouldbesetaccordingtoacertainrule,andthepotentialintervalbetweeneachotherdependsonthedepthofthecell.Ifthewaterlevelisdeeper,theintervalcanbesmaller,andthenumberofsectionscanbeselectedmore.Thepotentialdifferencebetweenadjacentcomparatorsisgenerally0.4V.Ifthepotentialdifferenceislarge,theselectionoftheresistanceiseasy;ifthepotentialdifferenceissmall,becausethenominalvalueintervalofthegeneralresistanceislarge,itisnecessarytouseanadjustableresistortoadjustthepotential.Ofcourse,inthecaseofsmallintervals,thesmallestpotentialdifferencebetweeneachothershouldbegreaterthan10mV,otherwisetheinputcharacteristicsofLM339willnotbeabletodistinguishthepotentialbetweeneachother.Inaddition,thevoltageofthepowersupplyandthenominalvalueofeachresistancemustbeconsidered.Thismethodcanalsobeappliedtootherfields.Suchasmonitoringthewaterdepthofrivers,rivers,lakes,andbays,theoillevelofgasstations,andthedepthofwatertanksinwaterplants.FAQWhatisLM339?LM339isavoltagecomparatorICfromLMx39xseriesandismanufacturedbymanyindustries.Thedevicesconsistoffourindependentvoltagecomparatorsthataredesignedtooperatefromasinglepowersupply.WhatisthedifferencebetweenLM324andLM339?TheLM324hasacomplementaryoutputwhiletheLM339isopencollector.Inthecomplementaryoutput,currentcanflowineitherdirectionasrequired(eithersourceorsink)whiletheopencollectoroutputcanonlysinkcurrent.HowdoesLM339comparatorwork?TheLM339isaquadopampcomparator.Acomparatorworksbyasimpleconcept.Eachopampofacomparatorhas2inputs,ainvertinginputandanoninvertinginput.Iftheinvertinginputvoltageisgreaterthanthenoninvertinginput,thentheoutputisdrawntoground.Whatiscomparatoric?Acomparatorisanelectroniccircuit,whichcomparesthetwoinputsthatareappliedtoitandproducesanoutput.Theoutputvalueofthecomparatorindicateswhichoftheinputsisgreaterorlesser.Pleasenotethatcomparatorfallsundernon-linearapplicationsofICs.WhatisthereplacementforLM339?LM311,LM324,LM397,LM139,LM239,LM2901Whatisacomparatorcircuit?Acomparatorcircuitcomparestwovoltagesandoutputseithera1(thevoltageattheplusside;VDDintheillustration)ora0(thevoltageatthenegativeside)toindicatewhichislarger.Comparatorsareoftenused,forexample,tocheckwhetheraninputhasreachedsomepredeterminedvalue.WhatistheuseofLM339?LM339isusedinapplicationswhereacomparisonbetweentwovoltagesignalsisrequired.Inadditionwithfourofthosecomparatorsonboardthedevicecancomparefourpairsofvoltagesignalsatatimewhichcomesinhandyinsomeapplications.

I.IntroductionThe74HC595isan8-bitserial-inorparallel-outshiftregisterwithastorageregisterand3-stateoutputs.74HC595withthecharacteristicsofhighspeed,lowpowerconsumptionandsimpleoperation,canbeeasilyusedinMCUinterfacetodriveLEDoperation.ThisarticleintroducesthecircuitdesignofLEDdisplaydrivedby74HC595.CatalogI.IntroductionII.BasicDescription2.1LEDDisplay2.274HC595III.CircuitDesign3.1HardwareCircuit3.2DisplayDriverIV.ConclusionFAQOrdering&QuantityII.BasicDescription2.1LEDDisplayA7SegmentLEDDisplay,alsoknownasLEDdisplay,hasbeenwidelyusedinvariousinstrumentsbecauseofitslowprice,lowpowerconsumptionandreliableperformance.TherearemanytypesofLEDdriversonthemarket,andmostofthemhavemultiplefunctions,butthepriceiscorrespondinglyhigher.Ifusedinasimplesystemwithlowcost,itisnotonlyawasteofresources,butalsoincreasesthecostofproducts.Using74HC595chiptodriveLEDhasvariousdisadvantages.Highspeed,lowpowerconsumption,unlimitednumberofLEDs.ItcancontrolboththecommoncathodeLEDdisplayandthecommonanodeLEDdisplay.Thecircuitdesignedwith74HC595isnotonlysimple,butalsolowinpowerconsumptionandstrongindrivingability.Itisalowcostandflexibledesignscheme.2.274HC595The74HC595isan8-bitserial-in/serialorparallel-outshiftregisterwithastorageregisterand3-stateoutputs.Boththeshiftandstorageregisterhaveseparateclocks.Thedevicefeaturesaserialinput(DS)andaserialoutput(Q7S)toenablecascadingandanasynchronousresetMRinput.ALOWonMRwillresettheshiftregister.DataisshiftedontheLOW-to-HIGHtransitionsoftheSHCPinput.ThedataintheshiftregisteristransferredtothestorageregisteronaLOW-to-HIGHtransitionoftheSTCPinput.Ifbothclocksareconnectedtogether,theshiftregisterwillalwaysbeoneclockpulseaheadofthestorageregister.Datainthestorageregisterappearsattheoutputwhenevertheoutputenableinput(OE)isLOW.AHIGHonOEcausestheoutputstoassumeahigh-impedanceOFF-state.OperationoftheOEinputdoesnotaffectthestateoftheregisters.Inputsincludeclampdiodes.ThisenablestheuseofcurrentlimitingresistorstointerfaceinputstovoltagesinexcessofVCC.Figure1.74HC595FunctionalDiagramFigure2.74HC595LogicSymbolIII.CircuitDesign3.1HardwareCircuitFigure3isadisplaypanelcircuitdesignedwithAT89C2051and74HC595interface.Figure3.CircuitofDisplayPanelTheP115,P116,andP117oftheP1portareusedtocontrolthedisplayoftheLED,andtheyareconnectedtotheSLCK,SCLKandSDApinsrespectively.Threedigitaltubesareusedtodisplaythevoltagevalue.Onthecircuitboard,LED3isonthefarleftandLED1isonthefarright.Whensendingdata,firstsendthedisplaycodeofLED3,andfinallysendthedisplaycodeofLED1.ThebrightnessoftheLEDiscontrolledbytheresistanceofPR1toPR3.2.2DisplayDriverUseDISP1,DISP2,andDISP3tostoredisplaydata.AftertheCPUinitializationiscomplete,calltheLRDISPsubroutinetocleartheregisterof74HC595.ThereisnoneedtocalltheclearsubroutinebeforecallingthedisplaysubroutineDISPLAY.Nowwritethetwosubroutinesasfollows.①CLRDISP:MOVR2,#24CLRBIT:CLRSCLKCLRCMOVSDA,variable resistor symbolsCSETBSCLKDJNZR2,CLRBITRET②Display:CLRSLCKMOVR3,how to test diode#3MOVR0,#DISP3DISP1:MOVA,types of diode@R0MOVR2,#8DISP2:CLRSCLKRLCAMOVSDA,thermistor symbolCSETBSCLKDJNZR2,DISP2DECR0DJNZR3,how do photoresistors workDISP1SETBSLCKRETIV.ConclusionItcanbeseenfromtheaboveexamplesthattherearenocomplicatedtechnicalproblemsinthedesignofhardwareandsoftwarewhen74HC595isusedtodesignLEDdrivercircuit.Inaddition,74HC595canbeusednotonlytodriveLEDdisplays,butalsotodrivelight-emittingdiodes.Each74HC595candrive8LEDssimultaneously.Thissolutionisidealwhenthevolumerequirementsoftheproductarenothighandwanttoreducethecost.FAQWhatis74HC595?74HC595isashiftregisterwhichworksonSerialINParallelOUTprotocol.Itreceivesdataseriallyfromthemicrocontrollerandthensendsoutthisdatathroughparallelpins.Wecanincreaseouroutputpinsby8usingthesinglechip.Whatisa74hc595n?8-bitShiftRegister74HC595NAshiftregisterisachipyoucanusetocontrolmanyoutputs(8here)atthesametimewhileonlyusingafewpins(3here)ofyourArduino.Howdoesashiftregisterwork?Shiftregistersholdthedataintheirmemorywhichismovedorshiftedtotheirrequiredpositionsoneachclockpulse.Eachclockpulseshiftsthecontentsoftheregisteronebitpositiontoeithertheleftortheright.How74HC595ShiftRegiesterworks?The595hastworegisters(whichcanbethoughtofasmemorycontainers),eachwithjust8bitsofdata.ThefirstoneiscalledtheShiftRegister.TheShiftRegisterliesdeepwithintheICcircuits,quietlyacceptinginput.Howdoesan8bitshiftregisterwork?TheSN74HC595Nisasimple8-bitshiftregisterIC.Simplyput,thisshiftregisterisadevicethatallowsadditionalinputsoroutputstobeaddedtoamicrocontrollerbyconvertingdatabetweenparallelandserialformats.YourchosenmicroprocessorisabletocommunicatewiththeTheSN74HC595Nusingserialinformationthengathersoroutputsinformationinaparallel(multi-pin)format.Essentiallyittakes8bitsfromtheserialinputandthenoutputsthemto8pins.DescriptionLED,asthefirstbasicfunctiontobecompletedinMCUlearning,playsaveryimportantroleinMCUlearners,whichalsocalledmagiclampbyMCUlearners.IbelievethateveryoneseesmostandthesimplestLEDcircuitisthefigureshownbelow.Asshowninthefigure,notonlythecircuitissimple,butalsoitsoperationisverysimple.GiveselectricalleveltoI/OcorrespondingtoeightLEDs,andthecorrespondingLEDcanbeonoroff.Figure1.simpleLEDcircuitCatalogDescription74HC595Drives8BitsLEDSFAQOrdering&Quantity74HC595Drives8BitsLEDSButnotallLEDcircuitsaresosimple.Somecircuitswilluse74HC595chiptodrive8LEDsordrivethe8-bitdigitaltubesegmentcode,asshowninthefigurebelow.Figure2.74HC595drives8LEDsWhyisasimplecircuitsocomplicated?Thereasonisobvious.BeforetheeightLEDneedeightI/O,nowonlythreeI/OcandriveeightLED.Letsbrieflyintroduce74CH595anduseitsuccessfullytodriveeightLEDlights.The74HC595isan8-bitserial-inorparallel-outshiftregisterwithastorageregisterand3-stateoutputs.Boththeshiftandstorageregisterhaveseparateclocks.Thedevicefeaturesaserialinput(DS)andaserialoutput(Q7S)toenablecascadingandanasynchronousresetMRinput.SIisitsserialdatainput.Q0toQ7aredataoutput.SCK,istheclockfortheshiftregister.The595isclock-drivenontherisingedge.Thismeansthatinordertoshiftbitsintotheshiftregister,theclockmustbeHIGH.Andbitsaretransferredinontherisingedgeoftheclock.RCK,isaveryimportantpin.WhendrivenHIGH,thecontentsofShiftRegisterarecopiedintotheStorage/LatchRegister;whichultimatelyshowsupattheoutput.Sothelatchpincanbeseenaslikethefinalstepintheprocesstoseeingourresultsattheoutput.SQHisserialdataoutput.Whatwewanttoachievenowistomovethe8-bitsdataofSIinto74HC595onebyoneundertheactionofSCKandRCKandpresenttheminparallelonQ0-Q7.Figure3.How74HC595ShiftRegisterworksWheneverweapplyaclockpulsetoa595,thebitsintheShiftRegistermoveonesteptotheleft.Belowisitscode.FAQWhatis74HC595?74HC595isashiftregisterwhichworksonSerialINParallelOUTprotocol.Itreceivesdataseriallyfromthemicrocontrollerandthensendsoutthisdatathroughparallelpins.Wecanincreaseouroutputpinsby8usingthesinglechip.Whatisa74hc595n?8-bitShiftRegister74HC595NAshiftregisterisachipyoucanusetocontrolmanyoutputs(8here)atthesametimewhileonlyusingafewpins(3here)ofyourArduino.Howdoesashiftregisterwork?Shiftregistersholdthedataintheirmemorywhichismovedorshiftedtotheirrequiredpositionsoneachclockpulse.Eachclockpulseshiftsthecontentsoftheregisteronebitpositiontoeithertheleftortheright.How74HC595ShiftRegiesterworks?The595hastworegisters(whichcanbethoughtofasmemorycontainers),eachwithjust8bitsofdata.ThefirstoneiscalledtheShiftRegister.TheShiftRegisterliesdeepwithintheICcircuits,quietlyacceptinginput.Howdoesan8bitshiftregisterwork?TheSN74HC595Nisasimple8-bitshiftregisterIC.Simplyput,thisshiftregisterisadevicethatallowsadditionalinputsoroutputstobeaddedtoamicrocontrollerbyconvertingdatabetweenparallelandserialformats.YourchosenmicroprocessorisabletocommunicatewiththeTheSN74HC595Nusingserialinformationthengathersoroutputsinformationinaparallel(multi-pin)format.Essentiallyittakes8bitsfromtheserialinputandthenoutputsthemto8pins.Whatisadigitaltube?Lightemittingdiodeconnectstheanodetogetherandthenconnectedtothepowerofpositiveiscalledcommonanodedigitaltube,lightemittingdiodeconnectedtothecathodeandthenconnectedtothepowerofthecathodeiscalledcommoncathodedigitaltube.Whatisthedifferencebetweenshiftregisterandcounter?Inashiftregister,theinputofelementNistheoutputofelementN-1,andallelementsusethesameclock.Inacounter,theinputofelementNistheinverseofitsoutput,andtheclockofelementN+1istheoutputofelementN.

IDescriptionDoyouknowwhattheDigitalTubeDisplayneeds?Thedisplayofthedigitaltuberequiresadigitaltubeandacontrolcircuitofmultipledigitaltubes.Takethesingle-chipmicrocomputercontrolcircuitofan8-bitdigitaltubeasanexample.Thesingle-chipmicrocomputerneedstoprovidean8-bitsegmentcodeandan8-bitcode.Thus,weusuallychoosetwoofthefourparallelI/Oportsinthe51single-chipmicrocomputertoprovidesegmentcodesandbitcodesrespectively.Althoughthiscircuithardwareconnectionandsoftwareprogrammingarerelativelysimple,therearealsoproblems.Thatis:ToomanyI/Oportsareoccupied,whichaffectstheoveralluseofthemicrocontroller,andisnotconducivetotheaccessofotherdevices.Howtosolvethisproblem?Wecanuseatypeofshiftregisterforauxiliarycontrol.Here,thisblogusesthe74HC595chip.Figure1.74HC595CatalogIDescriptionIIIntroductionto74HC595III74HC595DisplayControlofMulti-digitDigitalTube3.1HardwareConnection3.2SoftwareProgramming3.3SimulationDebuggingIVConclusionFAQOrdering&QuantityIIIntroductionto74HC59574HC595isaCMOSshiftregisterwithopen-drainoutput.Theoutputportisacontrollablethree-stateoutput.Itcanalsocontrolthenext-levelcascadedchipserially.Itsstructureisusuallya16-pinDIPpackageorSOpackage.The74HC595pinoutisshowninFigure2,andthecorrespondingpinfunctionsareshowninTable1.Figure2.74HC595PinoutThemainfeaturesof74HC595are:8-bitserialinput/8-bitparallelorserialoutput;Three-stateoutputregister(three-stateoutput:agatecircuitwiththreeoutputstatesofhighlevel,lowlevelandhighimpedance);High-speedlow-powerconsumption,high-speedshiftclockfrequencyFmax25MHz.Table1.74HC595PinFunctionPinNumberPinNamePinFunction15,1~7Q0~Q7Paralleltri-stateoutputpin8GNDPowerground9Q7Serialdataoutputpin10/MRClearendofshiftregister(activelow)11SH_CPSerialdatainputclockline12ST_CPOutputmemorylatchclockline13/OEOutputenable(activelow)14DSSerialdatainputline16VCCPowerendIII74HC595DisplayControlofMulti-digitDigitalTubeHere,thisblogtakesthesingle-chipmicrocomputercontrolmulti-digitdigitaltubeasanexample.Tousethechipcorrectly,youmustfirstcorrectlyunderstandthetimingdiagramortruthtableofthechip.Thetruthtableof74HC595isshowninTable2.InputPinOutputPinDSSHCP/MRSTCP/OEHQ0~Q7outputhighimpedanceLQ0~Q7outputeffectivevalueLClearshiftregisterLRisingEdgeHShiftregisterstorelowlevelHRisingEdgeHShiftregisterstorehighlevelFallingEdgeHShiftregisterstateretentionRisingEdgeStatevalueinoutputshiftregisterFallingEdgeOutputmemorystateretentionItcanbefoundthattheserialdataisconnectedtotheDSpin,butitisonlyinputtotheshiftregisterwhenSH_CPisarisingedge,andentersthestorageregisterwhenST_CPisarisingedge.Ifthetwoclocksareconnectedtogether,theshiftregisterisalwaysonepulseearlierthanthestorageregister.Theshiftregisterhasaserialshiftinput(Ds),aserialoutput(Q7),andanasynchronouslow-levelreset.Thestorageregisterhasaparallel8-bit,three-statebusoutput.WhenOEisenabled(lowlevel),thedataofthestorageregisterisoutputtothebus.3.1HardwareConnectionSincethe8-bitdigitaltubeneedstoprovideatotalof16bitsofsegmentcodeandbitcodeatthesametime,itcannotberealizedbyusingone74HC595.Tosolvethisproblem,weusetwo595chipstocascadeseriallytoprovidean8-bitsegmentcode(providedbyU2)andan8-bitcode(providedbyU3).ThesimulationhardwarecircuitisshowninFigure3.Theinputsignalof595isconnectedtothethreeI/OportsofP2.0~P2.2respectively.Amongthem,P2.0providesserialinputsignals,P2.1andP2.2provideoutputandinputclocksignalsrespectively.Figure3.SimulationHardwareCircuitDiagram3.2SoftwareProgrammingHere,weuse2piecesof74HC595chipsforserialcascading.Therefore,youmustpayattentiontothesequenceofserialdataoutputwhenprogramming.Theusualpracticeisasfollows:First,writethedata(iebitcode)ofthe74HC595chipatthenextlevel;Then,writethedata(iesegmentcode)ofthefirst-level74HC595chip;Finally,releasetheparalleloutputpinstogetheratonce.Thesampleprogramisasfollows(partial):voidOneLed_Out(uchari,ucharLocation){ucharj;OutByte=Location;for(j=1;j=8;j++){DS=Bit_Out;SH_CP=0;SH_CP=1;SH_CP=0;OutByte=OutByte1;}OutByte=~Segment[i];for(j=1;j=8;j++){DS=Bit_Out;SH_CP=0;SH_CP=1;SH_CP=0;OutByte=OutByte1;}ST_CP=0;ST_CP=1;ST_CP=0;}3.3SimulationDebuggingWecandrawthehardwarecircuitdiagramontheProteus7platform,andthenwritethesoftwareprogramontheKeil4.0platformandcompileanddebugit.Then,loadthegeneratedHEXfileintothesimulationchipandrunthesimulation.Ifallgoeswell,theresultswillbedisplayedcorrectly.Accordingtothedisplayrequirements,itcanrealize8-bitdigitaltubeshiftdisplayor8-bitdigitaltubesimultaneousdisplay.ThesimulationresultsareshowninFigures4and5.Figure4.ShiftDisplayof8-bitDigitalTubeFigure5.SimultaneousDisplayof8-bitDigitalTubesIVConclusionThetestresultsofthisblogshowthattherearemanyadvantagestothedisplaycontrolofmulti-digitdigitaltubesthroughthecascadeof74HC595chips.Thesebenefitsaremainlyreflectedinthefollowingaspects:Itcangreatlyreducethedisplaycontrolofthesingle-chipdigitaltube;ItcangreatlyreducetheoccupancyoftheMCUI/Oportline;Thecircuitissimpleandeasytoprogram.Themethodintroducedinthisblog,whetheritistoconductsimulationteachingonacomputer,ortobuildactualhardwarecircuits.Ingeneral,Thecurrent74HC595chipiscost-effective,andthecostofbuildingacircuitislow,makingitverysuitableforgeneraluse.FAQWhatis74HC595?74HC595isashiftregisterwhichworksonSerialINParallelOUTprotocol.Itreceivesdataseriallyfromthemicrocontrollerandthensendsoutthisdatathroughparallelpins.Wecanincreaseouroutputpinsby8usingthesinglechip.Whatisa74hc595n?8-bitShiftRegister74HC595NAshiftregisterisachipyoucanusetocontrolmanyoutputs(8here)atthesametimewhileonlyusingafewpins(3here)ofyourArduino.Howdoesashiftregisterwork?Shiftregistersholdthedataintheirmemorywhichismovedorshiftedtotheirrequiredpositionsoneachclockpulse.Eachclockpulseshiftsthecontentsoftheregisteronebitpositiontoeithertheleftortheright.How74HC595ShiftRegiesterworks?The595hastworegisters(whichcanbethoughtofasmemorycontainers),eachwithjust8bitsofdata.ThefirstoneiscalledtheShiftRegister.TheShiftRegisterliesdeepwithintheICcircuits,quietlyacceptinginput.Howdoesan8bitshiftregisterwork?TheSN74HC595Nisasimple8-bitshiftregisterIC.Simplyput,thisshiftregisterisadevicethatallowsadditionalinputsoroutputstobeaddedtoamicrocontrollerbyconvertingdatabetweenparallelandserialformats.YourchosenmicroprocessorisabletocommunicatewiththeTheSN74HC595Nusingserialinformationthengathersoroutputsinformationinaparallel(multi-pin)format.Essentiallyittakes8bitsfromtheserialinputandthenoutputsthemto8pins.Whatisadigitaltube?Lightemittingdiodeconnectstheanodetogetherandthenconnectedtothepowerofpositiveiscalledcommonanodedigitaltube,lightemittingdiodeconnectedtothecathodeandthenconnectedtothepowerofthecathodeiscalledcommoncathodedigitaltube.Whatisthedifferencebetweenshiftregisterandcounter?Inashiftregister,theinputofelementNistheoutputofelementN-1,andallelementsusethesameclock.Inacounter,theinputofelementNistheinverseofitsoutput,andtheclockofelementN+1istheoutputofelementN.IDescriptionTheinstrumentationamplifiercircuithasthefollowingfeatures:HighInputImpedance;HighCommon-modeRejectionRatio;LowDrift;...Theabovefeaturesmakeitwidelyusedinfieldsofsmallsignalamplificationofsensoroutput.Thisblogwillintroduce4implementationoptionsofinstrumentationamplifiercircuits.These4optionsaredesignedbasedondifferentelectroniccomponents.Andtheyarealsoonthebasisofexplainingthecircuitstructureandprincipleoftheinstrumentamplifier.Theelectroniccomponentsdiscussedinthisbloginclude:LM741,OP07,LM324,AD620.Wewillsummarizefeaturesofthe4circuitthroughtesting,analysisandcomparison.Ibelievethisblogcanprovideacertainreferenceforcircuitdesignbeginners.WhatAreInstrumentationAmpilfiers?CatalogIDescriptionIIIntroduction2.1InstrumentationAmplifierOverview2.2InstrumentationAmplifierStuctureandPrincipleIIIInstrumentationAmplifierCircuitDesign3.1LM741CircuitOption3.2OP07CircuitOption3.3LM324CircuitOption3.4AD620CircuitOptionIVPerformanceTestandAnalysisFAQOrdering&QuantityIIIntroduction2.1InstrumentationAmplifierOverviewThesignalsinputbysmartmetersthroughsensorsgenerallyhavethecharacteristicsofsmallsignals:Thesignalamplitudeisverysmall(millivoltorevenmicrovoltmagnitude);Oftenaccompaniedbyloudnoise.Forsuchsignals,thefirststepofcircuitprocessingisusuallytoamplifysmallsignalswithaninstrumentationamplifier.Themainpurposeofamplificationisnottogain,buttoimprovethesignal-to-noiseratioofthecircuit.Atthesametime,fortheinstrumentationamplifiercircuit,thesmallertheinputsignalthatcanberesolved,thebetter;thewiderthedynamicrange,thebetter.Therefore,theperformanceoftheinstrumentationamplifiercircuitdirectlyaffectstherangeoftheinputsignalthatthesmartinstrumentcandetect.2.2InstrumentationAmplifierStuctureandPrincipleThetypicalstructureoftheinstrumentamplifiercircuitisshownasinFig.1.Itismainlycomposedoftwo-stagedifferentialamplifiercircuit.Figure1.StructureofInstrumentationAmplifierAmongthem,theoperationalamplifierA1,A2arein-phasedifferentialinputmodes.Non-invertinginputcangreatlyincreasetheinputimpedanceofthecircuit.Atthesametime,itcanalsoreducetheattenuationofweakinputsignalsbythecircuit;Differentialinputcanmakethecircuitonlyamplifythedifferentialmodesignal,andonlyfollowthecommonmodeinputsignal.Inthisway,theratiooftheamplitudeofthedifferentialmodesignaltothecommonmodesignal(ie,thecommonmoderejectionratioCMRR)senttothesubsequentstageisimproved.Inthisway,inthedifferentialamplifiercircuitcomposedofoperationalamplifierA3asthecorecomponent,undertheconditionthattheCMRRrequirementsremainunchanged,theaccuracymatchingrequirementsforresistorsR3andR4,RfandR5canbesignificantlyreduced.Asaresult,theinstrumentationamplifiercircuithasbettercommonmoderejectioncapabilitythanasimpledifferentialamplifiercircuit.UndertheconditionsofR1=R2,R3=R4,Rf=R5,thegainofthecircuitinFigure1is:G=(1+2R1/Rg)(Rf/R3)ItcanbeseenfromtheformulathattheadjustmentofthecircuitgaincanbeachievedbychangingtheRgresistance.IIIInstrumentationAmplifierCircuitDesignAtpresent,theimplementationmethodsofinstrumentationamplifiercircuitsaremainlydividedintotwocategories:Thefirstcategoryiscomposedofdiscretecomponents;Thesecondcategoryisdirectlyimplementedbyasingleintegratedchip.Intheblog,withsingleopampLM741andOP07,integratedfouropampLM324andmonolithicintegratedchipAD620asthemainelectroniccomponents,4kindsofinstrumentationamplifiercircuitoptionsaredesigned.3.1LM741CircuitOptionConsistsofthreegeneral-purposeoperationalamplifiersLM741toformathreeoperationalamplifierinstrumentamplifiercircuitform.Andsupplementedbyrelatedresistorperipheralcircuits.Atthesametime,addthebridgesignalinputcircuitofthenon-invertinginputterminalsofA1andA2,asshowninFigure2.Figure2.SingleOpAmpInstrumentationAmplifierA1~A3inFigure2canbereplacedwithLM741respectively.Theworkingprincipleofthecircuitisexactlythesameasthatofatypicalinstrumentationamplifiercircuit.3.2OP07CircuitOptionComposedof3precisionoperationalamplifiersOP07,thecircuitstructureandprinciplearethesameasinFig.2(3OP07sareusedtoreplaceA1~A3inFig.2respectively).3.3LM324CircuitOptionTakeafouroperationalamplifierintegratedcircuitLM324asthemaincomponent,asshowninFigure3.Itscharacteristicistointegrate4functionallyindependentoperationalamplifiersintothesameintegratedchip.WhataretheadvantagesofusingLM324?Thatis,itispossibletogreatlyreducethedifferenceindeviceperformanceofeachopampduetodifferentmanufacturingprocesses.Inaddition,theuseofaunifiedpowersupplyisconducivetothereductionofpowersupplynoiseandtheimprovementofcircuitperformanceindicators.Andthebasicworkingprincipleofthecircuitremainsunchanged.Figure3.LM324InstrumentationAmplifier3.4AD620CircuitOptionThecircuitconsistsofamonolithicintegratedchipAD620asthemainelectroniccomponents,asshowninFigure4.Itischaracterizedbyasimplecircuitstructure:anAD620,againsettingresistorRg,andaworkingpowersupply.Therefore,thedesignefficiencyisveryhigh.ThecircuitgaincalculationformulainFig.4is:G=49.4K/Rg+1.Figure4.AD620InstrumentationAmplifierIVPerformanceTestandAnalysisThefouroptionsoftheinstrumentationamplifiercircuitalladopttheformofabridgecircuitcomposedof4resistors,whichchangesthedouble-endeddifferentialinputintoasingle-endedsignalsourceinput.Theperformancetestismainlytocarryoutsimulationandactualcircuitperformancetestfromthefollowingaspects:1.ThemaximuminputofthesignalsourceVs;2.VsminimuminputofsignalsourceVs;3.Themaximumgainofthecircuit;4.Commonmoderejectionratio.ThetestdataareshowninTable1andTable2.Amongthem,themaximum(small)inputofVsreferstothemaximum(small)inputofthesignalsourcewhenthecircuitoutputisnotdistortedundergiventestconditions.Themaximumgainreferstothemaximumgainvalueofthecircuitthatcanbeachievedwhentheoutputisnotdistortedunderthegiventestconditions.ThecommonmoderejectionratioiscalculatedbytheformulaKCMRR=20|g|AVd/AVC|(dB).Note:fisthefrequencyofVsinputsignal;Thevoltagemeasurementdatainthetableareallexpressedbypeak-to-peakvalue;Duetothesimulationdevice,thesimulationofoption3withMultisimfailedintheexperiment,and-inTable1indicatesthefailuredata;Options1to4inthetablerespectivelyrepresenttheinstrumentationamplifiercircuitcomposedofLM741,OP07,LM324andAD620respectively.FromthemeasureddatainTable2,wecanseefromit:Foroption2,ithasthebestperformanceintermsofsignalinputrange(thatis,themaximumandminimuminputofVs),circuitgain,andcommon-moderejectionratio.Intermsofcomponentprice,itisalittlehigherthanthecostoftheLM741option1andtheLM324option3,butitismuchcheaperthantheAD620option4.Therefore,amongthefouroptions,option2ofOP07hasthehighestcostperformance.Foroption4,inadditiontoitsrelativelysmallmaximumgain,itsotherperformanceissecondonlytooption2.option4hastheadvantagesofsimplecircuit,superiorperformance,andsavingdesignspace.However,thehighcostisitsbiggestdisadvantage.Foroption1andoption3,thereislittledifferenceintheirperformance.option3isslightlybetterthanoption1,andtheyalsohaveabsolutepriceadvantages,buttheirperformanceisnotasgoodasoption2andoption4.Basedontheaboveanalysis,option2andoption4aresuitableforoccasionswithhigherperformancerequirementsforinstrumentamplifiercircuits.Amongthem:Option2ofOP07isthemostcost-effectiveOption4ofAD620issimpleandefficient,butthecostishigh.Option1ofLM741andOption3ofLM324aresuitableforoccasionswhereperformancerequirementsarenothighandcostsavingsareneeded.Accordingtospecificcircuitdesignrequirements,differentoptionsareselectedtoachieveoptimalresourceutilization.Figure5.InstrumentationAmplifierICInaddition,afterthecircuitdesignplanisdetermined,thefollowingaspectsshouldbepaidattentiontointhespecificcircuitdesignprocess:1.Payattentiontotheselectionofkeycomponents.Forexample,forthecircuitshowninFigure2,thereareafewthingstopayattentionto:MakethecharacteristicsofopampA1andA2asconsistentaspossible;Whenselectingresistors,resistorswithalowtemperaturecoefficientshouldbeusedtoobtainthelowestpossibledrift;TheselectionofR3,R4,R5andR6shouldmatchasmuchaspossible.2.Payattentiontoaddingvariousanti-interferencemeasuresinthecircuit.suchas:Thepowersupplydecouplingcapacitorshouldbeaddedatthelead-inendofthepowersupply;RClow-passfilteringshouldbeaddedtothesignalinputterminalorhigh-frequencynoisecancelingcapacitorsshouldbeaddedtothefeedbackloopoftheoperationalamplifierA1andA2;ThePCBdesignshouldbecarefullylaidoutandroutedreasonably,andgroundwiresshouldbehandledcorrectly.FAQWhatislm324?LM324isaQuadop-ampICintegratedwithfourop-ampspoweredbyacommonpowersupply.Thedifferentialinputvoltagerangecanbeequaltothatofpowersupplyvoltage....Generally,op-ampscanperformmathematicaloperations.Whichisthedifferencebetweenlm324andlm339?TheLM324hasacomplementaryoutputwhiletheLM339isopencollector.Inthecomplementaryoutput,currentcanflowineitherdirectionasrequired(eithersourceorsink)whiletheopencollectoroutputcanonlysinkcurrent.Whatisopampusefor?OperationalamplifiersarelineardevicesthathaveallthepropertiesrequiredfornearlyidealDCamplificationandarethereforeusedextensivelyinsignalconditioning,filteringortoperformmathematicaloperationssuchasadd,subtract,integrationanddifferentiation.Howdoesanopampwork?Whatislm324usedfor?LM324ICApplicationsTheapplicationsofICLM324includethefollowing.ByusingthisIC,theconventionalop-ampapplicationscanbeimplementedverysimply.ThisICcanbeusedasoscillators,rectifiers,amplifiers,comparatorsetc.