The block switches on the pin you choose in the list
The block switches on the port you choose for a certain time.
You need to add a variable on the to say for how long i.e. 1000 for 1 second
Afterwards the pin will be switched of for the same amount of time. Note: a LED would blink.
That is example how to use onFor:
The block switches the pin you choose off. NOTE: on and off might be different from what you expect as they also depend on your circuit.
The block can be used for everything you want to do after reading a value from a switch/sensor.
Choose where you connected the switch/sensor and choose the treshold. You can try out what values
you get by using the Monitor block before. Drag for example an On Block right to the if block to switch on an LED after pressing a button.
Note: if you do not add a second if statement below with the opposite values the LED will be on forever
Here is an example how to use the if block: First ask i.e. if the sensor value on pin 3 is more then 500 then drag an on block to right. Then ask in another if block if the sensor value on pin 3 is less then 500 and drag on off block next to it. Now you can go on with your programm under the second if block
Can be used instead of “if”. Waits till a certain event (i.e. Switch is pressed happens).
If you connect a beeper to port 9,10 or 11 you can play melodies with this block
Can be used to show data of a sensor or switch back on your computer. It is very usefull to find out what kind of values you get. NOTE: to see the values you must click on the “Serial Monitor” after uploading your program.
Pauses the program for the duration of a variable you have to add.The duration is in Microseconds so use 1000 if you want to stop for a second.
The manual is based on the Arduino booklet and is released under the Creative Commons license Attribution-NonCommercial-ShareAlike 2.5. It will be available for download as pdf but now I will just post single parts.
Download the latest Software version for your Operating System and in your language.
Right-click on the archive you downloaded. Use an archive program e.g. WinZip or Winrar to extract the file. Make sure to extract it to a folder.
Plug-in the board with the USB cable
Plug the board into the computer and, when the New Device Found window comes up; specify the location for the install wizard to look for the drivers (Point the driver to the folder you created /drivers). This will happen twice because the first time the computer installs the low level driver 17 then a piece of code that makes the board look like a serial port.
Change into the win folder and double-click on run.bat.
Look for the “Drivers” folder inside the folder and double-click on the file called FTDIUSBSerialDriver_v2_0_1.dmg. When this has opened, install the software contained in the FTDIUSBSerialDriver.pkg. At the end of this process you’ll have to restart your machine to make sure the drivers apre properly loaded.
After the installation is successful you will also need to run the command called “macosx_setup.command”.
Follow the instructions provided by the program and type the password that you use to login into your computer when asked. After this program has run successfully you need to turn off your computer. Don’t just reboot or logout, really turn it off and back on again.
When this phase is over you can plug the board into the computer.
Open Terminal change to the unzipped folder and type in sh run.sh.
The way we connect at the moment is not very beautiful but we did not find a better prototyping connection yet.
We use color-code cable soldered on connectors. Either you use a board with all the cables put in or (in case it looks to technical/chaotic) you put in some connector (you can just break the connections). Less then 3 pins get unstable. When you do it yourself you have to check that the green ones go into the digital, the orange ones in analog, the black ones in GND and the red one in AREF and 5V (!). Otherwise the “color-code” does not work.
To connect to the yarn you can use luster terminals as I show on the video here.