Code Monkey home page Code Monkey logo

esp32_aws_iot_edukit_web_radio's Introduction

ESP32 AWS IoT EduKit Web radio, Arduino coding

web radio for (ESP32) AWS IoT EduKit, it is 99% identical as m5stack Core2. see this https://github.com/xiaolaba/ESP32_AWS_IoT_EduKit_quick_test.

This complete code & fork https://github.com/bwbguard/M5Stack-Core2-MediaPlayer, and slightly modified to suit AWS Core2.

my fork, no update because did not know how to git pull/push, https://github.com/xiaolaba/M5Stack-Core2-MediaPlayer

ESP32_AWS_IoT_EduKit_Web_radio.jpg

testing https://youtu.be/3tfJUtJVph0

the design, bad or good ?! screws but screwed up.

ensure to buy screws if you want proto/add-on, the selling did not tell or bundling before this date. marketing would be alot of room for improvement. :) ESP32_AWS_IoT_EduKit_screw_screwed.jpg

add AWS Core 2 support, change wifi login credential to separate header file


/*
 * test for AWS CORE2
 * install FastLED, https://github.com/FastLED/FastLED/issues/373, WS2812 and SK6812 (of CORE2 FOR AWS) are equlivent
 * install M5Core2, https://github.com/m5stack/M5Core2 
 * via Arduino Library manager, will do.
 * 2021-06-21, test ok, xiaolaba
 * 
 */

// install https://github.com/FastLED/FastLED/issues/373, WS2812 and SK6812 are equlivent
#include "FastLED.h"
#include <ArduinoECCX08.h>

#define LEDS_PIN 25
#define LEDS_NUM 10
CRGB ledsBuff[LEDS_NUM];

ECCX08Class myECCX08(Wire1, 0x35);

// Enter your WiFi, Station, button settings here:
#include "xiaolabaWIFI.h";
//const char *SSID = "ENTER_SSID_HERE";
//const char *PASSWORD = "ENTER_WIFI_PASSWORD_HERE";

add Asia radios stations for testing, no CHT font displyesd, terminal debug string is ok, but not LCD

const int stations = 12;// Change Number here if you add feeds!
char * stationList[stations][2] = {
  {"中文RTHK1", "http://stm2.rthk.hk:80/radio1"},
  {"RTHK2", "http://stm2.rthk.hk:80/radio2"},
  {"RTHK3", "http://stm2.rthk.hk:80/radio3"},
  {"RTHK4", "http://stm2.rthk.hk:80/radio4"},
  {"RTHK5", "http://stm2.rthk.hk:80/radio5"},
  {"Charlie FM", "http://24083.live.streamtheworld.com:80/KYCHFM_SC"},
  {"MAXXED Out", "http://149.56.195.94:8015/steam"},
  {"Orig. Top 40", "http://ais-edge09-live365-dal02.cdnstream.com/a25710"},
  {"Smooth Jazz", "http://sj32.hnux.com/stream?type=http&nocache=3104"},
  {"Smooth Lounge", "http://sl32.hnux.com/stream?type=http&nocache=1257"},
  {"Classic FM", "http://media-ice.musicradio.com:80/ClassicFMMP3"},
  {"Lite Favorites", "http://naxos.cdnstream.com:80/1255_128"}
};


setup, add volume preset,

setup() {

  Serial.println("xiaolaba test, AWS IoT Edukit for web radio");
  audioGain = 8.0;  // preset
  
  changeVolume();  // To update Volume setting and graphic
  displayWiFiInformation();
}

esp32_aws_iot_edukit_web_radio's People

Contributors

xiaolaba avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.