4 ms·
A microcontroller project I use has made use of JerryScript [1] instead. It uses JavaScript and is much more common and approachable to beginners. I have never
by firesteelrain 1y ago
A microcontroller project I use has made use of JerryScript [1] instead. It uses JavaScript and is much more common and approachable to beginners. I have never heard of Berry.
[1] JerryScript https://jerryscript.net/ https://jerryscript.net/
[2] Traquito: https://traquito.github.io/tracker/source/ https://traquito.github.io/tracker/source/
[3] https://traquito.github.io/copilot/walkthrough/#step-3-design-the-custom-message https://traquito.github.io/copilot/walkthrough/#step-3-desig...
- shakna 1y agoOn the other hand, I have heard of Berry, but never Jerry. I thought Espruino was the more common JS for microcontrollers? https://www.espruino.com/ https://www.espruino.com/
- firesteelrain 1y agoI am not the author of Traquito but its primary mission is to transmit WSPR messages using 17 mW on a Raspberry Pi Pico while flying at around 40k-50k ft around the world. Running custom JavaScript to tap into optional sensors is a secondary role. So Espruino has too much overhead
- jeremyjh 1y agoJerry requires 64KB of RAM. Not really in the same ballpark.
- firesteelrain 1y agoRight Jerry can go as low as 64KB. But it supports ECMAScript 5.1 (real JS) and I think Berry has its own custom scripting language. I think the author of Traquito’s intent was to make it easy for students and people to add what he calls Copilot functionality to Traquito payloads without a lot of knowledge of C or custom languages. The JavaScript he supports is very easy to pick up and use for integrating sensors or reading from GPS.
- CharlesW 1y agoFWIW, Moddable's XS gives you full JavaScript (99%+ ECMAScript 2017 compliance) and needs <32KB of free RAM. The implementation is extremely clever.
- firesteelrain 1y agoDoes it? It looks like it won’t work with a RP2040
- mrheosuper 1y agoit's software, how can it not work on rp2040
- firesteelrain 1y agoToo big
- CharlesW 1y agoThe RP2040 has a whopping 264KB of RAM, which is absolutely expansive from an XS POV. It would need ~12% of that free in order to run. A quick Google search confirms: https://moddable.com/documentation/devices/pico.php https://moddable.com/documentation/devices/pico.php
- firesteelrain 1y agoI get it; but realize that it has to run the actual Traquito program which leaves little room for the JavaScript CoPilot add-on that allows for secondary running of custom user JavaScript. See here https://traquito.github.io/tracker/V1/ https://traquito.github.io/tracker/V1/ https://traquito.github.io/copilot/ https://traquito.github.io/copilot/
- jeremyjh 1y ago64KB is a lot in embedded. Berry requires 4k. So there are a lot of projects that can't afford Jerry but can swing a Berry.