Try narrowing the browser window a little, so it has less horizontal pixels to display. The page is really meant for smaller devices, the speedo should resize automatically.
All, For those of you who have downloaded the single throttle 'page' for testing. I found a slight error you might like to correct yourselves. The default display text color should all be a matching blue #00CCFF In the blinking active throttle displays to the right of the loco buttons it is an ice white color #F7FDFF Just delete the white leaving the blue at this part of the code. .info-group [type=text] { margin-bottom:9px; background-color:#787a7a; width:100%; height:30px; border: 1px solid #787a7a; //#00CCFF; font-family: Arial, Helvetica, sans-serif; font-size: 20px; color:#F7FDFF; //#00CCFF;<<<<<<<<<<<<<<<<<<<<<<<<<<<<<change this line to....... color:#00CCFF; -moz-animation: blink 1s ease infinite; -webkit-animation: blink 1s ease infinite; } You can play around changing all the colors to your own scheme in the <style> section, don't be afraid you can't really break anything Find a Hex color code page on the internet and become a budding web designer. Steve.
Steve glad I caught you on line ....... do you have trouble with unreliability of ESP 8266 ........ every 3rd or so time I turn the stack on my IP scanner can't find the ESP ...... and so it wont conect Again, any ideas? Steve F
Hi Steve, Can't say I have any connection issues at all. When the devices boot they are available on the network in a few seconds. I've left them for hours sometimes testing the durability of the Websocket connection, and again they just respond as before I left them. Try google, though beware there is lots of good and bad info out there. One thing you might like to try if not done so already. Give the module its own power supply and then run some reboot cycling over and over, noting the results. I don't power mine from the Arduino. Steve.
Hi UK Steve Now I will connect the ESP8266 with arduino DCC ++ , however I still have some doubts: 1- which is the function of the <s> button; 2 - How to set up a locomotive, since there is no way to write on the square. ( I made this editing the html file and changing the numbers ) 3 - Which is the function of a blue square that appears when I click next to the locomotive number ( at right )
Hi, The <s> button requests some data from Base Station. One of it's original uses was to test that the serial connection is properly established. However it also serves as a neat function to update and synchronise (multiple instances) with any currently running session. You have correctly set up your locomotives by editing the html. That is the intended method. However it is also possible to enter 2 guest locomotives on the blank buttons. I do not recommend regular use of this method. To the right of the buttons is a hidden box as you have discovered. On the last 2 buttons you can click in the box, then enter a valid number, then click the button. The number should appear on the button. Persistent memory will hold the number until the browser session is ended. You cannot change the number mid session. When using the app the hidden boxes will display live throttle information for any throttle that is active. Hope this helps Steve. P.S I guess you have managed to upload the server code to your ESP8266 and you have used the latest version from page 60 of this thread.
Steve I have had ESPs working for weeks ... then it just stopped .....Frustrated .... so I went back to square one ... I load the ESP sketch from page 60 ... ESP shows up in an IP scan ... using Arduino IDE Serial Monitor I get the following: state: 0 -> 2 (b0) connected with zoom, channel 3 dhcp client start... cnt ip:10.0.0.21, mask:255.255.255.0,gw:10.0.0.200 pm open, type:2 0 I get no response to AT commands ... I have tried several different ESPs and get the same result. Frustrated and can't go further. Again I ask, any ideas? Steve F
Hi Steve, Several devices with the same problem is pointing to an external issue if I was to hazard a guess. The AT commands will only be available when the device is running stock 'AT' firmware. Which we have overwritten in our case. You do have a serial output from our firmware so problem not there, the devices are booting. Next is the wifi connection. I'm no expert, but I would guess the device demands a higher current draw to achieve the best possible range as it looks for it's host. In this case your router. From googling around, 300mA would seem a good figure that needs to be reliably on tap to prevent drop-outs at that stage. Many folks have simply changed to a high capacity (500mA) dedicated supply and got rid of errors such as yours. I don't think these devices are inherently unreliable, in fact quite the opposite. Again just today, I have been running an open Websocket to one of mine for over 9 hours continuously without any problems. Just to eliminate any potential for problems in that area, could you inspect all connections. Re soldering if there is any doubt. Maybe even try feeding a dedicated supply. Try changing if you already do that. The Arduino 3.3v could be failing, try to rule that out. Again it's not an expert opinion. As you know if the current is not available then voltage will drop accordingly. From all the issues you have reported, it sounds like that is the problem. As soon as the processor has a little more work to do then bam, it goes under voltage and cuts out. Steve.
Steve I have always been using an external 9 volt power supply, not relying on the Uno. My desire for AT commands was so that I could give each ESP a static IP ...... now I see that I can't do that with our ESP code .. thank you for that info. How about adding this code: // begin static IP code const char *ssid = "YourSSID"; const char *pass = "YourPassword"; // Update these with values suitable for your network. IPAddress ip(10,0,0,11); //Node static IP IPAddress gateway(10,0,0,200); IPAddress subnet(255,255,255,0); void setup() { WiFi.begin(ssid, pass); WiFi.config(ip, gateway, subnet); //Wifi connection while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println(""); Serial.print("WiFi connected, using IP address: "); Serial.println(WiFi.localIP()); } void loop() { } // end static IP code I am playing around with it to see if I can add a static IP to your sketch. Not sure where to add it without conflicting with your void setup() configuration. Steve F
Hi Steve, On the power supply. Was it not you that made up the custom shield to which you just plug in the ESP? Hold the press I should go back and check. Something like this shield ? If I remember correctly, you configured it to draw the 3.3v supply from the Arduino 3.3v out. Officially that output is only rated for 50mA. Regardless of the input to the Arduino. Over driving the circuit is likely causing failure. For everything to start giving problems at once, leads me to suspect that supply. Unless of course you have reconfigured things since then. I will have to look into the IP address a little more. Essentially the router handles that side of things. We could possibly set up the ESP as an Access Point though and connect directly. Steve.
Steve Yes that's me ...... do I move the 3 volts in to 5 volts .... how do you get an external power supply if not from the 5 volt pin ?
OK now we're on the same page. The 5v supply from the Arduino is to my knowledge quite capable of supplying the current we require. Some folks have just connected their ESP's directly. However for longevity of the components I don't suggest that is a good idea. Just for testing you could draw your supply from the Arduino 5V and build a simple divider from resistors. Then for something more permanent (you may have one already) solder a 3.3v regulator of suitable current capacity to your shield. That will still give you the tidy solution you've had up to now. Steve.
Steve Waiting for arrival of voltage regulator to rewire. ******* But, was able to alter your code (very simply) to load a static IP address to ESP, as follows (bold is added code): // Update these with values suitable for your network. IPAddress ip(10,0,0,11); //Node static IP IPAddress gateway(10,0,0,200); IPAddress subnet(255,255,255,0); void setup() { initSerial(); SPIFFS.begin(); WiFi.mode(WIFI_STA); WiFi.config(ip, gateway, subnet); WiFi.begin(ssid, password); if (WiFi.waitForConnectResult() != WL_CONNECTED) { Serial.printf("STA: Failed!\n"); WiFi.disconnect(false); delay(1000); WiFi.begin(ssid, password); } ------------------------------------------------------------------ Now I can insure that any ESP I configure will have static IP of 10.0.0.11 Steve F
Great stuff, Look forward to you testing it. If all is OK, I'll add as an option to future versions. Thanks. Steve.
All, I've recently come across these latest shields from China. Looks like they'd be an ideal plug and play solution for people wanting to experiment with the ESP8266 - no soldering required ! I shall be ordering one myself. Price seems very reasonable. http://www.ebay.co.uk/itm/ESP8266-E...591492?hash=item3f56f142c4:g:LSUAAOSwMHdXSTt- Steve. P.S. Steve F. I've reworked the twin throttle page over the weekend, it's now ready for you to test.
Steve. P.S. Steve F. I've reworked the twin throttle page over the weekend, it's now ready for you to test.[/QUOTE] Hi Steve Could you please post here the new twin throttle for me too.
Hi, Here's the post. As usual, change the extension and enter your own IP and loco addresses into the document. I'll only be leaving this up for a few hours. Just to stop cluttering the thread with stuff that is out of date so quickly. Please acknowledge when you've grabbed a copy. For anyone that misses it, I can always put it back up later. Steve. Edit: Gone for now, please make a new request.