DesignoftheDataAcquisitionSystemBasedonSTM32ABSTRACTEarlydetectionoffailuresinmachineryequipmentsisoneofthemostimportantconcernstoindustry.Inordertomonitoreffectiveofrotatingmachinery,wedevelopmentamicro-controlleruC/OS-IIsystemofsignalacquisitionsystembasedonSTM32inthispaper.wehavegiventhewholedesignschemeofsystemandthemulti-channelvibrationsignalinaxisX,YandZoftherotaryshaftcanbeacquiredrapidlyanddisplayinreal-time.Oursystemhasthecharacterofsimplestructure,lowpowerconsumption,miniaturization.Keywords:STM32;dataacquisition;embeddedsystem;uC/OS-II;1.1.IntroductionThereal-timeacquisitionofvibrationinrotatingmachinerycaneffectivelypredict,assessanddiagnoseequipmentoperationstate,theindustrygetsvibrationdataacquisitionRapidlyandanalysisinreal-timecanmonitortherotatingmachinerystateandguaranteethesaferunningoftheequipment.Inordertopreventfailure,reducemaintenancetime,improvetheeconomicefficiency,Thepurposeoffaultdiagnosissystemcandetectthesedevicesthroughthevibrationsignalacquisitionofrotatingmachinery,andprocessthedataacquisition,thenitwillmaketimelyjudgmentofrunningstateofequipment.Whilethedataacquisitionmoduleisthecorepartofthefaultdiagnosissystem[1-4].Thepracticalapplicationintheindustrialfield,istheequipmentoperatingparameterswillbeacquiredtomonitorequipmentoperatingstate.Intraditionaldataacquisitionsystems,thedatafromacquisitioncardaregenerallysendintothecomputer,andspecificsoftwarewillbedevelopedforthedataacquisition.ThemaincontributionofthispaperhasdesignedtheSTM32platformwithARMtechnology,thathasbecomeatraditionalmainstreamtechnologyinembeddedsystems,andthecollectingdatatowardthedirectionofhighreal-time,multi-parameter,high-precision,whiledatastoragebecomelargecapacity,moreminiaturizationandportable,andthedevelopmentofmulticommunicationmodeandlong-distancefordatatransmission.Soastomeettheactualacquisitionsystemmultitaskingrequirements,thisarticlehasdesignedbasedonSTM32micro-controlleruC/OS-IIsystemofsignalacquisitionsystem.Therefore,inordertomeettheactualacquisitionsystemmultitaskrequirements,thisnoveltyofthisarticlehasdesignedasignalacquisitionsysteminmicro-controlleruC/OS-IIbasedonSTM32.2.ArchitectureofdataacquisitionsystemDataacquisitionaskeytechnologyformonitoringequipment,recentlyalotofworkhasbeendoneonit.AnembeddedparalleldataacquisitionsystembasedonFPGAisOptimizeddesignedwhichwillmakeitreasonabletodivideandallocatehigh-speedandlow-speedA/D[5].Instead,ithasuseahigh-speedA/DconverterandStratixIIseriesofFPGAfordatacollectionandprocessing,inwhichthemaincontributionisusedoftheCompactPeripheralComponentInterconnect,thesystemhasthecharactersofmodularization,sturdinessandscalability[6].ButremotecontrolwillbeneededinSpecialConditions,thispaperintroducetheembeddedoperatingsystemplatformbasedonWindowsCEanduC/OS-IItodesignaremoteacquisitionandcontrolsystemwiththeGPRSwirelesstechnology[7-8].Inordertoachievethedatasharingofmulti-user,ithasbuildtheembeddeddynamicwebsitefordataacquisitionmanagementanddisseminationwiththeARM9andLinuxoperationsystem[9].AdatacollectionterminaldevicesisdesignedbasedonARM7microprocessorLPC2290andembeddedreal-timeoperatingsystemuC/OS-IItosolvethereal-timeacquisitionofmultichannelsmallsignalandmulti-channeltransmission[10].Ontheotherhands,twoparallelDSP-basedsystemdedicatedtothedataacquisitiononrotatingmachines,andtheinnersignalconditionerisusedto...