How to Get Started – Arduino To ESP32 Part 1

if you’re looking to upgrade your

Arduino projects with wireless

capabilities this is how to get started

with the esp32 we’ll cover quick spec

comparisons picking your first board how

to program it and other key features of


esp32 let’s start by comparing the two

boards we use a classic Arduino Uno and

the esp32 devkit C which is expressive

entry level development board both have

a microcontroller chip which is like the

brains for each one the Uno Sports the

16 MHz at Mega 328p whilst the esp’s got

a 240 MHz d0w dq6 chip underneath this

metal RF Shield Let’s test their

processing power by running a program

that will make them find as many prime

numbers as they can in 30 seconds the

Arduino Uno managed to find over 3,000

primes but the esp32 destroys it with

over 125,000 primes the other sections

on each board are for voltage regulation

programming IC and gpio pins to connect

to other components they’ve both got

reset buttons but the ESP has has an

additional boot Button also when I refer

to Arduino I’m referring to the original

boards that use the at Mega chips and

not the recent arduinos that have ESP

chips in them if you’re just getting

started you may be wondering what esp32

model should I get checking the official

website you can see that espressive

produces their own chips these chips

create their series which includes

development boards or Dev kits that you

can buy from their Distributors you may

also come across ESP boards made by

other companies like node MCU spark fun

and Adafruit this is because espressive

open sources their schematics and

pcbs for Simplicity though start with

the esp32 dev kit C this is the one that

has the standard esp32 chip a simple

search on Amazon shows this model mass

produced by other manufacturers the one

used for this video is a clone and they

pretty much work all the same it has a

built-in PCB antenna and 38 pins so you

can do more than a 30 pin one there’s a

link in the description for a three-pack

of these devkit seaboards so if you

happen to fry one or something it’s no

big deal now onto the programming stuff

the easiest way to program the esp32 is

with the Arduino IDE it’s just like

working with an Arduino there’s just a

bit of setup though you need to get the

esp32 board package here’s how open the

board manager in the IDE search for

esp32 and install the latest version

once installed you can pick your board

in the IDE for this esp32 Dev one choose

the ESP 32 Dev module and now our code

runs just fine and also if you use

Arduino functions in your sketch make

sure to include Arduino Doh at the top

some libraries are incompatible with the

ESP and only work with arduinos like the

servo and the timer one not to worry

though most popular libraries have an

esp32 version that does basically the

same thing like esp32 Servo and esp32

timer interrupt now after the software

is all set up we need to know how to

power this thing you can power power the

esp32 in three ways one using the cable

and plugging it in two supplying 5 volts

to the 5vt and ground pins or three

supplying 3.3 volts to 3.3 volt and

ground pins but be careful not to supply

More Voltage at this pin or it’s going

to be

fried The Only Exception on this board

is the 5vt PIN since it’s got a voltage

regulator great now everything is

powered let’s look at the pin out this

ESP has 38 pins six of which are for

power and six can’t be used so that Lees

us with 26 gpio pins these 26 are

extremely versatile 22 of them can

output pwm with a resolution of 16 bits

so on Arduino you’re used to analog

writing values from 0 to

255 but with 16 bits on an ESP 32 you

can analog right from 0 to

65,535 16 pins can read analog signals

with its 12-bit adcs 12 bits means it

can read analog values from aange range

of 0 to

4,95 the Arduino 4 comparison has a 10

bit ADC so when you use the analog read

function it will read analog values from

a range of 0 to

1,23 esps also have two dacks or digital

to analog converters so you can generate

analog signals for a more detailed look

of the pin out you can pause right here

to see the official diagram of the dev

kitc with the specs and the legend at

Leave a Comment