I2C Demo Project Explained
Goals
1. Describe this demo project in detail to help developers customize their own I2C protocol
2. Describe how to export this project to a Nexus Panel
Preparation
- Install and launch ADE: Please go to ADE Reference Manual for downloading ADE
- Download I2C project: Please go to IOT Website download the demo project. Please make sure you download the demo project that fits your ADE version.
Step 1: Launch ADE
Launch ADE:

Step 2: Click to open the demo project “ADE demo_i2c.epgz”
Click the System Menu, press Open and then choose “ADE demo_i2c.epgz”.

Once the project is successfully loaded, you will see:


Step 3: Demo Project Explained
Page 1
-INB_I2C_SEND_STR: Click to send a string.
-IVL_I2C_ADDR: Displayed the entered IP address.
-IL_I2C_Addr: Label.
-ITA_I2C_Addr: Click to enter the IP address.
-IIP_STR: Popup Input Pad.
-IVL_I2C_SEND_STR: Display the string data for transmission.
-IVL_I2C_SEND_INT: Display the integer data for transmission.
-ITA1: Click to enter the string data for transmission.
-ITA2: Click to enter the integer data for transmission.
-IIP_INT: Popup Input Pad.
-INB_I2C_SEND_INT: Click to send the integer data.
-IVL_I2C_RCV_STR: Display the received data.
-INB_I2C_RECV_STR: Click to receive string data, remove the special characters (b'xff'), then translate the data to readable string, and store the result.
-INB_I2C_SCAN: Click to scan the address of the connected devices. The results (address) are of decimal format and range from 0x03 to 0x77 (7 bit address).
-IVL_I2C_ADDR_ARY: Display the address of all connected devices.


Page 2
Enable IO:
-Backlight: The screen is locked after 180 seconds of inactivity.
-RTC: Set the real time clock.

Step 4: Export Demo Project
It is recommended to run the demo project in the built-in simulator before exporting the project to an IOT product.
Launch the built-in simulator
Click "Launch Simulator" in the "Download" tool bar.
Once the simulator is launched successfully, users will see:

Expport to an IOT panel
1. Please connect the panel with your PC with a USB cable. Then power on the panel.
2. In ADE, export the demo project.
3. As shown, in the Export window, please select the Output Type to "IOT Panel", match the template to your target IOT panel and set Options to download. The click Export at the bottom.


1. Once Export is executed successfully, remove the USB cable.
2. Please use a USB-to-I2C device.
3. Press I2C scan to discover the connected devices.
4. Transmit data (string or integer).
5. Received data is shown on IC2 RECV STR.

Conclusion
The demo project is to show how the basic I2C operations are done. Users can customize their own I2C communication based on the sample code offered in this project.