01/hardware/light
shunyata00 97ece66917 v1.3 added cable management to enclosure 2024-06-04 13:40:17 -04:00
..
bodies v1.3 added cable management to enclosure 2024-06-04 13:40:17 -04:00
BOM.md directory for bodies and add extra files 2024-03-12 17:51:16 -04:00
Labeled Wiring Diagram.png Relabel the wiring diagram 2024-03-28 16:31:10 -07:00
O1Light - M5 ATOM Echo.fzz directory for bodies and add extra files 2024-03-12 17:51:16 -04:00
README.md adding ESPAsyncWebServer as required library in doc 2024-04-13 14:02:36 -07:00
wiring diagram.jpg directory for bodies and add extra files 2024-03-12 17:51:16 -04:00

README.md

ESP32 Setup

Flashing

To set up audio recording + playback on the ESP32 (M5 Atom), do the following:

  1. Open Arduino IDE, and open the client.ino file
  2. Go to Tools -> Board -> Boards Manager, search "esp32", then install the boards by Arduino and Espressif
  3. Go to Tools -> Manage Libraries, then install the following:

Finally, to flash the .ino to the board, connect the board to the USB port, select the port from the dropdown on the IDE, then select the M5Atom board (or M5Stack-ATOM if you have that). Click on upload to flash the board.

Alternative - PlatformIO

You don't need anything, PlatformIO will install everything for you, dependencies, tool chains, etc.

Please install first PlatformIO open source ecosystem for IoT development compatible with Arduino IDE and its command line tools (Windows, MacOs and Linux), and then enter to the firmware directory:

cd software/source/clients/esp32/src/client/

And build and upload the firmware with a simple command:

pio run --target upload

Wifi

The board needs to connect to WiFi. Once you flash, connect to the ESP32 WiFi portal "01-Light" which will get WiFi details. Once it connects, it will ask you to enter 01OS server address. Once its able to connect, you can use the device.