NT What Are SB Projects
NT What Are SB Projects
Projects
C-STEAM didactic platform provides a vast number of
STEAM projects that can be implemented, revised,
expanded and diversified to an unlimited number of
STEAM applications using SMART:Blox.
Projects
How to start buliding a SB project
Create an Algorithm
1. First step in creating an Algorithm is defining the Output: what we
want to have as a result?
2. After that, we define the Input which will be effecting the system.
3. Finally we define the Process Logic by which the system will be
operating.
30 35
40
25 45
20 50
15
10
FAN MOTOR
THERMOST
AT
Set value of temperature
Projects
How to design a project
STEAM APPLICATION EXAMPLE: Engineering
AIR CONDITIONING, REFRIGIRATION, COOLING, ENGINE TEMPERATURE CONTROL etc.
O
N
24
26
25
27
Temperature Co
25
min max
Projects
How to design a project
STEAM APPLICATION EXAMPLE: Engineering
AIR CONDITIONING, REFRIGIRATION, COOLING, ENGINE TEMPERATURE CONTROL etc.
Output
T≤ 22 T> 22
Temp
Temperature GREEN > 22
Equal or Less LIGHT
than 22⁰C ON
GREEN
GREEN LIGHT
LIGHT
Temperature RED ON
OFF
Greater than LIGHT
22⁰C ON
RED RED
AND LIGHT LIGHT
OFF ON
Temperature COOL
FAN
Greater than COOL
ON COOL
22⁰C FAN FAN
OFF ON
Projects The Algorithm-Flow Chart
Temp Temp
≤ 22 >Temp
22
> 22
Then
18
23
22
21
19
GREEN
GREEN LIGHT
LIGHT OFF
ON
INPUT: The temperature sensor
readings to the system
RED RED
LIGHT LIGHT
OFF ON
COOL COOL
FAN FAN
OFF ON
Projects The Algorithm
What is the LOGIC CONDITION
IF
IF: the temperature is Less Temp NO
or Equal to 22 degrees: ≤ 22
YES
THEN
GREEN
Green Light is ON, GREEN
Red Light is OFF Then LIGHT
ON
Else LIGHT
OFF
Fan Motor is OFF
RED
ELSE RED
LIGHT LIGHT
Green Light is OFF, OFF ON
Red Light is ON
Fan Motor is ON
COOL COOL
FAN FAN
OFF ON
Projects
Where is my Input?
Input IF
AJS01
Temperature Measurement Temperature
≤ 22 No
0
≤
Projects
Programming step
If command setup 0
Select the limit temperature value, ≤ + 22 -
which is 22 degrees, as said before.
Click on the (+) symbol of the value
window until the value 22 is selected on
the block.
We have set the IF function: If temperature reading from the sensor -connected in
port 0, is equal or less than 22……
Click on the command line, so the next function you have to call is the “Digital write” on
the function menu and you will get the function block for it.
Projects
Programming step
Then command setup 9
+
Digital
If temperature ≤ 22 2 write
Green Light is ON
First output we designed was
Green Light -ON, so lets do that.
OUTPUT Selection
Click on the “output window” of the Digital Write block to select the output and select
GREEN LED. The default state of the selected LED is OFF .
OUTPUT State - On or Off
Click on the green led icon on the block to change its the state from OFF to ON. The LED
default is always in OFF state.
OUTPUT pin – ARDicon port
Click on the pin window to select the port you have connected the Green led In our circuit
connection, we selected Pin 9 (digital port D9).
Output 1 is set, as the Green LED is ON when temperature reading is ≤ 22.
The green led is connected to Pin 9 of the ARDicon controller. Now, set the next output, click
on the Command block, for the new Digital Write command.
Projects
Programming step
Then command setup 8
+
Digital
If temperature ≤ 22 2 write
If
22
T≤ 22
RED
LIGHT
OFF
COOL
FAN
OFF
Projects
Programming step
If > then> else command setup
IF NO Temp > 22
The next step is to program the else condition. The Temp
Else condition says:
≤ 22
IF temperature is NOT ≤ 22, then we have:
Else
ELSE
Green Light is OFF GREEN
LIGHT
Red Light is ON OFF
Fan Motor is ON
We call the else function after If/Then is RED
completed. Remember that the else LIGHT
function should be at line 1, just as the ON
“if” function is.
When the OUTPUT is a digital device i.e.
LED, that accepts (reads) digital values (0 or 1, COOL
FAN
On or OFF, High or Low) we use the Digital ON
Write function.
Projects
Programming step
Else command setup 1 else
If temperature is NOT ≤ 22
RED light is ON
8
OUTPUT Selection
+
Digital
2 write
Click on the “output window” of the Digital
Write block to select the output and select
RED LED. The default state of the selected
LED is OFF .
OUTPUT State - On or Off
Change it to ON.
OUTPUT pin – ARDicon port
Click on the pin window to select the port you have connected the red led In our circuit
connection, we selected Pin 8 (digital port D8).
Output 2 is set, as the RED LED is ON when temperature reading is NOT ≤ 22.
The Red led is connected to Pin 8. of the ARDicon controller. Now, set the next output, click on
the Command block, for the new Digital Write command.
Projects
Programming step
ELSE command setup 1 else
If temperature NOT ≤ 22
FAN motor is ON 7
+
Digital
2 write
OUTPUT Selection
Click on the “output window” of the Digital
Write block to select the output and select
Step Motor. The default state of the selected
is OFF.
OUTPUT State - On or Off
The motor by default is always in OFF state, change it to ON.
OUTPUT pin – ARDicon port
Click on the pin window to select the port you have connected the red led In our circuit
connection, we selected Pin 7 (digital port D7).
Output 2 is set, as the FAN motor is ON when temperature reading is NOT ≤ 22.
The Fan motor is connected to Pin 7 of the ARDicon controller. Now, set the next output, click
on the Command block, for the new Digital Write command.
Projects
The Results
After you have completed the programming
step of the input and output devices of the
project, click “Generate” on the top
of the screen to generate the code to the
software.
Temp sensor
Fan Motor
To test your project with real signals and devices all you have
to do is: