I have a .UNO+WiFi R3 ATmega328P+ESP8266, 32Mb flash, USB-TTL CH340G, Micro-USB clone.
The most simple sketch, flashing a led doesn't work on the ESP8266
#define LED 12 // D6, GPIO12
void setup() {
pinMode(LED, OUTPUT);
}
void loop() {
digitalWrite(LED, HIGH);
delay(1000);
digitalWrite(LED, LOW);
delay(1000);
}
The code seems to load fine. Following the output of the IDE:
esptool.py v2.8
Serial port COM4
Connecting....
Chip is ESP8266EX
Features: WiFi
Crystal is 26MHz
MAC: ec:fa:bc:2c:6b:06
.....
Compressed 260464 bytes to 190655...
Writing at 0x00000000... (8 %)
....
Writing at 0x0002c000... (100 %)
Wrote 260464 bytes (190655 compressed) at 0x00000000 in 16.9 seconds (effective 123.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
The attached led doesn't flash. I also tried it on a couple of other pins (of course changing the code). I figured out which pin is which exactly (one of the two pins labeled GPIO02 on the board is in fact GPIO00), figuring that I have to use the GPIO number instead of the digital pin number (Dx).
If I add Serial.println ("Hello World") to the sketch I don't get output on the serial monitor. COM4 seems to be connected. I installed the drivers for the CH340.
The same code works on the ATmega328P of the same board (of course different switch settings) and on a NodeMCU, also with ESP 8266.
Anyone a suggestion? I have been busy with this for days. Do I maybe need to reflash the ESP8266 firmware?
Thanks.
System:
Windows 10
Board: UNO+WiFi R3 ATmega328P+ESP8266, 32Mb flash, USB-TTL CH340G, Micro-USB
Board: Arduino IDE 1.8.12
Dip switch setting: OFF, OFF, OFF, OFF, ON, ON, ON, -- (for the ESP8266)
Arduino IDE Board setting: Generic ESP8266 module, standard settings.
Baud rate 9600.