How To Find An ESP32 MAC Address
What’s In This Page
This takes you through the process of enabling an ESP32 for use. That entails finding the MAC address.
If you are using a phone, at the bottom of the page there are links to many supplies for modelers. Otherwise those links are in the sidebar to the right. You can also find other information by using the search function that is in the navigation bar above.
Also In Addition To What’s In This Page, What This Site Can Do For You
If you are a model train enthusiast, modeler, diorama maker, or interested in making Arduino projects the easy way, there is categorized information for you here. Click Here.
The Latest Information
Anything new and page updates are posted on X (formerly Twitter), Rumble and Facebook.
It is easy to keep up with the latest by following us on either of them.
Free Help
On Changing an ESP32 Mac Address
Factories set a unique, globally approved MAC address for each EAP32 that they make. You CANNOT change it. Caveat – it is possible to make a temporary local change. But the address will revert to the factory set address
Step-By-Step Guide To Find An ESP32 MAC Address
To find the MAC address of an ESP32, you can use the Arduino IDE and some simple code. Follow these steps:
1. Install the ESP32 Board in Arduino IDE:
If you haven’t already, install the ESP32 board support package in your Arduino IDE. Follow these steps:
– Go to `File` > `Preferences`.
– In the “Additional Board Manager URLs” field, add this URL: `https://dl.espressif.com/dl/package_esp32_index.json`
– Go to `Tools` > `Board` > `Board Manager` and search for `esp32`. Install the package.
2. Connect Your ESP32:
Connect your ESP32 to your computer using a USB cable.
3. Open a New Sketch:
Open the Arduino IDE and start a new sketch.
4. Write the Code:
Copy and paste the following code into the Arduino IDE:
#include “WiFi.h”
void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
Serial.println(“ESP32 MAC Address: “);
Serial.println(WiFi.macAddress());
}
void loop() {
// put your main code here, to run repeatedly:
}
“`
5. Select the ESP32 Board and Port:
– Go to `Tools` > `Board` and select your ESP32 model.
– Go to `Tools` > `Port` and select the port to which your ESP32 is connected.
6. Upload the Code:
Click the upload button (right arrow icon) in the Arduino IDE to upload the code to your ESP32.
7. Open the Serial Monitor:
Once the code is uploaded, open the Serial Monitor by clicking the magnifying glass icon in the upper right corner of the Arduino IDE or go to `Tools` > `Serial Monitor`. Make sure the baud rate is set to `115200`.
8. View the MAC Address:
The Serial Monitor will display the MAC address of your ESP32. It should look something like this:
“`
ESP32 MAC Address:
24:0A:C4:XX:XX:XX
“`