{"id":1089,"date":"2025-01-29T16:01:23","date_gmt":"2025-01-29T16:01:23","guid":{"rendered":"https:\/\/www.bleuio.com\/blog\/?p=1089"},"modified":"2025-01-29T16:10:15","modified_gmt":"2025-01-29T16:10:15","slug":"smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2","status":"publish","type":"post","link":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/","title":{"rendered":"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2"},"content":{"rendered":"\n<p>This project showcases how to integrate the <strong>Renesas EK-RA4M2<\/strong> microcontroller with a <strong>BleuIO BLE USB dongle<\/strong> to create a smart air ventilation system. By using <strong>HibouAir<\/strong>&#8216;s CO2 parameter, an air quality monitoring device, the system continuously monitors indoor air quality and automatically controls a fan based on CO2 levels.<\/p>\n\n\n\n<p>The <strong>BleuIO dongle<\/strong> scans for <strong>HibouAir&#8217;s BLE advertising data<\/strong> to retrieve real-time CO2 readings. When the CO2 concentration exceeds <strong>600 ppm<\/strong>, the system activates the fan to improve air circulation. Once the CO2 level drops below <strong>550 ppm<\/strong>, the fan is turned off to conserve energy.<\/p>\n\n\n\n<p>This implementation demonstrates a practical <strong>IoT-based air quality control solution<\/strong>, making indoor environments healthier and more efficient.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"652\" height=\"334\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-6.png\" alt=\"\" class=\"wp-image-1090\" style=\"width:541px;height:auto\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-6.png 652w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-6-300x154.png 300w\" sizes=\"auto, (max-width: 652px) 100vw, 652px\" \/><\/figure>\n\n\n\n<p>The EK-RA4M2 board prints the CO2 values, as they change, on the RTTViewer.<\/p>\n\n\n\n<p><strong>Requirements<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li><a href=\"https:\/\/www.renesas.com\/us\/en\/products\/microcontrollers-microprocessors\/ra-cortex-m-mcus\/ek-ra4m2-evaluation-kit-ra4m2-mcu-group\" target=\"_blank\" rel=\"noreferrer noopener\">EK-RA4M2<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.bleuio.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">BleuIO \u2013 Bluetooth Low Energy USB Dongle<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.renesas.com\/us\/en\/software-tool\/flexible-software-package-fsp#overview\" target=\"_blank\" rel=\"noreferrer noopener\">FSP Platform Installer (Includes e\u00b2 studio IDE, toolchain, and FSP packs)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.segger.com\/products\/debug-probes\/j-link\/tools\/rtt-viewer\/\" target=\"_blank\" rel=\"noreferrer noopener\">J-Link RTT Viewer<\/a><\/li>\n\n\n\n<li>USB OTG Cable (USB-A, USB-B micro)<\/li>\n\n\n\n<li>A fan<\/li>\n\n\n\n<li>A Power adapter<\/li>\n\n\n\n<li><a href=\"https:\/\/hibouair.com\/specifications-air-quality-monitor-co2-sensor.php\" target=\"_blank\" rel=\"noreferrer noopener\">HibouAir air quality monitor with CO2<\/a>.<\/li>\n\n\n\n<li>Our example project <a href=\"https:\/\/github.com\/smart-sensor-devices-ab\/bleuio_ra4m2_fan_example\" target=\"_blank\" rel=\"noreferrer noopener\">[Download from GitHub]<\/a><\/li>\n<\/ul>\n\n\n\n<p><strong>Setup<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"758\" height=\"669\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/ek-ra4m2.png\" alt=\"\" class=\"wp-image-1091\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/ek-ra4m2.png 758w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/ek-ra4m2-300x265.png 300w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>Connect a Micro USB device cable (type-A male to micro-B male) between J10 (Debug1) and a Computer USB port.<\/li>\n\n\n\n<li>Plug in a BleuIO Dongle in the USB OTG Cable (type-A female to micro-B male) and connect it to J11 (USB Full Speed).<\/li>\n\n\n\n<li>Make sure Jumper J12 is placed on pins 1-2<\/li>\n\n\n\n<li>Remove Jumper J15 pins<\/li>\n\n\n\n<li>Connect the fan power adapter to 3V3 and GND on the developer kit like this:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"463\" height=\"466\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/fan_power.png\" alt=\"\" class=\"wp-image-1092\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/fan_power.png 463w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/fan_power-298x300.png 298w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/fan_power-150x150.png 150w\" sizes=\"auto, (max-width: 463px) 100vw, 463px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>The fan power adapter will also need to be connected to GPIO pin 505 on the developer kit to turn it on and off:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"697\" height=\"705\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/fan_enable_pin.png\" alt=\"\" class=\"wp-image-1093\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/fan_enable_pin.png 697w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/fan_enable_pin-297x300.png 297w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><\/figure>\n\n\n\n<p><strong>Importing project<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>Open e\u00b2 studio IDE<\/li>\n\n\n\n<li>Choose a workspace and click &#8216;Launch&#8217;<\/li>\n\n\n\n<li>Download or clone the example project. Place the folder &#8216;bleuio_ra4m2_fan_example&#8217; in workspace.<\/li>\n\n\n\n<li>Choose Import Project<\/li>\n\n\n\n<li>Select &#8216;Existing Projects into Workspace&#8217; under the &#8216;General&#8217; tab:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"543\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/import_existing.png\" alt=\"\" class=\"wp-image-1094\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/import_existing.png 511w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/import_existing-282x300.png 282w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>Click the &#8216;Browse&#8230;&#8217; button and open the folder where the &#8216;bleuio_ra4m2_fan_example&#8217; project folder is located:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"703\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/import_project.png\" alt=\"\" class=\"wp-image-1095\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/import_project.png 828w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/import_project-300x255.png 300w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/import_project-768x652.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>Finally select the project and click &#8216;Finish&#8217;. You have now imported the the project!<\/li>\n<\/ul>\n\n\n\n<p><strong>Running the example<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>Go to file &#8216;usb_hcdc_app.c&#8217; under &#8216;src\/&#8217; and edit line 41 to the board ID of the HibouAir Sensor:<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>#define BOARD_ID_TO_SCAN &#8220;2202B3&#8221;<\/li>\n\n\n\n<li>The board ID is printed on the back of the HibouAir sensor:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"540\" height=\"317\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/boardid.png\" alt=\"\" class=\"wp-image-1096\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/boardid.png 540w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/boardid-300x176.png 300w\" sizes=\"auto, (max-width: 540px) 100vw, 540px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>You can also threshold values to change when the fan should start and stop.<br><br>The defines can be found on row 45 and 47 in &#8216;usb_hcdc_app.c&#8217; under &#8216;src\/&#8217;:<\/li>\n\n\n\n<li><em>\/* CO2 threshold value 1. If at this value or above, the fan will start. *\/<\/em><br>#define CO2_FAN_ROOF 600<br><em>\/* CO2 threshold value 2. If at this value or below, the fan will stop. *\/<\/em><br>#define CO2_FAN_FLOOR 550<\/li>\n<\/ul>\n\n\n\n<p class=\"pl-0\">Build the project by clicking the building icon: <img loading=\"lazy\" decoding=\"async\" width=\"42\" height=\"29\" class=\"wp-image-1097\" style=\"width: 42px;\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/build.png\" alt=\"\"><\/p>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>Use Debug to download and run the project. The first time you need to configure the debug settings. Click down arrow to the right of the Debug icon and select &#8216;Debug Configurations&#8230;&#8217;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"227\" height=\"129\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/run_debug_config.png\" alt=\"\" class=\"wp-image-1098\"\/><\/figure>\n\n\n\n<p><br>Under &#8216;Renesas GDB Hardware Debugging&#8217; select &#8216;bleuio_ra4m2_fan_example.elf&#8217; and click &#8216;Debug&#8217;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"696\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/debug_settings-1024x696.png\" alt=\"\" class=\"wp-image-1099\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/debug_settings-1024x696.png 1024w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/debug_settings-300x204.png 300w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/debug_settings-768x522.png 768w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/debug_settings.png 1218w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>The debug is now configured and the &#8216;Debug&#8217; icon can be used next time to run the project.<\/li>\n\n\n\n<li>Open RTTViewer. Connect and use these settings:<br><br>Connection to J-Link: USB<br><br>Specify Target Device: R7FA4M2AD<br><br>Target Interface &amp; Speed: SWD 4000kHz<br><br>RTT Control Block: Address 0x2000095c<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"346\" height=\"435\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_setup.png\" alt=\"\" class=\"wp-image-1100\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_setup.png 346w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_setup-239x300.png 239w\" sizes=\"auto, (max-width: 346px) 100vw, 346px\" \/><\/figure>\n\n\n\n<p><br>On the debugger screen in e\u00b2 studio click the &#8216;Resume&#8217; icon twice to run the project.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"108\" height=\"51\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/resume.png\" alt=\"\" class=\"wp-image-1101\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list pl-0\">\n<li>The application is now running. When starting up you should notice all LEDs lighting up for one second then only the red LED will be on. It will turn off as soon as the BleuIO is configured.<\/li>\n\n\n\n<li>You should now see the output on the RTTViewer.\u00a0<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"991\" height=\"991\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_co2_output.png\" alt=\"\" class=\"wp-image-1102\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_co2_output.png 991w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_co2_output-300x300.png 300w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_co2_output-150x150.png 150w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/JLinkRTTViewer_co2_output-768x768.png 768w\" sizes=\"auto, (max-width: 991px) 100vw, 991px\" \/><\/figure>\n\n\n\n<p><br>If CO2 value is 600ppm or above, the fan will turn on.<br><br>If CO2 value is 550ppm or below, the fan will turn off.<br><br><br>The LEDs will light up like the previous <strong><a href=\"https:\/\/www.bleuio.com\/blog\/real-time-co2-status-indicator-and-monitor-with-bleuio-and-renesas-ek-ra4m2\/\" target=\"_blank\" rel=\"noreferrer noopener\">CO2 Monitor Example<\/a>:<\/strong><br><br>When the CO2 level is less than 600 ppm only the blue LED will be turned on.<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"852\" height=\"1024\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-7-852x1024.png\" alt=\"\" class=\"wp-image-1103\" style=\"width:394px;height:auto\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-7-852x1024.png 852w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-7-250x300.png 250w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-7-768x923.png 768w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-7.png 900w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/figure>\n\n\n\n<p><br>If the CO2 level is over 600 ppm but below 1000 ppm then the green LED will be on.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"719\" height=\"984\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-8.png\" alt=\"\" class=\"wp-image-1104\" style=\"width:382px;height:auto\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-8.png 719w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-8-219x300.png 219w\" sizes=\"auto, (max-width: 719px) 100vw, 719px\" \/><\/figure>\n\n\n\n<p><br>If the CO2 level is above 1000 ppm then the red LED will be on.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"744\" height=\"1007\" src=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-9.png\" alt=\"\" class=\"wp-image-1105\" style=\"width:370px;height:auto\" srcset=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-9.png 744w, https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/image-9-222x300.png 222w\" sizes=\"auto, (max-width: 744px) 100vw, 744px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This project showcases how to integrate the Renesas EK-RA4M2 microcontroller with a BleuIO BLE USB dongle to create a smart air ventilation system. By using HibouAir&#8216;s CO2 parameter, an air quality monitoring device, the system continuously monitors indoor air quality and automatically controls a fan based on CO2 levels. The BleuIO dongle scans for HibouAir&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1106,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,2],"tags":[],"class_list":["post-1089","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bleuio","category-bleuio-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2 - BleuIO - Create Bluetooth Low Energy application<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2 - BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"og:description\" content=\"This project showcases how to integrate the Renesas EK-RA4M2 microcontroller with a BleuIO BLE USB dongle to create a smart air ventilation system. By using HibouAir&#8216;s CO2 parameter, an air quality monitoring device, the system continuously monitors indoor air quality and automatically controls a fan based on CO2 levels. The BleuIO dongle scans for HibouAir&#8217;s [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/\" \/>\n<meta property=\"og:site_name\" content=\"BleuIO - Create Bluetooth Low Energy application\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-29T16:01:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-29T16:10:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/smart-co2-based-fan-control.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"480\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"BleuIO\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/\"},\"author\":{\"name\":\"BleuIO\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"headline\":\"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2\",\"datePublished\":\"2025-01-29T16:01:23+00:00\",\"dateModified\":\"2025-01-29T16:10:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/\"},\"wordCount\":702,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/smart-co2-based-fan-control.jpg\",\"articleSection\":[\"BleuIO\",\"BleuIO tutorial\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/\",\"name\":\"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2 - BleuIO - Create Bluetooth Low Energy application\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/smart-co2-based-fan-control.jpg\",\"datePublished\":\"2025-01-29T16:01:23+00:00\",\"dateModified\":\"2025-01-29T16:10:15+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/smart-co2-based-fan-control.jpg\",\"contentUrl\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/smart-co2-based-fan-control.jpg\",\"width\":800,\"height\":480,\"caption\":\"smart co2 based fan control\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/\",\"name\":\"BleuIO - Create Bluetooth Low Energy application\",\"description\":\"Learn Bluetooth Low Energy programming and build Bluetooth Low Energy Application\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/#\\\/schema\\\/person\\\/89bc581382d5964043f96efc54b75b80\",\"name\":\"BleuIO\",\"sameAs\":[\"https:\\\/\\\/www.bleuio.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.bleuio.com\\\/blog\\\/author\\\/biadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2 - BleuIO - Create Bluetooth Low Energy application","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/","og_locale":"en_US","og_type":"article","og_title":"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2 - BleuIO - Create Bluetooth Low Energy application","og_description":"This project showcases how to integrate the Renesas EK-RA4M2 microcontroller with a BleuIO BLE USB dongle to create a smart air ventilation system. By using HibouAir&#8216;s CO2 parameter, an air quality monitoring device, the system continuously monitors indoor air quality and automatically controls a fan based on CO2 levels. The BleuIO dongle scans for HibouAir&#8217;s [&hellip;]","og_url":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/","og_site_name":"BleuIO - Create Bluetooth Low Energy application","article_published_time":"2025-01-29T16:01:23+00:00","article_modified_time":"2025-01-29T16:10:15+00:00","og_image":[{"width":800,"height":480,"url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/smart-co2-based-fan-control.jpg","type":"image\/jpeg"}],"author":"BleuIO","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#article","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/"},"author":{"name":"BleuIO","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"headline":"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2","datePublished":"2025-01-29T16:01:23+00:00","dateModified":"2025-01-29T16:10:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/"},"wordCount":702,"commentCount":0,"image":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/smart-co2-based-fan-control.jpg","articleSection":["BleuIO","BleuIO tutorial"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/","url":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/","name":"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2 - BleuIO - Create Bluetooth Low Energy application","isPartOf":{"@id":"https:\/\/www.bleuio.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#primaryimage"},"image":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/smart-co2-based-fan-control.jpg","datePublished":"2025-01-29T16:01:23+00:00","dateModified":"2025-01-29T16:10:15+00:00","author":{"@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80"},"breadcrumb":{"@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#primaryimage","url":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/smart-co2-based-fan-control.jpg","contentUrl":"https:\/\/www.bleuio.com\/blog\/wp-content\/uploads\/2025\/01\/smart-co2-based-fan-control.jpg","width":800,"height":480,"caption":"smart co2 based fan control"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bleuio.com\/blog\/smart-co2-based-fan-control-using-bleuio-and-renesas-ra4m2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bleuio.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Smart CO2-Based Fan Control Using BleuIO and Renesas RA4M2"}]},{"@type":"WebSite","@id":"https:\/\/www.bleuio.com\/blog\/#website","url":"https:\/\/www.bleuio.com\/blog\/","name":"BleuIO - Create Bluetooth Low Energy application","description":"Learn Bluetooth Low Energy programming and build Bluetooth Low Energy Application","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bleuio.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.bleuio.com\/blog\/#\/schema\/person\/89bc581382d5964043f96efc54b75b80","name":"BleuIO","sameAs":["https:\/\/www.bleuio.com\/blog"],"url":"https:\/\/www.bleuio.com\/blog\/author\/biadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/1089","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/comments?post=1089"}],"version-history":[{"count":7,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/1089\/revisions"}],"predecessor-version":[{"id":1116,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/posts\/1089\/revisions\/1116"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media\/1106"}],"wp:attachment":[{"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/media?parent=1089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/categories?post=1089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bleuio.com\/blog\/wp-json\/wp\/v2\/tags?post=1089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}