First, you'll need a Thimble account to build and upload sketches from inside Blockly. You can create an account through the learning app.
Once you have your account you'll want to install the Thimble Upload Agent. This program allows Thimble Blockly to connect to your board and upload programs to it. The installer that you want to use depends on your operating system.
Download and run the windows installer and then start the agent from the desktop or the start menu.
Download and unpack the installer package and run
, then start it from your applications menu.
Now, connect your Thimbleduino to your computer and open blockly.thimble.io in your web browser. After logging in to your account you should be able to use the upload button in Thimble Blockly.
Blockly programs are built by connecting blocks together. Blocks that are connecten one below another are run one after the other. All blocks have to be connected to the start block to be included in the program. The blocks are stored in the menu on the left.
Find the "DigitalWrite" block in the Input/Output menu and the "wait ms" block in the "Control" menu. Drag the blocks into position so they look like the image below. Make sure to change the values connected to the DigitalWrite blocks so that one is true and one is false.
Once you're done, press the Upload button. Once you see the word "Done" next to the device dropdown your code has been uploaded. You should see the light on your Arduino blinking slowly. Try changing the program to make the light blink faster, or in different patterns.
Blockly means that you don't have to worry about the code, but if you want to see how your program is being turned into code you can select "View Code" in the menu. You can copy this code and paste it into the Arduino IDE. Then you can modify it and upload it. You don't have to worry about the code right now, but if you want to make really advanced programs later on you'll have to write the code yourself, so take a look and see if you can figure out how it all works!
Connect the potentiometer to an analog pin, then create a program like below (make sure to choose the right analog pin).
Analog Plotting Program
Upload the program and then select "Serial" from the menu to open up the serial monitor. You should see a bunch of numbers being printed out, representing the position of the potentiometer. You can click on the "Plotter" tab to show a visual representation of the data. Here's an example where I moved the dial back and forth randomly.
Plot of analog position