# Title: Alcohol 3 Click Board™
## Description: The Alcohol 3 Click Board™ contains the required resistances used to form a voltage divider with the sensor, as well as the accurate SAR type ADC with a 12-bit resolution which allows the voltage to be converted, using 5V from the mikroBUS™ rail as a voltage reference. Featuring the MiCS-5524, a robust and reliable gas sensor that requires a minimal number of additional components, the MCP3221, an accurate 12-bit ADC by Microchip, proven in many Click board™ designs so far, Alcohol 3 click represents an ideal solution for the rapid development of all kinds of breathalyzer applications, gas leakage applications, fire detection applications, CO detectors, and similar reducing gasses detecting applications. How Does The Alcohol 3 Click Board™ Work? The Alcohol 3 Click Board™ is equipped with the MiCS-5524 sensor, a compact MOS sensor from SGX Sensortech. This sensor consists of a micromachined metal oxide semiconductor diaphragm, with an integrated heating resistor. The resistor produces heat which catalyzes the reaction, which in turn affects the electrical resistance of the oxide layer itself. The temperature of the heater is quite high: it is in the range from 350 °C to 550 °C. After the initial preheating period, the sensor can detect gas changes in time intervals below two seconds. The resistance of the MiCS-5524 sensor does not change linearly with the gas concentration, so a proper calibration must be performed prior to using it for absolute gas concentration measurement applications. The impedance changes the most when used with low gas concentrations. As the atmosphere gets saturated with gas, the impedance changes slower. This should be taken into an account, especially when developing applications for estimating blood alcohol content (BAC) from a breath sample (also known as breathalyzers). The MiCS-5524 sensor is a simple device: it has only four connections. Two pins are the connections of the internal heating element, while the other two pins are the MOS sensor connections. The application is reduced to calculating a proper resistor for the voltage divider. The datasheet of the MiCS-5524 sensor offers typical values for its resistance when used in clean air (artificial conditions). The sensitivity is then expressed as the ratio between the resistance of the sensor in clean air and resistance at a concentration of 60 ppm CO. The middle tap between the sensor (as a resistor) and the fixed resistance is used to provide an output voltage. It directly depends on the resistance of the sensor, allowing it to be used as the input into the MCP3221, a low-power 12-bit A/D converter with an I2C interface, from Microchip. This ADC allows the output voltage to be translated into digital information, which can be accessed over the I2C pins on the mikroBUS™ socket. By using the power supply voltage as the voltage reference for the conversion, this ADC further reduces the complexity of the design, still offering a good conversion quality, thanks to its low noise input. Due to the sensor's inert nature, this ADC is more than fast enough, although it can provide up to 22.3 Ksps when operated in the I2C Fast mode. The I2C communication voltage level can be adjusted so that the Click board™ can be used with both 3.3V and 5V MCUs. The provided SMD jumper labelled as VCC SEL can be used to select the desired voltage level. However, the Click board™ requires +5V for a proper operation, regardless of the logic voltage level selection jumper. Specifications Type Alcohol,Gas Applications It can be used for various alcohol breath tester applications, early fire and gas leakage warning applications, VOC concentration warning applications, and similar On-board modules MiCS-5524 sensor, a compact MOS sensor from SGX Sensortech; MCP3221, a low-power 12-bit A/D converter with I2C interface, from Microchip Key Features Robust and reliable MOS sensor, a high-quality 12-bit ADC from Microchip onboard, can detect a range of different redux gasses, ideal for a breathalyzer application development, etc Interface I2C Compatibility mikroBUS Click board size M (42.9 x 25.4 mm) Input Voltage 3.3V or 5V Pinout Diagram This table shows how the pinout on the Alcohol 3 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns). Notes Pin Pin Notes NC 1 AN PWM 16 NC NC 2 RST INT 15 NC NC 3 CS RX 14 NC NC 4 SCK TX 13 NC NC 5 MISO SCL 12 SCL I2C Clock NC 6 MOSI SDA 11 SDA I2C Data Power Supply +3V3 7 3.3V 5V 10 +5V Power Supply Ground GND 8 GND GND 9 GND Ground Onboard settings and indicators Label Name Default Description LD1 PWR - Power LED indicator JP1 VCC SEL Left Power supply voltage selection
## Product type: Click Board
## Vendor: Mikroelektronika d.o.o.
## Tags: Alcohol, Amphenol SGX Sensortech, Click Board, Gas, MikroE, Sensor
## Price range: 26.6 - 26.6 GBP
## Link: https://thedebugstore.com/products/mikroe-3318-alcohol-3-click-board-uk
## Compare-at price range: 38.0 - 38.0 GBP
## Options
- Title: Default Title
## Collections
- [New Products](https://thedebugstore.com/a/llms/collections/new-products-debug-store)
- [Mikroelektronika d.o.o. (MikroE)](https://thedebugstore.com/a/llms/collections/mikroelektronika-catalogue-uk)
- [Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/sensor-click-boards-catalogue)
- [MikroE Click Boards™](https://thedebugstore.com/a/llms/collections/mikroe-click-boards-catalogue-uk)
- [Gas Sensor Click Boards™](https://thedebugstore.com/a/llms/collections/gas-sensor-click-boards-catalogue)
- [Click Boards™ Summer Sale](https://thedebugstore.com/a/llms/collections/inventory-sale)
- [Amphenol SGX Sensortech Device Support: Development Boards & Tools](https://thedebugstore.com/a/llms/collections/amphenol-sgx-sensortech-device-support-development-boards-tools)
- [MikroE Sale](https://thedebugstore.com/a/llms/collections/mikroe-sale)
- [MIKROE Stock](https://thedebugstore.com/a/llms/collections/mikroe-products-in-stock-sale)
## Variants
- Default Title, SKU: MIKROE-3318, Available: yes, Inventory: 1
## Metafields
- full_description: The Alcohol 3 Click Board™ contains the required resistances used to form a voltage divider with the sensor, as well as the accurate SAR type ADC with a 12-bit resolution which allows the voltage to be converted, using 5V from the mikroBUS™ rail as a voltage reference. Featuring the MiCS-5524, a robust and reliable gas sensor that requires a minimal number of additional components, the MCP3221, an accurate 12-bit ADC by Microchip, proven in many Click board™ designs so far, Alcohol 3 click represents an ideal solution for the rapid development of all kinds of breathalyzer applications, gas leakage applications, fire detection applications, CO detectors, and similar reducing gasses detecting applications. The Alcohol 3 Click Board™ is equipped with the MiCS-5524 sensor, a compact MOS sensor from SGX Sensortech. This sensor consists of a micromachined metal oxide semiconductor diaphragm, with an integrated heating resistor. The resistor produces heat which catalyzes the reaction, which in turn affects the electrical resistance of the oxide layer itself. The temperature of the heater is quite high: it is in the range from 350 °C to 550 °C. After the initial preheating period, the sensor can detect gas changes in time intervals below two seconds. The resistance of the MiCS-5524 sensor does not change linearly with the gas concentration, so a proper calibration must be performed prior to using it for absolute gas concentration measurement applications. The impedance changes the most when used with low gas concentrations. As the atmosphere gets saturated with gas, the impedance changes slower. This should be taken into an account, especially when developing applications for estimating blood alcohol content (BAC) from a breath sample (also known as breathalyzers). The MiCS-5524 sensor is a simple device: it has only four connections. Two pins are the connections of the internal heating element, while the other two pins are the MOS sensor connections. The application is reduced to calculating a proper resistor for the voltage divider. The datasheet of the MiCS-5524 sensor offers typical values for its resistance when used in clean air (artificial conditions). The sensitivity is then expressed as the ratio between the resistance of the sensor in clean air and resistance at a concentration of 60 ppm CO. The middle tap between the sensor (as a resistor) and the fixed resistance is used to provide an output voltage. It directly depends on the resistance of the sensor, allowing it to be used as the input into the MCP3221, a low-power 12-bit A/D converter with an I2C interface, from Microchip. This ADC allows the output voltage to be translated into digital information, which can be accessed over the I2C pins on the mikroBUS™ socket. By using the power supply voltage as the voltage reference for the conversion, this ADC further reduces the complexity of the design, still offering a good conversion quality, thanks to its low noise input. Due to the sensor's inert nature, this ADC is more than fast enough, although it can provide up to 22.3 Ksps when operated in the I2C Fast mode. The I2C communication voltage level can be adjusted so that the Click board™ can be used with both 3.3V and 5V MCUs. The provided SMD jumper labelled as VCC SEL can be used to select the desired voltage level. However, the Click board™ requires +5V for a proper operation, regardless of the logic voltage level selection jumper. This table shows how the pinout on the Alcohol 3 Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).How Does The Alcohol 3 Click Board™ Work?

Specifications
Type
Alcohol,Gas
Applications
It can be used for various alcohol breath tester applications, early fire and gas leakage warning applications, VOC concentration warning applications, and similar
On-board modules
MiCS-5524 sensor, a compact MOS sensor from SGX Sensortech; MCP3221, a low-power 12-bit A/D converter with I2C interface, from Microchip
Key Features
Robust and reliable MOS sensor, a high-quality 12-bit ADC from Microchip onboard, can detect a range of different redux gasses, ideal for a breathalyzer application development, etc
Interface
I2C
Compatibility
mikroBUS
Click board size
M (42.9 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout Diagram
Notes
Pin

Pin
Notes
NC
1
AN
PWM
16
NC
NC
2
RST
INT
15
NC
NC
3
CS
RX
14
NC
NC
4
SCK
TX
13
NC
NC
5
MISO
SCL
12
SCL
I2C Clock
NC
6
MOSI
SDA
11
SDA
I2C Data
Power Supply
+3V3
7
3.3V
5V
10
+5V
Power Supply
Ground
GND
8
GND
GND
9
GND
Ground
Onboard settings and indicators
Label
Name
Default
Description
LD1
PWR
-
Power LED indicator
JP1
VCC SEL
Left
Power supply voltage selection
The Click board™ contains the required resistances used to form a voltage divider with the sensor, as well as the accurate SAR type ADC with 12-bit resolution which allows the voltage to be converted, using 5V from the mikroBUS™ rail as a voltage reference. Featuring the MiCS-5524, a robust and reliable gas sensor which requires a minimal number of additional components, the MCP3221, an accurate 12-bit ADC by Microchip, proven in many Click board™ designs so far, Alcohol 3 click represents an ideal solution for a rapid development of all kinds of breathalyzer applications, gas leakage applications, fire detection applications, CO detectors, and similar reducing gasses detecting applications.
Alcohol 3 click is equipped with the MiCS-5524 sensor, a compact MOS sensor from SGX Sensortech. This sensor consists of a micromachined metal oxide semiconductor diaphragm, with an integrated heating resistor. The resistor produces heat which catalyses the reaction, which in turn affects the electrical resistance of the oxide layer itself. The temperature of the heater is quite high: it is in the range from 350 °C to 550 °C. After the initial preheating period, the sensor can detect gas changes in time intervals below two seconds.

The resistance of the MiCS-5524 sensor does not change linearly with the gas concentration, so a proper calibration must be performed prior to using it for absolute gas concentration measurement applications. The impedance changes the most when used with low gas concentrations. As the atmosphere gets saturated with gas, the impedance changes slower. This should be taken into an account, especially when developing applications for estimating blood alcohol content (BAC) from a breath sample (also known as breathalyzers).
The MiCS-5524 sensor is a simple device: it has only four connections. Two pins are the connections of the internal heating element, while the other two pins are the MOS sensor connections. The application is reduced to calculating a proper resistor for the voltage divider. The datasheet of the MiCS-5524 sensor offers typical values for its resistance when used in a clean air (artificial conditions). The sensitivity is then expressed as the ratio between the resistance of the sensor in clean air and resistance at a concentration of 60 ppm CO.
The middle tap between the sensor (as a resistor) and the fixed resistance is used to provide an output voltage. It directly depends on the resistance of the sensor, allowing it to be used as the input into the MCP3221, a low-power 12-bit A/D converter with I2C interface, from Microchip. This ADC allows the output voltage to be translated into a digital information, which can be accessed over the I2C pins on the mikroBUS™ socket. By using the power supply voltage as the voltage reference for the conversion, this ADC further reduces the complexity of the design, still offering a good conversion quality, thanks to its low noise input. Due to the sensor's inert nature, this ADC is more than fast enough, although it can provide up to 22.3 ksps when operated in the I2C Fast mode.
The I2C communication voltage level can be adjusted so that the Click board™ can be used with both 3.3V and 5V MCUs. The provided SMD jumper labeled as VCC SEL can be used to select the desired voltage level. However, the Click board™ requires +5V for a proper operation, regardless of the logic voltage level selection jumper.
- amazon_main_image: https://www.thedebugstore.com/images/product/lg-alcohol-3-front_1_1_1.jpg - amazon_other_image_1: https://www.thedebugstore.com/images/product/lg-alcohol-3-back_1.jpg - amazon_other_image_2: https://www.thedebugstore.com/images/product/lg-alcohol-3-click-in-use_1.jpg - amazon_other_image_3: https://www.thedebugstore.com/images/product/lg-alcohol-3-click-in-use_1.jpg - amazon_browse_node: 428655031 - mpn: MIKROE-3318 - backorder_label: If no stock shown above, check availability - examples:We provide a library for the Alcohol 3 Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The library initializes and defines the I2C bus driver and drivers that offer a choice for reading ADC data from I2C. The library includes a function for reading CO data in the AIR (in ppm and mg/L), a function for reading Ethanol data in ppm and reading the percentage of alcohol in the blood (BAC).
float alcohol3_getPercentageBAC() - Function for reading the percentage of alcohol in the blood (BAC).uint16_t alcohol3_ethanolInPPM() - Function for reading Ethanol (C2H5OH) data in ppm.uint16_t alcohol3_getCOinPPM() - Function for reading CO (Carbon monoxide) data in ppm.The application is composed of three sections :
void applicationTask()
{
uint16_t CO_ppm;
uint16_t pBAC;
char demoText[ 50 ];
mikrobus_logWrite(" --- Alcohol diagnostics ----", _LOG_LINE);
CO_ppm = alcohol3_getCOinPPM();
WordToStr(CO_ppm, demoText);
mikrobus_logWrite(" CO in ppm | ", _LOG_TEXT);
mikrobus_logWrite(demoText, _LOG_LINE);
pBAC = alcohol3_getPercentageBAC() * 1000;
WordToStr(pBAC, demoText);
if( 10 > pBAC && pBAC < 100 )
{
mikrobus_logWrite(" BAC | 0.00", _LOG_TEXT);
LTrim(demoText);
mikrobus_logWrite(demoText, _LOG_LINE);
}
else if(100 <= pBAC && 1000 > pBAC)
{
mikrobus_logWrite(" BAC | 0.0", _LOG_TEXT);
LTrim(demoText);
mikrobus_logWrite(demoText, _LOG_LINE);
}
else if ( pBAC >= 1000)
{
mikrobus_logWrite(" BAC | 0.", _LOG_TEXT);
LTrim(demoText);
mikrobus_logWrite(demoText, _LOG_LINE);
}
else
{
mikrobus_logWrite(" BAC | 0.0000", _LOG_LINE);
}
mikrobus_logWrite(" ----------------------------", _LOG_LINE);
mikrobus_logWrite( " " , _LOG_LINE);
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
I2CConversionsUARTDepending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
- attachments: [{"download_file":[{"download_file":"Alcohol 3 Click Board™ Schematic"}],"download_filetype":[{"download_filetype":"pdf"}]},{"download_file":[{"download_file":"SGS Sensortech MiCS-5524 MOS Sensor Datasheet"}],"download_filetype":[{"download_filetype":"pdf"}]}] - condition: new - custom_product: false - mpn: MIKROE-3318 - google_product_category: Electronics - custom_label_0: Click Board - device_vendor: Amphenol SGX Sensortech, Microchip Technology - device_type: MICS-5524, MCP3221A5T-E/OT - warranty: 12 months - brand: MikroE - key_feature_1: Ethanol Sensor with Digital Output - manufacturer: Mikroelektronika d.o.o. - badge: - widget:The Alcohol 3 Click Board™ is a gas sensor, equipped with the MiCS-5524, a compact metal oxide (MOS) sensor. This sensor reacts to the presence of deoxidizing and reducing gases, such as ethanol (also known as alcohol). Its impedance changes as a result of a catalytic reaction, allowing it to be used in a voltage divider configuration. This voltage can be sampled by an accurate A/D converter (ADC), allowing data to be read directly over the I2C interface.
The MiCS-5524 sensor itself is a robust sensor, which can be used in harsh environments for gas leakage detection, in breath checking applications, early fire detection, etc.