Chat freely about anything...

User avatar
By xtal
#96534 I got 4 of these from amazon.
4Pcs ESP32 ESP-32 WiFi Bluetooth D1 Board Module CH340 Development Board 4MB Flash with Micro USB
LOLIN WEMOS D1 R32 v1.00 [Arduino Uno Profile]

Wifi is really bad, 10 ft range [station mode] line of sight, then gets flaky.
Has anybody had similiar issues?
I suspect they are not using prime chips.
User avatar
By xtal
#96535 Using same INO file with ESP8266.
LOLIN WEMOS D1 R1 ES8266 stong wifi.
Switching between ESP32 and ESP8266
I change includes, pinouts, chipID.


#ifdef ARDUINO_ARCH_ESP8266
#include <ESP8266WiFi.h>
#include <WebSocketsServer.h> //websockes by Markus Sattler ver2.36 & 2.14.2
#include <Time.h>
//#include <ESP_EEPROM.h>
//#include <uEEPROMLib.h>
#endif
#ifdef ARDUINO_ARCH_ESP32
#include <WiFi.h>
#include <WebServer.h>
#include <WebSocketsServer.h> //websockes by Markus Sattler ver2.36 & 2.14.2
#include <Time.h>
#endif
//=============================================================================
#ifdef ARDUINO_ARCH_ESP8266
static const uint8_t p7 = 13;
static const uint8_t p6 = 12;
static const uint8_t p5 = 14;
static const uint8_t p4 = 4;
static const uint8_t p3 = 5;
static const uint8_t p9 = 2;

void ChipID() {
SPn("==============< ESP8266 >================");
Serial.println("Check ID in:");
Serial.println("https://www.wemos.cc/verify_products");
Serial.printf("Chip ID = %08Xn", ESP.getChipId());
Serial.println(" ");
delay(500);
}
#endif
//===============================================================================
#ifdef ARDUINO_ARCH_ESP32

static const uint8_t p7 = 14; // D7
static const uint8_t p6 = 27; // D6
static const uint8_t p5 = 16; // D5
static const uint8_t p4 = 17; // D4
static const uint8_t p3 = 25; // D3
static const uint8_t p9 = 13; // D9

void ChipID() {
SPn("==============< ESP32 >=================");
uint32_t chipId = 0;
for(int i=0; i<17; i=i+8) { chipId = ((ESP.getEfuseMac() >> (40 - i)) & 0xff) << i; }
Serial.printf("ESP32 Chip model = %s Rev %d\n", ESP.getChipModel(), ESP.getChipRevision());
Serial.printf("This chip has %d cores\n", ESP.getChipCores());
Serial.print("Chip ID: "); Serial.println(chipId);
delay(500);
}
#endif
User avatar
By QuickFix
#96536 I don't know the board you're referring to, but having a look at the images it appears to be an ESP-WROOM-32 stuck onto a PCB with Arduino UNO layout. I can't be sure, but judging by the available images, it appears the antenna of the ESP might be obstructed by the copper layers of PCB underneath. :?
User avatar
By xtal
#96539 I removed a large amount pf pcb from under the antenna, there was no ground plane ie copper foil, and
gained maybe 2 foot of distance , which makes me believe the ESP chips are seconds, then again the include files may not be that great for the ESP-wroom-32....Then again maybe bad antenna design. The ESP8266 [LOLIN D1 R1 ] works great , and has a big difference in antenna design, spacing, length etc. It also has pcb under the antenna, and I use a 4 relay adapter hw-86[amazon] which has six pin connector almost touching antenna, and doesn't seem to cause any problems...

Title sb ESP32 LOLIN D1 R32