This is another example project of the Abetoo IoT Framework. In this case is a remote-controlled LEGO Wall-E, you can control the head movement from a regular web browser with support for JavaScript. I’ll show you how to do it from a desktop machine or from a mobile phone, either Android or iPhone.
ComponentsLet’s go first at all with the hardware, you’ll need the following items:
- A NodeMCU esp-12e board. (You can use any other Arduino based device with internet connectivity).
- A servo to control the movements of the Wall-E head, In this case is a 360º servo.
- A power supply for the servo
- The hardware schematic diagram
This first video demonstrate the control of the servo from a regular desktop web browser, you can see the web page control and the output from the serial console connected to the Arduino NodeMCU board.
Mobile phone browser controlAnd this is another shot where the control was done through a mobile phone browser. In this case through the use of a webserver. Although you can also copy the content of the web page to a mobile phone folder and launch it locally.
To make it work, simply download the Arduino source code to your ModeMCU board, and on the other hand launch the web page from any web browser either within Windows or Mac.
Remember that you need to have the Arduino library installed within Arduino IDE. Download from this link.
AdvantagesThere are many advantages with this approach:
- You don’t need a web server in your Arduino. At the Arduino side you simply are going to receive messages.
- No need to open ports in your router. You can control the device remotely from everywhere.
- You can mix the control. You can use a web page, a regular desktop app or even a mobile app to control everything.
You can download the full source code of the Arduino and the web page in the following link.
Comments