Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,475
» Latest member: IgnatiusGoldbourne
» Forum threads: 4,177
» Forum posts: 20,758

Full Statistics

Online Users
There are currently 31 online users.
» 0 Member(s) | 14 Guest(s)
Amazonbot, Bing, Bytespider, PetalBot, Semrush, bot

Latest Threads
Russia case for smart hom...
Forum: Customer project example
Last Post: evandro
9 minutes ago
» Replies: 1
» Views: 1,478
A32 Pro ESPHome yaml for ...
Forum: KC868-A32/A32 Pro
Last Post: admin
Yesterday, 06:25 AM
» Replies: 1
» Views: 1,166
E8v3 E16v3 E24v3 relay mo...
Forum: Extender module
Last Post: admin
Yesterday, 01:00 AM
» Replies: 0
» Views: 9
KC868-H32B V5.08 firmware
Forum: News
Last Post: admin
07-25-2026, 11:53 PM
» Replies: 23
» Views: 7,558
[arduino code examples fo...
Forum: B2
Last Post: admin
07-25-2026, 06:40 AM
» Replies: 0
» Views: 17
[arduino code examples fo...
Forum: B2
Last Post: admin
07-25-2026, 06:39 AM
» Replies: 0
» Views: 35
[arduino code examples fo...
Forum: B2
Last Post: admin
07-25-2026, 06:38 AM
» Replies: 0
» Views: 11
[arduino code examples fo...
Forum: B2
Last Post: admin
07-25-2026, 06:37 AM
» Replies: 0
» Views: 15
[arduino code examples fo...
Forum: B2
Last Post: admin
07-25-2026, 06:36 AM
» Replies: 0
» Views: 13
[arduino code examples fo...
Forum: B2
Last Post: admin
07-25-2026, 06:35 AM
» Replies: 0
» Views: 11

  [arduino code examples for N60]-01 Read digital input ports state
Posted by: admin - 08-03-2025, 03:15 AM - Forum: N60 - No Replies

Code:
/*
  Made by KinCony IoT: https://www.kincony.com

  This program reads the digital state of GPIO15 and GPIO16 on an ESP32
  and prints their state (HIGH or LOW) to the serial monitor every 500ms.
*/

#define PIN_GPIO15 15  // Define GPIO15
#define PIN_GPIO16 16  // Define GPIO16

void setup() {
  Serial.begin(115200);               // Initialize serial communication at 115200 baud
  pinMode(PIN_GPIO15, INPUT);         // Set GPIO15 as input
  pinMode(PIN_GPIO16, INPUT);         // Set GPIO16 as input
  Serial.println("ESP32 GPIO15 and GPIO16 State Monitor");
}

void loop() {
  int state15 = digitalRead(PIN_GPIO15);  // Read state of GPIO15
  int state16 = digitalRead(PIN_GPIO16);  // Read state of GPIO16

  // Print the state to the serial monitor
  Serial.print("GPIO15: ");
  Serial.print(state15 == HIGH ? "HIGH" : "LOW");
  Serial.print("  |  GPIO16: ");
  Serial.println(state16 == HIGH ? "HIGH" : "LOW");

  delay(500);  // Wait for 500 milliseconds before reading again
}
arduino ino file download:

.zip   1-free-gpio-state.zip (Size: 632 bytes / Downloads: 492)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-free-gpio-state.ino.merged.zip (Size: 181.39 KB / Downloads: 518)

Print this item

  [arduino code examples for N10]-01 Read digital input ports state
Posted by: admin - 08-03-2025, 03:15 AM - Forum: N10 - No Replies

Code:
/*
  Made by KinCony IoT: https://www.kincony.com

  This program reads the digital state of GPIO15 and GPIO16 on an ESP32
  and prints their state (HIGH or LOW) to the serial monitor every 500ms.
*/

#define PIN_GPIO15 15  // Define GPIO15
#define PIN_GPIO16 16  // Define GPIO16

void setup() {
  Serial.begin(115200);               // Initialize serial communication at 115200 baud
  pinMode(PIN_GPIO15, INPUT);         // Set GPIO15 as input
  pinMode(PIN_GPIO16, INPUT);         // Set GPIO16 as input
  Serial.println("ESP32 GPIO15 and GPIO16 State Monitor");
}

void loop() {
  int state15 = digitalRead(PIN_GPIO15);  // Read state of GPIO15
  int state16 = digitalRead(PIN_GPIO16);  // Read state of GPIO16

  // Print the state to the serial monitor
  Serial.print("GPIO15: ");
  Serial.print(state15 == HIGH ? "HIGH" : "LOW");
  Serial.print("  |  GPIO16: ");
  Serial.println(state16 == HIGH ? "HIGH" : "LOW");

  delay(500);  // Wait for 500 milliseconds before reading again
}
arduino ino file download:

.zip   1-free-gpio-state.zip (Size: 632 bytes / Downloads: 564)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-free-gpio-state.ino.merged.zip (Size: 181.39 KB / Downloads: 506)

Print this item

  [arduino code examples for N20]-01 Read digital input ports state
Posted by: admin - 08-03-2025, 03:15 AM - Forum: N20 - No Replies

Code:
/*
  Made by KinCony IoT: https://www.kincony.com

  This program reads the digital state of GPIO15 and GPIO16 on an ESP32
  and prints their state (HIGH or LOW) to the serial monitor every 500ms.
*/

#define PIN_GPIO15 15  // Define GPIO15
#define PIN_GPIO16 16  // Define GPIO16

void setup() {
  Serial.begin(115200);               // Initialize serial communication at 115200 baud
  pinMode(PIN_GPIO15, INPUT);         // Set GPIO15 as input
  pinMode(PIN_GPIO16, INPUT);         // Set GPIO16 as input
  Serial.println("ESP32 GPIO15 and GPIO16 State Monitor");
}

void loop() {
  int state15 = digitalRead(PIN_GPIO15);  // Read state of GPIO15
  int state16 = digitalRead(PIN_GPIO16);  // Read state of GPIO16

  // Print the state to the serial monitor
  Serial.print("GPIO15: ");
  Serial.print(state15 == HIGH ? "HIGH" : "LOW");
  Serial.print("  |  GPIO16: ");
  Serial.println(state16 == HIGH ? "HIGH" : "LOW");

  delay(500);  // Wait for 500 milliseconds before reading again
}
arduino ino file download:

.zip   1-free-gpio-state.zip (Size: 632 bytes / Downloads: 507)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-free-gpio-state.ino.merged.zip (Size: 181.39 KB / Downloads: 541)

Print this item

  [arduino code examples for N30]-01 Read digital input ports state
Posted by: admin - 08-03-2025, 03:15 AM - Forum: N30 - No Replies

Code:
/*
  Made by KinCony IoT: https://www.kincony.com

  This program reads the digital state of GPIO15 and GPIO16 on an ESP32
  and prints their state (HIGH or LOW) to the serial monitor every 500ms.
*/

#define PIN_GPIO15 15  // Define GPIO15
#define PIN_GPIO16 16  // Define GPIO16

void setup() {
  Serial.begin(115200);               // Initialize serial communication at 115200 baud
  pinMode(PIN_GPIO15, INPUT);         // Set GPIO15 as input
  pinMode(PIN_GPIO16, INPUT);         // Set GPIO16 as input
  Serial.println("ESP32 GPIO15 and GPIO16 State Monitor");
}

void loop() {
  int state15 = digitalRead(PIN_GPIO15);  // Read state of GPIO15
  int state16 = digitalRead(PIN_GPIO16);  // Read state of GPIO16

  // Print the state to the serial monitor
  Serial.print("GPIO15: ");
  Serial.print(state15 == HIGH ? "HIGH" : "LOW");
  Serial.print("  |  GPIO16: ");
  Serial.println(state16 == HIGH ? "HIGH" : "LOW");

  delay(500);  // Wait for 500 milliseconds before reading again
}
arduino ino file download:

.zip   1-free-gpio-state.zip (Size: 632 bytes / Downloads: 494)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download:

.zip   1-free-gpio-state.ino.merged.zip (Size: 181.39 KB / Downloads: 495)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N60 - Replies (3)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 592)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N10 - Replies (1)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 547)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N20 - Replies (1)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 541)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N30 - Replies (1)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 515)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N10 - Replies (3)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 556)

Print this item

  N60/N30/N20/N10 PC software for RS485 modbus connection
Posted by: admin - 08-03-2025, 03:07 AM - Forum: N20 - Replies (3)

connect PC to N60 by USB-RS485 adapter.
   
pc software download:

.zip   N60_APP.zip (Size: 1.66 MB / Downloads: 582)

Print this item