B9X C Developer Module

$39.00

Get ready to make apps in the shortest time possible with B9X C. This module has the B9X C firmware pre-installed.  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. The powerful aspects of this developer module is the B9X firmware. This firmware has been duty tested in various scenarios and did very well.

Category:

Description

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.

The best way to show what B9X C does is by providing a working example.

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.

To get this to actually work:

  1. Connect the RD03 to this module to the pins defined in the config.txt file.
  2. Use a terminal program to monitor the module’s serial port – the USB C connector on the bottom right.
  3. Its dynamic IP can be found in the boot messages seen in your terminal program.
  4. Type http://xxx.xxx.xxx.xxx in your browser and this will take you to the upload page.
  5. Upload the below main.c and config.txt to the module. Uploading is done via the modules built-in web server.
  6. Reset the module.
  7. Use a terminal program to monitor the module’s serial port and any printed message.

main.c file:

/********************************************************************/
printf(“Motion Sense Program Start!”);
/********************************************************************/
    while(1) {
        motion=get_motion(1);
        if(motion>=0 && motion<=72 && lastMotion==0) {
            lastMotion=1;
            printf(“Motion Detected:”);
            printf(motion);
        }
        if(motion>72 && lastMotion==1) {
            lastMotion=0;
            printf(“Motion Stopped”);
        }
        wait(10);
    }
config.txt file:

[KEY][0123456789ABCDEF0123456789ABCDEF]
[TIMESERVER][pool.ntp.org]
[TIMEZONE][EST5EDT,M3.2.0/2,M11.1.0]
[RD03_TXD][13]
[RD03_RXD][14]