I'm using Snap4Arduino with Chromebooks smoothly. I've been trying to make ultrasonic sensors work by using SA5 Firmata.
I did as recommended:
Imported library in Snap4Arduino
Uploaded SA5Firmata_ir and SA5Firmata_tone to Arduino Uno (using Arduino IDE on my Mac) and everything looked fine.
When I clin 'ping' or 'pulse' or any of the new functions, I get a message:
"Inside: Error
To run JS in this ChromeOS app, you must launch Chrome/Chromium with this parameters: --disable-web-security --user-data-dir"
First, note that desktop versions are the fully functional Snap4Arduino versions (with all the libraries, the webserver features...)
ChromeOS app version has some limitations. The most important is due to Google policies that does not allow JS execution. This affects SA5 blocks, and also, other Snap! libraries. We are still publish this version because there are many users using it, and they are ok with these limitations.
But you can use the Chrome/Chromium plugin. This is only a connector. So you must run Snap4Arduino online (if you need offline working, you can download also the Snap4Arduino web-code). This versions (the connector) has also some little limitations (arduino actions are bit slower) but it runs JS code and then, SA5 and other libraries are ok.
Test this (chromium plugin)...and feel free to continue this thread to solve any issues...
I'm using Snap4Arduino with Chromebooks smoothly. I've been trying to make ultrasonic sensors work by using SA5 Firmata. I did as recommended:
Can you help me solving this?