Tableau de clic sur l'alcool
Tableau de clic sur l'alcool
Overview
Ajoutez un capteur de gaz alcool haute sensibilité à votre conception avec l'ajout de Alcohol Click Board™ . La carte intègre un capteur d'alcool haute sensibilité MQ-3 pour détecter la concentration d'alcool. Fabriquée à partir d'un composé inorganique appelé dioxyde d'étain (SnO2), la couche de détection de gaz sur l'unité de capteur MQ-3 a une conductivité plus faible dans l'air propre. Cependant, la sensibilité augmente à mesure que les niveaux de gaz alcool augmentent.
L' Alcohol Click Board™ est doté d'un petit potentiomètre d'étalonnage qui permet à l'utilisateur de définir sa propre échelle et d'ajuster la résistance de charge du circuit du capteur. À l'aide de la ligne AN (OUT) MikroBUS, l'Alcohol Click Board™ communique avec la carte cible. Cette carte est conçue pour utiliser uniquement une alimentation 5 V.
Il offre une très bonne sensibilité et une réponse rapide aux gaz alcoolisés et est conçu pour détecter la présence d'alcool dans des concentrations de 0,04 à 4 mg/l. Il constitue un choix idéal pour les détecteurs d'alcool portables et les éthylomètres permettant d'estimer le taux d'alcoolémie (alcoolémie).
.
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.
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.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.