Tkool Electronics

DescriptionDS18B20isatemperaturesensorofMaxim.Thesingle-chipmicrocomputercancommunicatewithDS18B20through1-Wireprotocolandfinallyreadthetemperature.Thehardwareinterfaceofthe1-Wirebusisverysimple,justconnectthedatapinofDS18B20toanIOportofthemicrocontroller.ThisVideoIntroducesDS18B20withDatasheetCatalogDescriptionDocumentandMediaDS18B20PinoutParametersAdvantageFeaturesApplicationsDS18B20CircuitSchematicDS18B20TemperatureSensorDataDS18B20BlockDiagramHowtousetheDS18B20SensorWheretouseDS18B20SensorProductManufacturerFAQOrdering&QuantityDocumentandMediaComponentDatasheetDS18B20DatasheetDS18B20PinoutPinNameFunctionSOSOPTO-921,2,6,7,82,3,5,6,7-N.C.NoConnection383VDDOptionalVDD.VDDmustbegroundedforoperationinparasitepowermode.412DQDataInput/Output.Open-drain1-Wireinterfacepin.Alsoprovidespowertothedevicewhenusedinparasitepowermode(seethePoweringtheDS18B20section.)541GNDGroundParametersAccuracy(C)0.5ChannelsOneInterface1-WireMultiDroppableYesOper.Temp.(C)-55to+125Package/PinsSOIC(N)/8,TO92/3,UMAX/8ParasitePwr.YesPartNumberDS18B20SensorTypeLocalTemp.Resolution(bits)9,10,11,12Temp.Thresh.Programmable(NV)AdvantageTheDS18B20digitalthermometerprovides9-bitto12-bitCelsiustemperaturemeasurementsandhasanalarmfunctionwithnonvolatileuser-programmableupperandlowertriggerpoints.TheDS18B20communicatesovera1-Wirebusthatbydefinitionrequiresonlyonedataline(andground)forcommunicationwithacentralmicroprocessor.Inaddition,theDS18B20canderivepowerdirectlyfromthedataline(parasitepower),eliminatingtheneedforanexternalpowersupply.EachDS18B20hasaunique64-bitserialcode,whichallowsmultipleDS18B20stofunctiononthesame1-Wirebus.Thus,itissimpletouseonemicroprocessortocontrolmanyDS18B20sdistributedoveralargearea.ApplicationsthatcanbenefitfromthisfeatureincludeHVACenvironmentalcontrols,temperaturemonitoringsystemsinsidebuildings,equipment,ormachinery,andprocessmonitoringandcontrolsystems.FeaturesUnique1-WireInterfaceRequiresOnlyOnePortPinforCommunicationReduceComponentCountwithIntegratedTemperatureSensorandEEPROMMeasuresTemperaturesfrom-55Cto+125C(-67Fto+257F)0.5CAccuracyfrom-10Cto+85CProgrammableResolutionfrom9Bitsto12BitsNoExternalComponentsRequiredParasiticPowerModeRequiresOnly2PinsforOperation(DQandGND)SimplifiesDistributedTemperature-SensingApplicationswithMultidropCapabilityEachDeviceHasaUnique64-BitSerialCodeStoredinOn-BoardROMFlexibleUser-DefinableNonvolatile(NV)AlarmSettingswithAlarmSearchCommandIdentifiesDeviceswithTemperaturesOutsideProgrammedLimitsAvailablein8-PinSO(150mils),8-PinSOP,and3-PinTO-92PackagesApplicationsConsumerProductsIndustrialSystemsThermallySensitiveSystemsThermometersThermostaticControlsDS18B20CircuitSchematicDS18B20TemperatureSensorDataDS18B20canachievethehighest12-bittemperaturestoragevaluethroughprogramming.Thetemperaturestoragevalueisstoredintheregisterinacomplementformat.Thereare2bytesintotal,LSBisthelowbyteandMSBisthehighbyte.Amongthem,MSbisthehighbitofthebyte,andLSbisthelowbitofthebyte.Forbinarynumbers,themeaningofthetemperaturerepresentedbyeachofthemisexpressed.Amongthem,Srepresentsthesignbit,andthelower11bitsareallpowersof2,whichareusedtorepresentthefinaltemperature.ThetemperaturemeasurementrangeofDS18B20isfrom-55degreesto+125degrees.Themanifestationoftemperaturedatahaspositiveandnegativetemperatures.Eachnumberintheregisterisdistributedlikethescaleofacaliper.Thelowestbitofthebinarynumberchanges1,whichrepresentsthemappingrelationshipofatemperaturechangeof0.0625degrees.Whenthetemperatureis0℃,thecorrespondinghexadecimalnumberis0x0000.Whenthetemperatureis125℃,thecorrespondinghexadecimalnumberis0x07D0.Whenthetemperatureisminus55℃,thecorrespondinghexadecimalnumberis0xFC90.Conversely,whenthenumberis0x0001,thetemperatureis0.0625℃.DS18B20BlockDiagramHowtousetheDS18B20SensorThesensorworkswiththemethodof1-Wirecommunication.Itrequiresonlythedatapinconnectedtothemicrocontrollerwithapullupresistorandtheothertwopinsareusedforpowerasshownbelow.Thepull-upresistorisusedtokeepthelineinhighstatewhenthebusisnotinuse.Thetemperaturevaluemeasuredbythesensorwillbestoredina2-byteregisterinsidethesensor.Thisdatacanbereadbytheusingthe1-wiremethodbysendinginasequenceofdata.Therearetwotypesofcommandsthataretobesenttoreadthevalues,oneisaROMcommandandtheotherisfunctioncommand.TheaddressvalueofeachROMmemoryalongwiththesequenceisgiveninthedatasheetbelow.Youhavetoreadthroughittounderstandhowtocommunicatewiththesensor.IfyouareplanningtointerfaceitwithArduino,thenyouneednotworryaboutallthese.Youcandevelopthereadilyavailablelibraryandusethein-builtfunctionstoaccessthedata.WheretouseDS18B20SensorTheDS18B20isa1-wireprogrammableTemperaturesensorfrommaximintegrated.Itiswidelyusedtomeasuretemperatureinhardenvironmentslikeinchemicalsolutions,minesorsoiletc.Theconstrictionofthesensorisruggedandalsocanbepurchasedwithawaterproofoptionmakingthemountingprocesseasy.Itcanmeasureawiderangeoftemperaturefrom-55Cto+125withadecentaccuracyof5C.EachsensorhasauniqueaddressandrequiresonlyonepinoftheMCUtotransferdatasoitaverygoodchoiceformeasuringtemperatureatmultiplepointswithoutcompromisingmuchofyourdigitalpinsonthemicrocontroller.ProductManufacturerMaximIntegratedprovideseaseofdesign,andspeedstimetomarket,throughanalogintegration.ThecompanysanalogICsofferextrafeaturesandfunctionalitycarefullydesignedtostreamlinecircuitandsimplifydesign.LooktoMaximforsolutionsforconsumerelectronics,personalcomputersandperipherals,mobiledevices,wirelessandfibercommunications,testequipment,instrumentation,videodisplays,andautomotiveapplications.Maximsanalogandmixed-signalsolutionsincludedataconverters,interfacecircuits,power,RFwirelesscircuits,clocksandoscillators,microcontrollers(MCUs),operationalamplifiers(opamps),andsensors.FAQWhatisDS18B20temperaturesensor?TheDS18B20isa1-wireprogrammabletemperaturesensorfrommaximintegrated.Itiswidelyusedtomeasuretemperatureinhardenvironmentslikeinchemicalsolutions,minesorsoiletc.Theconstrictionofthesensorisruggedandalsocanbepurchasedwithawaterproofoptionmakingthemountingprocesseasy.HowdoestheDS18B20work?Itworksontheprincipleofdirectconversionoftemperatureintoadigitalvalue.IsDS18B20athermistor?Athermistorisathermalresistor-aresistorthatchangesitsresistancewithtemperature....Thermistorshavesomebenefitsoverotherkindsoftemperaturesensorssuchasanalogoutputchips(LM35/TMP36)ordigitaltemperaturesensorchips(DS18B20)orthermocouples.HowaccurateisDS18B20?TheDS18B20readswithanaccuracyof0.5Cfrom-10Cto+85Cand2Caccuracyfrom-55Cto+125C.Whatisds1820?TheDS18B20isonetypeoftemperaturesensoranditsupplies9-bitto12-bitreadingsoftemperature....Thecommunicationofthissensorcanbedonethroughaone-wirebusprotocolwhichusesonedatalinetocommunicatewithaninnermicroprocessor.HowdoIconnectmyDS18B20tomyRaspberryPi?OnceyouveconnectedtheDS18B20,powerupyourPiandlogin,thenfollowthesestepstoenabletheOne-Wireinterface:1.Atthecommandprompt,entersudonano/boot/config.txt,thenaddthistothebottomofthefile:2.dtoverlay=w1-gpio.3.ExitNano,andrebootthePiwithsudoreboot.WhatistheworkingprincipleofDS18B20?TheDS18B20DigitalThermometerprovides9to12-bit(configurable)temperaturereadingswhichindicatethetemperatureofthedevice.Itcommunicatesovera1-Wirebusthatbydefinitionrequiresonlyonedataline(andground)forcommunicationwithacentralmicroprocessor.Inadditionitcanderivepowerdirectlyfromthedataline(parasitepower),eliminatingtheneedforanexternalpowersupply.ThecorefunctionalityoftheDS18B20isitsdirect-to-digitaltemperaturesensor.Theresolutionofthetemperaturesensorisuser-configurableto9,10,11,or12bits,correspondingtoincrementsof0.5C,0.25C,0.125C,and0.0625C,respectively.Thedefaultresolutionatpower-upis12-bit.WheretouseDS18B20Sensor?TheDS18B20isa1-wireprogrammableTemperaturesensorfrommaximintegrated.Itiswidelyusedtomeasuretemperatureinhardenvironmentslikeinchemicalsolutions,minesorsoiletc.Theconstrictionofthesensorisruggedandalsocanbepurchasedwithawaterproofoptionmakingthemountingprocesseasy.Itcanmeasureawiderangeoftemperaturefrom-55Cto+125withadecentaccuracyof5C.EachsensorhasauniqueaddressandrequiresonlyonepinoftheMCUtotransferdatasoitaverygoodchoiceformeasuringtemperatureatmultiplepointswithoutcompromisingmuchofyourdigitalpinsonthemicrocontroller.HowconnectDS18B20toArduino?FirstplugthesensoronthebreadboardtheconnectitspinstotheArduinousingthejumpersinthefollowingorder:pin1toGND;pin2toanydigitalpin(pin2inourcase);pin3to+5Vor+3.3V,attheendputthepull-upresistor.OnanATMega328P,whyisaDS18B20temperaturesensorreturningincorrecttemperaturevalues?Severalpossibilities:1.Ifitisjustreadingalittlehigh,itmightbecausedbyselfheating.Addaheatsinkand/ormakemeasurementslessfrequently.2.Especiallyifthevaluesarereallywhacky,itmightbecodewitherrorsormis-wiring.Useapublishedsketchtocheckoperation.3.TheDS18B20mightbedefective.Tryanother.4.Itsaccurateto0.5C.Areyouexpectingittobemoreaccurate(likedowntotheLSBofthereadvalue)?

STM32F205VET7-100-LQFP-STMicroelectronics

I.DesriptionInthefieldofmeasurementandcontrol,itisoftenencounteredthattheoutputsignalofthemonitoredo

170FINC

DescriptionUC3842isacurrentcontrolpulsewidthmodulationchipwithexcellentperformance.UC3842modulatorsi

STM32F100RBT6B-64-LQFP-STMicroelectronics

IntrodcutionTheCD4066isaquadbilateralswitchwhichcanbeappliedforswitchingofanalogsignalsanddigitalsig

9QCLK

IDescriptionIndailylife,calendarclocksareusedinvariousplaces.Suchasshoppingmalls,supermarkets,office

HC244

DescriptionTheCD405xBanalogmultiplexersanddemultiplexersaredigitally-controlledanalogswitcheshavingl

STM32F042K6T7-32-LQFP-STMicroelectronics

DescriptionLM317isaadjustable3-terminalpositive-voltageregulator,thisbolgcoversLM317regulatoralterna

4066IC

IDescriptionThisblogintroducesatemperatureacquisitionandalarmsystembasedonAT89S52microcontrollerandD

LM7810

DescriptionLED,asthefirstbasicfunctiontobecompletedinMCUlearning,playsaveryimportantroleinMCUlearner

FQA19N60-NONMPP0100-ON

IDescriptionAD620isalow-power,high-precisioninstrumentationamplifier.Basedontheinformationprovidedby

NAU88C22YG_A5ED-CNVOWN0100-NUVOTON

IDescriptionIndatacollection,whentheamountofcollectionisrelativelylarge,theproblemofinsufficientSCMr

Powered By Tkool Electronics

Copyright Your WebSite.sitemap