



The Alcohol Click Board™ has a high sensitivity to alcohol and it can be used to detect alcohol in concentrations from 0.04 to 4mg/l.
Alcohol click carries an MQ-3 Semiconductor sensor for alcohol. The click is designed to run on a 5V power supply only. It communicates with the target microcontroller through the AN pin on the mikroBUS™ line.
MQ-3 Sensor Features
The gas sensing layer on the sensor unit is made of Tin dioxide (SnO2), an inorganic compound that has lower conductivity in clean air. The conductivity increases as the levels of alcohol gas rise.
Sensor Calibration
To calibrate the sensor for the environment you'll be using it in, the Alcohol Click Board™ has a small potentiometer that allows you to adjust the Load Resistance of the sensor circuit.
Key Features
- MQ-3 sensor
- Concentration: 0.04-4mg/l alcohol
- Sensitivity: Rs(in air)/Rs(0.4mg/LAlcohol)≥5
- Interface: Analog
- 5V power supply
Software Support
Application Task
Reads the ADC value and prints in two forms (DEC and HEX).
void application_task ( void ) {
uint16_t alcohol_an_value = 0;
if ( alcohol_read_an_pin_value ( &alcohol, &alcohol_an_value ) != ADC_ERROR ) {
log_printf( &logger, " ADC Value : %u\r\n", alcohol_an_value );
}
float alcohol_an_voltage = 0;
if ( alcohol_read_an_pin_voltage ( &alcohol, &alcohol_an_voltage ) != ADC_ERROR ) {
log_printf( &logger, " AN Voltage : %.3f[V]\r\n\n", alcohol_an_voltage );
}
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager (recommended way), downloaded from our LibStock™ or found on Mikroe GitHub account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Alcohol
Additional Notes and Information
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.
Alcohol Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.