Giter VIP home page Giter VIP logo

esp32_ledstrip_webserver's Introduction

ESP32_ledstrip_webserver

GitHub stars

Build firmware GitHub license

Control WS2812 based LED strip using a web server hosted by ESP32.

1. Flashing ESP32

Clone the repo and open it using Visual Studio Code with PlatformIO extension installed.

2. Get Husarnet join code

  • Register at https://app.husarnet.com/
  • Click Create network button, name it (eg. mynet), and click Create button
  • Click Add element button and go to the join code tab
  • Copy your join code (looking like fc94:b01d:1803:8dd8:b293:5c7d:7639:932a/xxxxxxxxxxxxxxxxxxxxxxxxx) place that join code in this line of *.ino file:
const char* husarnetJoinCode = "xxxxxxxxxxxxxxxxxxxxxx";

Now build and flash ESP32:

# Build project
$ pio run

# Upload firmware
$ pio run --target upload

3. Connect over the internet to a webpage hosted by ESP32

Connect your laptop (from which you will access the LED strip over the Internet) to the same Husarnet network. Installation methods and available platforms are listed here: https://husarnet.com/docs/

Open a web browser and write an address to your ESP32 with 8000 port, eg http://ledstrip:8000

esp32_ledstrip_webserver's People

Contributors

dominikn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

esp32_ledstrip_webserver's Issues

local network without connection to external wifi

Hi Dominik,
I have read about your blog on medium and interested in developing applications based on peer to peer network. Is it possible to create a local network based on Ethernet network and not connected to external internet.

Constanly rebooting on ESP32

Hi there, thanks for building this and publishing this tutorial. I followed the instructions and I am experiencing my device constantly rebooting. This is the log output, from the Serial Monitor, which repeats about twice a second. It seems a file is missing from the cache? Do you have any thoughts to resolve it? Thanks for your time.

Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078a58
�[0;32mI (282) heap_init: Initializing. RAM available for dynamic allocation:�[0m
�[0;32mI (283) heap_init: At 3FFAE6E0 len 00011920 (70 KiB): DRAM�[0m
�[0;32mI (285) heap_init: At 3FFC9630 len 000169D0 (90 KiB): DRAM�[0m
�[0;32mI (291) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM�[0m
�[0;32mI (297) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM�[0m
�[0;32mI (303) heap_init: At 40091A44 len 0000E5BC (57 KiB): IRAM�[0m
assertion "false && "item should have been present in cache"" failed: file "/build/esp-idf/components/nvs_flash/src/nvs_item_hash_list.cpp", line 85, function: void nvs::HashList::erase(size_t)
abort() was called at PC 0x400dfa73 on core 0

Backtrace: 0x40088004:0x3ffb20d0 0x40088103:0x3ffb20f0 0x400dfa73:0x3ffb2110 0x400e540c:0x3ffb2140 0x400e4906:0x3ffb2160 0x400e4be1:0x3ffb21a0 0x400e3f40:0x3ffb21f0 0x400e3b3a:0x3ffb2240 0x400e3bc3:0x3ffb2260 0x400e3bee:0x3ffb2280 0x400d4148:0x3ffb22a0 0x4011eb0b:0x3ffb22c0 0x400e1c9a:0x3ffb22f0

Rebooting...

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.