How to flash - e2002/yoradio GitHub Wiki


Preparing

  1. Install Arduino IDE
    [HowTo] Arduino IDE 1 Installation (Windows) https://docs.arduino.cc/software/ide-v1/tutorials/Windows
    [HowTo] Arduino IDE 1 Installation (Linux) https://docs.arduino.cc/software/ide-v1/tutorials/Linux

  2. Install the ESP32 core using Arduino IDE
    [HowTo] Installing using Arduino IDE https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html#installing-using-arduino-ide

  3. Install the ESP32 Filesystem Uploader in Arduino IDE
    [HowTo] Installing ESP32 Filesystem Uploader in Arduino IDE https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/

  4. Install the latest versions of required Libraries (ESPAsyncWebServer, AsyncTCP) from Github
    [HowTo] Downloading from GitHub https://sites.northwestern.edu/researchcomputing/resources/downloading-from-github/
    [HowTo] Importing a .zip Library https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries#importing-a-zip-library

    ^^^ starting with version 0.8.920, these libraries have been moved into the project, and there is no need to install them additionally.

  5. Install the required libraries (https://github.com/e2002/yoradio#libraries), depending on your hardware usage using the Library Manager
    [HowTo] Installing Libraries Using the Library Manager https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries#using-the-library-manager

  6. Download the latest version of ёРадио and unpack it
    [HowTo] Downloading from GitHub https://sites.northwestern.edu/researchcomputing/resources/downloading-from-github/

Build & Flash

0-a. Copy yoradio/exsamples/myoptions.h in to project root directory yoradio/yoRadio/
or
0-b. Generate your own myoptions.h file using the online tool simple myoptions.h generator

  1. Open yoradio/yoRadio/yoRadio.ino in Arduino IDE
  2. Uncomment the necessary settings in the myoptions.h file and change them according to the connected modules (display, DAC, encoder, etc.).
  3. Replace file Arduino/libraries/Adafruit_GFX_Library/glcdfont.c with file yoRadio/fonts/glcdfont.c and restart Arduino IDE.
  4. Set up the ESP32 board according to the picture
  5. Upload Data to ESP32 via Tools > ESP32 Sketch Data Upload
  6. Upload Sketch to ESP32 via Sketch > Upload
  7. Reboot ESP32

Adjustment

  1. Connect to yoRadioAP acces point with password 12345987, go to http://192.168.4.1/ and configure wifi connections.

  2. After successful connection go to http://<yoipaddress>/ , add stations to playlist (or import WebStations.txt from KaRadio)