I have the following board and I can't find is datasheet/pin layout online
I don't understand if the GPIO 2 likr in arduino D2 is the "2" on the righthand side or "D2" on the lefthand side . What is the difference between the two?
looks like I have the identical ESP32 module which only has the power LED
try the following
// Blink a LED - enter pin number via serial monitor
//
// outputs 200mSec square wave to specified pin
//
// start blinking LED_BUILTIN then asks for pin number
int led=13;//LED_BUILTIN;
void setup() {
Serial.begin(115200);
Serial.println();
Serial.print("Led to blink ");
delay(1000);
Serial.println(led);
Serial.println("enter pin number to blink ? ");
// initialize digital pin LED_BUILTIN as an output.
pinMode(led, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
if(Serial.available()){
int i;
pinMode(led, INPUT);
if(i=Serial.parseInt()) led=i;;
Serial.print("Led to blink ");
Serial.println(led);
pinMode(led, OUTPUT);
}
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
Serial.print('*');
}
which defaults to LED on GPIO13 - the serial monitor displays
Led to blink 13
enter pin number to blink ?
*********************************
LoL! That's a bad analogy because there are several types of Uno and even more types of Nano these days!
ESP based Arduino compatible modules come in many shapes and sizes. Which one is best depends on your project. For example if you want to make a very small project powered by battery that needs only a few pins, I can recommend XIAO ESP32-C3
The datasheet for the ESP32 Wroom D which it states is not recommended for new designs. So it's being phased out.
The pinout looks like it's the same as for a 38-pin devkit, though this devkit PCB appears to be able to host a board with PSRAM on it as well. (but the D doesn't have)
In the long run I would like to use it in this project I opened a topic about. Probably to send the data of the tree vibration over wifi or other type of communication (ESP now maybe?) . I am not elaborate on this because I need first to experiment with sensors and only then think on the next stage of sending data from remote location. I also don't want to do cross topic