RAK12009 WisBlock MQ3 Alcohol Gas Sensor Module Quick Start Guide
Prerequisite
-
Assemble the RAK12009 with a WisBlock Base and WisBlock Core by following the RAK12009 Installation Guide.
-
Download and install the Arduino IDE, then add the RAKwireless Core boards by installing the RAKwireless Arduino BSP.
-
USB Cable
Initial Test of the RAK12009 WisBlock Module
-
This guide uses the RAK4631 WisBlock Core to demonstrate the configuration process. You can also use the RAK11200 or RAK11310 as the WisBlock Core.
-
When using the RAK11200, configure the BOOT0 pin correctly before uploading the source code. Otherwise, the upload may fail. For detailed instructions, refer to the RAK11200 Quick Start Guide.
-
Install the RAKwireless Arduino BSP for WisBlock by using the
package_rakwireless_index.jsonboard installation package. The WisBlock Core should now be available on the Arduino IDE. -
You need to select first the WisBlock Core you have.
Figure 1: Selecting RAK4631 as WisBlock Core-
Install the RAKwireless MQx Library using Arduino Library Manager.
-
Launch Arduino IDE and select Sketch-> Include Library -> Manage Libraries.
-
On the Library Manager text area, type RAKwireless MQx.
Figure 1: Arduino Library Manager- To finish the installation, click on the Install button.
Figure 1: Finish RAK-MQx library Installation-
Once the library is installed, open the RAK12009_MQ3_Alcohol_Detection example.
-
On the Arduino IDE, select File -> Examples -> RAKWireless MQx library -> RAK12009_MQ3_Alcohol_Detection.
Figure 1: Open RAK12009 MQ3 Alcohol Detection SketchIf you experience any error in compiling the example sketch, check the updated code for the RAK12009 WisBlock MQ3 Alcohol Gas Sensor Module that can be found on the RAK12009 WisBlock Example Code Repository.
- You can now select the right serial port and upload the code.
Figure 1: Selecting the correct Serial Port
Figure 1: Uploading the RAK12009 example code on RAK4631To extend the use of the RAK-MQx library, check the RAK-MQx Library methods.
If you choose PlatformIO IDE instead of Arduino IDE for building the RAK12009 example, refer to the PlatformIO Setup guide.
