<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[Smart Home Automation Forum - KC868-A8M]]></title>
		<link>https://www.kincony.com/forum/</link>
		<description><![CDATA[Smart Home Automation Forum - https://www.kincony.com/forum]]></description>
		<pubDate>Sun, 05 Apr 2026 23:28:41 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[KC868_A8M HTTP Get requests example]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7657</link>
			<pubDate>Thu, 20 Feb 2025 17:11:45 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=7183">MWDH</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7657</guid>
			<description><![CDATA[Hello Forum colleagues,<br />
<br />
I am trying to set the KC868_A8M up, so it performs HTTP Get requests from an API server.<br />
I want to do it via Ethernet (Not Wifi) in a local server.<br />
According to the LAN example code I can get the ETehrnet connection to work, I am also able to ping the device and get a response.<br />
<br />
I am struggling with the HTTP GEt requests though:<br />
HTTP Error code: -1<br />
<br />
Is there an example code doing the same thing? Or are there any hints on what I am doing wrong?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;ETH.h&gt;<br />
#include &lt;HTTPClient.h&gt;<br />
<br />
#define ETH_ADDR        0<br />
#define ETH_POWER_PIN  -1<br />
#define ETH_MDC_PIN    23<br />
#define ETH_MDIO_PIN &nbsp;&nbsp;18 &nbsp;&nbsp;<br />
#define ETH_TYPE     &nbsp;&nbsp;ETH_PHY_LAN8720<br />
#define ETH_CLK_MODE &nbsp;&nbsp;ETH_CLOCK_GPIO17_OUT<br />
<br />
IPAddress local_ip(192, 168, 49, 98); // Set static IP address for ESP32<br />
IPAddress gateway(192, 168, 49, 1);  // Gateway IP<br />
IPAddress subnet(255, 255, 255, 0);  // Subnet mask<br />
IPAddress dns(192, 168, 1, 1);      // DNS server IP<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
  Serial.println();<br />
 &nbsp;&nbsp;<br />
  // Initialize Ethernet interface<br />
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH<br />
  <br />
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {<br />
    Serial.println("LAN8720 Configuration failed.");<br />
  } else {<br />
    Serial.println("LAN8720 Configuration success.");<br />
  }<br />
<br />
  Serial.println("Ethernet Connected");<br />
  Serial.print("IP Address: ");<br />
  Serial.println(ETH.localIP());  // Print ESP32 IP<br />
}<br />
<br />
void loop() {<br />
  // Create an HTTPClient object<br />
  HTTPClient http;<br />
  <br />
  // Specify the request URL<br />
  http.begin("http://192.168.99.3:8481/test"); // Replace with your URL<br />
  <br />
  // Make the GET request<br />
  int httpCode = http.GET();<br />
  <br />
  if (httpCode &gt; 0) {  // Check if the request was successful<br />
    String payload = http.getString();  // Get the response payload<br />
    Serial.println("HTTP GET request successful!");<br />
    Serial.println(payload);            // Print the payload<br />
  } else {<br />
    Serial.println("HTTP GET failed!");<br />
    Serial.printf("Error code: %d&#92;n", httpCode);<br />
  }<br />
<br />
  http.end();  // Close the connection<br />
  <br />
  delay(5000);  // Wait before making another request<br />
}</code></div></div>]]></description>
			<content:encoded><![CDATA[Hello Forum colleagues,<br />
<br />
I am trying to set the KC868_A8M up, so it performs HTTP Get requests from an API server.<br />
I want to do it via Ethernet (Not Wifi) in a local server.<br />
According to the LAN example code I can get the ETehrnet connection to work, I am also able to ping the device and get a response.<br />
<br />
I am struggling with the HTTP GEt requests though:<br />
HTTP Error code: -1<br />
<br />
Is there an example code doing the same thing? Or are there any hints on what I am doing wrong?<br />
<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;ETH.h&gt;<br />
#include &lt;HTTPClient.h&gt;<br />
<br />
#define ETH_ADDR        0<br />
#define ETH_POWER_PIN  -1<br />
#define ETH_MDC_PIN    23<br />
#define ETH_MDIO_PIN &nbsp;&nbsp;18 &nbsp;&nbsp;<br />
#define ETH_TYPE     &nbsp;&nbsp;ETH_PHY_LAN8720<br />
#define ETH_CLK_MODE &nbsp;&nbsp;ETH_CLOCK_GPIO17_OUT<br />
<br />
IPAddress local_ip(192, 168, 49, 98); // Set static IP address for ESP32<br />
IPAddress gateway(192, 168, 49, 1);  // Gateway IP<br />
IPAddress subnet(255, 255, 255, 0);  // Subnet mask<br />
IPAddress dns(192, 168, 1, 1);      // DNS server IP<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
  Serial.println();<br />
 &nbsp;&nbsp;<br />
  // Initialize Ethernet interface<br />
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH<br />
  <br />
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {<br />
    Serial.println("LAN8720 Configuration failed.");<br />
  } else {<br />
    Serial.println("LAN8720 Configuration success.");<br />
  }<br />
<br />
  Serial.println("Ethernet Connected");<br />
  Serial.print("IP Address: ");<br />
  Serial.println(ETH.localIP());  // Print ESP32 IP<br />
}<br />
<br />
void loop() {<br />
  // Create an HTTPClient object<br />
  HTTPClient http;<br />
  <br />
  // Specify the request URL<br />
  http.begin("http://192.168.99.3:8481/test"); // Replace with your URL<br />
  <br />
  // Make the GET request<br />
  int httpCode = http.GET();<br />
  <br />
  if (httpCode &gt; 0) {  // Check if the request was successful<br />
    String payload = http.getString();  // Get the response payload<br />
    Serial.println("HTTP GET request successful!");<br />
    Serial.println(payload);            // Print the payload<br />
  } else {<br />
    Serial.println("HTTP GET failed!");<br />
    Serial.printf("Error code: %d&#92;n", httpCode);<br />
  }<br />
<br />
  http.end();  // Close the connection<br />
  <br />
  delay(5000);  // Wait before making another request<br />
}</code></div></div>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A8M reading Ethernet data]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7563</link>
			<pubDate>Thu, 06 Feb 2025 05:27:36 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=7183">MWDH</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7563</guid>
			<description><![CDATA[Hello Community,<br />
<br />
I want to use the KC868-A8M to do the following:<br />
<ul class="mycode_list"><li>use it as Wifi AP (Which is easy and I have accomplished) to have access with my phone<br />
</li>
<li>read data with the KC868-A8M from a web server from another device via Ethernet (Ethernet is connected to another device which creates the web server)<br />
</li>
<li>red data via http get requests<br />
</li>
</ul>
<br />
Now the question: Am I able to configure all the get requests in the KCS software and use the answers / data in the IFTTT section? This would make it very easy to program logic to the KC868-A8M.<br />
Or do I need to program my own code in the Arduino IDE to create get requests and react accordingly?<br />
<br />
If there is a simple solution, I would be very happy to learn about it, since this will be super helpful in one of my projects.<br />
<br />
Thank you very much!<img src="https://www.kincony.com/forum/images/smilies/smile.png" loading="lazy"  alt="[Image: smile.png]" class="mycode_img" /><br />
Best wishes<br />
Max]]></description>
			<content:encoded><![CDATA[Hello Community,<br />
<br />
I want to use the KC868-A8M to do the following:<br />
<ul class="mycode_list"><li>use it as Wifi AP (Which is easy and I have accomplished) to have access with my phone<br />
</li>
<li>read data with the KC868-A8M from a web server from another device via Ethernet (Ethernet is connected to another device which creates the web server)<br />
</li>
<li>red data via http get requests<br />
</li>
</ul>
<br />
Now the question: Am I able to configure all the get requests in the KCS software and use the answers / data in the IFTTT section? This would make it very easy to program logic to the KC868-A8M.<br />
Or do I need to program my own code in the Arduino IDE to create get requests and react accordingly?<br />
<br />
If there is a simple solution, I would be very happy to learn about it, since this will be super helpful in one of my projects.<br />
<br />
Thank you very much!<img src="https://www.kincony.com/forum/images/smilies/smile.png" loading="lazy"  alt="[Image: smile.png]" class="mycode_img" /><br />
Best wishes<br />
Max]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Set KC868-A8M]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=7318</link>
			<pubDate>Sat, 04 Jan 2025 01:11:01 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=7115">kulibin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=7318</guid>
			<description><![CDATA[How to set up an KC868-A8M  that is connected via Ethernet in WiFi access point mode in order for devices to connect to it at the same gateway<span style="color: #e6edf3;" class="mycode_color"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;" class="mycode_font"><span style="color: #7ee787;" class="mycode_color">gatewa</span></span></span></span> as the main router? The devices will be wifi esp32 which will work together in HA.  For example, my main network is 192.168.1.1 and I want the WiFi distribution network (KC868-A8M) to be in the same range 192.168.1…… Thanks]]></description>
			<content:encoded><![CDATA[How to set up an KC868-A8M  that is connected via Ethernet in WiFi access point mode in order for devices to connect to it at the same gateway<span style="color: #e6edf3;" class="mycode_color"><span style="font-size: 1pt;" class="mycode_size"><span style="font-family: Consolas, Menlo, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;" class="mycode_font"><span style="color: #7ee787;" class="mycode_color">gatewa</span></span></span></span> as the main router? The devices will be wifi esp32 which will work together in HA.  For example, my main network is 192.168.1.1 and I want the WiFi distribution network (KC868-A8M) to be in the same range 192.168.1…… Thanks]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[ESPHome DAC output DC 0-10V]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=6012</link>
			<pubDate>Tue, 02 Jul 2024 21:44:46 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1928">marek</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=6012</guid>
			<description><![CDATA[Is it possible to use outputs V-OUT1-8 to control a car charger that requires a control DAC output DC 0-10V?<br />
<br />
If possible, I would need a KC868-A8M ESP32 I/O pin define.<br />
<br />
I assume that the next work will be similar to the post for KC868-AP / ADR: <a href="https://www.kincony.com/forum/showthread.php?tid=2889" target="_blank" rel="noopener" class="mycode_url">https://www.kincony.com/forum/showthread.php?tid=2889</a>]]></description>
			<content:encoded><![CDATA[Is it possible to use outputs V-OUT1-8 to control a car charger that requires a control DAC output DC 0-10V?<br />
<br />
If possible, I would need a KC868-A8M ESP32 I/O pin define.<br />
<br />
I assume that the next work will be similar to the post for KC868-AP / ADR: <a href="https://www.kincony.com/forum/showthread.php?tid=2889" target="_blank" rel="noopener" class="mycode_url">https://www.kincony.com/forum/showthread.php?tid=2889</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A8M SIM7600 GPRS Disconnected]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=4443</link>
			<pubDate>Tue, 20 Feb 2024 00:29:02 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=3947">deepthasm</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=4443</guid>
			<description><![CDATA[Hi,<br />
Recently I bought KC868-A8M with SIM7600 module and Installed the latest KCS firmware (KCS_KC868_A8M_V2.1.9). I enabled the GSM on the network settings page. But, I'm getting "GPRS : disconnected" on monitor page. Try to clicking "Phone test" but I'm getting "error".<br />
<br />
Following are the logs for reference.<br />
<br />
[1B][0;32mI (2958) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07[1B][0m<br />
I (3046) wifi:mode : softAP (08:f9:e0:8a:ee:29)<br />
I (3047) wifi:Total power save buffer number: 16<br />
I (3047) wifi:Init max length of beacon: 752/752<br />
I (3049) wifi:Init max length of beacon: 752/752<br />
[1B][0;32mI (3054) web_server: Starting HTTP Server on port: '80'[1B][0m<br />
[1B][0;32mI (3061) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0 [1B][0m<br />
[1B][0;32mI (3069) ntp: tz:UTC+0[1B][0m<br />
[1B][0;32mI (3069) UDP SERVER: Socket created[1B][0m<br />
[1B][0;32mI (3075) UDP SERVER: Socket bound, port 4001[1B][0m<br />
[1B][0;32mI (3069) RF: RCSwitch-&gt;nReceiverInterrupt=16 gpio_pin_sel=65536[1B][0m<br />
[1B][0;32mI (3087) gpio: GPIO[16]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 [1B][0m<br />
[1B][0;32mI (3097) RF: Start RF receiver[1B][0m<br />
[1B][0;32mI (3097) uart: queue free spaces: 20[1B][0m<br />
[1B][0;32mI (3104) gprs: gprs init success.[1B][0m<br />
[1B][0;32mI (3115) pcf857x: pcf857x init.[1B][0m<br />
eFuse Two Point: NOT supported<br />
eFuse Vref: Supported<br />
[1B][0;32mI (3117) analog: ----&gt;adc1 thresholdd : 0[1B][0m<br />
<br />
So on,  <br />
<br />
I checked SIM7600 module connecting directly to the Computer using USB. Module is working perfectly and can send and receive both SMS and Voice call.<br />
<br />
<br />
Please help.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=4149" target="_blank" title="">Settings 1.png</a> (Size: 18.05 KB / Downloads: 950)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=4150" target="_blank" title="">Status.jpg</a> (Size: 114.84 KB / Downloads: 1043)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=4151" target="_blank" title="">error.png</a> (Size: 6.76 KB / Downloads: 951)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[Hi,<br />
Recently I bought KC868-A8M with SIM7600 module and Installed the latest KCS firmware (KCS_KC868_A8M_V2.1.9). I enabled the GSM on the network settings page. But, I'm getting "GPRS : disconnected" on monitor page. Try to clicking "Phone test" but I'm getting "error".<br />
<br />
Following are the logs for reference.<br />
<br />
[1B][0;32mI (2958) phy_init: phy_version 4670,719f9f6,Feb 18 2021,17:07:07[1B][0m<br />
I (3046) wifi:mode : softAP (08:f9:e0:8a:ee:29)<br />
I (3047) wifi:Total power save buffer number: 16<br />
I (3047) wifi:Init max length of beacon: 752/752<br />
I (3049) wifi:Init max length of beacon: 752/752<br />
[1B][0;32mI (3054) web_server: Starting HTTP Server on port: '80'[1B][0m<br />
[1B][0;32mI (3061) gpio: GPIO[0]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 1| Intr:0 [1B][0m<br />
[1B][0;32mI (3069) ntp: tz:UTC+0[1B][0m<br />
[1B][0;32mI (3069) UDP SERVER: Socket created[1B][0m<br />
[1B][0;32mI (3075) UDP SERVER: Socket bound, port 4001[1B][0m<br />
[1B][0;32mI (3069) RF: RCSwitch-&gt;nReceiverInterrupt=16 gpio_pin_sel=65536[1B][0m<br />
[1B][0;32mI (3087) gpio: GPIO[16]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 1| Pulldown: 0| Intr:3 [1B][0m<br />
[1B][0;32mI (3097) RF: Start RF receiver[1B][0m<br />
[1B][0;32mI (3097) uart: queue free spaces: 20[1B][0m<br />
[1B][0;32mI (3104) gprs: gprs init success.[1B][0m<br />
[1B][0;32mI (3115) pcf857x: pcf857x init.[1B][0m<br />
eFuse Two Point: NOT supported<br />
eFuse Vref: Supported<br />
[1B][0;32mI (3117) analog: ----&gt;adc1 thresholdd : 0[1B][0m<br />
<br />
So on,  <br />
<br />
I checked SIM7600 module connecting directly to the Computer using USB. Module is working perfectly and can send and receive both SMS and Voice call.<br />
<br />
<br />
Please help.<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=4149" target="_blank" title="">Settings 1.png</a> (Size: 18.05 KB / Downloads: 950)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=4150" target="_blank" title="">Status.jpg</a> (Size: 114.84 KB / Downloads: 1043)
<!-- end: postbit_attachments_attachment --><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=4151" target="_blank" title="">error.png</a> (Size: 6.76 KB / Downloads: 951)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A8M and PCF857x error]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=3271</link>
			<pubDate>Mon, 18 Sep 2023 01:02:10 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=2586">Madjo</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=3271</guid>
			<description><![CDATA[Hello.<br />
I have new board KC868-A8M v1.1 from Aliexpress.<br />
Firmware: KCS_KC868_A8M_V2.1.4.bin<br />
<br />
There is no reaction to the inputs in the web interface, mqtt and others. When the outputs are turned on in the web interface, the LEDs on the board do not light up.<br />
<br />
Not working (from first sartup) inputs and otuputs. Debug show:<br />
[0;32mI (2981) RF: Start RF receiver[0m<br />
[0;31mE (3982) pcf857x: pcf_0 read error![0m<br />
[0;31mE (3983) pcf857x: pcf_0 write error![0m<br />
[0;32mI (3987) pcf857x: pcf857x init.[0m<br />
<br />
I have verified the SLA and SDA lines - they are alive. Voltage on PCF - 3,2V<br />
<br />
I2C scanner found PCF module:<br />
I2C scanner. Scanning ...<br />
Found address: 34 (0x22)<br />
Found address: 36 (0x24)<br />
Found 2 device(s).<br />
<br />
Sketch [Arduino source code for KC868-A8M]-03 INPUT} with Serial.print ("In 1: "); - working, but LED on OUT don't light.  I see a reaction to a short circuit in the terminal, with the modified code<br />
<br />
Sketch [Arduino source code for KC868-A8M]-05 OUTPUT - not working. Not LED light on out.<br />
<br />
In library  PCF8574.h for 0x24 sketch print "Init pcf8574...KO".  Not ''OK"]]></description>
			<content:encoded><![CDATA[Hello.<br />
I have new board KC868-A8M v1.1 from Aliexpress.<br />
Firmware: KCS_KC868_A8M_V2.1.4.bin<br />
<br />
There is no reaction to the inputs in the web interface, mqtt and others. When the outputs are turned on in the web interface, the LEDs on the board do not light up.<br />
<br />
Not working (from first sartup) inputs and otuputs. Debug show:<br />
[0;32mI (2981) RF: Start RF receiver[0m<br />
[0;31mE (3982) pcf857x: pcf_0 read error![0m<br />
[0;31mE (3983) pcf857x: pcf_0 write error![0m<br />
[0;32mI (3987) pcf857x: pcf857x init.[0m<br />
<br />
I have verified the SLA and SDA lines - they are alive. Voltage on PCF - 3,2V<br />
<br />
I2C scanner found PCF module:<br />
I2C scanner. Scanning ...<br />
Found address: 34 (0x22)<br />
Found address: 36 (0x24)<br />
Found 2 device(s).<br />
<br />
Sketch [Arduino source code for KC868-A8M]-03 INPUT} with Serial.print ("In 1: "); - working, but LED on OUT don't light.  I see a reaction to a short circuit in the terminal, with the modified code<br />
<br />
Sketch [Arduino source code for KC868-A8M]-05 OUTPUT - not working. Not LED light on out.<br />
<br />
In library  PCF8574.h for 0x24 sketch print "Init pcf8574...KO".  Not ''OK"]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino source code for KC868-A8M]-07 Control 28BYJ-48 step motor]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=3245</link>
			<pubDate>Fri, 08 Sep 2023 08:50:46 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=3245</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;RCSwitch.h&gt;<br />
#include "PCF8574.h"<br />
<br />
#define motor_pin_1 0 &nbsp;&nbsp;<br />
#define motor_pin_2 1<br />
#define motor_pin_3 2<br />
#define motor_pin_4 3<br />
<br />
RCSwitch mySwitch = RCSwitch();<br />
PCF8574 pcf8574(0x24,5,4);<br />
int Step_Dealy_Time=10;<br />
int Turn_Step=2048; <br />
<br />
int KEY1_BUTTON = 0;<br />
int KEY2_BUTTON = 0;<br />
int KEY3_BUTTON = 0;<br />
int KEY4_BUTTON = 0;<br />
int KEY5_BUTTON = 0;<br />
<br />
void Read_buttonState ()<br />
{ <br />
  /*The following data is the remote control of five key values，You can replace them with your own remote key values*/<br />
  if(mySwitch.available()){<br />
    Serial.printf("mySwitch.getReceivedValue = %d&#92;n",mySwitch.getReceivedValue());<br />
    if(mySwitch.getReceivedValue()==5756163)  { KEY1_BUTTON=1;KEY2_BUTTON=0;KEY3_BUTTON=0;KEY4_BUTTON=0;KEY5_BUTTON=0;}//Clockwise_Turn<br />
    if(mySwitch.getReceivedValue()==5756172)  { KEY1_BUTTON=0;KEY2_BUTTON=1;KEY3_BUTTON=0;KEY4_BUTTON=0;KEY5_BUTTON=0;}//Anti_Clockwise_Turn<br />
    if(mySwitch.getReceivedValue()==5756208)  { KEY1_BUTTON=0;KEY2_BUTTON=0;KEY3_BUTTON=1;KEY4_BUTTON=0;KEY5_BUTTON=0;}//Stop_Turn<br />
    if(mySwitch.getReceivedValue()==5756364)  { KEY4_BUTTON=1;KEY5_BUTTON=0;}//Speed up<br />
    if(mySwitch.getReceivedValue()==5756367)  { KEY4_BUTTON=0;KEY5_BUTTON=1;}//Speed down<br />
 }<br />
  mySwitch.resetAvailable();<br />
}<br />
/************Clockwise************/<br />
void Clockwise_Turn (int Step)<br />
{<br />
  <br />
  while (Step&gt;0)<br />
  {<br />
    int which_one=Step % 4;<br />
        switch (which_one) {<br />
       &nbsp;&nbsp;case 0:  // AB<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        case 1:  // BC<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        case 2:  //CD<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
        case 3:  //DA<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
    }<br />
  <br />
    Read_buttonState();<br />
    Button_speed_up_down(); <br />
    if (KEY2_BUTTON == 1)<br />
    {      <br />
      Anti_Clockwise_Turn(Turn_Step);     &nbsp;&nbsp;<br />
    }<br />
    if (KEY3_BUTTON == 1)<br />
    {<br />
      Stop_Turn(Turn_Step);<br />
    }<br />
    Step--;<br />
    delay(Step_Dealy_Time);<br />
  }<br />
<br />
  <br />
}<br />
/*******************Anti_Clockwise**********************/<br />
void Anti_Clockwise_Turn (int Step)<br />
{<br />
  <br />
  while (Step&gt;0)<br />
  {<br />
    int which_one=Step % 4;<br />
        switch (which_one) {<br />
        case 0:  // AD<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
        case 1:  //CD<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
        case 2:  //BC<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        case 3:  //AB<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        }<br />
    Read_buttonState(); <br />
    Button_speed_up_down();<br />
    if (KEY1_BUTTON == 1)<br />
    {<br />
       &nbsp;&nbsp;Clockwise_Turn(Turn_Step);<br />
    }<br />
    if (KEY3_BUTTON == 1)<br />
    {<br />
      Stop_Turn(Turn_Step);<br />
    }<br />
    Step--;  <br />
    delay(Step_Dealy_Time);  <br />
  } <br />
<br />
}<br />
/*************Stop_Turn**********************/<br />
void Stop_Turn (int Step)<br />
{<br />
<br />
    pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
    pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
    pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
    pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
     &nbsp;&nbsp;<br />
    Read_buttonState(); <br />
    if (KEY1_BUTTON == 1)<br />
    {        <br />
      Clockwise_Turn(Turn_Step);<br />
    }<br />
    if (KEY2_BUTTON == 1)<br />
    {<br />
      Anti_Clockwise_Turn(Turn_Step);<br />
    }<br />
    delay(Step_Dealy_Time);<br />
      <br />
  }<br />
/**************Speed up and down**********************/<br />
void Button_speed_up_down()<br />
{<br />
  if (KEY4_BUTTON == 1)<br />
  {<br />
    delay(50);<br />
    KEY4_BUTTON =0;<br />
    Step_Dealy_Time=Step_Dealy_Time-1;<br />
<br />
    if (Step_Dealy_Time&lt;2)<br />
      {<br />
        Step_Dealy_Time=2;<br />
      }<br />
<br />
  }<br />
  if (KEY5_BUTTON == 1)<br />
  { &nbsp;&nbsp;<br />
    delay(50);<br />
    KEY5_BUTTON =0;      <br />
    Step_Dealy_Time=Step_Dealy_Time+1;<br />
    if (Step_Dealy_Time&gt;10)<br />
      { <br />
        Step_Dealy_Time=10;<br />
      }                           &nbsp;&nbsp;<br />
  }<br />
}<br />
<br />
void Button_Clockwise_or_Anti_Clockwise_Turn()<br />
{<br />
  if (KEY1_BUTTON == 1&amp;KEY2_BUTTON == 0&amp;KEY3_BUTTON == 0)<br />
  {<br />
      Clockwise_Turn(Turn_Step);<br />
  }<br />
  if (KEY1_BUTTON == 0&amp;KEY2_BUTTON == 1&amp;KEY3_BUTTON == 0)<br />
  {<br />
      Anti_Clockwise_Turn(Turn_Step);<br />
  }<br />
  if (KEY1_BUTTON == 0&amp;KEY2_BUTTON == 0&amp;KEY3_BUTTON == 1)<br />
  {<br />
    Stop_Turn(Turn_Step);<br />
  }<br />
}<br />
<br />
void setup()<br />
{<br />
 &nbsp;&nbsp;Serial.begin(115200);<br />
 &nbsp;&nbsp;mySwitch.enableReceive(digitalPinToInterrupt(16));<br />
    pcf8574.pinMode(motor_pin_1, OUTPUT);<br />
    pcf8574.pinMode(motor_pin_2, OUTPUT);<br />
    pcf8574.pinMode(motor_pin_3, OUTPUT);<br />
    pcf8574.pinMode(motor_pin_4, OUTPUT);<br />
    pcf8574.begin();<br />
}<br />
<br />
void loop()<br />
{<br />
 &nbsp;&nbsp;Read_buttonState();<br />
 &nbsp;&nbsp;Button_speed_up_down();<br />
 &nbsp;&nbsp;Button_Clockwise_or_Anti_Clockwise_Turn();<br />
 &nbsp;&nbsp;delay(30);<br />
}</code></div></div><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3005" target="_blank" title="">KC868-A8M_28BYJ_48.zip</a> (Size: 1.34 KB / Downloads: 580)
<!-- end: postbit_attachments_attachment --><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3006" target="_blank" title="">step.png</a> (Size: 107.62 KB / Downloads: 1018)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;RCSwitch.h&gt;<br />
#include "PCF8574.h"<br />
<br />
#define motor_pin_1 0 &nbsp;&nbsp;<br />
#define motor_pin_2 1<br />
#define motor_pin_3 2<br />
#define motor_pin_4 3<br />
<br />
RCSwitch mySwitch = RCSwitch();<br />
PCF8574 pcf8574(0x24,5,4);<br />
int Step_Dealy_Time=10;<br />
int Turn_Step=2048; <br />
<br />
int KEY1_BUTTON = 0;<br />
int KEY2_BUTTON = 0;<br />
int KEY3_BUTTON = 0;<br />
int KEY4_BUTTON = 0;<br />
int KEY5_BUTTON = 0;<br />
<br />
void Read_buttonState ()<br />
{ <br />
  /*The following data is the remote control of five key values，You can replace them with your own remote key values*/<br />
  if(mySwitch.available()){<br />
    Serial.printf("mySwitch.getReceivedValue = %d&#92;n",mySwitch.getReceivedValue());<br />
    if(mySwitch.getReceivedValue()==5756163)  { KEY1_BUTTON=1;KEY2_BUTTON=0;KEY3_BUTTON=0;KEY4_BUTTON=0;KEY5_BUTTON=0;}//Clockwise_Turn<br />
    if(mySwitch.getReceivedValue()==5756172)  { KEY1_BUTTON=0;KEY2_BUTTON=1;KEY3_BUTTON=0;KEY4_BUTTON=0;KEY5_BUTTON=0;}//Anti_Clockwise_Turn<br />
    if(mySwitch.getReceivedValue()==5756208)  { KEY1_BUTTON=0;KEY2_BUTTON=0;KEY3_BUTTON=1;KEY4_BUTTON=0;KEY5_BUTTON=0;}//Stop_Turn<br />
    if(mySwitch.getReceivedValue()==5756364)  { KEY4_BUTTON=1;KEY5_BUTTON=0;}//Speed up<br />
    if(mySwitch.getReceivedValue()==5756367)  { KEY4_BUTTON=0;KEY5_BUTTON=1;}//Speed down<br />
 }<br />
  mySwitch.resetAvailable();<br />
}<br />
/************Clockwise************/<br />
void Clockwise_Turn (int Step)<br />
{<br />
  <br />
  while (Step&gt;0)<br />
  {<br />
    int which_one=Step % 4;<br />
        switch (which_one) {<br />
       &nbsp;&nbsp;case 0:  // AB<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        case 1:  // BC<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        case 2:  //CD<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
        case 3:  //DA<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
    }<br />
  <br />
    Read_buttonState();<br />
    Button_speed_up_down(); <br />
    if (KEY2_BUTTON == 1)<br />
    {      <br />
      Anti_Clockwise_Turn(Turn_Step);     &nbsp;&nbsp;<br />
    }<br />
    if (KEY3_BUTTON == 1)<br />
    {<br />
      Stop_Turn(Turn_Step);<br />
    }<br />
    Step--;<br />
    delay(Step_Dealy_Time);<br />
  }<br />
<br />
  <br />
}<br />
/*******************Anti_Clockwise**********************/<br />
void Anti_Clockwise_Turn (int Step)<br />
{<br />
  <br />
  while (Step&gt;0)<br />
  {<br />
    int which_one=Step % 4;<br />
        switch (which_one) {<br />
        case 0:  // AD<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
        case 1:  //CD<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, LOW);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
        break;<br />
        case 2:  //BC<br />
          pcf8574.digitalWrite(motor_pin_1, LOW);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        case 3:  //AB<br />
          pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
          pcf8574.digitalWrite(motor_pin_3, LOW);<br />
          pcf8574.digitalWrite(motor_pin_4, LOW);<br />
        break;<br />
        }<br />
    Read_buttonState(); <br />
    Button_speed_up_down();<br />
    if (KEY1_BUTTON == 1)<br />
    {<br />
       &nbsp;&nbsp;Clockwise_Turn(Turn_Step);<br />
    }<br />
    if (KEY3_BUTTON == 1)<br />
    {<br />
      Stop_Turn(Turn_Step);<br />
    }<br />
    Step--;  <br />
    delay(Step_Dealy_Time);  <br />
  } <br />
<br />
}<br />
/*************Stop_Turn**********************/<br />
void Stop_Turn (int Step)<br />
{<br />
<br />
    pcf8574.digitalWrite(motor_pin_1, HIGH);<br />
    pcf8574.digitalWrite(motor_pin_2, HIGH);<br />
    pcf8574.digitalWrite(motor_pin_3, HIGH);<br />
    pcf8574.digitalWrite(motor_pin_4, HIGH);<br />
     &nbsp;&nbsp;<br />
    Read_buttonState(); <br />
    if (KEY1_BUTTON == 1)<br />
    {        <br />
      Clockwise_Turn(Turn_Step);<br />
    }<br />
    if (KEY2_BUTTON == 1)<br />
    {<br />
      Anti_Clockwise_Turn(Turn_Step);<br />
    }<br />
    delay(Step_Dealy_Time);<br />
      <br />
  }<br />
/**************Speed up and down**********************/<br />
void Button_speed_up_down()<br />
{<br />
  if (KEY4_BUTTON == 1)<br />
  {<br />
    delay(50);<br />
    KEY4_BUTTON =0;<br />
    Step_Dealy_Time=Step_Dealy_Time-1;<br />
<br />
    if (Step_Dealy_Time&lt;2)<br />
      {<br />
        Step_Dealy_Time=2;<br />
      }<br />
<br />
  }<br />
  if (KEY5_BUTTON == 1)<br />
  { &nbsp;&nbsp;<br />
    delay(50);<br />
    KEY5_BUTTON =0;      <br />
    Step_Dealy_Time=Step_Dealy_Time+1;<br />
    if (Step_Dealy_Time&gt;10)<br />
      { <br />
        Step_Dealy_Time=10;<br />
      }                           &nbsp;&nbsp;<br />
  }<br />
}<br />
<br />
void Button_Clockwise_or_Anti_Clockwise_Turn()<br />
{<br />
  if (KEY1_BUTTON == 1&amp;KEY2_BUTTON == 0&amp;KEY3_BUTTON == 0)<br />
  {<br />
      Clockwise_Turn(Turn_Step);<br />
  }<br />
  if (KEY1_BUTTON == 0&amp;KEY2_BUTTON == 1&amp;KEY3_BUTTON == 0)<br />
  {<br />
      Anti_Clockwise_Turn(Turn_Step);<br />
  }<br />
  if (KEY1_BUTTON == 0&amp;KEY2_BUTTON == 0&amp;KEY3_BUTTON == 1)<br />
  {<br />
    Stop_Turn(Turn_Step);<br />
  }<br />
}<br />
<br />
void setup()<br />
{<br />
 &nbsp;&nbsp;Serial.begin(115200);<br />
 &nbsp;&nbsp;mySwitch.enableReceive(digitalPinToInterrupt(16));<br />
    pcf8574.pinMode(motor_pin_1, OUTPUT);<br />
    pcf8574.pinMode(motor_pin_2, OUTPUT);<br />
    pcf8574.pinMode(motor_pin_3, OUTPUT);<br />
    pcf8574.pinMode(motor_pin_4, OUTPUT);<br />
    pcf8574.begin();<br />
}<br />
<br />
void loop()<br />
{<br />
 &nbsp;&nbsp;Read_buttonState();<br />
 &nbsp;&nbsp;Button_speed_up_down();<br />
 &nbsp;&nbsp;Button_Clockwise_or_Anti_Clockwise_Turn();<br />
 &nbsp;&nbsp;delay(30);<br />
}</code></div></div><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3005" target="_blank" title="">KC868-A8M_28BYJ_48.zip</a> (Size: 1.34 KB / Downloads: 580)
<!-- end: postbit_attachments_attachment --><br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="PNG Image" border="0" alt=".png" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=3006" target="_blank" title="">step.png</a> (Size: 107.62 KB / Downloads: 1018)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A8M circuit diagram]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=3195</link>
			<pubDate>Thu, 24 Aug 2023 14:17:14 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=3195</guid>
			<description><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2923" target="_blank" title="">A8M.jpg</a> (Size: 1.61 MB / Downloads: 1374)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/image.png" title="JPG Image" border="0" alt=".jpg" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2923" target="_blank" title="">A8M.jpg</a> (Size: 1.61 MB / Downloads: 1374)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino source code for KC868-A8M]-06 RS485]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2803</link>
			<pubDate>Fri, 14 Apr 2023 11:19:23 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2803</guid>
			<description><![CDATA[[Arduino source code for KC868-A8M]-06 RS485<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#define A8M_RS485_RX 15<br />
#define A8M_RS485_TX 13<br />
void setup() {<br />
  Serial.begin(115200);<br />
  Serial2.begin(115200,SERIAL_8N1,A8M_RS485_RX,A8M_RS485_TX);//A8M<br />
  Serial2.println("A8M RS485 SEND is OK!!");  <br />
}<br />
<br />
void loop() {<br />
  /*print the received data of RS485 port*/<br />
  while(Serial2.available()&gt;0)<br />
 &nbsp;&nbsp;{<br />
    Serial2.print((char)Serial2.read());//Read rs485 receive data  and print it<br />
 &nbsp;&nbsp;}<br />
  delay(200);<br />
}</code></div></div><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2328" target="_blank" title="">KC868-A8M_RS485.zip</a> (Size: 596 bytes / Downloads: 621)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[[Arduino source code for KC868-A8M]-06 RS485<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#define A8M_RS485_RX 15<br />
#define A8M_RS485_TX 13<br />
void setup() {<br />
  Serial.begin(115200);<br />
  Serial2.begin(115200,SERIAL_8N1,A8M_RS485_RX,A8M_RS485_TX);//A8M<br />
  Serial2.println("A8M RS485 SEND is OK!!");  <br />
}<br />
<br />
void loop() {<br />
  /*print the received data of RS485 port*/<br />
  while(Serial2.available()&gt;0)<br />
 &nbsp;&nbsp;{<br />
    Serial2.print((char)Serial2.read());//Read rs485 receive data  and print it<br />
 &nbsp;&nbsp;}<br />
  delay(200);<br />
}</code></div></div><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2328" target="_blank" title="">KC868-A8M_RS485.zip</a> (Size: 596 bytes / Downloads: 621)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino source code for KC868-A8M]-05 OUTPUT]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2802</link>
			<pubDate>Fri, 14 Apr 2023 11:16:25 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2802</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include "Arduino.h"<br />
#include "PCF8574.h"<br />
<br />
#define SDA 5<br />
#define SCL 4<br />
<br />
PCF8574 pcf8574_RE1(0x24,SDA,SCL);//DO<br />
void setup()<br />
{<br />
    Serial.begin(115200);<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
 &nbsp;&nbsp;pcf8574_RE1.pinMode(i, OUTPUT);<br />
}<br />
 &nbsp;&nbsp;pcf8574_RE1.begin();<br />
<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
  pcf8574_RE1.digitalWrite(i, LOW);delay(200);<br />
}<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
  pcf8574_RE1.digitalWrite(i, HIGH);delay(200);<br />
} &nbsp;&nbsp;<br />
}<br />
<br />
void loop()<br />
{<br />
  /******Output is all off by default, and can be turned <br />
 on or off manually when pressed by the keypad**************/<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
  pcf8574_RE1.digitalWrite(i, HIGH);delay(100);<br />
}<br />
<br />
}</code></div></div>[Arduino source code for KC868-A8M]-05 OUTPUT<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2327" target="_blank" title="">KC868-A8M_OUTPUT.zip</a> (Size: 664 bytes / Downloads: 559)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include "Arduino.h"<br />
#include "PCF8574.h"<br />
<br />
#define SDA 5<br />
#define SCL 4<br />
<br />
PCF8574 pcf8574_RE1(0x24,SDA,SCL);//DO<br />
void setup()<br />
{<br />
    Serial.begin(115200);<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
 &nbsp;&nbsp;pcf8574_RE1.pinMode(i, OUTPUT);<br />
}<br />
 &nbsp;&nbsp;pcf8574_RE1.begin();<br />
<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
  pcf8574_RE1.digitalWrite(i, LOW);delay(200);<br />
}<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
  pcf8574_RE1.digitalWrite(i, HIGH);delay(200);<br />
} &nbsp;&nbsp;<br />
}<br />
<br />
void loop()<br />
{<br />
  /******Output is all off by default, and can be turned <br />
 on or off manually when pressed by the keypad**************/<br />
for(int i=0;i&lt;=7;i++)<br />
{<br />
  pcf8574_RE1.digitalWrite(i, HIGH);delay(100);<br />
}<br />
<br />
}</code></div></div>[Arduino source code for KC868-A8M]-05 OUTPUT<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2327" target="_blank" title="">KC868-A8M_OUTPUT.zip</a> (Size: 664 bytes / Downloads: 559)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino source code for KC868-A8M]-04 LAN8720_UDP]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2801</link>
			<pubDate>Fri, 14 Apr 2023 11:16:12 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2801</guid>
			<description><![CDATA[[Arduino source code for KC868-A8M]-04 LAN8720_UDP<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;ETH.h&gt; <br />
#include &lt;WiFiUdp.h&gt; <br />
<br />
#define ETH_ADDR        0<br />
#define ETH_POWER_PIN  -1<br />
#define ETH_MDC_PIN    23<br />
#define ETH_MDIO_PIN &nbsp;&nbsp;18 &nbsp;&nbsp;<br />
#define ETH_TYPE     &nbsp;&nbsp;ETH_PHY_LAN8720<br />
#define ETH_CLK_MODE &nbsp;&nbsp;ETH_CLOCK_GPIO17_OUT<br />
<br />
WiFiUDP Udp;                      //Create UDP object<br />
unsigned int localUdpPort = 4196; //local port<br />
<br />
// Set it based on the IP address of the router<br />
IPAddress local_ip(192, 168, 1, 200); <br />
IPAddress gateway(192, 168, 1, 1);<br />
IPAddress subnet(255, 255, 255, 0);<br />
IPAddress dns(192, 168, 1, 1);<br />
<br />
void setup()<br />
{<br />
  Serial.begin(115200);<br />
  Serial.println();<br />
 &nbsp;&nbsp;<br />
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH<br />
<br />
  // write confir for static IP, gateway,subnet,dns1,dns2<br />
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {<br />
    Serial.println("LAN8720 Configuration failed.");<br />
  }else{Serial.println("LAN8720 Configuration success.");}<br />
  <br />
 /* while(!((uint32_t)ETH.localIP())) //wait for IP<br />
  {<br />
<br />
  }*/<br />
  Serial.println("Connected");<br />
  Serial.print("IP Address:");<br />
  Serial.println(ETH.localIP());<br />
<br />
  Udp.begin(localUdpPort); //begin UDP listener<br />
}<br />
<br />
void loop()<br />
{<br />
  int packetSize = Udp.parsePacket(); //get package size<br />
  if (packetSize)                   &nbsp;&nbsp;//if have received data<br />
  {<br />
    char buf[packetSize];<br />
    Udp.read(buf, packetSize); //read current data<br />
<br />
    Serial.println();<br />
    Serial.print("Received: ");<br />
    Serial.println(buf);<br />
    Serial.print("From IP: ");<br />
    Serial.println(Udp.remoteIP());<br />
    Serial.print("From Port: ");<br />
    Serial.println(Udp.remotePort());<br />
<br />
    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data<br />
    Udp.print("Received: ");    <br />
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer<br />
    Udp.endPacket();            //send data<br />
  }<br />
}</code></div></div><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2326" target="_blank" title="">KC868-A8M_LAN8720_UDP.zip</a> (Size: 1.13 KB / Downloads: 564)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[[Arduino source code for KC868-A8M]-04 LAN8720_UDP<br />
<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;ETH.h&gt; <br />
#include &lt;WiFiUdp.h&gt; <br />
<br />
#define ETH_ADDR        0<br />
#define ETH_POWER_PIN  -1<br />
#define ETH_MDC_PIN    23<br />
#define ETH_MDIO_PIN &nbsp;&nbsp;18 &nbsp;&nbsp;<br />
#define ETH_TYPE     &nbsp;&nbsp;ETH_PHY_LAN8720<br />
#define ETH_CLK_MODE &nbsp;&nbsp;ETH_CLOCK_GPIO17_OUT<br />
<br />
WiFiUDP Udp;                      //Create UDP object<br />
unsigned int localUdpPort = 4196; //local port<br />
<br />
// Set it based on the IP address of the router<br />
IPAddress local_ip(192, 168, 1, 200); <br />
IPAddress gateway(192, 168, 1, 1);<br />
IPAddress subnet(255, 255, 255, 0);<br />
IPAddress dns(192, 168, 1, 1);<br />
<br />
void setup()<br />
{<br />
  Serial.begin(115200);<br />
  Serial.println();<br />
 &nbsp;&nbsp;<br />
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH<br />
<br />
  // write confir for static IP, gateway,subnet,dns1,dns2<br />
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {<br />
    Serial.println("LAN8720 Configuration failed.");<br />
  }else{Serial.println("LAN8720 Configuration success.");}<br />
  <br />
 /* while(!((uint32_t)ETH.localIP())) //wait for IP<br />
  {<br />
<br />
  }*/<br />
  Serial.println("Connected");<br />
  Serial.print("IP Address:");<br />
  Serial.println(ETH.localIP());<br />
<br />
  Udp.begin(localUdpPort); //begin UDP listener<br />
}<br />
<br />
void loop()<br />
{<br />
  int packetSize = Udp.parsePacket(); //get package size<br />
  if (packetSize)                   &nbsp;&nbsp;//if have received data<br />
  {<br />
    char buf[packetSize];<br />
    Udp.read(buf, packetSize); //read current data<br />
<br />
    Serial.println();<br />
    Serial.print("Received: ");<br />
    Serial.println(buf);<br />
    Serial.print("From IP: ");<br />
    Serial.println(Udp.remoteIP());<br />
    Serial.print("From Port: ");<br />
    Serial.println(Udp.remotePort());<br />
<br />
    Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); //ready to send data<br />
    Udp.print("Received: ");    <br />
    Udp.write((const uint8_t*)buf, packetSize); //copy data to sender buffer<br />
    Udp.endPacket();            //send data<br />
  }<br />
}</code></div></div><br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2326" target="_blank" title="">KC868-A8M_LAN8720_UDP.zip</a> (Size: 1.13 KB / Downloads: 564)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino source code for KC868-A8M]-03 INPUT]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2800</link>
			<pubDate>Fri, 14 Apr 2023 11:15:58 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2800</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*KC868-A8M input trigger output*/<br />
#include "Arduino.h"<br />
#include "PCF8574.h"<br />
<br />
#define SDA 5<br />
#define SCL 4<br />
// Set i2c address<br />
PCF8574 pcf8574_IN1(0x22,SDA,SCL);<br />
PCF8574 pcf8574_RE(0x24,SDA,SCL);<br />
unsigned long timeElapsed;<br />
void setup()<br />
{<br />
    Serial.begin(115200);<br />
    delay(1000);<br />
    pcf8574_RE.pinMode(P0, OUTPUT);<br />
    pcf8574_RE.pinMode(P1, OUTPUT);<br />
    pcf8574_RE.pinMode(P2, OUTPUT);<br />
    pcf8574_RE.pinMode(P3, OUTPUT);<br />
    pcf8574_RE.pinMode(P4, OUTPUT);<br />
    pcf8574_RE.pinMode(P5, OUTPUT);<br />
    pcf8574_RE.pinMode(P6, OUTPUT);<br />
    pcf8574_RE.pinMode(P7, OUTPUT);<br />
    <br />
    pcf8574_IN1.pinMode(P0, INPUT);<br />
    pcf8574_IN1.pinMode(P1, INPUT);<br />
    pcf8574_IN1.pinMode(P2, INPUT);<br />
    pcf8574_IN1.pinMode(P3, INPUT);<br />
    pcf8574_IN1.pinMode(P4, INPUT);<br />
    pcf8574_IN1.pinMode(P5, INPUT);<br />
    pcf8574_IN1.pinMode(P6, INPUT);<br />
    pcf8574_IN1.pinMode(P7, INPUT);<br />
    pcf8574_IN1.begin();<br />
    pcf8574_RE.begin();<br />
}<br />
<br />
void loop()<br />
{<br />
uint8_t val1 = pcf8574_IN1.digitalRead(P0);<br />
uint8_t val2 = pcf8574_IN1.digitalRead(P1);<br />
uint8_t val3 = pcf8574_IN1.digitalRead(P2);<br />
uint8_t val4 = pcf8574_IN1.digitalRead(P3);<br />
uint8_t val5 = pcf8574_IN1.digitalRead(P4);<br />
uint8_t val6 = pcf8574_IN1.digitalRead(P5);<br />
uint8_t val7 = pcf8574_IN1.digitalRead(P6);<br />
uint8_t val8 = pcf8574_IN1.digitalRead(P7);<br />
if (val1==LOW) {<br />
  pcf8574_RE.digitalWrite(P0,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P0,HIGH);<br />
if (val2==LOW) {<br />
  pcf8574_RE.digitalWrite(P1,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P1,HIGH);<br />
if (val3==LOW)  {<br />
  pcf8574_RE.digitalWrite(P2,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P2,HIGH);<br />
if (val4==LOW)  {<br />
  pcf8574_RE.digitalWrite(P3,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P3,HIGH);<br />
if (val5==LOW)  {<br />
  pcf8574_RE.digitalWrite(P4,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P4,HIGH);<br />
if (val6==LOW)  {<br />
  pcf8574_RE.digitalWrite(P5,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P5,HIGH);<br />
if (val7==LOW)  {<br />
  pcf8574_RE.digitalWrite(P6,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P6,HIGH);<br />
if (val8==LOW)  {<br />
  pcf8574_RE.digitalWrite(P7,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P7,HIGH);<br />
<br />
    delay(300);<br />
}</code></div></div>[Arduino source code for KC868-A8M]-03 INPUT<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2325" target="_blank" title="">KC868-A8M_INPUT.zip</a> (Size: 822 bytes / Downloads: 587)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*KC868-A8M input trigger output*/<br />
#include "Arduino.h"<br />
#include "PCF8574.h"<br />
<br />
#define SDA 5<br />
#define SCL 4<br />
// Set i2c address<br />
PCF8574 pcf8574_IN1(0x22,SDA,SCL);<br />
PCF8574 pcf8574_RE(0x24,SDA,SCL);<br />
unsigned long timeElapsed;<br />
void setup()<br />
{<br />
    Serial.begin(115200);<br />
    delay(1000);<br />
    pcf8574_RE.pinMode(P0, OUTPUT);<br />
    pcf8574_RE.pinMode(P1, OUTPUT);<br />
    pcf8574_RE.pinMode(P2, OUTPUT);<br />
    pcf8574_RE.pinMode(P3, OUTPUT);<br />
    pcf8574_RE.pinMode(P4, OUTPUT);<br />
    pcf8574_RE.pinMode(P5, OUTPUT);<br />
    pcf8574_RE.pinMode(P6, OUTPUT);<br />
    pcf8574_RE.pinMode(P7, OUTPUT);<br />
    <br />
    pcf8574_IN1.pinMode(P0, INPUT);<br />
    pcf8574_IN1.pinMode(P1, INPUT);<br />
    pcf8574_IN1.pinMode(P2, INPUT);<br />
    pcf8574_IN1.pinMode(P3, INPUT);<br />
    pcf8574_IN1.pinMode(P4, INPUT);<br />
    pcf8574_IN1.pinMode(P5, INPUT);<br />
    pcf8574_IN1.pinMode(P6, INPUT);<br />
    pcf8574_IN1.pinMode(P7, INPUT);<br />
    pcf8574_IN1.begin();<br />
    pcf8574_RE.begin();<br />
}<br />
<br />
void loop()<br />
{<br />
uint8_t val1 = pcf8574_IN1.digitalRead(P0);<br />
uint8_t val2 = pcf8574_IN1.digitalRead(P1);<br />
uint8_t val3 = pcf8574_IN1.digitalRead(P2);<br />
uint8_t val4 = pcf8574_IN1.digitalRead(P3);<br />
uint8_t val5 = pcf8574_IN1.digitalRead(P4);<br />
uint8_t val6 = pcf8574_IN1.digitalRead(P5);<br />
uint8_t val7 = pcf8574_IN1.digitalRead(P6);<br />
uint8_t val8 = pcf8574_IN1.digitalRead(P7);<br />
if (val1==LOW) {<br />
  pcf8574_RE.digitalWrite(P0,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P0,HIGH);<br />
if (val2==LOW) {<br />
  pcf8574_RE.digitalWrite(P1,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P1,HIGH);<br />
if (val3==LOW)  {<br />
  pcf8574_RE.digitalWrite(P2,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P2,HIGH);<br />
if (val4==LOW)  {<br />
  pcf8574_RE.digitalWrite(P3,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P3,HIGH);<br />
if (val5==LOW)  {<br />
  pcf8574_RE.digitalWrite(P4,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P4,HIGH);<br />
if (val6==LOW)  {<br />
  pcf8574_RE.digitalWrite(P5,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P5,HIGH);<br />
if (val7==LOW)  {<br />
  pcf8574_RE.digitalWrite(P6,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P6,HIGH);<br />
if (val8==LOW)  {<br />
  pcf8574_RE.digitalWrite(P7,LOW);<br />
  delay(100);<br />
  }<br />
else pcf8574_RE.digitalWrite(P7,HIGH);<br />
<br />
    delay(300);<br />
}</code></div></div>[Arduino source code for KC868-A8M]-03 INPUT<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2325" target="_blank" title="">KC868-A8M_INPUT.zip</a> (Size: 822 bytes / Downloads: 587)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino source code for KC868-A8M]-02 DS18B20]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2799</link>
			<pubDate>Fri, 14 Apr 2023 11:15:44 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2799</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;DS18B20.h&gt;<br />
<br />
DS18B20 ds(14); &nbsp;&nbsp;//IO13<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
}<br />
<br />
void loop() {<br />
  <br />
    Serial.printf("Temperature: %.2f C&#92;n",ds.getTempC());<br />
    delay(1000);<br />
}</code></div></div>[Arduino source code for KC868-A8M]-02 DS18B20<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2324" target="_blank" title="">KC868-A8M_DS18B20.zip</a> (Size: 514 bytes / Downloads: 588)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>#include &lt;DS18B20.h&gt;<br />
<br />
DS18B20 ds(14); &nbsp;&nbsp;//IO13<br />
<br />
void setup() {<br />
  Serial.begin(115200);<br />
}<br />
<br />
void loop() {<br />
  <br />
    Serial.printf("Temperature: %.2f C&#92;n",ds.getTempC());<br />
    delay(1000);<br />
}</code></div></div>[Arduino source code for KC868-A8M]-02 DS18B20<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2324" target="_blank" title="">KC868-A8M_DS18B20.zip</a> (Size: 514 bytes / Downloads: 588)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[Arduino source code for KC868-A8M]-01 ADC]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2798</link>
			<pubDate>Fri, 14 Apr 2023 11:15:31 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=194">KinCony Support</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2798</guid>
			<description><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*Code for KC868-A8S*/<br />
#include "Arduino.h"<br />
<br />
#define ANALOG_A1 &nbsp;&nbsp;34        // IO36  <br />
#define ANALOG_A2 &nbsp;&nbsp;35        // IO39    <br />
#define ANALOG_A3 &nbsp;&nbsp;39        // IO34 &nbsp;&nbsp;<br />
#define ANALOG_A4 &nbsp;&nbsp;36        // IO35 &nbsp;&nbsp;<br />
void setup()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;Serial.begin(115200);<br />
&nbsp;&nbsp;&nbsp;&nbsp;delay(1000);<br />
<br />
  pinMode(ANALOG_A1,INPUT);<br />
  pinMode(ANALOG_A2,INPUT);<br />
  pinMode(ANALOG_A3,INPUT);<br />
  pinMode(ANALOG_A4,INPUT);<br />
}<br />
<br />
void loop()<br />
{<br />
  if(analogRead(ANALOG_A1)!=0)<br />
    {  Serial.printf("A1 on Pin(%d)=%d&#92;n",ANALOG_A1,analogRead(ANALOG_A1));delay(500);}<br />
  if(analogRead(ANALOG_A2)!=0)<br />
    {  Serial.printf("A2 on Pin(%d)=%d&#92;n",ANALOG_A2,analogRead(ANALOG_A2));delay(500);}<br />
  if(analogRead(ANALOG_A3)!=0)<br />
    {  Serial.printf("A3 on Pin(%d)=%d&#92;n",ANALOG_A3,analogRead(ANALOG_A3));delay(500);}<br />
  if(analogRead(ANALOG_A4)!=0)<br />
    {  Serial.printf("A4 on Pin(%d)=%d&#92;n",ANALOG_A4,analogRead(ANALOG_A4));delay(500);}<br />
<br />
}</code></div></div>[Arduino source code for KC868-A8M]-01 ADC<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2323" target="_blank" title="">KC868-A8M_ADC.zip</a> (Size: 643 bytes / Downloads: 553)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[<div class="codeblock"><div class="title">Code:</div><div class="body" dir="ltr"><code>/*Code for KC868-A8S*/<br />
#include "Arduino.h"<br />
<br />
#define ANALOG_A1 &nbsp;&nbsp;34        // IO36  <br />
#define ANALOG_A2 &nbsp;&nbsp;35        // IO39    <br />
#define ANALOG_A3 &nbsp;&nbsp;39        // IO34 &nbsp;&nbsp;<br />
#define ANALOG_A4 &nbsp;&nbsp;36        // IO35 &nbsp;&nbsp;<br />
void setup()<br />
{<br />
&nbsp;&nbsp;&nbsp;&nbsp;Serial.begin(115200);<br />
&nbsp;&nbsp;&nbsp;&nbsp;delay(1000);<br />
<br />
  pinMode(ANALOG_A1,INPUT);<br />
  pinMode(ANALOG_A2,INPUT);<br />
  pinMode(ANALOG_A3,INPUT);<br />
  pinMode(ANALOG_A4,INPUT);<br />
}<br />
<br />
void loop()<br />
{<br />
  if(analogRead(ANALOG_A1)!=0)<br />
    {  Serial.printf("A1 on Pin(%d)=%d&#92;n",ANALOG_A1,analogRead(ANALOG_A1));delay(500);}<br />
  if(analogRead(ANALOG_A2)!=0)<br />
    {  Serial.printf("A2 on Pin(%d)=%d&#92;n",ANALOG_A2,analogRead(ANALOG_A2));delay(500);}<br />
  if(analogRead(ANALOG_A3)!=0)<br />
    {  Serial.printf("A3 on Pin(%d)=%d&#92;n",ANALOG_A3,analogRead(ANALOG_A3));delay(500);}<br />
  if(analogRead(ANALOG_A4)!=0)<br />
    {  Serial.printf("A4 on Pin(%d)=%d&#92;n",ANALOG_A4,analogRead(ANALOG_A4));delay(500);}<br />
<br />
}</code></div></div>[Arduino source code for KC868-A8M]-01 ADC<br /><!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/zip.png" title="ZIP File" border="0" alt=".zip" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2323" target="_blank" title="">KC868-A8M_ADC.zip</a> (Size: 643 bytes / Downloads: 553)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[KC868-A8M configure yaml for ESPhome]]></title>
			<link>https://www.kincony.com/forum/showthread.php?tid=2791</link>
			<pubDate>Fri, 14 Apr 2023 10:10:01 +0800</pubDate>
			<dc:creator><![CDATA[<a href="https://www.kincony.com/forum/member.php?action=profile&uid=1">admin</a>]]></dc:creator>
			<guid isPermaLink="false">https://www.kincony.com/forum/showthread.php?tid=2791</guid>
			<description><![CDATA[esphome:<br />
  name: a8m<br />
  platform: ESP32<br />
  board: esp32dev<br />
  <br />
  <br />
remote_receiver:<br />
  pin: 16<br />
  dump:<br />
    - rc_switch<br />
  tolerance: 50%<br />
  filter: 250us<br />
  idle: 2ms<br />
  buffer_size: 2kb<br />
<br />
<br />
<br />
# Example configuration entry for ESP32<br />
i2c:<br />
  sda: 5<br />
  scl: 4<br />
  scan: true<br />
  id: bus_a<br />
<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
  # Optional manual IP<br />
  manual_ip:<br />
    static_ip: 192.168.1.199<br />
    gateway: 192.168.1.1<br />
    subnet: 255.255.255.0  <br />
<br />
<br />
# Example configuration entry<br />
pcf8574:<br />
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8<br />
    address: 0x24<br />
<br />
  - id: 'pcf8574_hub_in_1'  # for input channel 1-8<br />
    address: 0x22<br />
<br />
# Individual outputs<br />
switch:<br />
  - platform: gpio<br />
    name: "light1"<br />
    id: light1<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "light2"<br />
    id: light2<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
  - platform: gpio<br />
    name: "light3"<br />
    id: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
  - platform: gpio<br />
    name: "light4"<br />
    id: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
  - platform: gpio<br />
    name: "curtain1-up"<br />
    id: relay5<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
      <br />
      <br />
  - platform: gpio<br />
    name: "curtain1-down"<br />
    id: relay6<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
<br />
  - platform: gpio<br />
    name: "curtain2-up"<br />
    id: relay7<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true <br />
<br />
      <br />
  - platform: gpio<br />
    name: "curtain2-down"<br />
    id: relay8<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true <br />
<br />
      <br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "input1"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light1<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input2"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light2<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input3"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input4"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input5"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay5<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input6"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay6<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input7"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay7<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input8"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay8<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: remote_receiver<br />
    name: "remoter1"<br />
    rc_switch_raw:<br />
      code: '000101000101010100000011'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light1<br />
    filters:<br />
      - delayed_off: 200ms<br />
<br />
  - platform: remote_receiver<br />
    name: "remoter2"<br />
    rc_switch_raw:<br />
      code: '000101000101010100001100'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light2<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter3"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110100'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter4"<br />
    rc_switch_raw:<br />
      code: '001111010111001010111001'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
    filters:<br />
      - delayed_off: 200ms  <br />
    <br />
  - platform: remote_receiver<br />
    name: "remoter5"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110010'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay5<br />
    filters:<br />
      - delayed_off: 200ms<br />
<br />
  - platform: remote_receiver<br />
    name: "remoter6"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110101'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay6<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter7"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110001'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay7<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter8"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110011'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay8<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
<br />
# Enable logging<br />
logger:<br />
<br />
# Enable Home Assistant API<br />
api:<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2316" target="_blank" title="">KC868-A8M-ha-config.txt</a> (Size: 5.68 KB / Downloads: 609)
<!-- end: postbit_attachments_attachment -->]]></description>
			<content:encoded><![CDATA[esphome:<br />
  name: a8m<br />
  platform: ESP32<br />
  board: esp32dev<br />
  <br />
  <br />
remote_receiver:<br />
  pin: 16<br />
  dump:<br />
    - rc_switch<br />
  tolerance: 50%<br />
  filter: 250us<br />
  idle: 2ms<br />
  buffer_size: 2kb<br />
<br />
<br />
<br />
# Example configuration entry for ESP32<br />
i2c:<br />
  sda: 5<br />
  scl: 4<br />
  scan: true<br />
  id: bus_a<br />
<br />
<br />
# Example configuration entry<br />
ethernet:<br />
  type: LAN8720<br />
  mdc_pin: GPIO23<br />
  mdio_pin: GPIO18<br />
  clk_mode: GPIO17_OUT<br />
  phy_addr: 0<br />
<br />
  # Optional manual IP<br />
  manual_ip:<br />
    static_ip: 192.168.1.199<br />
    gateway: 192.168.1.1<br />
    subnet: 255.255.255.0  <br />
<br />
<br />
# Example configuration entry<br />
pcf8574:<br />
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8<br />
    address: 0x24<br />
<br />
  - id: 'pcf8574_hub_in_1'  # for input channel 1-8<br />
    address: 0x22<br />
<br />
# Individual outputs<br />
switch:<br />
  - platform: gpio<br />
    name: "light1"<br />
    id: light1<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 0<br />
      mode: OUTPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "light2"<br />
    id: light2<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 1<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
  - platform: gpio<br />
    name: "light3"<br />
    id: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 2<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
  - platform: gpio<br />
    name: "light4"<br />
    id: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 3<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
  - platform: gpio<br />
    name: "curtain1-up"<br />
    id: relay5<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 4<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
      <br />
      <br />
  - platform: gpio<br />
    name: "curtain1-down"<br />
    id: relay6<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 5<br />
      mode: OUTPUT<br />
      inverted: true <br />
      <br />
<br />
  - platform: gpio<br />
    name: "curtain2-up"<br />
    id: relay7<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 6<br />
      mode: OUTPUT<br />
      inverted: true <br />
<br />
      <br />
  - platform: gpio<br />
    name: "curtain2-down"<br />
    id: relay8<br />
    pin:<br />
      pcf8574: pcf8574_hub_out_1<br />
      number: 7<br />
      mode: OUTPUT<br />
      inverted: true <br />
<br />
      <br />
binary_sensor:<br />
  - platform: gpio<br />
    name: "input1"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light1<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 0<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input2"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light2<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 1<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input3"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 2<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input4"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 3<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input5"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay5<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 4<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input6"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay6<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 5<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input7"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay7<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 6<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: gpio<br />
    name: "input8"<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay8<br />
    pin:<br />
      pcf8574: pcf8574_hub_in_1<br />
      number: 7<br />
      mode: INPUT<br />
      inverted: true<br />
<br />
  - platform: remote_receiver<br />
    name: "remoter1"<br />
    rc_switch_raw:<br />
      code: '000101000101010100000011'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light1<br />
    filters:<br />
      - delayed_off: 200ms<br />
<br />
  - platform: remote_receiver<br />
    name: "remoter2"<br />
    rc_switch_raw:<br />
      code: '000101000101010100001100'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light2<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter3"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110100'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light3<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter4"<br />
    rc_switch_raw:<br />
      code: '001111010111001010111001'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: light4<br />
    filters:<br />
      - delayed_off: 200ms  <br />
    <br />
  - platform: remote_receiver<br />
    name: "remoter5"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110010'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay5<br />
    filters:<br />
      - delayed_off: 200ms<br />
<br />
  - platform: remote_receiver<br />
    name: "remoter6"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110101'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay6<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter7"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110001'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay7<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
  - platform: remote_receiver<br />
    name: "remoter8"<br />
    rc_switch_raw:<br />
      code: '001111010111001010110011'<br />
      protocol: 2<br />
    on_press:<br />
      then:<br />
        - switch.toggle: relay8<br />
    filters:<br />
      - delayed_off: 200ms<br />
      <br />
<br />
# Enable logging<br />
logger:<br />
<br />
# Enable Home Assistant API<br />
api:<br />
<br />
<!-- start: postbit_attachments_attachment -->
<br /><!-- start: attachment_icon -->
<img src="https://www.kincony.com/forum/images/attachtypes/txt.png" title="Text Document" border="0" alt=".txt" />
<!-- end: attachment_icon -->&nbsp;&nbsp;<a href="attachment.php?aid=2316" target="_blank" title="">KC868-A8M-ha-config.txt</a> (Size: 5.68 KB / Downloads: 609)
<!-- end: postbit_attachments_attachment -->]]></content:encoded>
		</item>
	</channel>
</rss>