液位传感器使用手册.pdf
LiquidLevelSensorUserManualWaveshare
LiquidLevelSensorUserManual
1.Features
Operatingvoltage2.0V-5.0V
OutputtypeAnalogoutput
Detectabledepth48mm
Dimensions19.0mm*63.0mm
Fixingholesize2.0mm
Operatingprinciple:
Thismoduleisanapplicationofthecurrentamplificationbyatransistor.
Whentheliquidlevelishighenoughtoconductthecurrentbetweenthe
baseandthepositivepowersupply,acertainamountofcurrentis
generatedbetweenthebaseandtheemitter.Andinameanwhile,an
electriccurrentisproducedinacertainamplificationfactorbetweenthe
collectorandtheemitter,andappliedtotheresistantintheemitterto
produceavoltage.Then,thisvoltagewillbecollectedbyanADconverter.
2.Applications
Thismodulecanbeappliedtoliquidlevelalarmsystem.
3.Interfaces
PinNo.SymbolDescriptions
1AOUTAnalogoutput
2GNDPowerground
Positivepower
3VCC
supply(3.3V-5.0V)
4.Howtouse
Wewillillustratetheusageofthemodulewithanexampleofliquidlevel
detectionbyconnectingadevelopmentboard.
①Downloadtherelativecodestothedevelopmentboard.
②ConnectthedevelopmentboardtoaPCviaaserialwireandthe
moduletothedevelopmentboard.Then,powerupthedevelopment
boardandstarttheserialdebuggingsoftware.
Hereistheconfigurationoftheconnectionbetweenthe