Not working D12/D13
Posted: Thu Feb 28, 2019 9:54 am
Hi,
I have this problem. I using DOIT ESP32 Devkit 36 pin version.
I need using 8-relay module with only set pinMode. Pins between D32-D14 working good but pins D13/D12 not. If I connect it on relay (len on relay channel lighting lower) and arduino sketch in serial monitor write me this message:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
cmd len -1
ets_main.c 371
ets Jun 8 2016 00:22:57
Arduino code:
void setup() {
pinMode(LIGHT_PIN, OUTPUT);
digitalWrite(LIGHT_PIN, HIGH);
}
void loop()
{
if(millis()-entryOneSec >= 1000) {
entryOneSec = millis();
if(millis()-entryThirdteenSec >= 30000) {
entryThirdteenSec = millis();
digitalWrite(LIGHT_PIN, LOW);
}
if(millis()-entrySixteenSec >= 60000) {
entrySixteenSec = millis();
digitalWrite(LIGHT_PIN, HIGH);
}
}
}
When I disconnect this two pins all work. Can anyone help me for this?
I have this problem. I using DOIT ESP32 Devkit 36 pin version.
I need using 8-relay module with only set pinMode. Pins between D32-D14 working good but pins D13/D12 not. If I connect it on relay (len on relay channel lighting lower) and arduino sketch in serial monitor write me this message:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
cmd len -1
ets_main.c 371
ets Jun 8 2016 00:22:57
Arduino code:
void setup() {
pinMode(LIGHT_PIN, OUTPUT);
digitalWrite(LIGHT_PIN, HIGH);
}
void loop()
{
if(millis()-entryOneSec >= 1000) {
entryOneSec = millis();
if(millis()-entryThirdteenSec >= 30000) {
entryThirdteenSec = millis();
digitalWrite(LIGHT_PIN, LOW);
}
if(millis()-entrySixteenSec >= 60000) {
entrySixteenSec = millis();
digitalWrite(LIGHT_PIN, HIGH);
}
}
}
When I disconnect this two pins all work. Can anyone help me for this?