Project Based Approach

Overview

Program

Project Based Approach

Project Based Programming is one of the easiest and efficient ways of approaching a program providing you the opportunity to understand and grasp the concepts of each step in the program.
After selecting ‘Project Based’ from the ‘Program’ section, Click on ‘New Project’ and ‘Select’ section will appear.

1. Select Section:

In the ‘Select’ section, the inbuilt input and output components of Play Computer are displayed. Select the desired inbuilt components required for your project from this section.
After selecting the desired inbuilt components, click on  to select the external components required.
After selecting the required external components, click on and you will be headed to the Assemble Section.

2. Assemble Section:

In the assemble section, we will have the selected external components displayed to the left, drag them towards the Play Computer ports and attach them as per the requirements.
Here we have a special feature where you can read the sensor values of the Play Computer in real time. To read the intensity values, tap on the button as shown below.

3. Code:

The ‘Code’ section is where you can program your Playcomputer using one of the Plode’s special coding feature named ‘Hexagonal Coding’.
This is the initial screen that appears after we enter the Code section in ‘Project Based’ programming.
Listed below are some of the “Hexagon” Code Blocks and its functions.
START
The ‘Start’  is a predefined hexagon, which denotes the start of any program/code. Every program must start with a Start hexagon. Start button also enables Counter, Flag, Bluetooth transmissions, USB transmission options for advanced level coding. These options can be accessed by tapping on the ‘Start’ Hexagon.
TAP
The ‘Tap’ Hexagon displays all the other function blocks available for coding. Select the desired function as per the requirements of the project.
ACTION
The ‘Action’ Hexagon has selection commands for the pre-selected components for the project. If there are multiple components we have to enable each one of them and set their values accordingly to have the correct output.
Example: If you don’t want the Left eye to glow, you have to enable it and set its value to 0. You can enable the components just by tapping on them as they turn orange.
DECISION
The ‘Decision’ Hexagon is used for selecting and setting variable values of the input, which evaluates logical statements, if they are true it executes a set of statements and if the statement are false, the control is transferred to the next Hexagon or last Hexagon.
In the ‘Decision’ Hexagon, there is a special feature that can read the intensity value of the sensors in real time.
END DECISION
The ‘End-Decision’ Hexagon is used to end a certain decision and proceed to the next. It is a mandatory-to-have ‘End-Decision’ Hexagon if we are using ‘Decision’ Hexagon in our code.
WAIT
The ‘Wait’ Hexagon has options to introduce a pause in between a program. You can set time values for how long the pause may be.
REPEAT
The ‘Repeat’ Hexagon enables the option to run a code/a set of codes for several times as defined by the user.
STOP
The ‘Stop’ Hexagon is used to end a program. You can set the program on loop by tapping on the stop block. By making the program on loop, the entire program will keep on repeating.
Here is an example of how a simple project based program code looks like.
Now, upload the code using the upload button to see the output of your program.
Upload Button: Uploads the program to the Play Computer.
Reload Button: To remove the code and start from a fresh section.
Save Button: To Save the Project with name, description and video link.
Help Button: For information on any of the blocks.
Next Button: To proceed to the next section.
Back Button: To go back to the previous section.
Bluetooth Button: To connect/disconnect with Play Computer.

4. Simulation Section:

In the ‘Simulate’ section, you can see the working and the desired output of our your program. The pictorial representation of the Play Computer will display the sample working of Play Computer as per your code.
If the Play Computer on the screen is not showing the desired output or any output at all, go back to the ‘Code’ section, debug the errors and simulate again.
Newsletter Signup

Subscribe to our weekly newsletter below and never miss the latest product or an exclusive offer.

ABC