ArduioPWCT 1.0
First Sesbania
Waseem Salem El-Mofty <waseem_m_s@hotmail.com>
2014
syria
_____________________________________________________________________________________
Table of contents
1 - Introduction
2 - Implementation steps
3 - Final Steps Tree
4 - Application during the runtime
1 - Introduction
In this lesson we are going to create a simple program using ArduinoPWCT and 3 LEDs
2 - Implementation Steps
Fig. (1) Goal Desginer - Steps Tree
Select the step (The First Step - Start Here)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Structure)
3 - Select the component (Setup)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Setup)
Note : Stop typing when you see the required component is selected
Fig. (2) Component Browser � Select the component (Setup)
After selecting the component click Ok or press ENTER
Fig. (3) Goal Desginer - Steps Tree
Select the step (The First Step - Start Here)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Structure)
3 - Select the component (Loop)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Loop)
Note : Stop typing when you see the required component is selected
Fig. (4) Component Browser � Select the component (Loop)
After selecting the component click Ok or press ENTER
Fig. (5) Goal Desginer - Steps Tree
Select the step (Declare System PINs)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Variables)
3 - Select the component (Integer)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Integer)
Note : Stop typing when you see the required component is selected
Fig. (6) Component Browser � Select the component (Integer)
After selecting the component click Ok or press ENTER
Fig. (7) Interaction page - Set the properties and enter the required data as in the image above
Fig. (8) Goal Desginer - Steps Tree
Select the step (Declare System PINs)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Variables)
3 - Select the component (Integer)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Integer)
Note : Stop typing when you see the required component is selected
Fig. (9) Component Browser � Select the component (Integer)
After selecting the component click Ok or press ENTER
Fig. (10) Interaction page - Set the properties and enter the required data as in the image above
Fig. (11) Goal Desginer - Steps Tree
Select the step (Declare System PINs)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Variables)
3 - Select the component (Integer)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Integer)
Note : Stop typing when you see the required component is selected
Fig. (12) Component Browser � Select the component (Integer)
After selecting the component click Ok or press ENTER
Fig. (13) Interaction page - Set the properties and enter the required data as in the image above
Fig. (14) Goal Desginer - Steps Tree
Select the step (Start Here)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (pinMode)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (pinMode)
Note : Stop typing when you see the required component is selected
Fig. (15) Component Browser � Select the component (pinMode)
After selecting the component click Ok or press ENTER
Fig. (16) Interaction page - Set the properties and enter the required data as in the image above
Fig. (17) Goal Desginer - Steps Tree
Select the step (Start Here)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (pinMode)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (pinMode)
Note : Stop typing when you see the required component is selected
Fig. (18) Component Browser � Select the component (pinMode)
After selecting the component click Ok or press ENTER
Fig. (19) Interaction page - Set the properties and enter the required data as in the image above
Fig. (20) Goal Desginer - Steps Tree
Select the step (Start Here)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (pinMode)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (pinMode)
Note : Stop typing when you see the required component is selected
Fig. (21) Component Browser � Select the component (pinMode)
After selecting the component click Ok or press ENTER
Fig. (22) Interaction page - Set the properties and enter the required data as in the image above
Fig. (23) Goal Desginer - Steps Tree
Select the step (Gust Green)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (24) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (25) Interaction page - Set the properties and enter the required data as in the image above
Fig. (26) Goal Desginer - Steps Tree
Select the step (Gust Green)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (27) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (28) Interaction page - Set the properties and enter the required data as in the image above
Fig. (29) Goal Desginer - Steps Tree
Select the step (Gust Green)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (30) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (31) Interaction page - Set the properties and enter the required data as in the image above
Fig. (32) Goal Desginer - Steps Tree
Select the step (Gust Green)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Time)
3 - Select the component (Delay)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Delay)
Note : Stop typing when you see the required component is selected
Fig. (33) Component Browser � Select the component (Delay)
After selecting the component click Ok or press ENTER
Fig. (34) Interaction page - Set the properties and enter the required data as in the image above
Fig. (35) Goal Desginer - Steps Tree
Select the step (Gust Yellow)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (36) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (37) Interaction page - Set the properties and enter the required data as in the image above
Fig. (38) Goal Desginer - Steps Tree
Select the step (Gust Yellow)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (39) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (40) Interaction page - Set the properties and enter the required data as in the image above
Fig. (41) Goal Desginer - Steps Tree
Select the step (Gust Yellow)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (42) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (43) Interaction page - Set the properties and enter the required data as in the image above
Fig. (44) Goal Desginer - Steps Tree
Select the step (Gust Yellow)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Time)
3 - Select the component (Delay)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Delay)
Note : Stop typing when you see the required component is selected
Fig. (45) Component Browser � Select the component (Delay)
After selecting the component click Ok or press ENTER
Fig. (46) Interaction page - Set the properties and enter the required data as in the image above
Fig. (47) Goal Desginer - Steps Tree
Select the step (Just Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (48) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (49) Interaction page - Set the properties and enter the required data as in the image above
Fig. (50) Goal Desginer - Steps Tree
Select the step (Just Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (51) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (52) Interaction page - Set the properties and enter the required data as in the image above
Fig. (53) Goal Desginer - Steps Tree
Select the step (Just Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (54) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (55) Interaction page - Set the properties and enter the required data as in the image above
Fig. (56) Goal Desginer - Steps Tree
Select the step (Just Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Time)
3 - Select the component (Delay)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Delay)
Note : Stop typing when you see the required component is selected
Fig. (57) Component Browser � Select the component (Delay)
After selecting the component click Ok or press ENTER
Fig. (58) Interaction page - Set the properties and enter the required data as in the image above
Fig. (59) Goal Desginer - Steps Tree
Select the step (Green ,Yellow ,and Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (60) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (61) Interaction page - Set the properties and enter the required data as in the image above
Fig. (62) Goal Desginer - Steps Tree
Select the step (Green ,Yellow ,and Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (63) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (64) Interaction page - Set the properties and enter the required data as in the image above
Fig. (65) Goal Desginer - Steps Tree
Select the step (Green ,Yellow ,and Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Digital)
3 - Select the component (digitalWrite)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (digitalWrite)
Note : Stop typing when you see the required component is selected
Fig. (66) Component Browser � Select the component (digitalWrite)
After selecting the component click Ok or press ENTER
Fig. (67) Interaction page - Set the properties and enter the required data as in the image above
Fig. (68) Goal Desginer - Steps Tree
Select the step (Green ,Yellow ,and Red)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Time)
3 - Select the component (Delay)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Delay)
Note : Stop typing when you see the required component is selected
Fig. (69) Component Browser � Select the component (Delay)
After selecting the component click Ok or press ENTER
Fig. (70) Interaction page - Set the properties and enter the required data as in the image above
Fig. (71) Goal Desginer - Steps Tree
Select the step (Declare System PINs)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Comments)
3 - Select the component (Comment Signal Line)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Comment Signal Line)
Note : Stop typing when you see the required component is selected
Fig. (72) Component Browser � Select the component (Comment Signal Line)
After selecting the component click Ok or press ENTER
Fig. (73) Interaction page - Set the properties and enter the required data as in the image above
Fig. (74) Goal Desginer - Steps Tree
Select the step (Start Here)
We will start now new interaction process to generate new steps to our steps tree.
The slow way (Using Mouse):
1 - Click Interact to open the components browser
2 - Select the domain (Comments)
3 - Select the component (Comment Signal Line)
The fast way (Using Keyboard shortcuts):
1 - Get the component using its name by typing (Comment Signal Line)
Note : Stop typing when you see the required component is selected
Fig. (75) Component Browser � Select the component (Comment Signal Line)
After selecting the component click Ok or press ENTER
Fig. (76) Interaction page - Set the properties and enter the required data as in the image above
Fig. (77) Goal Desginer - Final Steps Tree
3 - Final Steps Tree
Declare System PINs
>> COMMENT : Declare System LEDs pins here
Integer : int ledGreen = 13
Integer : int ledYellow = 12
Integer : int ledRed = 11
The First Step - Start Here
VOID Setup
Start Here
>> COMMENT : Setup pins
ledGreen : pinMode = Output
ledYellow : pinMode = Output
ledRed : pinMode = Output
End Of Setup
VOID Loop
Start Here
Gust Green
ledGreen : digitalWrite (High)
ledYellow : digitalWrite (Low)
ledRed : digitalWrite (Low)
Delay (1000) MilliSec
Gust Yellow
ledGreen : digitalWrite (Low)
ledYellow : digitalWrite (High)
ledRed : digitalWrite (Low)
Delay (1000) MilliSec
Just Red
ledGreen : digitalWrite (Low)
ledYellow : digitalWrite (Low)
ledRed : digitalWrite (High)
Delay (1000) MilliSec
Green ,Yellow ,and Red
ledGreen : digitalWrite (High)
ledYellow : digitalWrite (High)
ledRed : digitalWrite (High)
Delay (1500) MilliSec
End Of Loop
4 - Application during the runtime