Esp8266 to Arduino WebServer (Updated)

preview_player
Показать описание
Shows a ESP8266(Adafruit Huzzah version) setup as a access point and web server. Pressing buttons on the served web page sends messages to the connected Arduino Uno over serial allowing the Arduino to blink leds or drive servos.

Рекомендации по теме
Комментарии
Автор

I'm interested in the ESP device making a hot-spot, and serve up a page to any device that connects to it.

But I'm using the ISP-IDF IDE (eclipse), and if I understand correctly the "station" project template is to connect to an existing network/router.. and that the "access point" project template is if you want to broadcast an SSID and have a device, like your phone, see it and connect to it. Is that correct?

I created a new project from the list of templates available (wifi->getting_started->softAP), but after building/downloading my android does not see any new SSID. The serial output shows
[0;33mW (547) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
[0;32mI (560) sleep: Configure to isolate all GPIO pins in sleep state
[0;32mI (567) sleep: Enable automatic switching of GPIO sleep configuration
[0;32mI (574) main_task: Started on CPU0
[0;32mI (574) main_task: Calling app_main()

The only anomalies I can see is that, when it builds there's a 'Low Application Partition Size' warning:
"Less than 30% of application partition size is free (267, 856 of 1, 048, 576), would you like to increase it?

The other strange thing is that the "Debug Configuration" Startup tab, has the 'Load symbols' check-marked.. but the 'Load executable' not checked. I think it's still downloading/debugging.. so maybe the OpenOCD options "Flash every time with application binaries" is responsible?

In any case, any idea why the default AP project template doesn't seem to broadcast it's SSID?

Instead of using the official EspressIF project examples, maybe its better to use a GH example?
MHendricks / (Lua)
Enjoy-Mechatronics / ESP32-Web-Server
CDFER / Captive-Portal-ESP32

bennguyen
Автор

Why use the Arduino tho? The ESP8266 can already do everything the Arduino can, most servos will work with a 3.3V PWM signal.

roidroid
Автор

Nice explanation. I am working on a project where I interfaced esp8266-01 with arduino uno and LCD(16*2) .

The communication between Esp8266 and webpage is working fine with AT commands.
I used C programming. I heard of Lua script but dont know what exactly and where it is used.

Now I have a web page where I have two text box and submit button.
When I type some text on text box and click on submit button, the text should appear on LCD.
I am new to web and server.
I tried using get method from internet resource but could not achieve.Some blogs said use php.

Any idea Sir.

keshavdk
Автор

can you please show the pins you connected them too (huzzah-uno) thanks

magsglte
Автор

I am testing, I am able to connect to the Access Point, but I am unable to display open the page... the terminal shows:

> IP: 192.168.4.1 255.255.255.0 192.168.4.1
PANIC: unprotected error in call to Lua API (cannot open httpserver-static.lc)
PANIC: unprotected error in call to Lua API (attempt to call a string value)

... then the device restart
Any suggestion ?

gnupixello
visit shbcf.ru