<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pratiknemane</id>
		<title>Script | Spoken-Tutorial - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pratiknemane"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/Special:Contributions/Pratiknemane"/>
		<updated>2026-04-08T19:42:23Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/ElectroBlocks-archive-sept-2025/C2/Control-LED-with-Push-button/English</id>
		<title>ElectroBlocks-archive-sept-2025/C2/Control-LED-with-Push-button/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/ElectroBlocks-archive-sept-2025/C2/Control-LED-with-Push-button/English"/>
				<updated>2025-06-09T07:05:09Z</updated>
		
		<summary type="html">&lt;p&gt;Pratiknemane: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''Title of the Script:'''Control LED with Push button&lt;br /&gt;
&lt;br /&gt;
'''Author''': Pratik Nemane&lt;br /&gt;
&lt;br /&gt;
'''Keywords''': Electroblocks, arduino board, 220 ohm resistor, LEDs, breadboard, Push button, video tutorial, spoken tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Visual Cue'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide.'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Welcome to the Spoken Tutorial on '''Control LED with Push button''' using '''Electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| In this tutorial, we will learn how to,&lt;br /&gt;
&lt;br /&gt;
# Build a set of blocks to create a '''Control LED with Push button.'''&lt;br /&gt;
# Check the output of the experiment using the '''simulator.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
* Ubuntu Linux OS version 22.04&lt;br /&gt;
* Google Chrome Browser.&lt;br /&gt;
&lt;br /&gt;
A working internet connection to use '''Electroblocks'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 4:'''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
https://spoken-tutorial.org&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
* Learner should have a basic knowledge of '''Electroblocks interface '''&lt;br /&gt;
&lt;br /&gt;
* If not, please visit the relevant tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Open Google Chrome browser.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In New Tab, type&lt;br /&gt;
&lt;br /&gt;
[https://electroblocks.org/ https://electroblocks.org/] '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point towards Default Blink LED circuit.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us open the '''Electroblocks''' platform using '''Google''' '''Chrome''' browser. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For that Type this url in the address bar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will see the default '''Blink LED''' circuit on the screen.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''New File/Blank File''' icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A Pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears on the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button to start a new project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point towards the '''loop block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| A default '''loop block''' appears on the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s drag the default '''loop block''' to a convenient place to insert '''push buttons.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Add the entire Output video.mp4 in the main video at the 1:29 timestamp.'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We will create this '''Control LED with Push Button''' output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s get started by building a '''Control LED '''with '''Push Button''' using '''Electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Main Video.mp4'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Logic Block.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point towards all the six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select''' If then else block, '''and drag it in the working area.''' '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block inside the '''loop block'''.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| First we need an '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Logic''' option on the left panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can see six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''If then else block''' and place it inside the '''loop block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on '''Sensor''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new list will appear. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We require a '''button''' to control the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point the cursor towards all three blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point towards “'''Button Setup'''”&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| You will see three blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it to the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Button Setup block''' is used to configure a '''push button''' in the '''circuit'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point towards '''“Connected to PIN#”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point towards the '''“USE PULL UP Resistor” '''checkbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point towards the unchecked checkbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only narration.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| By default, this button is connected to '''pin 2''' of Arduino.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below, you can see the '''&amp;quot;USE PULLUP Resistor&amp;quot;''' checkbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default this box is unchecked. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We will leave the box unchecked.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This indicates that an '''external resistor''' is connected to the '''button'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point the cursor to the “Is Button Pressed” checkbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Show the enabled checkbox.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| By default, the '''&amp;quot;Is Button Pressed&amp;quot;''' checkbox in the button setup is always checked.&lt;br /&gt;
&lt;br /&gt;
It means that the '''button''' will be in the pressed state when you run the simulation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point towards the '''“Loop Dropdown”'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point towards&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Observe the '''loop dropdown''' option in the '''Button Setup''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here, '''loop 1''' is selected. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It indicates that this setting is applied to '''loop 1''' only.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to '''Copy All''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to button setup block&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| You can see a checkbox against the '''Copy all''' option in the '''Button setup''' block.&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
This setting ensures that the '''button''' setup stays the same, for all the loops in the simulation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We will add a '''button''' '''block''' in the '''loop'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Add-ons.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new list will appear.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Now we will add an '''LED''' to the circuit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new list appears. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the LED option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to the two blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Turn on LED''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''LED''' option. &lt;br /&gt;
&lt;br /&gt;
You will see that two LED blocks will appear.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Turn on LED''' block &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to the grey area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to the simulation screen to show the circuit disappeared.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| You will see that the '''LED''' and '''button setup''' block will turn to grey.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, the circuit in the '''simulation '''is not seen'''.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point towards the LED and push button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| This is an error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It occurs because both the '''LED''' and '''push button''' are connected to '''pin 2''' of the arduino.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To resolve this error, we will assign a different '''pin number''' to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the dropdown arrow in the LED block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point towards the block to show their changes.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the dropdown arrow in the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, all the blocks appear in normal condition.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time''' section.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s make sure that the LED remains turned '''ON '''for a sufficient amount of time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''delay''' '''block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''Time''' on the left panel.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Drag and drop the '''Wait block for 0.2 second''' block in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HaChange the time to 2 seconds in the block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Drag and drop the '''Wait block for 0.2 second''' block to the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED block''' &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the '''block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''Turn on LED''' '''block''' and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Now we will turn '''OFF '''the '''LED.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''Turn on LED''' '''block''' and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new '''Turn on LED block''' will be created in the working space.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Drag and place this new block inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown arrow and select '''OFF'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Drag and place this new '''block''' inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the state to OFF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This '''block''' '''turns OFF''' the LED connected to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Now we will see the '''arduino code''' generated by '''electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight '''Pin 4''' line of code.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| In the '''void setup''' function, you will see '''pin 2''' and '''pin 4''' are mentioned. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin 4''' is assigned to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to OUTPUT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight '''Pin 2''' line of code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| It is termed as '''OUTPUT''' because the '''arduino''' gives a value to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Pin 2''' is assigned to the '''push button'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It is termed as '''INPUT '''because the '''arduino''' takes a value from the '''push button'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to the '''void loop function.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the '''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''HIGH''' line of code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| This is the '''void loop function'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It shows the action performed by '''components''' and '''sensors''' in the experiment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
This line checks if the button connected to '''pin 2''' is pressed or not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''digitalWrite(4, HIGH)'''&lt;br /&gt;
&lt;br /&gt;
This line describes the '''LED''' connected to '''pin 4''' '''turn ON'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight '''delay(2000)''' line of code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Arduino narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''LOW''' line of commands.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''delay(2000)'''&lt;br /&gt;
&lt;br /&gt;
This line makes sure that the '''LED''' is '''turned ON '''for '''2 seconds'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the '''arduino syntax''', '''2000 milliseconds''' represent '''2 seconds.'''&lt;br /&gt;
&lt;br /&gt;
If the condition is '''false''', the code inside the '''else''' block will execute&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''digitalWrite(4, LOW)'''&lt;br /&gt;
&lt;br /&gt;
This line describes the '''LED''' connected to '''pin 4''' '''turns OFF'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| &lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s check the desired result using the simulator.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on Home page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Home''' page option from the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Play''' button to start the simulation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Show the '''LED''' is turned '''ON'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The visual representation of the simulation shows that:&lt;br /&gt;
&lt;br /&gt;
When the '''push button''' is pressed, the '''LED''' is '''turned ON '''for 2 seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us check the output of the '''LED''' if we don’t press the '''pushbutton'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Uncheck''' the Is button is pressed box in the button setup&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''play''' button again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| For this condition, '''uncheck''' the '''Is button pressed''' checkbox in the button '''setup block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start the simulation again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice that when the push button is '''not pressed''', the '''LED remains OFF'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To see the simulation in the step by step manner.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First '''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then click on the '''Previous Step''' button to return to the beginning of '''Step 1'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Next step'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the yellow colour outline&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Next Step''' button and notice the blocks in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''execution state''' of the '''block''' is highlighted with a '''yellow''' colour '''outline'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Add the entire Output video.mp4 in the main video at the 10:21 timestamp.'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Notice the output of the experiment.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| &lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Slide 5: &lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will learnt how to,&lt;br /&gt;
&lt;br /&gt;
# Build a '''set''' of blocks to create a '''Control LED''' with '''Push button'''.&lt;br /&gt;
# Check the '''output''' of the experiment using the simulator&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Pressing the first button turns the LED on.&lt;br /&gt;
# Pressing the second button turns the LED off.&lt;br /&gt;
&lt;br /&gt;
'''Hint'''- Don't use a time block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| As an assignment, please do the following:&lt;br /&gt;
&lt;br /&gt;
# Add two buttons and one LED in ElectroBlocks.&lt;br /&gt;
# Connect the first button to pin 3, the second button to pin 4, and the LED to pin 2.&lt;br /&gt;
# Create a project with the following functionality:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Add the Assignment video.mp4 in the main video at 10:54 timestamp.'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Notice the output of the assignment shown in the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;&amp;quot;| '''Slide 7:'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;&amp;quot;| This tutorial has been contributed by FOSSEE and Spoken Tutorial Project, IIT Bombay.&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pratiknemane</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/ElectroBlocks-archive-sept-2025/C2/Traffic-Lights/English</id>
		<title>ElectroBlocks-archive-sept-2025/C2/Traffic-Lights/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/ElectroBlocks-archive-sept-2025/C2/Traffic-Lights/English"/>
				<updated>2025-06-09T06:54:27Z</updated>
		
		<summary type="html">&lt;p&gt;Pratiknemane: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Title of the Script: Traffic Lights &lt;br /&gt;
&lt;br /&gt;
Author: Pratik Nemane&lt;br /&gt;
&lt;br /&gt;
Keywords: Electroblocks, arduino board, 220 ohm resistor, LEDs, breadboard, spoken tutorial, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Visual Cue'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Welcome to the Spoken Tutorial on '''Traffic Lights''' using '''Electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| In this tutorial, we will learn how to,&lt;br /&gt;
&lt;br /&gt;
# Build a set of blocks to create a Traffic Light project&lt;br /&gt;
# Check the output of the experiment using the simulator&lt;br /&gt;
# Upload the Arduino code on Arduino Uno Board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
* Ubuntu Linux OS version 22.04&lt;br /&gt;
* Google Chrome browser&lt;br /&gt;
&lt;br /&gt;
A working internet connection to use '''Electroblocks'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''https://spoken-tutorial.org'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
* Learner should have a basic knowledge of Electroblocks interface &lt;br /&gt;
* If not, please visit the relevant tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Type [https://electroblocks.org/ https://electroblocks.org/] '''&lt;br /&gt;
&lt;br /&gt;
Highlight the link in the search tab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://electroblocks.org/ https://electroblocks.org/]&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us open the '''Electroblocks''' '''platform''' using '''Google Chrome browser. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the address bar, type the URL as shown and press Enter. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will see the default Blink '''LED''' circuit on the screen.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the''' New File '''icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''New File/Blank''' file option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the '''OK''' button.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click the '''OK''' button to start a new project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to the number 3 in the loop block.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Observe the loop block in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It indicates that the simulation will run for 3 times.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click to change the number from 2 to 3.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us change the number to 2. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will simulate the code for 2 times.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add the entire Output video.mp4 in the main video at the 1:32 timestamp.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We will create this '''traffic light''' output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s start by building '''traffic lights''' using '''Electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Main Video.mp4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select '''LED''' Option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We need three '''LED''' blocks with different colours, namely, red, orange and green.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''LED''' option, you will see two blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the Turn '''LED''' '''block''' and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the '''LED''' option in the loop block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to the '''LED'''.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click and place the '''Turn LED''' block inside the loop block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the change in the circuit on the simulation screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can see an '''LED''' connected to the '''arduino'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Zoom in to show the resistor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to pin 2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us Zoom in to see the circuit connection clearly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here the '''LED''' is connected through a resistor to the '''Arduino'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, the '''LED''' is always connected to pin 2 of''' Arduino'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Change the''' LED pin '''and '''LED''' colour&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Change the '''pin''' number to '''pin 12'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the colour section on the '''LED''' '''block''' and select the green colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the''' Wait block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and drop the '''Wait block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change to 4 seconds&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s make sure that the '''LED''' remains turned '''ON''' for a specific amount of time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''Wait block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the left panel, Click on '''Time'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place '''Wait block for 0.2 seconds''' block below the '''turn ON LED''' block. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the time to '''4 seconds''' in the block as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Duplicate the '''LED block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s turn '''OFF''' the green '''LED'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''Turn ON LED''' block, and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This action creates an identical block in the working area.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to '''Duplicate block '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this block below the Wait for 4 seconds block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown option and select off state.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change state of the '''LED'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Drag and place this block below the '''Wait for 4 seconds''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To change the state of the '''LED''', click the dropdown arrow and select OFF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This block turns OFF the LED connected to pin 12.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Duplicate the '''LED block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''LED''' block and select the '''Duplicate '''option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this new block below the green colour led block as shown.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Now, let's add a second''' LED''' block to represent the orange colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''LED '''block and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this new block below the green colour led block as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| click on the dropdown arrow and select On.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the pin 12 dropdown menu and change the pin number to pin 11.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the colour section on the LED block and select orange colour.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To change the state of the''' LED''', click on the dropdown arrow and select '''ON'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the pin 12 dropdown menu and change the '''pin''' number to '''pin 11'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''colour''' section on the '''LED''' block and select '''orange''' colour.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Duplicate the wait for 4 seconds block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the''' LED turn ON''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the time to 1 second.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us keep the orange LED turned ON for 1 second.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For this, '''duplicate''' the '''Wait for 4 seconds''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the LED''' turn ON '''block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the time to '''1 second''' as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Duplicate the''' LED block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''Turn LED''' block and select the Duplicate option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this block below the '''Wait for 1 second''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To change the state of the '''LED''', click on the dropdown arrow and select off.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We will now turn '''OFF''' the orange LED.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the Turn LED block and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this block below the '''Wait for 1 second''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the state of the LED to OFF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight the red '''LED''' block setup between the 5:45 to 6:06 timestamp&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Duplicate''' the previous LED block and place it below the orange LED block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the '''pin''' number to 10 and select RED colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Duplicate the '''Wait''' block and set the time to '''2 seconds'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the code icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point the cursor to arduino code&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us switch to the '''arduino''' '''code''' section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code''' icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Arduino''' '''code''' for a traffic light experiment is generated here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point the cursor to arduino code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The '''LED''' '''pin''' connections are defined in the void setup function.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point the cursor to arduino code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight '''digitalWrite(12, HIGH)'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The working of these 3 '''LEDs''' is explained in the void loop function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''digitalWrite(12, HIGH)''' command says that the green '''LED''' will be turned ON.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight the '''delay(4000) '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The '''delay(4000)''' line of code makes sure that the green '''LED''' is '''ON''' for 4 seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the arduino syntax, '''4000 milliseconds''' represent '''4 seconds.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight '''digitalWrite(12, LOW)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight remaining all code&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The''' digitalWrite(12, LOW)''' command says that the green LED will be turned off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, orange and red '''LEDs''' will be turning '''ON''' and turning '''OFF''' after a given interval.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to the simulator.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s check the desired results using the '''simulator'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on '''Home''' page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Home''' page Option from the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Play''' button to start the simulation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point towards the simulation window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The visual representation of the simulation shows that:&lt;br /&gt;
&lt;br /&gt;
* The green '''LED''' turns ON for 4 seconds, then turns OFF.&lt;br /&gt;
* The orange '''LED''' turns ON for 1 second, then turns OFF.&lt;br /&gt;
* The red '''LED '''turns ON for 2 seconds, and turns OFF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| One by one step&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the '''Previous''' '''Step''' button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Next Step '''button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the '''Loop''' block&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To see the simulation in the '''step by step '''manner,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Next Step''' button, notice the blocks in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''execution''' state of the '''block''' is highlighted with a yellow colour outline. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration &lt;br /&gt;
&lt;br /&gt;
Click on the '''Download''' icon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Download''' '''project''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us now '''download''' the project in our system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on the '''Download''' icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, select the '''Download Project''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Select the directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Home''' icon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Select a directory and save the project with the filename '''Traffic Light'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Home''' icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now let us see how to execute the same traffic light experiment on the hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Hardware Requirements'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To perform this experiment, we require&lt;br /&gt;
&lt;br /&gt;
* 3 '''LEDs''' (red, green, orange)&lt;br /&gt;
* 3 '''Resistors''' (220 '''Ohms''')&lt;br /&gt;
* '''Arduino Uno'''&lt;br /&gt;
* '''Arduino '''cable&lt;br /&gt;
* '''Breadboard '''and''' '''connecting''' wires'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Circuit Diagram.png'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Please refer to this '''circuit diagram''' to make the circuit connections.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Text box &lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Connect the '''arduino''' to your system with an '''arduino''' cable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows users can go directly to the '''electroblocks''' and '''upload''' the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Setup for '''Ubuntu''' users only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''terminal'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''sudo usermod -a -G dialout $USER'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter system '''password'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the password and press Enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| For '''Ubuntu '''users, please follow the steps mentioned below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''terminal'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the prompt, type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''sudo usermod -a -G dialout $USER'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The system will prompt you to enter the system '''password'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the '''password''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Type sudo chmod -R 775 /dev/ttyACM0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to ttyACM0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the electroblocks website and click on the upload button.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Then type,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''sudo chmod -R 775 /dev/ttyACM0(ACMzero)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ttyACM0''' is the''' arduino usb port.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This command initiates the communication between '''Electroblocks''' '''website''' and '''arduino board.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If an error occurs, go back to the '''electroblocks''' website and click on the '''Upload''' '''button'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the upload code button and check the arduino USB port name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the''' upload code button''' and check the '''arduino USB''' '''port''' name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the '''port''' name and change it accordingly in the '''sudo command.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You have to run these commands only once. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Restart the system&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We have to '''restart''' the system to save these changes.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Open the '''electroblocks''' website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''project''' icon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the''' choose file '''option'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''traffic light.xml''' file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to Pop up window &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the ok button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to''' traffic light project.'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Open the '''electroblocks''' website again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us open the '''Traffic light''' experiment which we just saved in our system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Projects''' icon on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''choose file''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''Traffic Light.xml''' file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A pop-window appears on the screen to confirm if you want to open a new file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Traffic light project '''appears on the screen.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s '''upload''' this '''code''' on the '''arduino''' '''uno''' to perform the same experiment with hardware.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Upload''' code option on the right hand side of your screen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to usb '''port''' list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''usb''' port&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Upload''' button on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Upload code''' option on the right hand side of your screen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A list of available '''USB port''' connections will appear.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''port''' to which '''Arduino''' is connected and click on '''Connect''' button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to''' Good Job '''message on the screen.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| It will take a few seconds to connect the '''arduino board '''to the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once it is done, you will see a '''Good Job''' message on the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It indicates that '''arduino code''' has been successfully '''uploaded''' on the '''arduino uno'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add the entire Output video.mp4 in the main video at the 13:54 timestamp.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Notice that the '''LED'''s are turning''' ON''' and turning''' OFF.''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt how to&lt;br /&gt;
&lt;br /&gt;
# Build a set of '''blocks''' to Create a '''Traffic light project'''&lt;br /&gt;
# Check the output of the experiment using the '''simulator'''&lt;br /&gt;
# '''Upload''' the '''arduino code''' on '''arduino uno'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an '''assignment''', please do the following,Connect&lt;br /&gt;
&lt;br /&gt;
* A green '''LED''' to pin 3,&lt;br /&gt;
* An orange '''LED''' to pin 5, and&lt;br /&gt;
* A red '''LED''' to pin 6 on the '''Arduino board'''.&lt;br /&gt;
&lt;br /&gt;
Adjust the delay times as follows:&lt;br /&gt;
&lt;br /&gt;
# Set the '''delay''' for the green '''LED''' to 6 seconds.&lt;br /&gt;
# Set the '''delay''' for the orange '''LED''' to 2 seconds.&lt;br /&gt;
# Set the '''delay''' for the red '''LED''' to 3 seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| As an '''assignment''', please do the following,Connect&lt;br /&gt;
&lt;br /&gt;
* A green '''LED''' to pin 3,&lt;br /&gt;
* An orange '''LED''' to pin 5, and&lt;br /&gt;
* A red '''LED''' to pin 6 on the '''Arduino board'''.&lt;br /&gt;
&lt;br /&gt;
Adjust the delay times as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add the entire assignment video.mp4 in the main video at the 14:46 timestamp.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Notice the output of the assignment as shown in the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;&amp;quot;| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;&amp;quot;| This tutorial has been contributed by''' FOSSEE''' and '''Spoken Tutorial Project''',''' IIT Bombay.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pratiknemane</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php/ElectroBlocks-archive-sept-2025/C2/Traffic-Lights/English</id>
		<title>ElectroBlocks-archive-sept-2025/C2/Traffic-Lights/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php/ElectroBlocks-archive-sept-2025/C2/Traffic-Lights/English"/>
				<updated>2025-06-09T06:50:59Z</updated>
		
		<summary type="html">&lt;p&gt;Pratiknemane: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Title of the Script: Traffic Lights &lt;br /&gt;
&lt;br /&gt;
Author: Pratik Nemane&lt;br /&gt;
&lt;br /&gt;
Keywords: Electroblocks, arduino board, 220 ohm resistor, LEDs breadboard, spoken tutorial, video tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;border-spacing:0;&amp;quot;&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Visual Cue'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 1'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Welcome to the Spoken Tutorial on '''Traffic Lights''' using '''Electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 2'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| In this tutorial, we will learn how to,&lt;br /&gt;
&lt;br /&gt;
# Build a set of blocks to create a Traffic Light project&lt;br /&gt;
# Check the output of the experiment using the simulator&lt;br /&gt;
# Upload the Arduino code on Arduino Uno Board.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 3'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To record this tutorial, I am using:&lt;br /&gt;
&lt;br /&gt;
* Ubuntu Linux OS version 22.04&lt;br /&gt;
* Google Chrome browser&lt;br /&gt;
&lt;br /&gt;
A working internet connection to use '''Electroblocks'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 4'''&lt;br /&gt;
&lt;br /&gt;
'''Prerequisite'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''https://spoken-tutorial.org'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To follow this tutorial, &lt;br /&gt;
&lt;br /&gt;
* Learner should have a basic knowledge of Electroblocks interface &lt;br /&gt;
* If not, please visit the relevant tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Type [https://electroblocks.org/ https://electroblocks.org/] '''&lt;br /&gt;
&lt;br /&gt;
Highlight the link in the search tab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[https://electroblocks.org/ https://electroblocks.org/]&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us open the '''Electroblocks''' '''platform''' using '''Google Chrome browser. '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the address bar, type the URL as shown and press Enter. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will see the default Blink '''LED''' circuit on the screen.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the''' New File '''icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''New File/Blank''' file option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the '''OK''' button.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click the '''OK''' button to start a new project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to the number 3 in the loop block.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Observe the loop block in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It indicates that the simulation will run for 3 times.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to 3.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click to change the number from 2 to 3.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us change the number to 2. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will simulate the code for 2 times.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add the entire Output video.mp4 in the main video at the 1:32 timestamp.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We will create this '''traffic light''' output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let’s start by building '''traffic lights''' using '''Electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Main Video.mp4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select '''LED''' Option&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We need three '''LED''' blocks with different colours, namely, red, orange and green.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''LED''' option, you will see two blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the Turn '''LED''' '''block''' and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place the '''LED''' option in the loop block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to the '''LED'''.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click and place the '''Turn LED''' block inside the loop block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Notice the change in the circuit on the simulation screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can see an '''LED''' connected to the '''arduino'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Zoom in to show the resistor&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to pin 2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us Zoom in to see the circuit connection clearly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here the '''LED''' is connected through a resistor to the '''Arduino'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, the '''LED''' is always connected to pin 2 of''' Arduino'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Change the''' LED pin '''and '''LED''' colour&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Change the '''pin''' number to '''pin 12'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the colour section on the '''LED''' '''block''' and select the green colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Add the''' Wait block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and drop the '''Wait block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change to 4 seconds&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s make sure that the '''LED''' remains turned '''ON''' for a specific amount of time.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''Wait block'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From the left panel, Click on '''Time'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place '''Wait block for 0.2 seconds''' block below the '''turn ON LED''' block. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the time to '''4 seconds''' in the block as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Duplicate the '''LED block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s turn '''OFF''' the green '''LED'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''Turn ON LED''' block, and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This action creates an identical block in the working area.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to '''Duplicate block '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this block below the Wait for 4 seconds block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown option and select off state.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change state of the '''LED'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Drag and place this block below the '''Wait for 4 seconds''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To change the state of the '''LED''', click the dropdown arrow and select OFF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This block turns OFF the LED connected to pin 12.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Duplicate the '''LED block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''LED''' block and select the '''Duplicate '''option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this new block below the green colour led block as shown.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Now, let's add a second''' LED''' block to represent the orange colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''LED '''block and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this new block below the green colour led block as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| click on the dropdown arrow and select On.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the pin 12 dropdown menu and change the pin number to pin 11.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the colour section on the LED block and select orange colour.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To change the state of the''' LED''', click on the dropdown arrow and select '''ON'''. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the pin 12 dropdown menu and change the '''pin''' number to '''pin 11'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''colour''' section on the '''LED''' block and select '''orange''' colour.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Duplicate the wait for 4 seconds block&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the''' LED turn ON''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the time to 1 second.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us keep the orange LED turned ON for 1 second.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For this, '''duplicate''' the '''Wait for 4 seconds''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Place this block below the LED''' turn ON '''block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the time to '''1 second''' as shown.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Duplicate the''' LED block'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the '''Turn LED''' block and select the Duplicate option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this block below the '''Wait for 1 second''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To change the state of the '''LED''', click on the dropdown arrow and select off.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We will now turn '''OFF''' the orange LED.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Right click on the Turn LED block and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Drag and place this block below the '''Wait for 1 second''' block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the state of the LED to OFF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight the red '''LED''' block setup between the 5:45 to 6:06 timestamp&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Duplicate''' the previous LED block and place it below the orange LED block.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Change the '''pin''' number to 10 and select RED colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Duplicate the '''Wait''' block and set the time to '''2 seconds'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the code icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point the cursor to arduino code&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us switch to the '''arduino''' '''code''' section.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code''' icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An '''Arduino''' '''code''' for a traffic light experiment is generated here.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point the cursor to arduino code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The '''LED''' '''pin''' connections are defined in the void setup function.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point the cursor to arduino code&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight '''digitalWrite(12, HIGH)'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The working of these 3 '''LEDs''' is explained in the void loop function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''digitalWrite(12, HIGH)''' command says that the green '''LED''' will be turned ON.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight the '''delay(4000) '''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The '''delay(4000)''' line of code makes sure that the green '''LED''' is '''ON''' for 4 seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the arduino syntax, '''4000 milliseconds''' represent '''4 seconds.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Highlight '''digitalWrite(12, LOW)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight remaining all code&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The''' digitalWrite(12, LOW)''' command says that the green LED will be turned off.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Similarly, orange and red '''LEDs''' will be turning '''ON''' and turning '''OFF''' after a given interval.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to the simulator.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s check the desired results using the '''simulator'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on '''Home''' page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Home''' page Option from the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Play''' button to start the simulation.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point towards the simulation window.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| The visual representation of the simulation shows that:&lt;br /&gt;
&lt;br /&gt;
* The green '''LED''' turns ON for 4 seconds, then turns OFF.&lt;br /&gt;
* The orange '''LED''' turns ON for 1 second, then turns OFF.&lt;br /&gt;
* The red '''LED '''turns ON for 2 seconds, and turns OFF.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| One by one step&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the '''Previous''' '''Step''' button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Next Step '''button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Highlight the '''Loop''' block&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To see the simulation in the '''step by step '''manner,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Next Step''' button, notice the blocks in the working area.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''execution''' state of the '''block''' is highlighted with a yellow colour outline. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration &lt;br /&gt;
&lt;br /&gt;
Click on the '''Download''' icon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Download''' '''project''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let us now '''download''' the project in our system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
click on the '''Download''' icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Then, select the '''Download Project''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Select the directory&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Home''' icon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Select a directory and save the project with the filename '''Traffic Light'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Home''' icon.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now let us see how to execute the same traffic light experiment on the hardware.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 5'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Hardware Requirements'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| To perform this experiment, we require&lt;br /&gt;
&lt;br /&gt;
* 3 '''LEDs''' (red, green, orange)&lt;br /&gt;
* 3 '''Resistors''' (220 '''Ohms''')&lt;br /&gt;
* '''Arduino Uno'''&lt;br /&gt;
* '''Arduino '''cable&lt;br /&gt;
* '''Breadboard '''and''' '''connecting''' wires'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 6'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Circuit Diagram.png'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Please refer to this '''circuit diagram''' to make the circuit connections.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add image&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Text box &lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Connect the '''arduino''' to your system with an '''arduino''' cable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Windows users can go directly to the '''electroblocks''' and '''upload''' the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Setup for '''Ubuntu''' users only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''terminal'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type '''sudo usermod -a -G dialout $USER'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enter system '''password'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the password and press Enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| For '''Ubuntu '''users, please follow the steps mentioned below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''terminal'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At the prompt, type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''sudo usermod -a -G dialout $USER'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The system will prompt you to enter the system '''password'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Type the '''password''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Type sudo chmod -R 775 /dev/ttyACM0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
press Enter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to ttyACM0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to command&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Go to the electroblocks website and click on the upload button.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Then type,&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''sudo chmod -R 775 /dev/ttyACM0(ACMzero)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''ttyACM0''' is the''' arduino usb port.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This command initiates the communication between '''Electroblocks''' '''website''' and '''arduino board.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If an error occurs, go back to the '''electroblocks''' website and click on the '''Upload''' '''button'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the upload code button and check the arduino USB port name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the''' upload code button''' and check the '''arduino USB''' '''port''' name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Use the '''port''' name and change it accordingly in the '''sudo command.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You have to run these commands only once. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Restart the system&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| We have to '''restart''' the system to save these changes.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Open the '''electroblocks''' website.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''project''' icon&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the''' choose file '''option'''.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''traffic light.xml''' file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to Pop up window &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the ok button&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to''' traffic light project.'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Open the '''electroblocks''' website again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us open the '''Traffic light''' experiment which we just saved in our system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Projects''' icon on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on '''choose file''' option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the '''Traffic Light.xml''' file. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A pop-window appears on the screen to confirm if you want to open a new file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The '''Traffic light project '''appears on the screen.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Only narration&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Let’s '''upload''' this '''code''' on the '''arduino''' '''uno''' to perform the same experiment with hardware.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Upload''' code option on the right hand side of your screen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Point to usb '''port''' list.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''usb''' port&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Click on the '''Upload''' button on the toolbar.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the '''Upload code''' option on the right hand side of your screen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A list of available '''USB port''' connections will appear.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Select the '''port''' to which '''Arduino''' is connected and click on '''Connect''' button.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Point to''' Good Job '''message on the screen.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| It will take a few seconds to connect the '''arduino board '''to the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once it is done, you will see a '''Good Job''' message on the screen.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It indicates that '''arduino code''' has been successfully '''uploaded''' on the '''arduino uno'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add the entire Output video.mp4 in the main video at the 13:54 timestamp.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Notice that the '''LED'''s are turning''' ON''' and turning''' OFF.''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 7'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt how to&lt;br /&gt;
&lt;br /&gt;
# Build a set of '''blocks''' to Create a '''Traffic light project'''&lt;br /&gt;
# Check the output of the experiment using the '''simulator'''&lt;br /&gt;
# '''Upload''' the '''arduino code''' on '''arduino uno'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Let us summarise.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| '''Slide 8'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As an '''assignment''', please do the following,Connect&lt;br /&gt;
&lt;br /&gt;
* A green '''LED''' to pin 3,&lt;br /&gt;
* An orange '''LED''' to pin 5, and&lt;br /&gt;
* A red '''LED''' to pin 6 on the '''Arduino board'''.&lt;br /&gt;
&lt;br /&gt;
Adjust the delay times as follows:&lt;br /&gt;
&lt;br /&gt;
# Set the '''delay''' for the green '''LED''' to 6 seconds.&lt;br /&gt;
# Set the '''delay''' for the orange '''LED''' to 2 seconds.&lt;br /&gt;
# Set the '''delay''' for the red '''LED''' to 3 seconds.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| As an '''assignment''', please do the following,Connect&lt;br /&gt;
&lt;br /&gt;
* A green '''LED''' to pin 3,&lt;br /&gt;
* An orange '''LED''' to pin 5, and&lt;br /&gt;
* A red '''LED''' to pin 6 on the '''Arduino board'''.&lt;br /&gt;
&lt;br /&gt;
Adjust the delay times as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Add the entire assignment video.mp4 in the main video at the 14:46 timestamp.&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding:0.176cm;&amp;quot;| Notice the output of the assignment as shown in the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;&amp;quot;| '''Slide 9'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
| style=&amp;quot;background-color:transparent;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.191cm;padding-right:0.191cm;&amp;quot;| This tutorial has been contributed by''' FOSSEE''' and '''Spoken Tutorial Project''',''' IIT Bombay.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thank you for watching.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pratiknemane</name></author>	</entry>

	</feed>