-
-
Thank you for the suggestion. I'll try and check if it is possible. By now, the web server implemented in node.js creates instances of one or several virtualized robots, receives POST requests in JSON format, and calls the update() function of each robot passing the received data and getting information about what to do.
Does the Web IDE expect a connection à-la telnet? Is there an example somewhere? -
Hi all,
I am working on a project of a light simulation environment for an Espruino-powered robot, inspired by the distance sensing robot.
The simulator works in the browser, but the code of the robot is in a file called by a tiny webserver implemented using node.js. I'd like to make it fully compatible with the one running on Espruino. I created a simulation layer for things like Pins, functions like digitalWrite() and digitalRead(), etc.
Full code and some documentation is available at GitHub, where you can also find some screenshots and a wiki.
If interested (maybe just as beta-testers), please contact me.
Loris
-
-
-
Hi, everybody.
I am new to Espruino, and I would like to build a little robot like the distance sensing one.
There is a thing I don't understand about the sonar. The source code reads:
var TRIG = A0; // ultrasonic trigger var ECHO = A1; // ultrasonic echo signal
but one should avoid connecting 5v input to the pins marked as '3.3v'.
Now, the sonar used in the example is a HC-SR04, and its output is set to 5V. Shouldn't it be connected to one of the general purpose I/O pins, chosing one which is NOT marked as 3.3V?
L.
For those interested, I prepared a wiki page explaining how to use the code of the behaviour with a real Espruino-controlled robot:
https://github.com/loristissino/RoboThree/wiki/EspruinoRobot
Comments are welcome.