-->
Page 1 of 2

Such a Headache! Want to create a simple html interface...

PostPosted: Thu Jun 01, 2017 1:54 pm
by gelfling6
Okay, guaranteed, a major Newbie on this... I'm trying to create a simple html interface, under lua, of 4 buttons in a "+" with a slider ranging from 10 to 9999 next to or under it, and it would send a short-burst serial data out of the UART of the esp8266-01, Of simple 5 letter responses to be read by an Arduino. I.E., I'm wanting the page to allow setting the slider, but not sending anything until one of the 4 buttons is pressed. Example: F0125 , for telling the arduino "Forward for 1.25 seconds" (pretty much have the arduino instruct 2 constant rotation servos roll forward for a delay of 1250 (1.25 seconds), L0010 (Left turn for 1/10th second), R4000 (turn Right for 4 seconds), or B9999 (Back up for almost 10 seconds) , and the Arduino saying back to the ESP Step complete, which would send the page back, with the slider still at the same position last sent. With some hope, I can dissect the code example, and expand upon it. (add a 2nd slider for a left-right sweeping servo, reporting back distance from a Ultrasonic range finder, or even adding 2 more sliders for a tilt/pan gimble for a camera.) But..... I'm wanting to do this with only a -01, haven't jumped at a 'more gpio' 8266 yet, I know the price is low, but out of budget right now.

Re: Such a Headache! Want to create a simple html interface.

PostPosted: Fri Jun 02, 2017 7:27 am
by atexit8
You have to crawl before you can walk.

While what you want may seem simple, it isn't.

I found http://www.martyncurrey.com/arduino-esp8266-web-server/ to be very helpful in understanding what is happening behind the scenes. It is a very simple example.

Re: Such a Headache! Want to create a simple html interface.

PostPosted: Fri Jun 02, 2017 10:36 am
by Mmiscool
That would be really easy to do in esp basic.

Go-to esp8266basic.com and check out the examples page.

The is a good GUI example and an example for using servos if that is usefull.

Sending data out the serial port is also pretty simple.

Re: Such a Headache! Want to create a simple html interface.

PostPosted: Fri Jun 02, 2017 12:45 pm
by atexit8
Mmiscool wrote:That would be really easy to do in esp basic.

Go-to esp8266basic.com and check out the examples page.

The is a good GUI example and an example for using servos if that is usefull.

Sending data out the serial port is also pretty simple.


I have two ESP-01 on order. I hope to try this firmware soon.