I have an ESP32-C6-EVB board. If I connect it to my computer via USB, it works perfectly; it loads and runs the software. But if I power it with only 12V, it continues to function even without the USB connection. The problem is that it won't boot if powered solely by 12V. Any suggestions? The 5v LED lights up in all cases.
Give us more details about the software. How do you determine that it doesn't boot? Did you try with very simple code?
I use Arduino IDE version 2.3.5
Very simple software rele 1 on/off every 4 seg. code:
//Prueba placa OLIMEX ESP32-C6-EVB
// ====== PINES ======
const int inputPins[4] = {1, 2, 3, 15}; // Entradas
const int relayPins[4] = {10, 11, 22, 23}; // Relés
void setup() {
Serial.begin(115200);
while(!Serial) delay(10);
for(int i=0;i<4;i++){
pinMode(inputPins
,INPUT_PULLUP);
pinMode(relayPins,OUTPUT);
digitalWrite(relayPins,LOW);
}
Serial.println("Termino el setup");
}
void loop() {
digitalWrite(relayPins
Serial.println("rele HIGH");
delay(4000);
digitalWrite(relayPins
Serial.println("rele LOW");
delay(4000);
}
If I power it with USB or with USB and 12V, everything is OK, it works, and if I press the reset button, it restarts without a problem.
If I power it only with 12V (12V 5A power supply):
A) It continues to work if it was previously powered by USB. (I disconnect the USB while the 12V is still applied)
B) If I press the reset button, it doesn't start and doesn't work again.
C) From a powered-off state, with no power supply, I connect the 12V, and it doesn't start.
Sorry, It was a software problem.
Troubleshooting - No Boot: If the ESP32-C6 refuses to run code without a serial terminal connected, remove any while(!Serial); lines from your setup() function, as this waits for a connection that may not exist.
Now is OK
Thank you for the update! Glad you got it sorted!