{"id":1320,"date":"2026-05-08T00:36:39","date_gmt":"2026-05-08T00:36:39","guid":{"rendered":"https:\/\/b9xelectronics.com\/?post_type=product&#038;p=1320"},"modified":"2026-05-08T01:41:46","modified_gmt":"2026-05-08T01:41:46","slug":"b9x-c-developer-module","status":"publish","type":"product","link":"https:\/\/b9xelectronics.com\/?product=b9x-c-developer-module","title":{"rendered":"B9X C Developer Module"},"content":{"rendered":"<p>Get ready to make apps in the shortest time possible with B9X C. All that is needed for development is a browser, a text file editor, and serial port terminal program.<\/p>\n<p>The best way to show what B9X C does is by providing a working example.<\/p>\n<p>Below is a simple example that detects motion from an RD-03 RF Motion Detector. It prints motion detected when a object is 72 inches or less from the sensor. It prints motion stopped when the object is greater than 72 inches away.<\/p>\n<p>To get this to actually work:<\/p>\n<ol>\n<li>Connect the RD03 to this module to the pins defined in the config.txt file.<\/li>\n<li>Use a terminal program to monitor the module&#8217;s serial port &#8211; the USB C connector on the bottom right.<\/li>\n<li>Its dynamic IP can be found in the boot messages seen in your terminal program.<\/li>\n<li>Type http:\/\/xxx.xxx.xxx.xxx in your browser and this will take you to the upload page.<\/li>\n<li>Upload the below main.c and config.txt to the module. Uploading is done via the modules built-in web server.<\/li>\n<li>Reset the module.<\/li>\n<li>Use a terminal program to monitor the module&#8217;s serial port and any printed message.<\/li>\n<\/ol>\n<p>main.c file:<\/p>\n<div>\/********************************************************************\/<\/div>\n<div>printf(&#8220;Motion Sense Program Start!&#8221;);<\/div>\n<div>\/********************************************************************\/<\/div>\n<div>\u00a0 \u00a0 while(1) {<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 motion=get_motion(1);<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 if(motion&gt;=0 &amp;&amp; motion&lt;=72 &amp;&amp; lastMotion==0) {<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 lastMotion=1;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 printf(&#8220;Motion Detected:&#8221;);<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 printf(motion);<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 }<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 if(motion&gt;72 &amp;&amp; lastMotion==1) {<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 lastMotion=0;<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 printf(&#8220;Motion Stopped&#8221;);<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 }<\/div>\n<div>\u00a0 \u00a0 \u00a0 \u00a0 wait(10);<\/div>\n<div>\u00a0 \u00a0 }<\/div>\n<div><\/div>\n<div>config.txt file:<\/div>\n<div>\n<p>[KEY][0123456789ABCDEF0123456789ABCDEF]<br \/>\n[TIMESERVER][pool.ntp.org]<br \/>\n[TIMEZONE][EST5EDT,M3.2.0\/2,M11.1.0]<br \/>\n[RD03_TXD][13]<br \/>\n[RD03_RXD][14]<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<div>Get ready to make apps in the shortest time possible with B9X C. This module has the B9X C firmware pre-installed.\u00a0 This module features several accessible GPIO pins and are clearly labeled on the module. Many examples of using B9X C are available. Just browse to the B9X C link in the menu bar.<\/div>\n<div><\/div>\n<div>The powerful aspects of this developer module is the B9X firmware. This firmware has been duty tested in various scenarios and did very well.<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n","protected":false},"featured_media":1321,"template":"","meta":[],"product_brand":[],"product_cat":[15],"product_tag":[],"class_list":{"0":"post-1320","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-uncategorized","8":"first","9":"instock","10":"shipping-taxable","11":"purchasable","12":"product-type-simple"},"_links":{"self":[{"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=\/wp\/v2\/product\/1320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=\/wp\/v2\/product"}],"about":[{"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=\/wp\/v2\/media\/1321"}],"wp:attachment":[{"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1320"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_brand&post=1320"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_cat&post=1320"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/b9xelectronics.com\/index.php?rest_route=%2Fwp%2Fv2%2Fproduct_tag&post=1320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}