- Enables two ToF sensors connected to the board
- Uses an aggregate function which takes the minimum value in each column in the 8x8 array and outputs the 1x4 array of distance values in mm.
- Download the latest version of the arduino IDE.
- Open the arduino IDE and click the third icon (library) to open the library manager and search for these libraries and install:
- M5Core2
- SparkFun_VL53L5CX_Arduino_Library
- FastLED
- ArduinoUnit
Navigate to the boards manager (the icon above the library manager) and search ESP32
. Install the Espressif board library.
-
Restart the Arduino IDE.
-
Ensure the arduino is connected to your computer. Click the dropdown menu and select the connection. Select M5Core2 from the list of boards.
This board uses the same ESP32 chip and is cross-compatible with the M5Core2 (including pinouts and clocks). However, there are a few differences with the setup in the arduino IDE.
- Install ESP32 Board library from the manager (see above).
- Connect the board to your computer. Click on the dropdown and select
ESP32 Dev Module
. - In the top menu, select
Tools -> Upload Speed -> 115200
. - Then, select
Tools -> Programmer -> ESPTools
. - Now, compile and flash the board. Everything written for the M5Core2 should work as intended.
This board uses the same ESP32 chip and is cross-compatible with the M5Core2 and the ESP-WROOM-32 (including pinouts and clocks). However, there are a few differences regarding the use of the microcontrollers.
- Follow the setup instructions of the ESP-WROOM-32 (ESP32 Plus).
- Download additional drivers from the manufacture webpage.
- Install drivers - System dependent! For Windows devices use device manager. After installing the drivers, the device should be listed in the Ports section as shown below.
- The BOOT key (RED) must be pressed while flashing new code.
- After flashing the board, the EN Pin (YELLOW) has to be pressed.