After the brief overview of Esp32, its time to setup the arduino for ESP32 and run some sample examples. This will install support Horbill ESP32 Dev, Hornbill ESP32 Minima and other ESP32 boards as well.
Windows
- Download and install the latest version of Arduino IDE.
- Download/Clone the latest esp32 files from the espressif repo.
- Create a directory/folder named espressif under Documents/Arduino/Hardware and extract the contents of files downloaded. It should like so:
- The setup uses python for various things like uploading the binary file to the board. So we download and install python 2.7.x next. Get it from python.org
- During installation remember to add Python to the PATH variable. This will enable python to be run from any directory on your computer.
- Open the command prompt and change the directory cd Documents\Arduino\hardware\espressif\esp32\tools. and hit the command python get.py
This will download and install the tool chain required to compile the code. If you get an error stating "command python not found". Ensure that the you've added python to the path. If not sure what this means, do comment below.
- Now go ahead and open the Arduino IDE, select the board from the tools Menu like so.,
- The Hornbill Series of ESP32 boards use CP2102 as the USB to serial converter chip. Install the drivers for it with the help of this tutorial and note down the COM port number.
- Upload any of the example codes. Hornbill ESP32 Dev has a LED on pin 13, so I did a blinky.
Debian/Ubuntu Linux
The setup could not have been more seamless, at-least till we have support for the Arduino board manager.
- Download and install the latest Arduino IDE
- Open the terminal and copy/paste the command below:
sudo usermod -a -G dialout $USER && \ sudo apt-get install git && \ wget https://bootstrap.pypa.io/get-pip.py && \ sudo python get-pip.py && \ sudo pip install pyserial && \ mkdir -p ~/Arduino/hardware/espressif && \ cd ~/Arduino/hardware/espressif && \ git clone https://github.com/espressif/arduino-esp32.git esp32 && \ cd esp32/tools/ && \ python get.py