ESP32-WiFi & Bluetooth Getting Started Guide
ESP32-WiFi & Bluetooth Getting Started Guide
User Guide
SKU: MDU-1067
Specifications:
1 www.handsontec.com
ESP32 Module Pinout:
2 www.handsontec.com
Integrating ESP32 with Arduino IDE Environment :
The ESP32 is currently being integrated with the Arduino IDE just like it was done for the ESP8266. This
add-on for the Arduino IDE allows you to program the ESP32 using the Arduino IDE and its programming
language.
Let’s get started!
Installing Python 2.7.x
Having the latest Arduino IDE software installed from arduino.cc/en/Main/Software. Follow these next
instructions:
1) Go to Python website and download the 2.7.x version for Windows:
https://www.python.org/downloads
2) Open the file and follow the installation wizard
3) Choose the option “Install for all users”
4) In Customize Python 2.7.X, you must enable the last option “Add python.exe to Path”
3 www.handsontec.com
Installing Git
Having Git is optional, but it’s easier to download an prepare everything through Git’s Bash. Follow these
next steps:
1) Download and install Git and Git GUI from git-scm.com (it may take a while depending on your
systems and network speed…)
2) Launch Git GUI and select the Clone Existing Repository option:
4 www.handsontec.com
5) Open the “get.exe” file and wait for it to download/prepare the files
The above installation may take a while to complete depending on your computer systems and network
speed…
5 www.handsontec.com
3) Select the COM port
4) Open one of these examples under File > Examples > WiFi (ESP32) > WiFi Scan
5) To make your ESP32 go into downloading/uploading mode: hold the BOOT button and press the
EN button to reboot your ESP32
6) Press the Upload button in the Arduino IDE and wait a few seconds while the code compiles and
uploads to your board. If everything is correct this what you should see:
6 www.handsontec.com
7) Open the Arduino IDE serial monitor at a baud rate of 115200 to see the WiFi networks available
near your ESP32:
This is a very basic tutorial that illustrates how to prepare your Arduino IDE for the ESP32 on a Windows
PC.
7 www.handsontec.com
Simple Program to Run in Arduino IDE:
In this example, you’re going to connect an LED and a pushbutton to the ESP32. The code is very simple
when you hold the pushbutton down it turns the LED on and when you release it turns the LED off.
Copy the following code to your Arduino IDE and upload it to your ESP32 Dev Module.
/*
* Handson Technology www.handsontec.com
* Ardino IDE Example: Arduino button with LED
*/
void setup() {
// initialize the LED pin as an output:
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin, INPUT);
}
void loop() {
// read the state of the pushbutton value:
buttonState = digitalRead(buttonPin);
8 www.handsontec.com
digitalWrite(ledPin, HIGH);
} else {
// turn LED off:
digitalWrite(ledPin, LOW);
}
}
Refer to previous section on how to put the ESP32 into downloading/uploading mode. Once success upload
the sketch, pressing the pushbutton will turn on the LED, releasing the pushbutton will turn off the LED.
Web Resources:
http://esp32.net/
9 www.handsontec.com
Handson Technology
Data Specs
Buying Guide
Arduino Uno HX711 Load Cell Sensor ADC Module 10KG Load Cell
10 www.handsontec.com
Handsontec. com
We have the parts for your ideas
HandsOn Technology provides a multimedia and interactive platform for
everyone interested in electronics. From beginner to diehard, from student
to lecturer. Information, education, inspiration and entertainment. Analog
and digital, practical and theoretical; software and hardware.
11 www.handsontec.com
The Face behind our product quality…
In a world of constant change and continuous technological development, a new or replacement
product is never far away – and they all need to be tested.
Many vendors simply import and sell wihtout checks and this cannot be the ultimate interests of
anyone, particularly the customer. Every part sell on Handsotec is fully tested. So when buying from
Handsontec products range, you can be confident you’re getting outstanding quality and value.
We keep adding the new parts so that you can get rolling on your next project.
P
Engineering Material Mechanical Hardware Electronics Components
12 www.handsontec.com