![]() |
|
Not able to upload arduino code to A16v3 board - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A16v3 (https://www.kincony.com/forum/forumdisplay.php?fid=68) +--- Thread: Not able to upload arduino code to A16v3 board (/showthread.php?tid=7921) Pages:
1
2
|
Not able to upload arduino code to A16v3 board - ematicenergies - 04-09-2025 I am using a kincony A16v3 board for my project. I have tried to upload my arduino code to the board. But the code is not uploading. I have powered the board with 12v supply. And have connected the board to my pc via usb type c cable. Chosen nodemcu 32s in boards. But its not working. How to check what have gone wrong ?. Or if any further details required, let me know RE: Not able to upload arduino code to A16v3 board - admin - 04-09-2025 A16v3 board, use ESP32-S3 , so you can't chose nodemcu32s, you should chose "ESP32S3 DEV". RE: Not able to upload arduino code to A16v3 board - ematicenergies - 04-10-2025 (04-09-2025, 11:41 PM)admin Wrote: A16v3 board, use ESP32-S3 , so you can't chose nodemcu32s, you should chose "ESP32S3 DEV". Note: We have uploaded the code in ESP32, but its not operating as per the code functions. RE: Not able to upload arduino code to A16v3 board - admin - 04-10-2025 if you want use serial port by ESP32-S3, you should enable "USB CDC on boot" this option. see the image. RE: Not able to upload arduino code to A16v3 board - ematicenergies - 04-12-2025 I have tired and the serial communication is working, but the digital pins are not working. Its not going high for the following code. kindly help Code: #include "Arduino.h"RE: Not able to upload arduino code to A16v3 board - admin - 04-12-2025 do you test short the digital input with GND? can you take a photo, how you test with terminal? RE: Not able to upload arduino code to A16v3 board - ematicenergies - 06-01-2025 (04-12-2025, 11:29 PM)admin Wrote: do you test short the digital input with GND? can you take a photo, how you test with terminal? Hi i have tested it and it was working fine, but now i am planning to add ethernet support for data trasnfer over the internet. when i upload the following code. is says no ethernet hardware detected. Kindly help me in this: #include <Ethernet.h> #define ETH_SPI_SCS 5 // CS (Chip Select), Green // Define MAC and IP byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip(192, 168, 1, 177); void setup() { Serial.begin(9600); delay(1000); Serial.println("Starting Ethernet connection..."); //Set the CS pin, required for ESP32 as the arduino default is different Ethernet.init(ETH_SPI_SCS); //Start the Ethernet connection Ethernet.begin(mac, ip); //Hardware check Serial.println("Checking Ethernet hardware..."); if (Ethernet.hardwareStatus() == EthernetNoHardware) { Serial.println("ERROR: No Ethernet hardware detected!"); return; } else { Serial.println("Ethernet hardware detected!"); } //Check if cable is connected if (Ethernet.linkStatus() == LinkOFF) { Serial.println("Link is OFF. Check cable connection."); } else { Serial.println("Link is ON. Cable is connected. Ready to go!"); Serial.print("To test connection, please ping: "); Serial.println(ip); } } void loop() { // put your main code here, to run repeatedly: } RE: Not able to upload arduino code to A16v3 board - admin - 06-01-2025 here is ethernet arduino source code for KC868-A16v3: https://www.kincony.com/forum/showthread.php?tid=7389 RE: Not able to upload arduino code to A16v3 board - ematicenergies - 06-01-2025 (06-01-2025, 11:39 AM)admin Wrote: here is ethernet arduino source code for KC868-A16v3: i have tried this. it shows the IP address: 0.0.0.0 . Eventhough the lan is connected. RE: Not able to upload arduino code to A16v3 board - ematicenergies - 06-01-2025 (06-01-2025, 12:08 PM)ematicenergies Wrote:(06-01-2025, 11:39 AM)admin Wrote: here is ethernet arduino source code for KC868-A16v3: #include <ETH.h> #include <SPI.h> #include <Ethernet.h> // SPI pin configuration #define ETH_SPI_SCK 42 #define ETH_SPI_MISO 44 #define ETH_SPI_MOSI 43 // W5500 control pins #define ETH_CS 41 #define ETH_RST 1 #define ETH_INT 2 // Static IP configuration byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED }; IPAddress ip = IPAddress(192, 168, 3, 55); IPAddress dns = IPAddress(192, 168, 3, 1); IPAddress gateway= IPAddress(192, 168, 3, 1); IPAddress subnet = IPAddress(255, 255, 255, 0); void resetW5500() { pinMode(ETH_RST, OUTPUT); digitalWrite(ETH_RST, LOW); delay(100); digitalWrite(ETH_RST, HIGH); delay(100); } void setup() { Serial.begin(115200); delay(1000); Serial.println("W5500 Ethernet setup with ESP32-S3..."); // Set up SPI SPI.begin(ETH_SPI_SCK, ETH_SPI_MISO, ETH_SPI_MOSI, ETH_CS); // Reset the W5500 resetW5500(); // Initialize Ethernet library Ethernet.init(ETH_CS); // Set CS pin Ethernet.begin(mac, ip, dns, gateway, subnet); delay(1000); if (Ethernet.hardwareStatus() == EthernetNoHardware) { Serial.println("W5500 Ethernet shield not found. Check wiring!"); while (true); } if (Ethernet.linkStatus() == LinkOFF) { Serial.println("Ethernet cable not connected."); } else { Serial.print("Ethernet Connected! IP Address: "); Serial.println(Ethernet.localIP()); } } void loop() { Serial.print("Current IP: "); Serial.println(Ethernet.localIP()); delay(10000); } this is my updated code. check if the pin connections are correct or provide me some leads ASAP |