Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to upload arduino code to A16v3 board
#1
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
Reply
#2
A16v3 board, use ESP32-S3 , so you can't chose nodemcu32s, you should chose "ESP32S3 DEV".
Reply
#3
Photo 
(04-09-2025, 11:41 PM)admin Wrote: A16v3 board, use ESP32-S3 , so you can't chose nodemcu32s, you should chose "ESP32S3 DEV".

      We have Done that and attached the photos also. Please provide the steps to configure the details and we are facing issues in the DI and DO and Display function in ESP32.

Note: We have uploaded the code in ESP32, but its not operating as per the code functions.


Attached Files Image(s)
   
Reply
#4
if you want use serial port by ESP32-S3, you should enable "USB CDC on boot" this option. see the image.
   
Reply
#5
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"
#include "PCF8574.h"
#include "wire.h"


// Set i2c address
PCF8574 pcf8574_1(0x24,4,5);
PCF8574 pcf8574_2(0x25,4,5);

void setup()
{
  Serial.begin(115200);

  pcf8574_1.pinMode(P0, OUTPUT);
  pcf8574_1.pinMode(P1, OUTPUT);
  pcf8574_1.pinMode(P2, OUTPUT);
  pcf8574_1.pinMode(P3, OUTPUT);
  pcf8574_1.pinMode(P4, OUTPUT);
  pcf8574_1.pinMode(P5, OUTPUT);
  pcf8574_1.pinMode(P6, OUTPUT);
  pcf8574_1.pinMode(P7, OUTPUT);

  pcf8574_2.pinMode(P0, OUTPUT);
  pcf8574_2.pinMode(P1, OUTPUT);
  pcf8574_2.pinMode(P2, OUTPUT);
  pcf8574_2.pinMode(P3, OUTPUT);
  pcf8574_2.pinMode(P4, OUTPUT);
  pcf8574_2.pinMode(P5, OUTPUT);
  pcf8574_2.pinMode(P6, OUTPUT);
  pcf8574_2.pinMode(P7, OUTPUT);


    Serial.print("Init pcf8574_1...");
    if (pcf8574_1.begin()){
        Serial.println("PCF8574_1_OK");
    }else{
        Serial.println("PCF8574_1_KO");
    }

  Serial.print("Init pcf8574_2...");
  if (pcf8574_2.begin()){
    Serial.println("PCF8574_2_OK");
  }else{
    Serial.println("PCF8574_2_KO");
  }


}

void loop()
{
  pcf8574_1.digitalWrite(P7, LOW);
  pcf8574_1.digitalWrite(P6, LOW);
  pcf8574_1.digitalWrite(P5, LOW);
  pcf8574_1.digitalWrite(P4, LOW);
  pcf8574_1.digitalWrite(P3, LOW);
  pcf8574_1.digitalWrite(P2, LOW);
  delay(1000);
  pcf8574_1.digitalWrite(P7, HIGH);
  pcf8574_1.digitalWrite(P6, HIGH);
  pcf8574_1.digitalWrite(P5, HIGH);
  pcf8574_1.digitalWrite(P4, HIGH);
  pcf8574_1.digitalWrite(P3, HIGH);
  pcf8574_1.digitalWrite(P2, HIGH);
  delay(1000);

  pcf8574_2.digitalWrite(P7, LOW);
  delay(1000);
  pcf8574_2.digitalWrite(P7, HIGH);
  delay(1000);
}
Reply
#6
do you test short the digital input with GND? can you take a photo, how you test with terminal?
Reply
#7
(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:

}
Reply
#8
here is ethernet arduino source code for KC868-A16v3:
https://www.kincony.com/forum/showthread.php?tid=7389
Reply
#9
(06-01-2025, 11:39 AM)admin Wrote: here is ethernet arduino source code for KC868-A16v3:
https://www.kincony.com/forum/showthread.php?tid=7389

i have tried this. it shows the IP address: 0.0.0.0 . Eventhough the lan is connected.
Reply
#10
(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:
https://www.kincony.com/forum/showthread.php?tid=7389

i have tried this. it shows the IP address: 0.0.0.0 . Eventhough the lan is connected.

#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
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)