Installation of ArduBlockly on Windows 10 with Arduino uno

821 views
Skip to first unread message

Tom Hutchison

unread,
Feb 17, 2021, 4:08:51 PM2/17/21
to Blockly

17 Feb 2021

 

Ardublockly installation problems.

I am a grandparent trying to help my granddaughter learn block programming using an Arduino uno.  I have been learning Arduino IDE and can make it work on both mac and window 10.  I have done the following to attempt to use Ardublockly / Calosperate.

I am running on an HP EnvyTE01 with Window 10 pro-64-bit operating system x64 base processor build number 19041.746.

I am using an Arduino Uno 1.8.13 (Windows store 1.8.13).

I have Arduino located in the C:user \my name\Documents\Arduino. 

\libraries

\tools\ArduBlockTool\tool\ardublock-beta-20140828.jar

\sketch_feb15a  // this is a test sketch generated in Arduino IDE and works fine.

 

I have an icon on my desktop for running the program Arduino IDE. I would like one for ArduBlockly.

 

I have the following in the Ardublockly directory

C:\user\my name\Documents\ArduBlockly\

                \Ardublockly_v0.1.2_windows

                                \ardublockly    //files are ardublockly.log, ardublockly_run.bat, LICENSE, README.md, Servercompilersettings.ini, and start.py

                                                \ardublockly   //files are ardublockly.css, .js, ardublockly_blockly.js, _design.js, _lang.js, _toolbox.js, ardublocklyserver_ajax.js, index.html

                                                                \classic

                                                                \font

                                                                \img…

                                                \ardublocklyserver

                                                                \configparser…

                                                \ArdublocklySketch\ardublocklySketch.ino

                                                \arduexec\appdata…

                                                \blockly\blocks…

                                                \blocks\grove

                                                \docs\about…

                                                \examples files

                \ardublockly_v0.1.2_windows.zip\ardublockly\ardublockly

                \ardublockly-0.1.2.zip\ardublockly-0.1.2\ardublockly

                \carlosperate-ardublockly-v0.1.2-54-g04fa482.zip\ carlosperate-ardublockly-04fa482\

                                \ardublockly

                                \ardublocklyserver

                                \blockly

                                \blocks

                                \closure-library

                                \examples

                                \package

Below is the ardublockly.log in Notepad.

2021-02-17T15:33:46.811Z - info: [ArdublocklyElec] Starting Ardublockly version: 0.1.2

2021-02-17T15:33:46.872Z - info: [ArdublocklyElec] Ardublockly root dir: C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly

2021-02-17T15:33:46.872Z - info: [ArdublocklyElec] OS detected: win32

2021-02-17T15:33:47.109Z - info: [ServerMgr] Command: C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly\arduexec\server\start.exe --findprojectroot --nobrowser

2021-02-17T15:33:50.724Z - info: [ArdublocklySrv] Running Python 3.4.4 (32 bit) on Windows-10-10.0.19041

 

 

======= Parsing Command line arguments =======

 

Parsed "--findprojectroot" flag. The ardublockly project root will be set as the server root directory.

Parsed "--nobrowser" flag. No browser will be opened.

 

 

======= Resolving server and project paths =======

 

Ardublockly root directory: C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly

Selected server root: C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly

 

 

======= Loading Settings =======

 

Settings file corrupted or not found in:

                 C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly\ServerCompilerSettings.ini

 

Settings will be set to the default values.

 

Final settings loaded:

                Compiler directory: None

                Arduino Board Key: Atmel atmega168pb Xplained mini

                Arduino Board Value: atmel:avr:atmega168pb_xplained_mini

                Serial Port Value: None

                Sketch Name: ArdublocklySketch

                Sketch Directory: C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly

                Load IDE option: open

 

Settings file saved to:

                C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly\ServerCompilerSettings.ini

 

2021-02-17T15:44:30.486Z - info: [ArdublocklySrv]

 

======= Starting Server =======

 

Setting HTTP Server Document Root to:

                C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly

 

Launching the HTTP service...

 

IDE options set to:

                Compile and Upload sketch

Settings file saved to:

                C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly\ServerCompilerSettings.ini

 

2021-02-17T15:45:33.555Z - info: [ArdublocklySrv]

IDE options set to:

                Open sketch in IDE

Settings file saved to:

                C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly\ServerCompilerSettings.ini

 

2021-02-17T15:46:01.049Z - info: [ArdublocklySrv]

IDE options set to:

                Verify sketch

Settings file saved to:

                C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly\ServerCompilerSettings.ini

 

2021-02-17T15:46:22.432Z - info: [ArdublocklySrv]

IDE options set to:

                Compile and Upload sketch

Settings file saved to:

                C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly\ServerCompilerSettings.ini

 

 

When I test to verify if the code is good, I get the message below. If you notice, “Sketch_Name “ is not the file name (feb172021.ino).

Unable to find Arduino IDE

The compiler directory has not been set.

Please set it in the Settings.

 

When I test to see if I can save the file, I get the message below

"Unable to find Arduino IDE

The complier directory has not been set

Please set it in the Settings."

 

When I go to program preferences, I get the box below.  How do I set the complier location.  It will not let me edit.  And Where is it.

The shot below is located - This PC> Documents> ArduBlockly > ardublockly_v0.1.2_windows > ardublockly

 ServerCompilerSettings.ini

  [Arduino_IDE]

  arduino_exec_path - None

  arduino_board - Atmel atmega168pb Xplained mini

  arduino_serial_port - Com3

 

  [Arduino_Sketch}

  sketch_name -ArdublocklySketch

  sketch_directory - C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly

 

  [Ardublockly]

  ide_load - open

 

  The settings screen has "

 compiler locations

  Please select a valid Arduino compiler directory

 Sketch Folder:

 C:\Users\Tom Hutchison 2020\Documents\ArduBlockly\ardublockly_v0.1.2_windows\ardublockly

 Arduino Board:

 Atmel atmega168pb Xplained mini

 Com Port:

 There are no available Serial Ports.

 Default IDE button:

 Open sketch in IDE

 Language:

 English

 

 

. I have to go to the file command in the upper left of the screen. Then “Save Ardunio sketch as”

 

Locate the directory in Arduino to save the file.

  Documents > Arduino

    \feb172021\feb172021\feb172021.ino

I have to create the directory first before I can save the file.

 

 

I have to run the sketch in Arduino.  It will not run in Ardublockly.

I have a granddaughter trying to learn block coding for Arduino.  This is cumbersome at best to use.  It is the better of what I have seen and I can make it work, but for an elementary age person, it is confusing

What settings do I need to change and what else am I doing incorrectly? 

Finally, I would really like to use this on my MAC PRO as well because it is mobile for some of the projects she is wanting to do.

 

Mark Friedman

unread,
Feb 17, 2021, 5:33:22 PM2/17/21
to blo...@googlegroups.com
Hey Tom, have you seen this guide to Ardublockly?  If you go to the "Installing & Configuring Ardublockly" section and click on "Installing on Windows" there is some info that seems like it would be helpful in your situation.

Hope this helps!

-Mark


--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/34921e54-3923-4867-ba53-8732371cc678n%40googlegroups.com.
Message has been deleted

Tom Hutchison

unread,
Feb 19, 2021, 3:07:21 PM2/19/21
to Blockly
I have followed the instructions you recommended to the letter including uninstalling both Arduino and ArduBlockly and reinstalling both.  
I found the arduino_debug.exe in the location C:\ProgramFiles\WindowApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86_mdqgnx93n4wtt.  I put that in the ServerCompilerSettings.ini for the location and ran ardublockly, went to setting to find it did not pickup the location.  When I verified the error "Unable to find Arduino IDE The compiler directory has not been set.

Please set it in the Settings."
I do not have permission to look in the WindowsApps. 
Sorry to be so slow, but I would like to make this work for my granddaughter. 

Mark Friedman

unread,
Feb 19, 2021, 5:53:45 PM2/19/21
to blo...@googlegroups.com
My suggestion at this point would be to get in touch with the Ardublocky developer(s).  There appears to be some contact information on the https://ardublockly.embeddedlog.com/ page.  Alternatively, you might want to try out a new Blockly-based IDE for Arduino recently posted to this list: Electroblocks

-Mark


Tom Hutchison

unread,
Feb 27, 2021, 6:47:27 PM2/27/21
to Blockly
Mark, 

I have looked at electroblocks, but am not sure it will solve my problem. I am attempting to uninstall both Arduino ide and blockly again, and see if I missed a step or two. I think the location of apps and files are my problem. If you can give me the locations of the apps and sketch files, it will help. 

Mark Friedman

unread,
Mar 1, 2021, 12:54:58 PM3/1/21
to blo...@googlegroups.com
Tom,

  One of the reasons that I mentioned trying Electroblocks is that I believe that it does not require installation of the Arduino IDE.  It looks like you just connect the Arduino via USB to your laptop/desktop and then you can directly upload your code from Electroblocks to your Arduino.  There is documentation on Electroblocks at https://electroblocks.github.io/docs.

  Good luck!

-Mark


Noah

unread,
Mar 1, 2021, 1:12:58 PM3/1/21
to blo...@googlegroups.com
Hello,

So if you need help with ElectroBlocks, feel free to contact me.  My email is glase...@gmail.com.  Right now, it can upload code to the Arduino Uno and Mega.   You need chrome version 88 or higher to upload code; right now, Chrome is on version 89.  

Thank you

Noah

Tom Hutchison

unread,
Mar 6, 2021, 11:42:04 AM3/6/21
to Blockly
Thanks to Mark and Noah for insight to go to ElectroBlocks.org.  I have been able to use this website to do some block programming for the Arduino and up load it to the Arduino UNO on both a Windows 10 platform and a Mac book Pro.  I have a lot to learn in the application to teach my granddaughters how to use the application.  My next step is to program for a project called Piano Stairs where the Arduino is used to generate the sounds a piano when one steps on a step and breaks a light beam.  There is much programming to do and interfacing with a raspberry Pi.  
Gracious appreciation 
Tom 

Reply all
Reply to author
Forward
0 new messages