This shows that data was sent and received. Books that may interest you:. You can help the Starting Electronics website by making a donation: Any donation is much appreciated and used to pay the running costs of this website. Learn Electronics for Beginners. Breadboards for Beginners. Beginner's Tools.
Beginner's Components. Beginner's Shopping List. Tut1 - Breadboard Circuits. Tut2 - Transistor Timer. Tut3 - Starting with Arduino. Tut4 - Arduino Knight Rider. Tut5 - LED Flasher. Tut6 - Rising Pitch Siren. Tut7 - Arduino Melody. Tut9 - Using the Arduino Serial Port. Once finished, remove and re-apply USB power or press S2 to reset the module. On your Android device, Search for wireless networks. Connect to this Wifi ignoring ' WiFi has no internet access' bla bla.
Open a Browser and in the address bar type Press the three line 'menu' button, select 'uC Consol'. Once connected to your network the module will enter its 'ST' Station mode and will close its WiFi 'Access point' broadcast.
Since the AP network has now dissappeared, your Android device should auto-reconnect to your normal WiFi network which the DT is now also connected to. Now go to the browser address bar and type in the IP address you noted, once again the DT web page should appear. Try going to the 'uC Console' menu option. On the P. Open the serial monitor, select correct COM port number baud.
It should now be possible to send Serial message from one device to another. All is working! Note:- The DT's Tx and Rx pins must be set to use the same baud as the device the module is connected to.
Set this within 'uC Console' menu of the Web server interface. Set the 'Host' to the noted IP address, and port to The Settings, Display ode should be set to 'Terminal'. If the connection is lost for any reason, re-connect with the 'connect icon' in the Apps top bar. Its 'Dynamic' meaning the next time the module connects to your network it could easily be allocated a completely different IP address.
This makes life difficult and ideally we need your router to always give the same IP address when the module connects. Routers are all different, here I will explain the basic steps for a BT home hub although the basic concept should be similar in other makes.
Log in to your Router.. Enter the password to enter 'Advanced Settings'mode and then go to 'Home Network'. Here you should see a list of all devices currently connected to your network and amongst the list you should find the ESP device Click on the esp-link device. The next menu shows addressing options and for this device you should now select the option to 'Always use this IP address'. Perhaps get an IT friend round. Your DT esp-link module will now always be found at the same specified IP address on your network Now you should be able to access your DT serial port device from any other device on your network using a suitable terminal program.
If you only ever wish to access your Wifi Serial port from inside your network you can stop here. Using Whatsmyip will display your routers current domestic external IP address. A changing external IP address makes it difficult to utilize your residential IP address with other services i.
Your router should have a DDNS setup page. Some free services require you confirm the account every month by email links, or you can pay a fee for multiple DDNS names and other advanced services. Again keep a record of them! After setting up, refreshing and waiting a few minutes, log in to your DDNS provider. For security reasons you can't simply access internal IP addresses from the outside world of the Internet!
We now need to set up 'Port forwarding'. This redirection is generally preformed in your routers Firewall - Port Forwarding settings. One more thing after I got it to work do I need to use serial monitor to see if the code's working. The arduino sent and received data correctly. Participated in the Microcontroller Contest View Contest.
Did you make this project? Share it with us! I Made It! Remote Control Light Switch by alanmerritt in Arduino.
0コメント