Link£ºhttps://pan.baidu.com/s/12xiq32UP32d9cvxCby1z-g
Extraction Code£º1234
After Copying This Content, Open Baidu Netdisk Mobile PhoneApp£¬More Convenient to Operate
Module Application£º
Alcohol£¨Ethanol£©Detection£¬On-Site Inspection for Motor Vehicle Drivers and Other Prohibited Drunk Operators£¬It Is Also Used for the Detection of Ethanol Vapor in Other Places.
Module Features£º
1¡¢Designed with High Quality Double-Sided Board£¬With Power Indication andTTLSignal Output Indication£»
2¡¢WithDOSwitch Signal£¨TTL£©Output AndAOAnalog Signal Output£»
3¡¢TTLThe Output Effective Signal Is Low¡££¨When the Output Is Low, the Signal Light Is on.£¬Can Be Directly Connected to Single Chip Microcomputer Or Relay Module£©
4¡¢Analog Output Voltage£¬The Higher the Concentration, the Higher the Voltage.¡£
5¡¢Good Sensitivity to Alcohol Detection¡£
6¡¢There Are Four Screw Holes for Easy Positioning£»
7¡¢Product Size£º35.5(L)*22.5(W)*23(H)
8¡¢Long-Term Service Life and Reliable Stability
9¡¢Fast Response Recovery Feature
Electrical Performance£º
Input Voltage£ºDC5V Power Consumption£¨Current£©£º150mA
DOOutput£ºTTLNumber0and1£¨0.1and3.3V£©
AOOutput£º0.1-0.3V£¨Relatively Pollution-Free£©£¬Highest Concentration Voltage4VAbout
Special Remind£ºAfter the Sensor Is Powered on£¬Need to Warm up20SAbout£¬The Measured Data Is Stable£¬Sensor Heating Is Normal£¬Because There Are Heating Wire inside£¬If It Is Hot, It Will Not Be Normal¡£
Electrical Performance£º
Input Voltage£ºDC5V Power Consumption£¨Current£©£º150mA
DOOutput£ºTTLNumber0and1£¨0.1and3.3V£©
AOOutput£º0.1-0.3V£¨Relatively Pollution-Free£©£¬Highest Concentration Voltage4VAbout
Special Remind£ºAfter the Sensor Is Powered on£¬Need to Warm up20SAbout£¬The Measured Data Is Stable£¬Sensor Heating Is Normal£¬Because There Are Heating Wire inside£¬If It Is Hot, It Will Not Be Normal¡£
Connection Mode£º
1¡¢VCC:Connect to the Positive Electrode of the Power Supply£¨5V£©
2¡¢GND:Connected to the Negative Pole of the Power Supply
3¡¢DO:TTLSwitch Signal Output
4¡¢AO:Analog Signal Output
Test Procedure£º
Implement Functions:This Version of the Supporting Test Program
Use Chip£ºAT89S52
Crystal Oscillator£º11.0592MHZ
The Baud Rate£º9600
Compilation Environment£ºleon
¡¼Statement¡½This Program Is for Learning and Reference Only£¬Please Specify Copyright and Author Information for Quotation.£¡
*********************************************************************/
/********************************************************************
Description£º1¡¢When the Measured Concentration Is Greater than the Set Concentration£¬Single-Chip MicrocomputerIOPort Output Low Level
*********************************************************************/
#include//Library File
#define uchar unsigned char//Macro Definition Unsigned Character Type
#define uint unsigned int //Macro-Defined Unsigned Integer
/********************************************************************
I/ODefinition
*********************************************************************/
sbit LED=P1^0;//Define Single Chip MicrocomputerP1The First of the Mouth1Bit £¨NamelyP1.0£©As Indicator
sbit DOUT=P2^0;//Define Single Chip MicrocomputerP2The First of the Mouth1Bit £¨NamelyP2.0£©The Input of the Sensor.
/********************************************************************
Delay Function
*********************************************************************/
void delay()//Delay Program
{
uchar m,n,s;
for(m=20;m>0;m--)
for(n=20;n>0;n--)
for(s=248;s>0;s--);
}
/********************************************************************
Main Function
*********************************************************************/
void main()
{
while(1) //Infinite Loop
{
LED=1;//QuenchingP1.0Mouth Light
if(DOUT==0)//When the Concentration Is Higher than the Set Value £¬Execute Conditional Functions
{
delay();//Delay Anti-Interference
if(DOUT==0)//To Determine When the Concentration Is Higher than the Set Value £¬Execute Conditional Functions
{
LED=0;//Light upP1.0Mouth Light
}
}
}
}
/********************************************************************
The End of
********************************************************************