Comments: Digital Sandbox Experiment Guide

Pages

Comments 5 comments

  • ——————– Tech Support Tips/Troubleshooting/Common Issues ——————–

    Compile Issues on Arduino and Windows

    If you see this output error when trying to upload to the Digital Sandbox:

    java.io.IOException: Cannot run program "{path}/bin/avrdude": CreateProcess error=2, The system cannot find the file specified
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
       at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:26)
       at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:123)
       at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:167)
       at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
       at processing.app.Sketch.upload(Sketch.java:1178)
       at processing.app.Sketch.exportApplet(Sketch.java:1152)
       at processing.app.Sketch.exportApplet(Sketch.java:1124)
       at processing.app.Editor$DefaultExportHandler.run(Editor.java:2430)
       at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
       at java.lang.ProcessImpl.create(Native Method)
       at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
       at java.lang.ProcessImpl.start(ProcessImpl.java:137)
       at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
    ... 9 more
    

    The error appears to be due to the custom Digital Sandbox Arduino IDE v1.6.7 not finding avrdude. It’s possible that there is an issue with the board add-on [ https://github.com/arduino/Arduino/issues/4110#issuecomment-203327457 ] or the Arduino IDE version. Try reinstalling the latest board add on from this GitHub repository [ https://github.com/sparkfun/Arduino_Boards ]. There are instructions in the README.md to update the board add-ons. Otherwise, try using the custom Arduino IDE v 1.6.7 packaged with ArduBlock from our tutorial [ https://learn.sparkfun.com/tutorials/digital-sandbox-experiment-guide/setting-up-arduino-and-ardublock ].

    Compile Issues on Arduino v.1.6.6 and Mac

    If you are using the Digital Sandbox with Arduino IDE v1.6.6 and the ArduBlock Add-on on a Mac (I was testing this on iOS v10.7.5 Lion ) and see this issue:

    Warning: platform.txt from core 'SparkFun AVR Boards' contains deprecated compiler.path={runtime.ide.path}/hardware/tools/avr/bin/, automatically converted to compiler.path={runtime.tools.avr-gcc.path}/bin/.
        Consider upgrading this core.
    Warning: platform.txt from core 'SparkFun AVR Boards' contains deprecated tools.avrdude.cmd.path={runtime.ide.path}/hardware/tools/avr/bin/avrdude, automatically converted to tools.avrdude.cmd.path={path}/bin/avrdude
        Consider upgrading this core.
    Warning: platform.txt from core 'SparkFun AVR Boards' contains deprecated tools.avrdude.config.path={runtime.ide.path}/hardware/tools/avr/etc/avrdude.conf, automatically converted to tools.avrdude.config.path={path}/etc/avrdude.conf.
        Consider upgrading this core.
    Warning: platform.txt from core 'SparkFun AVR Boards' contains deprecated recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}", automatically converted to recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}".
        Consider upgrading this core.
    

    Usually, you can ignore that message since it is a warning. However, if you are not able to compile and see this issue:

    java.io.IOException: Cannot run program "{path}/bin/avrdude": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at java.lang.Runtime.exec(Runtime.java:620)
        at java.lang.Runtime.exec(Runtime.java:485)
        at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
        at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
        at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:157)
        at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
        at processing.app.Sketch.upload(Sketch.java:1178)
        at processing.app.Sketch.exportApplet(Sketch.java:1152)
        at processing.app.Sketch.exportApplet(Sketch.java:1124)
        at processing.app.Editor$DefaultExportHandler.run(Editor.java:2452)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 11 morejava.io.IOException: Cannot run program "{path}/bin/avrdude": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at java.lang.Runtime.exec(Runtime.java:620)
        at java.lang.Runtime.exec(Runtime.java:485)
        at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
        at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:113)
        at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:157)
        at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
        at processing.app.Sketch.upload(Sketch.java:1178)
        at processing.app.Sketch.exportApplet(Sketch.java:1152)
        at processing.app.Sketch.exportApplet(Sketch.java:1124)
        at processing.app.Editor$DefaultExportHandler.run(Editor.java:2452)
        at java.lang.Thread.run(Thread.java:745)
    Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
        at java.lang.ProcessImpl.start(ProcessImpl.java:134)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 11 more
    

    The new Arduino IDE v1.6.6 has a new file structure requirement when compiling. Try using the most recent board add ons from the SparkFun Arduino board’s GitHub repository https://github.com/sparkfun/Arduino_Boards . There are instructions in the README.md to update the board add-ons.

    Digital Sandbox Board Add-On

    The Digital Sandbox board add-on linked in the tutorial should work [ [https://learn.sparkfun.com/tutorials/digital-sandbox-experiment-guide/setting-up-arduino-and-ardublock(https://learn.sparkfun.com/tutorials/digital-sandbox-experiment-guide/setting-up-arduino-and-ardublock) ]. If you have issues uploading with that board definition, try using the latest board definitions from our GitHub Repository [ https://github.com/sparkfun/Arduino_Boards/] .

    Mac OSX Error Message

    If you see this error when opening the custom Arduino IDE v1.6.9 in our Digital SandBox tutorial:

    "Arduino" is damaged and can't be opened. You should move it to the Trash.
    

    , there is a program on your Mac OSX that is preventing you from downloading and opening it. Do a search with the same message “ "Arduino” is damaged and can’t be opened. You should move it to the Trash", and you should be able to see some answers. The message is misleading. Try to click on the cancel button. Here’s one solution from the search results and the reason why you are getting that message => https://www.baldengineer.com/how-to-fix-arduino-is-damaged-and-cant-be-opened.html .

    Otherwise, you would need to uninstall/reinstall the Arduino IDE. You might also need to re-install the ArduBlock and Digital SandBox board add-on.

  • Hallo,

    Very nice guide. However, I can’t select the Digital Sandbox in the boards menu. I use the newest version of the Arduino IDE 1.6.1 and have placed the files such shown in the picture pic below. I’ve tried the complete package that the guide links to (uses Arduino 1.0.6). This seems to work just fine. However, the portable version of Arduino still check my user/Arduino folder for addons, libs, etc.. So I have the option to choose between two Digital Sandbox boards.

    http://imgur.com/OMNSJhK

    Doesn’t the new version of Arduino support Digital Sandbox?

    • Sorry about that, we’ve just updated the addon to support 1.6.0 and later versions of the Arduino IDE. The updated addon is available here and installation instructions are the same as the were for the previous version.

  • When my son attempted to do this experiment, it appears there is not enough power to drive the motor. I tested by sending a signal in Setup directly to Analog#3 and also a HIGH to Digital#4. If I set A3 to 0; the D4 light lights. If I set A3 to 50, the light dims noticeably (almost to nothing) and the motor hums receiving power but not enough to drive it. Any higher setting then that and the light simply goes out.

    In the actual experiment, the serial printout gets corrupted after entering a value (where it is supposed to print the speed value it is set to). The motor does not drive. I did the above test to verify if the basics worked and they did not appear to. Any suggestions on how best to proceed? I also did verify that the serial is set for 9600.

    • Send us an email at techsupport@sparkfun.com with a copy of your code and a few more specifications on what you are doing and they should be able to help you.


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!