Studuino Tutorial Icon
Studuino Tutorial Icon
Studuino Tutorial Icon
Date Content
2016/11/01 First version
2017/01/16 Updated for new Studuino website
2017/04/14 Changed access guide based on new Studuino website
2018/02/01 Revised screenshots for tablet-friendly GUI
2018/06/28 Updated description of Buzzer values
1
Index
1. Getting Started 1
2. Setup 1
2.1. Installing Studuino Software 1
2.2. Connecting Parts 2
3. Lighting Up LEDs 5
3.1. Lighting Up One LED 5
3.2. Flashing Four LEDs in Order 8
3.3. Using Repeats 11
4. Playing a Buzzer 12
4.1. Playing a Buzzer 12
4.2. Making a Melody 14
5. Using Conditions and Submenus 18
5.1. Using Push-buttons 18
5.2. Using Submenus 22
5.3. Using Touch Sensors 25
5.4. Using Light Sensors 27
5.5. Using Sound Sensors 32
5.6. Using IR Photoreflectors 35
5.7. Using Accelerometers 39
6. Using DC Motors 43
6.1. Getting a DC Motor Moving 43
6.2. Making a Twin-motor Car 45
6.3. DC Motor Calibration 48
7. Using Servomotors 51
7.1. Calibrating Servomotor Angles 51
7.2. Creating a Robotic Arm that Uses Three Servomotors 55
2
1. Getting Started
This manual explains how to use the following electronic parts in the Icon Programming Environment:
2. Setup
2.1. Installing Studuino Software
Follow the steps below to download the instruction manuals
you’ll need to install your Studuino software.
3
2.2. Connecting Parts
① Connecting Sensors, LEDs, and Buzzers
The pictures below show how to plug sensor connecting cables into your Sensors, Buzzers, and
LEDs in order to connect them to your Studuino.
★ Every sensor uses a three-wire cable except for the Accelerometer, which uses a four-wire cable.
A4 A3 A2 A1
A4 A3 A2 A1
Gray
Black
Black
4
Connecting DC Motors
Up to two DC Motors can be connected using connectors M1 and M2.
★ DC Motor connectors can only connect one way.
M1
M2
★ DC Motor connector M1 can't be used at the same time as Servomotor connectors D2 and D4.
★ DC Motor connector M2 can't be used at the same time as Servomotor connectors D7 and D8.
③ Connecting Servomotors
Up to eight Servomotors can be connected to the Servomotor connectors.
D9
D10
D11
D12
D2
D4
D7
D8
Black
Black
Gray
★ DC Motor connector M1 can't be used at the same time as Servomotor connectors D2 and D4.
★ DC Motor connector M2 can't be used at the same time as Servomotor connectors D7 and D8.
5
④ Connecting a Battery Box
Plug your Battery Box into the POWER connector.
Sensors, LEDs, Buzzers, and Push-buttons can run on a USB connection, but DC Motors and
Servomotors require power from the Battery Box. You’ll also need a Battery Box in order to
power devices when the USB cable is disconnected.
POWER
6
3. Lighting Up LEDs
3.1. Lighting Up One LED
① Connect an LED to a Sensor/LED/Buzzer connector on your Studuino.
Use connector A0 for the LED.
Gray
Black
Black
LED
A0
Make sure the cables are inserted
correctly! The gray wire should be at the
top.
Click Click
First, uncheck all the boxes. Then check A0 under Sensor/LED/Buzzer and select LED from the
menu.
7
③ Place an LED Icon.
Drag and drop an LED Icon from the Icon Palette into the first Operation Icon box
LED Icon
Drag and drop
Icon Palette
Program Field
Operation Icon
Boxes
bottom.
A misplaced icon can be deleted by right-clicking on it and choosing Delete from the context
menu.
Click
Deleting Icons
Right click
Click
Click
8
⑤ Transfer the program
Use a USB cable to connect your Studuino to your PC and click the button to
Click
While the USB cable is connected, You can also power your Studuino
power for the LED is supplied by the PC. using the Battery Box.
9
3.2. Flashing Four LEDs in Order
① Connect four LEDs to Sensor/LED/Buzzer connectors on your Studuino.
Use connectors A0, A1, A2, and A3 for the LEDs.
Gray
Black
Black
LED x 4
10
④ Set up the LED Icons as shown below.
NO Switch Connector
1 ON A0
2 OFF A0
3 ON A1
4 OFF A1
5 ON A2
6 OFF A2
7 ON A3
8 OFF A3
The LEDs will not turn on if the program shown above is transferred.
Processes 1 through 8 are run almost instantly, meaning you can’t see your LEDs turn on.
context menu.
Right click
Click
11
Place a Wait Icon in the new box and set the duration.
Duration
⑥ Now Transfer your program again. Your LEDs should light up in order!
RESET button
12
3.3. Using Repeats
We’re going to use Repeats and the program from the previous section to make your four
LEDs flash in a loop.
① Place a Start Repeat Icon in the first Repeat Icon box.
A Repeat Settings dialog box appears when you place an End Repeat Icon. The number
of repeats determines how many times the LEDs will turn on.
Click
③ Transfer your program and the LEDs will turn on according to the number
of Repeats that you set.
13
4. Playing a Buzzer
4.1. Playing a Buzzer
① Connect a Buzzer to a Sensor/LED/Buzzer connector on your Studuino.
Use connector A0 for the Buzzer.
Gray
Black
Black
14
④ Choose a note.
Choose a note ( ★ ) and how long it plays.
Click
Click
㻯㻏 㻰 㻏 㻲㻏 㻳㻏 㻭㻏
㻰㼛㻏 㻹㼕㻏
䘍 㻲㼍㻏 㻿㼛㻏 㼀㼕㻏
䘍
㻯 㻰 㻱 㻲 㻳 㻭 㻮
㻰㼛 㻾㼑 㻹㼕 㻲㼍 㻿㼛㻛㻿㼛㼘 㻸㼍 㼀㼕
RESET button
15
4.2. Making a Melody
Now we're going to create a melody while checking the pitch and duration of each note.
① Follow the same steps you used in the last section, but use Melody Icons instead of a
Buzzer Icon.
Place two Melody Icons in a row in the Operation Icon boxes.
See 3.1 Lighting Up One LED to learn how to place icons.
Click
Octave
Click Click
Click
16
To delete a programmed note, click the note to select it and then click the Delete button.
Click
Click
1 2
17
③ Make sure the USB cable is connected before clicking the Test Mode button.
Click
Test Mode
You can use Test Mode to hear and adjust your melody in real time.
★ Don't disconnect the USB cable while in Test Mode! This can cause the software to crash.
Click
18
⑤ Click the Test Mode button again to close Test Mode and transfer your program.
Click here to
transfer your
program and play
the melody.
This program plays a set melody once after it’s been transferred. To repeat the melody,
press the RESET button.
RESET button
19
5. Using Conditions and Submenus
5.1. Using Push-buttons
Here we’ll use the Push-buttons on your Studuino to create a program that plays a melody and
lights up your LEDs.
① Connect a Buzzer and an LED to the Sensor/LED/Buzzer connectors on your Studuino.
Connect the LED to A4 and the Buzzer to A5.
A4
Gray
Buzzer Black
Black
20
③ Place two LED Icons and a Melody Icon.
See 3.1 Lighting Up One LED to learn how to place icons.
④ Use the steps from 3.1. Lighting Up One LED and 4.2. Making a Melody to set each
icon's attributes.
1. LED → ON
2. Play melody
3. LED → OFF
⑤ Place a Single Condition Icon in the Condition boxes under each icon.
21
⑥ Set each Single Condition Icon.
1. Button 1 (A0) → ON
Click
2. Button 2 (A1) → ON
3. Button 3 (A2) → ON
Select
Drag from yellow to
gray to change from ON
to OFF and vice versa.
Select
⑦ Use and Repeat Icons to make your program loop steps 1 to 3 indefinitely.
See 3.3 Using Repeats to learn how to use Repeat Icons.
22
5.2. Using Submenus
Here we’ll use Submenus and Push-buttons to create a program that makes the LED blink while a
melody plays.
① You’ll need to add Submenu and Single Condition Icons to your program from 5.1.
Select A3 Button4
Select ON
23
③ Click the Submenu 1 tab to show the Submenu.
Click
④ As shown below, place and set icons in the Operation Icon boxes.
1. LED
2. Buzzer
3. Wait
4. LED
5. Buzzer
6. Wait
24
⑤ Now transfer your program and see how it works.
Dual-condition Icons
Placing a Dual-condition Icon allows you to set two conditions for a sensor.
AND: The action will run when both conditions are satisfied.
OR: The action will run when either of the two conditions is satisfied.
25
5.3. Using Touch Sensors
Now we’re going to make a program that causes the LED to turn on when you press the Touch
Sensor.
① Connect an LED and a Touch Sensor to the Sensor/LED/Buzzer connectors on your
Studuino board.
Use A4 for the LED and A5 for the Touch Sensor.
LED A4 Gray
Black
Black
26
③ Place LED Icons in the Operation boxes and Single Condition Icons in the
The LED will keep flashing as long as the Touch Sensor is pressed.
27
5.4. Using Light Sensors
Here we’ll use a Light Sensor to create a program that makes the LED turn on when it gets dark.
① Connect an LED and a Light Sensor to the Sensor/Buzzer/LED connectors on your
Studuino board.
Connect the LED to A4 and the Light Sensor to A5.
LED A4
Gray
Black
Black
A5
Light Sensor Make sure the cables are inserted
correctly! The gray wire should be
at the top.
28
③ Use the Sensor Viewer to check your sensor’s values.
Choose Run from the menu, then Sensor Viewer. The Sensor Viewer will appear.
Make sure your Studuino is connected to your PC.
Click
Sensor Viewer
Check and see how the values of your Light Sensor change depending on the amount
of light.
Example:
Shaded by a hand
Under a fluorescent light
29
④ Close the Sensor Viewer once you’ve checked your sensor’s values.
Click
⑤ Place LED Icons in the Operation boxes and Single Condition Icons in the
Condition boxes. Set them as shown below.
30
⑥ Set a range for your Light Sensor.
Range Setting Description (for a set value)
In the example below, the condition is satisfied when it grows darker and the sensor value
falls below 3.
⑦ Add a condition that turns the LED off when more light is present.
31
⑧ Use Repeat Icons to loop steps 1-2.
See 3.3 Using Repeats to learn how to use Repeat Icons.
32
5.5. Using Sound Sensors
Now we'll make a program that turns on different numbers of LEDs in response to the volume of
a sound.
① Connect four LEDs and a Sound Sensor to the Sensor/Buzzer/LED connectors on your
Studuino.
Connect LEDs to A0-A3 and the Sound Sensor to A4.
Gray
Black
Black
LED x 4
A0 A1 A2 A3
Choose LED for A0-A3 and Sound Sensor for A4 under Port Settings
See 3.1 Lighting Up One LED to learn how to open Port Settings.
33
③ Open the Sensor Viewer to see your Sound Sensor’s values.
See 5.4 Using Light Sensors to learn how to use the Sensor Viewer.
Check and see how your Sound Sensor’s values change with the volume of the sound.
Example:
When it's quiet When the sensor detects sound
1 5
2 6
3 7
4 8
34
⑤ Use Repeat Icons to loop steps 1-8.
See 3.3 Using Repeats to learn how to use Repeat Icons.
Quiet ← → Loud
.
35
5.6. Using IR Photoreflectors
Now we'll make a program that uses an IR Photoreflector to change the notes your Buzzer plays.
① Connect a Buzzer and an IR Photoreflector to Sensor/LED/Buzzer connectors on your
Studuino.
Connect the Buzzer to A0 and the IR Photoreflector to A1.
A0
Gray
Black
Buzzer Black
36
③ Open the Sensor Viewer to see your IR Photoreflector’s values.
See 5.4 Using Light Sensors to learn how to use the Sensor Viewer.
Notice how the sensor value changes as the distance between the object and the
IR Photoreflector varies.
Example:
Object is near the sensor
Object is far from the sensor
IR Photoreflector
value
What’s an IR Photoreflector?
An IR Photoreflector works by emitting invisible infrared rays. After hitting an object, the rays are
reflected back toward the source. The sensor then detects the intensity of the reflected rays. More
reflective colors, such as white, cause the sensor value to increase more easily. However, the value
will decrease when an object is too close.
(The sensor will reach its maximum value when placed approximately 6 mm away from an object.)
37
④ As shown below, place Buzzer and Single Condition Icons in their
corresponding spaces and set their attributes.
38
⑤ Use Repeat Icons to loop steps 1-8.
See 3.3 Using Repeats to learn how to use Repeat Icons.
Buzzer
IR Photoreflector
39
5.7. Using Accelerometers
Here we’ll make a program that uses light and sound to tell you how far you’ve tilted your
Accelerometer.
① Connect three LEDs, the Sound Sensor, and the Accelerometer to the Sensor/LED/
Buzzer connectors on your Studuino.
Connect LEDs to A0-A2, the Buzzer to A3, and the Accelerometer to A4-A5.
Gray
A0 A1 A2 Black
Black
LED x 3
Buzzer
The Accelerometer requires connectors
A4-A5
A4 and A5 because it has four wires.
Accelerometer
40
③ Open the Sensor Viewer to see the Accelerometer values.
See 5.4 Using Light Sensors to learn how to use the Sensor Viewer.
Set your Accelerometer down at different angles and you’ll see its values change as shown below.
What’s an Accelerometer?
An Accelerometer works by detecting acceleration along its X, Y and Z axes and calculating how
its speed changes over time.
Z
Y
X
The reason your Accelerometer will show non-zero values even when it’s still is because it’s
detecting something called gravitational acceleration. This property lets it tell how it’s tilted
relative to the surface of the earth.
★ Gravitational acceleration always works in the direction of gravitational force.
41
④ As shown below, place icons in their corresponding spaces. After placing
the icons, set their attributes.
42
⑤ Use Repeat Icons to loop steps 1-6.
See 3.3 Using Repeats to learn how to use Repeat Icons.
Buzzer
The left-hand LED will Tilt it to the right and the Tilt it even more and the right
blink when it’s level. middle LED will blink. LED will blink!
43
6. Using DC Motors
6.1. Getting a DC Motor Moving
① Plug your DC Motors into your Studuino.
Use connector M1 for the DC Motor.
M1
DC Motor
44
④ Now set your DC Motor.
Set which connector the DC Motor is Set the rotation time in 0.1 second
using. increments (up to 25.5 seconds).
Open up Test Mode when making settings for your DC Motor in order to see how it moves in
real time.
★ See 4.2 Making a Melody to learn more about Test Mode.
★ Make sure your Battery Box is turned on before you check your DC Motor. Your USB cable
doesn’t supply enough power to run motors.
45
6.2. Making a Twin-motor Car
(4) Now plug your DC Motors and Battery Box into your Studuino.
46
② Set your ports.
Check DC Motor boxes M1 and M2 under Port Settings.
See 3.1 Lighting Up One LED to learn how to open Port Settings.
③ Place Motion Icons and open up Test Mode to see how they work.
★ See 3.2 Making a Melody to learn more about Test Mode.
★ Make sure your Battery Box is turned on before you check your DC Motor. Your USB cable
doesn’t supply enough power to run motors.
Motion Icons
Forward Backward
Both (right and left) motors rotate forward Both (right and left) motors rotate backwards
Rotate
• The right motor turns counterclockwise and the left motor clockwise to rotate right
• The right motor turns clockwise and the left motor counterclockwise to rotate left
47
④ Select and place Motion Icons to create a program that makes your car reach a goal.
Example: A program that makes the car travel to three specified locations in order.
Programming Tips:
Before transferring the program, use Test Mode to check the proper time, speed, distance,
and angle for each Motion Icon.
Example
RESET Button
★ Your car may run differently depending on the type of floor and the strength of your batteries.
48
6.3. DC Motor Calibration
Every DC Motor is different and each one may rotate at different speeds. If you make a car using
two DC Motors and it veers to the left or right when moving forward, you can fix this issue by
calibrating your DC Motors.
Click
49
Choose Motor Calibration and you’ll see the window.
Click
Click
50
7. Using Servomotors
7.1. Calibrating Servomotor Angles
Differences between each Servomotor can cause them to have different angles at the same
setting. You’ll need to calibrate your Servomotors in order to make up for this difference.
① Adjusting the Driveshaft Angle
Before you add your Servomotors to your car, using the following method to check if your
driveshaft is connected properly:
Try turning the driveshaft left or right. If the angles are too far off from the default
position, this means that the block portion of the driveshaft has slipped.
Cable
Drive
Nomal
Body
Slipped
Default Position
To prevent the inner gears from getting damaged, the block part is made to turn
freely when a large force is applied to the drive shaft.
Turn the block part by hand in the opposite direction until the drive shaft clicks into
the proper position.
51
② Connect a Servomotor to the Servomotor connector on your Studuino.
We’ll use connector D9 here.
★ Connect the Battery Box, too!
Black
Black
Gray
Servomotor
Make sure the cables are inserted correctly! The
gray wire should be toward the center of the
board.
52
⑤ Click Edit in the Menu bar and choose Motor Calibration.
Make sure your Studuino is connected to your PC.
Click
Click
Open Motor Calibration and all of your connected Servomotors will be set to 90 degrees.
It will also open the Test Mode window.
★ Connect your Battery Box to your Studuino and turn it on.
53
⑥ This screen is used to fix any Servomotor angles which are not exactly 90°. Enter offset
values until you reach the correct angle.
Click
★ You’ll have to recalibrate your Servomotor if you want use it with a new connector.
You can keep track of any Servomotors you’ve already calibrated by applying a sticker for
that connector.
54
7.2. Creating a Robotic Arm that Uses Three Servomotors
① Follow the steps from 7.1 Calibrating Servomotor Angles to calibrate your
Servomotors first.
★ You’ll need to use Servomotor connectors D9, D10, and D11.
② Follow the instructions below to assemble your robot:
Part 1
Finished!
D9
Part 2
Finished!
Part 3
D11
Finished!
55
Building the Arm
Part 1
Part 3
(2) Add your Battery Box to your Studuino and plug it into the POWER connector.
POWER
(3) Add your arm and plug your Servomotors into the connectors shown.
D10
D9
D11
Black
Black
Gray
56
③ Set your ports.
Check Servomotor boxes D9, D10, and D11 as well as Button boxes A0-A3.
See 3.1 Lighting Up One LED to learn how to open Port Settings.
57
3
58
⑤ Now transfer the program to see how it works.
59
087448 Studuino Icon Programming Environment Guide K0618
60