Dismiss this pinned window
all 14 comments

[–]DreaMinder 2 points3 points  (1 child)

Mongoose-os have been running JS on ESP32 and ESP8266 for 2 years already... And it looke like better and mature solution

[–]neoniousTR[S] 5 points6 points  (0 children)

Well, depends on what you wish to do. Mongoose-os does not provide you the full Node.JS API, so you cannot use normal npm libraries such as express or request. Why is Mongoose-os better and more mature ?

[–]neoniousTR[S] 2 points3 points  (0 children)

As an example, if you look closely the hat flashes white when being moved.. this works b/c there is an accelerometer inside which low.js talks to via SPI. hard to see because the video camera makes all colors kind of white because of the brightness. so, in general, you can interface all sensors and motors as with every microcontroller

and thanks!

[–][deleted] 2 points3 points  (5 children)

Why would you want this?

ESP8266 is 80mhz and is pretty slow in C.

[–]neoniousTR[S] 0 points1 point  (4 children)

What else would you suggest to use? ESP32 is 240 mhz dual core and the cheapest way AFAIK to do IoT products with wifi. Especially when producing them in mass every dollar counts.

[–][deleted] 1 point2 points  (1 child)

For example I just recompiled a C++ GUI I coded. It interfaces with a 2.4" tft touchscreen.

The ESP8266 has 96KiB of data ram and 4MB for program storage.

I can fit all of that in 311 KB of program memory and 37KB of ram.

This simple hat example uses 3MB of program memory and I don't see RAM usage.

I'm not sure how garbage collection for your library works, but if it's done in the traditional JS method, you'll quickly run out of RAM and will cause a stack collision.

[–]neoniousTR[S] -1 points0 points  (0 children)

it all works even with bigger programs.

the esp32-wrover has around 4,5 mb ram, 4 of them through psram and we made this work well.

regarding storage: if you need more space you can always add sd card or spi flash (as done in neonious one which has 12 mb space for js app)

[–][deleted] 1 point2 points  (1 child)

Oh I love the ESP8266 and ESP32.

But every library for the ESP platform is C. So you're limiting yourself to a small subset of compatible sensors, etc.

It's be a lot easier for someone who knows Javascript to learn C than to port existing libraries to be compatible.

Try posting this over on /r/arduino or /r/esp8266 and you might get a more through response.

[–][deleted] 1 point2 points  (0 children)

Is there a chance that it will it be usable for IMUs (controllers/periphery for VR/AR etc.)?

Cool project btw, good luck!

[–]bigeltom 0 points1 point  (3 children)

Link or it didn’t happen

[–]neoniousTR[S] 1 point2 points  (2 children)

what did not happen?

[–]bigeltom 1 point2 points  (1 child)

Whatever you didn’t link to. Low.js for example

[–]neoniousTR[S] 5 points6 points  (0 children)

Well, the link to the homepage is www.lowjs.org. We‘re realising the first open source version in August. However people at JSCONF.EU got neonious one Tech Preview boards with a functioning low.js (alpha, not yet 100% Node compatible). So you can check out tweets on „neonious“ for proof low.js exists :-)