Program ESP32-S2 Using Arduino IDE (Unofficial)

Although no official support for ESP32-S2 on Arduino, you still can do it.


Espressif, the company behind the extremely popular ESP8266 and ESP32 microcontrollers has just announced their latest chip, ESP32-S2, last year. Compared to the ESP32, S2 have extra I/O, USB-OTG, low power and more secure. As a maker (not a hacker), of course we would like to try it using the most popular microcontroller platform – Arduino. But until now, they still don’t have provide an official support for Arduino IDE. However, you still can try it through GitHub branch called esp32s2. How to do it? Let’s watch the video!


This video shows how to program ESP32-S2 WiFi module using Arduino IDE (unofficial).

Hardware Preparation

This is the list of hardware used in the video.


Sample Program

This is Arduino sample program to control built-in WS2812B RGB LED on Cucumber board. You need to install Adafruit Neopixel library from library manager.

Tutorial: Program ESP32-S2 Using Arduino IDE (Unofficial)
Board: ESP32S2 (Cucumber from Gravitech)
External libraries:
– Adafruit NeoPixel V1.5.0 (Manager)
#include <Adafruit_NeoPixel.h>
#define PIN 18
#define NUMPIXELS 1
Adafruit_NeoPixel pixels(NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);
int ledColor = NONE;
void setup()
void loop()
switch (ledColor) {
case NONE:
pixels.setPixelColor(0, pixels.Color(0, 0, 0));;
case RED:
pixels.setPixelColor(0, pixels.Color(20, 0, 0));;
case GREEN:
pixels.setPixelColor(0, pixels.Color(0, 20, 0));;
case BLUE:
pixels.setPixelColor(0, pixels.Color(0, 0, 20));;
if (ledColor == 4) {
ledColor = NONE;

view raw
hosted with ❤ by GitHub

Thank You


Thanks for reading this tutorial. If you have any technical inquiries, please post at Cytron Technical Forum.

Please be reminded, this tutorial is prepared for you to try and learn.
You are encouraged to improve the code for better application.

2 thoughts on “Program ESP32-S2 Using Arduino IDE (Unofficial)”

  1. HELLO
    Your video is way too fast, and the video quality is poor.
    So we have a hard time following your manipulation.
    can you remake it of better quality and much slower.
    Thank you

    Votre video est beaucoup trop rapide , et la qualité vidéo étrés mauvaise.
    Donc nous avons du mal à suivre votre manipulation.
    pouvez vous la refaire de meilleur qualité et beaucoup moins rapide.

Leave a Comment

Your email address will not be published.

Share this Tutorial

Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest
Share on facebook
Share on whatsapp
Share on email
Share on print
Share on twitter
Share on pinterest

Latest Tutorial

BLTouch Installation for Ender 3 with 32-bit V4.2.2 Board
Pick and Send Random Meal’s Option and Locations through Telegram Bot Using Grove WiFi 8266 on micro:bit
DIY Automated Vacuum Cleaner Using REKA:BIT With Micro:bit
Rainbow Spark in Mini House using Maker Uno.
TinyML on Arduino using Edge Impulse
Tutorials of Cytron Technologies Scroll to Top