<?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-10T00:56:13Z</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-04-15T11:45:12Z</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;
{| border =1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide.'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Control LED with Push button''' using '''Electroblocks'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
|| In this tutorial, we will learn how to,&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;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&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;
|| '''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;
|| To follow this tutorial, &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;
|| Open Google Chrome browser.&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;
Point towards Default Blink LED circuit.&lt;br /&gt;
|| Let us open the '''Electroblocks''' platform using '''Google''' '''Chrome''' browser. &lt;br /&gt;
&lt;br /&gt;
For that Type this url in the address bar.&lt;br /&gt;
&lt;br /&gt;
You will see the default '''Blink LED''' circuit on the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''New File/Blank File''' icon.&lt;br /&gt;
&lt;br /&gt;
A Pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
|| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears on the screen.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button to start a new project.&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the '''loop block'''.&lt;br /&gt;
|| A default '''loop block''' appears on the screen.&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;
|| '''Add the entire Output video.mp4 in the main video at the 1:29 timestamp.'''&lt;br /&gt;
|| We will create this '''Control LED with Push Button''' output.&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;
|| '''Main Video.mp4'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Logic Block.'''&lt;br /&gt;
&lt;br /&gt;
Point towards all the six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
Select''' If then else block, '''and drag it in the working area.''' '''&lt;br /&gt;
&lt;br /&gt;
Place this block inside the '''loop block'''.&lt;br /&gt;
|| First we need an '''If then else''' block.&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;
Click on the '''If then else block''' and drag it to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this '''block''' inside the '''loop block'''.&lt;br /&gt;
|- &lt;br /&gt;
||  Click on '''Sensor''' &lt;br /&gt;
&lt;br /&gt;
A new list will appear. &lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|| We require a '''button''' to control the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor towards all three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Point towards “'''Button Setup'''”&lt;br /&gt;
|| You will see three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it to the working area.&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;
|| Point towards '''“Connected to PIN#”'''&lt;br /&gt;
&lt;br /&gt;
Point towards the '''“USE PULL UP Resistor” '''checkbox.&lt;br /&gt;
&lt;br /&gt;
Point towards the unchecked checkbox.&lt;br /&gt;
&lt;br /&gt;
Only narration.&lt;br /&gt;
||  By default, this button is connected to '''pin 2''' of Arduino.&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;
By default this box is unchecked.&lt;br /&gt;
&lt;br /&gt;
We will leave the box unchecked.&lt;br /&gt;
&lt;br /&gt;
This indicates that an '''external resistor''' is connected to the '''button'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor to the “Is Button Pressed” checkbox.&lt;br /&gt;
&lt;br /&gt;
Show the enabled checkbox.&lt;br /&gt;
|| 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;
|| Point towards the '''“Loop Dropdown”'''&lt;br /&gt;
&lt;br /&gt;
Point towards&lt;br /&gt;
|| Observe the '''loop dropdown''' option in the '''Button Setup''' block.&lt;br /&gt;
&lt;br /&gt;
Here, '''loop 1''' is selected. &lt;br /&gt;
&lt;br /&gt;
It indicates that this setting is applied to '''loop 1 only'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to '''Copy All''' option.&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
Point to button setup block&lt;br /&gt;
|| 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;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&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;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
|| We will add a '''button''' '''block''' in the '''loop'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block and drag it to the working area.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on '''Add-ons.'''&lt;br /&gt;
&lt;br /&gt;
A new list will appear.&lt;br /&gt;
|| Now we will add an '''LED''' to the circuit.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list appears. &lt;br /&gt;
|- &lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it in the working area.&lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it to the working area.&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;
Point to the grey area.&lt;br /&gt;
&lt;br /&gt;
Point to the simulation screen to show the circuit disappeared.&lt;br /&gt;
|| Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
You will see that the '''LED''' and '''button setup''' block will turn to grey.&lt;br /&gt;
&lt;br /&gt;
Also, the circuit in the '''simulation '''is not seen'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the LED and push button.&lt;br /&gt;
|| This is an error.&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;
To resolve this error, we will assign a different '''pin number''' to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the dropdown arrow in the LED block.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Point towards the block to show their changes.&lt;br /&gt;
|| Click on the dropdown arrow in the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Now, all the blocks appear in normal condition.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time''' section.&lt;br /&gt;
|| Let’s make sure that the LED remains turned '''ON '''for a sufficient amount of time.&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''delay''' '''block'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Time''' on the left panel.&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block in the working area.&lt;br /&gt;
Place this block below the '''turn ON LED''' block.&lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the block.&lt;br /&gt;
&lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED block''' &lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the '''block'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&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;
|| Now we will '''turn OFF the LED.'''&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;
A new '''Turn on LED block''' will be created in the working space.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and place this new block inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown arrow and select '''OFF'''&lt;br /&gt;
&lt;br /&gt;
|| Drag and place this new '''block''' inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
To change the state of the LED, click on the dropdown arrow and select '''OFF'''.&lt;br /&gt;
&lt;br /&gt;
This '''block''' '''turns OFF''' the LED connected to '''pin 4'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|| Now we will see the '''arduino code''' generated by '''electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''Pin 4''' line of code.&lt;br /&gt;
|| In the '''void setup''' function, you will see '''pin 2''' and '''pin 4''' are mentioned. &lt;br /&gt;
&lt;br /&gt;
'''Pin 4''' is assigned to the '''LED'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to OUTPUT&lt;br /&gt;
&lt;br /&gt;
Highlight '''Pin 2''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| 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;
|| Point to the '''void loop function.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the '''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''HIGH''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| This is the '''void loop function'''.&lt;br /&gt;
&lt;br /&gt;
It shows the action performed by '''components''' and '''sensors''' in the experiment.&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;
'''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;
|| Highlight '''delay(2000)''' line of code.&lt;br /&gt;
&lt;br /&gt;
Arduino narration.&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''LOW''' line of commands.&lt;br /&gt;
&lt;br /&gt;
|| '''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;
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;
|| Let’s check the desired result using the simulator.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Home page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
|| 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;
||  Show the '''LED''' is turned '''ON'''.&lt;br /&gt;
|| 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;
Let us check the output of the '''LED''' if we don’t press the '''pushbutton'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
'''Uncheck''' the Is button is pressed box in the button setup&lt;br /&gt;
&lt;br /&gt;
Click on the '''play''' button again.&lt;br /&gt;
&lt;br /&gt;
|| For this condition, '''uncheck''' the '''Is button pressed''' checkbox in the button '''setup block'''.&lt;br /&gt;
&lt;br /&gt;
Start the simulation again.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
'''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
|| To see the simulation in the step by step manner.&lt;br /&gt;
&lt;br /&gt;
First '''check''' the '''Is button pressed '''box in the '''button setup block.'''&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;
|| Click on the '''Next step'''&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the yellow colour outline&lt;br /&gt;
&lt;br /&gt;
|| Click on the '''Next Step''' button and notice the blocks in the working area.&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;
|| '''Add the entire Output video.mp4 in the main video at the 10:21 timestamp.'''&lt;br /&gt;
|| Notice the output of the experiment.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| 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;
|| Slide 5: &lt;br /&gt;
&lt;br /&gt;
'''Summary'''&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;
|| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment, please do the following:&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;
* 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;
|| Notice the output of the assignment shown in the video.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7:'''&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial project'''&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide&amp;amp;nbsp;8:'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial workshops'''&lt;br /&gt;
|| The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;Team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|- &lt;br /&gt;
||  '''Slide 9:'''&lt;br /&gt;
&lt;br /&gt;
'''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgement'''&lt;br /&gt;
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11:'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| 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/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-04-15T11:34:56Z</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;
{| border =1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide.'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Control LED with Push button''' using '''Electroblocks'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
|| In this tutorial, we will learn how to,&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;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&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;
|| '''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;
|| To follow this tutorial, &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;
|| Open Google Chrome browser.&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;
Point towards Default Blink LED circuit.&lt;br /&gt;
|| Let us open the '''Electroblocks''' platform using '''Google''' '''Chrome''' browser. &lt;br /&gt;
&lt;br /&gt;
For that Type this url in the address bar.&lt;br /&gt;
&lt;br /&gt;
You will see the default '''Blink LED''' circuit on the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''New File/Blank File''' icon.&lt;br /&gt;
&lt;br /&gt;
A Pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
|| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears on the screen.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button to start a new project.&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the '''loop block'''.&lt;br /&gt;
|| A default '''loop block''' appears on the screen.&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;
|| '''Add the entire Output video.mp4 in the main video at the 1:29 timestamp.'''&lt;br /&gt;
|| We will create this '''Control LED with Push Button''' output.&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;
|| '''Main Video.mp4'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Logic Block.'''&lt;br /&gt;
&lt;br /&gt;
Point towards all the six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
Select''' If then else block, '''and drag it in the working area.''' '''&lt;br /&gt;
&lt;br /&gt;
Place this block inside the '''loop block'''.&lt;br /&gt;
|| First we need an '''If then else''' block.&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;
Click on the '''If then else block''' and drag it to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this '''block''' inside the '''loop block'''.&lt;br /&gt;
|- &lt;br /&gt;
||  Click on '''Sensor''' &lt;br /&gt;
&lt;br /&gt;
A new list will appear. &lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|| We require a '''button''' to control the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor towards all three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Point towards “'''Button Setup'''”&lt;br /&gt;
|| You will see three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it to the working area.&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;
|| Point towards '''“Connected to PIN#”'''&lt;br /&gt;
&lt;br /&gt;
Point towards the '''“USE PULL UP Resistor” '''checkbox.&lt;br /&gt;
&lt;br /&gt;
Point towards the unchecked checkbox.&lt;br /&gt;
&lt;br /&gt;
Only narration.&lt;br /&gt;
||  By default, this button is connected to '''pin 2''' of Arduino.&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;
By default this box is unchecked.&lt;br /&gt;
&lt;br /&gt;
We will leave the box unchecked.&lt;br /&gt;
&lt;br /&gt;
This indicates that an '''external resistor''' is connected to the '''button'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor to the “Is Button Pressed” checkbox.&lt;br /&gt;
&lt;br /&gt;
Show the enabled checkbox.&lt;br /&gt;
|| 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;
|| Point towards the '''“Loop Dropdown”'''&lt;br /&gt;
&lt;br /&gt;
Point towards&lt;br /&gt;
|| Observe the '''loop dropdown''' option in the '''Button Setup''' block.&lt;br /&gt;
&lt;br /&gt;
Here, '''loop 1''' is selected. &lt;br /&gt;
&lt;br /&gt;
It indicates that this setting is applied to '''loop 1 only'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to '''Copy All''' option.&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
Point to button setup block&lt;br /&gt;
|| 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;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&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;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
|| We will add a '''button''' '''block''' in the '''loop'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block and drag it to the working area.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on '''Add-ons.'''&lt;br /&gt;
&lt;br /&gt;
A new list will appear.&lt;br /&gt;
|| Now we will add an '''LED''' to the circuit.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list appears. &lt;br /&gt;
|- &lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it in the working area.&lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it to the working area.&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;
Point to the grey area.&lt;br /&gt;
&lt;br /&gt;
Point to the simulation screen to show the circuit disappeared.&lt;br /&gt;
|| Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
You will see that the '''LED''' and '''button setup''' block will turn to grey.&lt;br /&gt;
&lt;br /&gt;
Also, the circuit in the '''simulation '''is not seen'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the LED and push button.&lt;br /&gt;
|| This is an error.&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;
To resolve this error, we will assign a different '''pin number''' to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the dropdown arrow in the LED block.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Point towards the block to show their changes.&lt;br /&gt;
|| Click on the dropdown arrow in the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Now, all the blocks appear in normal condition.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time''' section.&lt;br /&gt;
|| Let’s make sure that the LED remains turned '''ON '''for a sufficient amount of time.&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''delay''' '''block'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Time''' on the left panel.&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block in the working area.&lt;br /&gt;
Place this block below the '''turn ON LED''' block.&lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the block.&lt;br /&gt;
&lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED block''' &lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the '''block'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&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;
|| Now we will '''turn OFF the LED.'''&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;
A new '''Turn on LED block''' will be created in the working space.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and place this new block inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown arrow and select '''OFF'''&lt;br /&gt;
&lt;br /&gt;
|| Drag and place this new '''block''' inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
To change the state of the LED, click on the dropdown arrow and select '''OFF'''.&lt;br /&gt;
&lt;br /&gt;
This '''block''' '''turns OFF''' the LED connected to '''pin 4'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|| Now we will see the '''arduino code''' generated by '''electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''Pin 4''' line of code.&lt;br /&gt;
|| In the '''void setup''' function, you will see '''pin 2''' and '''pin 4''' are mentioned. &lt;br /&gt;
&lt;br /&gt;
'''Pin 4''' is assigned to the '''LED'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to OUTPUT&lt;br /&gt;
&lt;br /&gt;
Highlight '''Pin 2''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| 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;
|| Point to the '''void loop function.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the '''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''HIGH''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| This is the '''void loop function'''.&lt;br /&gt;
&lt;br /&gt;
It shows the action performed by '''components''' and '''sensors''' in the experiment.&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;
'''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;
|| Highlight '''delay(2000)''' line of code.&lt;br /&gt;
&lt;br /&gt;
Arduino narration.&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''LOW''' line of commands.&lt;br /&gt;
&lt;br /&gt;
|| '''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;
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;
|| Let’s check the desired result using the simulator.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Home page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
|| 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;
||  Show the '''LED''' is turned '''ON'''.&lt;br /&gt;
|| 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;
Let us check the output of the '''LED''' if we don’t press the '''pushbutton'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
'''Uncheck''' the Is button is pressed box in the button setup&lt;br /&gt;
&lt;br /&gt;
Click on the '''play''' button again.&lt;br /&gt;
&lt;br /&gt;
|| For this condition, '''uncheck''' the '''Is button pressed''' checkbox in the button '''setup block'''.&lt;br /&gt;
&lt;br /&gt;
Start the simulation again.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
'''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
|| To see the simulation in the step by step manner.&lt;br /&gt;
&lt;br /&gt;
First '''check''' the '''Is button pressed '''box in the '''button setup block.'''&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;
|| Click on the '''Next step'''&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the yellow colour outline&lt;br /&gt;
&lt;br /&gt;
|| Click on the '''Next Step''' button and notice the blocks in the working area.&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;
|| '''Add the entire Output video.mp4 in the main video at the 10:21 timestamp.'''&lt;br /&gt;
|| Notice the output of the experiment.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| 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;
|| Slide 5: &lt;br /&gt;
&lt;br /&gt;
'''Summary'''&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;
|| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment, please do the following:&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;
   * 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;
|| Notice the output of the assignment shown in the video.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7:'''&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial project'''&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide&amp;amp;nbsp;8:'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial workshops'''&lt;br /&gt;
|| The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;Team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|- &lt;br /&gt;
||  '''Slide 9:'''&lt;br /&gt;
&lt;br /&gt;
'''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgement'''&lt;br /&gt;
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11:'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| 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/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-04-15T11:31:47Z</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;
{| border =1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide.'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Control LED with Push button''' using '''Electroblocks'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
|| In this tutorial, we will learn how to,&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;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&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;
|| '''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;
|| To follow this tutorial, &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;
|| Open Google Chrome browser.&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;
Point towards Default Blink LED circuit.&lt;br /&gt;
|| Let us open the '''Electroblocks''' platform using '''Google''' '''Chrome''' browser. &lt;br /&gt;
&lt;br /&gt;
For that Type this url in the address bar.&lt;br /&gt;
&lt;br /&gt;
You will see the default '''Blink LED''' circuit on the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''New File/Blank File''' icon.&lt;br /&gt;
&lt;br /&gt;
A Pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
|| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears on the screen.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button to start a new project.&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the '''loop block'''.&lt;br /&gt;
|| A default '''loop block''' appears on the screen.&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;
|| '''Add the entire Output video.mp4 in the main video at the 1:29 timestamp.'''&lt;br /&gt;
|| We will create this '''Control LED with Push Button''' output.&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;
|| '''Main Video.mp4'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Logic Block.'''&lt;br /&gt;
&lt;br /&gt;
Point towards all the six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
Select''' If then else block, '''and drag it in the working area.''' '''&lt;br /&gt;
&lt;br /&gt;
Place this block inside the '''loop block'''.&lt;br /&gt;
|| First we need an '''If then else''' block.&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;
Click on the '''If then else block''' and drag it to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this '''block''' inside the '''loop block'''.&lt;br /&gt;
|- &lt;br /&gt;
||  Click on '''Sensor''' &lt;br /&gt;
&lt;br /&gt;
A new list will appear. &lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|| We require a '''button''' to control the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor towards all three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Point towards “'''Button Setup'''”&lt;br /&gt;
|| You will see three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it to the working area.&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;
|| Point towards '''“Connected to PIN#”'''&lt;br /&gt;
&lt;br /&gt;
Point towards the '''“USE PULL UP Resistor” '''checkbox.&lt;br /&gt;
&lt;br /&gt;
Point towards the unchecked checkbox.&lt;br /&gt;
&lt;br /&gt;
Only narration.&lt;br /&gt;
||  By default, this button is connected to '''pin 2''' of Arduino.&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;
By default this box is unchecked.&lt;br /&gt;
&lt;br /&gt;
We will leave the box unchecked.&lt;br /&gt;
&lt;br /&gt;
This indicates that an '''external resistor''' is connected to the '''button'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor to the “Is Button Pressed” checkbox.&lt;br /&gt;
&lt;br /&gt;
Show the enabled checkbox.&lt;br /&gt;
|| 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;
|| Point towards the '''“Loop Dropdown”'''&lt;br /&gt;
&lt;br /&gt;
Point towards&lt;br /&gt;
|| Observe the '''loop dropdown''' option in the '''Button Setup''' block.&lt;br /&gt;
&lt;br /&gt;
Here, '''loop 1''' is selected. &lt;br /&gt;
&lt;br /&gt;
It indicates that this setting is applied to '''loop 1 only'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to '''Copy All''' option.&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
Point to button setup block&lt;br /&gt;
|| 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;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&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;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
|| We will add a '''button''' '''block''' in the '''loop'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block and drag it to the working area.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on '''Add-ons.'''&lt;br /&gt;
&lt;br /&gt;
A new list will appear.&lt;br /&gt;
|| Now we will add an '''LED''' to the circuit.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list appears. &lt;br /&gt;
|- &lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it in the working area.&lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it to the working area.&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;
Point to the grey area.&lt;br /&gt;
&lt;br /&gt;
Point to the simulation screen to show the circuit disappeared.&lt;br /&gt;
|| Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
You will see that the '''LED''' and '''button setup''' block will turn to grey.&lt;br /&gt;
&lt;br /&gt;
Also, the circuit in the '''simulation '''is not seen'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the LED and push button.&lt;br /&gt;
|| This is an error.&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;
To resolve this error, we will assign a different '''pin number''' to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the dropdown arrow in the LED block.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Point towards the block to show their changes.&lt;br /&gt;
|| Click on the dropdown arrow in the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Now, all the blocks appear in normal condition.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time''' section.&lt;br /&gt;
|| Let’s make sure that the LED remains turned '''ON '''for a sufficient amount of time.&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''delay''' '''block'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Time''' on the left panel.&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block in the working area.&lt;br /&gt;
Place this block below the '''turn ON LED''' block.&lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the block.&lt;br /&gt;
&lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED block''' &lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the '''block'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&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;
|| Now we will '''turn OFF the LED.'''&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;
A new '''Turn on LED block''' will be created in the working space.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and place this new block inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown arrow and select '''OFF'''&lt;br /&gt;
&lt;br /&gt;
|| Drag and place this new '''block''' inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
To change the state of the LED, click on the dropdown arrow and select '''OFF'''.&lt;br /&gt;
&lt;br /&gt;
This '''block''' '''turns OFF''' the LED connected to '''pin 4'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|| Now we will see the '''arduino code''' generated by '''electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''Pin 4''' line of code.&lt;br /&gt;
|| In the '''void setup''' function, you will see '''pin 2''' and '''pin 4''' are mentioned. &lt;br /&gt;
&lt;br /&gt;
'''Pin 4''' is assigned to the '''LED'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to OUTPUT&lt;br /&gt;
&lt;br /&gt;
Highlight '''Pin 2''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| 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;
|| Point to the '''void loop function.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the '''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''HIGH''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| This is the '''void loop function'''.&lt;br /&gt;
&lt;br /&gt;
It shows the action performed by '''components''' and '''sensors''' in the experiment.&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;
'''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;
|| Highlight '''delay(2000)''' line of code.&lt;br /&gt;
&lt;br /&gt;
Arduino narration.&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''LOW''' line of commands.&lt;br /&gt;
&lt;br /&gt;
|| '''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;
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;
|| Let’s check the desired result using the simulator.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Home page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
|| 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;
||  Show the '''LED''' is turned '''ON'''.&lt;br /&gt;
|| 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;
Let us check the output of the '''LED''' if we don’t press the '''pushbutton'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
'''Uncheck''' the Is button is pressed box in the button setup&lt;br /&gt;
&lt;br /&gt;
Click on the '''play''' button again.&lt;br /&gt;
&lt;br /&gt;
|| For this condition, '''uncheck''' the '''Is button pressed''' checkbox in the button '''setup block'''.&lt;br /&gt;
&lt;br /&gt;
Start the simulation again.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
'''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
|| To see the simulation in the step by step manner.&lt;br /&gt;
&lt;br /&gt;
First '''check''' the '''Is button pressed '''box in the '''button setup block.'''&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;
|| Click on the '''Next step'''&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the yellow colour outline&lt;br /&gt;
&lt;br /&gt;
|| Click on the '''Next Step''' button and notice the blocks in the working area.&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;
|| '''Add the entire Output video.mp4 in the main video at the 10:21 timestamp.'''&lt;br /&gt;
|| Notice the output of the experiment.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| 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;
|| Slide 5: &lt;br /&gt;
&lt;br /&gt;
'''Summary'''&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;
|| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment, please do the following:&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;
   #  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;
|| Notice the output of the assignment shown in the video.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7:'''&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial project'''&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide&amp;amp;nbsp;8:'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial workshops'''&lt;br /&gt;
|| The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;Team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|- &lt;br /&gt;
||  '''Slide 9:'''&lt;br /&gt;
&lt;br /&gt;
'''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgement'''&lt;br /&gt;
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11:'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| 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/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-04-15T11:29:04Z</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;
{| border =1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide.'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Control LED with Push button''' using '''Electroblocks'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
|| In this tutorial, we will learn how to,&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;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&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;
|| '''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;
|| To follow this tutorial, &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;
|| Open Google Chrome browser.&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;
Point towards Default Blink LED circuit.&lt;br /&gt;
|| Let us open the '''Electroblocks''' platform using '''Google''' '''Chrome''' browser. &lt;br /&gt;
&lt;br /&gt;
For that Type this url in the address bar.&lt;br /&gt;
&lt;br /&gt;
You will see the default '''Blink LED''' circuit on the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''New File/Blank File''' icon.&lt;br /&gt;
&lt;br /&gt;
A Pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
|| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears on the screen.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button to start a new project.&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the '''loop block'''.&lt;br /&gt;
|| A default '''loop block''' appears on the screen.&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;
|| '''Add the entire Output video.mp4 in the main video at the 1:29 timestamp.'''&lt;br /&gt;
|| We will create this '''Control LED with Push Button''' output.&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;
|| '''Main Video.mp4'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Logic Block.'''&lt;br /&gt;
&lt;br /&gt;
Point towards all the six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
Select''' If then else block, '''and drag it in the working area.''' '''&lt;br /&gt;
&lt;br /&gt;
Place this block inside the '''loop block'''.&lt;br /&gt;
|| First we need an '''If then else''' block.&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;
Click on the '''If then else block''' and drag it to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this '''block''' inside the '''loop block'''.&lt;br /&gt;
|- &lt;br /&gt;
||  Click on '''Sensor''' &lt;br /&gt;
&lt;br /&gt;
A new list will appear. &lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|| We require a '''button''' to control the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor towards all three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Point towards “'''Button Setup'''”&lt;br /&gt;
|| You will see three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it to the working area.&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;
|| Point towards '''“Connected to PIN#”'''&lt;br /&gt;
&lt;br /&gt;
Point towards the '''“USE PULL UP Resistor” '''checkbox.&lt;br /&gt;
&lt;br /&gt;
Point towards the unchecked checkbox.&lt;br /&gt;
&lt;br /&gt;
Only narration.&lt;br /&gt;
||  By default, this button is connected to '''pin 2''' of Arduino.&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;
By default this box is unchecked.&lt;br /&gt;
&lt;br /&gt;
We will leave the box unchecked.&lt;br /&gt;
&lt;br /&gt;
This indicates that an '''external resistor''' is connected to the '''button'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor to the “Is Button Pressed” checkbox.&lt;br /&gt;
&lt;br /&gt;
Show the enabled checkbox.&lt;br /&gt;
|| 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;
|| Point towards the '''“Loop Dropdown”'''&lt;br /&gt;
&lt;br /&gt;
Point towards&lt;br /&gt;
|| Observe the '''loop dropdown''' option in the '''Button Setup''' block.&lt;br /&gt;
&lt;br /&gt;
Here, '''loop 1''' is selected. &lt;br /&gt;
&lt;br /&gt;
It indicates that this setting is applied to '''loop 1 only'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to '''Copy All''' option.&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
Point to button setup block&lt;br /&gt;
|| 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;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&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;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
|| We will add a '''button''' '''block''' in the '''loop'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block and drag it to the working area.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on '''Add-ons.'''&lt;br /&gt;
&lt;br /&gt;
A new list will appear.&lt;br /&gt;
|| Now we will add an '''LED''' to the circuit.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list appears. &lt;br /&gt;
|- &lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it in the working area.&lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it to the working area.&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;
Point to the grey area.&lt;br /&gt;
&lt;br /&gt;
Point to the simulation screen to show the circuit disappeared.&lt;br /&gt;
|| Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
You will see that the '''LED''' and '''button setup''' block will turn to grey.&lt;br /&gt;
&lt;br /&gt;
Also, the circuit in the '''simulation '''is not seen'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the LED and push button.&lt;br /&gt;
|| This is an error.&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;
To resolve this error, we will assign a different '''pin number''' to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the dropdown arrow in the LED block.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Point towards the block to show their changes.&lt;br /&gt;
|| Click on the dropdown arrow in the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Now, all the blocks appear in normal condition.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time''' section.&lt;br /&gt;
|| Let’s make sure that the LED remains turned '''ON '''for a sufficient amount of time.&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''delay''' '''block'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Time''' on the left panel.&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block in the working area.&lt;br /&gt;
Place this block below the '''turn ON LED''' block.&lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the block.&lt;br /&gt;
&lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED block''' &lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the '''block'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&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;
|| Now we will '''turn OFF the LED.'''&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;
A new '''Turn on LED block''' will be created in the working space.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and place this new block inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown arrow and select '''OFF'''&lt;br /&gt;
&lt;br /&gt;
|| Drag and place this new '''block''' inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
To change the state of the LED, click on the dropdown arrow and select '''OFF'''.&lt;br /&gt;
&lt;br /&gt;
This '''block''' '''turns OFF''' the LED connected to '''pin 4'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|| Now we will see the '''arduino code''' generated by '''electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''Pin 4''' line of code.&lt;br /&gt;
|| In the '''void setup''' function, you will see '''pin 2''' and '''pin 4''' are mentioned. &lt;br /&gt;
&lt;br /&gt;
'''Pin 4''' is assigned to the '''LED'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to OUTPUT&lt;br /&gt;
&lt;br /&gt;
Highlight '''Pin 2''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| 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;
|| Point to the '''void loop function.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the '''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''HIGH''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| This is the '''void loop function'''.&lt;br /&gt;
&lt;br /&gt;
It shows the action performed by '''components''' and '''sensors''' in the experiment.&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;
'''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;
|| Highlight '''delay(2000)''' line of code.&lt;br /&gt;
&lt;br /&gt;
Arduino narration.&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''LOW''' line of commands.&lt;br /&gt;
&lt;br /&gt;
|| '''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;
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;
|| Let’s check the desired result using the simulator.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Home page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
|| 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;
||  Show the '''LED''' is turned '''ON'''.&lt;br /&gt;
|| 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;
Let us check the output of the '''LED''' if we don’t press the '''pushbutton'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
'''Uncheck''' the Is button is pressed box in the button setup&lt;br /&gt;
&lt;br /&gt;
Click on the '''play''' button again.&lt;br /&gt;
&lt;br /&gt;
|| For this condition, '''uncheck''' the '''Is button pressed''' checkbox in the button '''setup block'''.&lt;br /&gt;
&lt;br /&gt;
Start the simulation again.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
'''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
|| To see the simulation in the step by step manner.&lt;br /&gt;
&lt;br /&gt;
First '''check''' the '''Is button pressed '''box in the '''button setup block.'''&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;
|| Click on the '''Next step'''&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the yellow colour outline&lt;br /&gt;
&lt;br /&gt;
|| Click on the '''Next Step''' button and notice the blocks in the working area.&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;
|| '''Add the entire Output video.mp4 in the main video at the 10:21 timestamp.'''&lt;br /&gt;
|| Notice the output of the experiment.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| 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;
|| Slide 5: &lt;br /&gt;
&lt;br /&gt;
'''Summary'''&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;
|| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment, please do the following:&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;
     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;
|| '''Add the Assignment video.mp4 in the main video at 10:54 timestamp.'''&lt;br /&gt;
|| Notice the output of the assignment shown in the video.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7:'''&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial project'''&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide&amp;amp;nbsp;8:'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial workshops'''&lt;br /&gt;
|| The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;Team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|- &lt;br /&gt;
||  '''Slide 9:'''&lt;br /&gt;
&lt;br /&gt;
'''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgement'''&lt;br /&gt;
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11:'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| 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/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-04-15T11:26:44Z</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;
{| border =1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide.'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Control LED with Push button''' using '''Electroblocks'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
|| In this tutorial, we will learn how to,&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;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&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;
|| '''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;
|| To follow this tutorial, &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;
|| Open Google Chrome browser.&lt;br /&gt;
&lt;br /&gt;
&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;
|| Let us open the '''Electroblocks''' platform using '''Google''' '''Chrome''' browser. &lt;br /&gt;
&lt;br /&gt;
For that Type this url in the address bar.&lt;br /&gt;
&lt;br /&gt;
You will see the default '''Blink LED''' circuit on the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''New File/Blank File''' icon.&lt;br /&gt;
&lt;br /&gt;
A Pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
|| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears on the screen.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button to start a new project.&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the '''loop block'''.&lt;br /&gt;
|| A default '''loop block''' appears on the screen.&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;
|| '''Add the entire Output video.mp4 in the main video at the 1:29 timestamp.'''&lt;br /&gt;
|| We will create this '''Control LED with Push Button''' output.&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;
|| '''Main Video.mp4'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Logic Block.'''&lt;br /&gt;
&lt;br /&gt;
Point towards all the six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
Select''' If then else block, '''and drag it in the working area.''' '''&lt;br /&gt;
&lt;br /&gt;
Place this block inside the '''loop block'''.&lt;br /&gt;
|| First we need an '''If then else''' block.&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;
Click on the '''If then else block''' and drag it to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this '''block''' inside the '''loop block'''.&lt;br /&gt;
|- &lt;br /&gt;
||  Click on '''Sensor''' &lt;br /&gt;
&lt;br /&gt;
A new list will appear. &lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|| We require a '''button''' to control the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor towards all three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Point towards “'''Button Setup'''”&lt;br /&gt;
|| You will see three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it to the working area.&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;
|| Point towards '''“Connected to PIN#”'''&lt;br /&gt;
&lt;br /&gt;
Point towards the '''“USE PULL UP Resistor” '''checkbox.&lt;br /&gt;
&lt;br /&gt;
Point towards the unchecked checkbox.&lt;br /&gt;
&lt;br /&gt;
Only narration.&lt;br /&gt;
||  By default, this button is connected to '''pin 2''' of Arduino.&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;
By default this box is unchecked.&lt;br /&gt;
&lt;br /&gt;
We will leave the box unchecked.&lt;br /&gt;
&lt;br /&gt;
This indicates that an '''external resistor''' is connected to the '''button'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor to the “Is Button Pressed” checkbox.&lt;br /&gt;
&lt;br /&gt;
Show the enabled checkbox.&lt;br /&gt;
|| 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;
|| Point towards the '''“Loop Dropdown”'''&lt;br /&gt;
&lt;br /&gt;
Point towards&lt;br /&gt;
|| Observe the '''loop dropdown''' option in the '''Button Setup''' block.&lt;br /&gt;
&lt;br /&gt;
Here, '''loop 1''' is selected. &lt;br /&gt;
&lt;br /&gt;
It indicates that this setting is applied to '''loop 1 only'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to '''Copy All''' option.&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
Point to button setup block&lt;br /&gt;
|| 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;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&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;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
|| We will add a '''button''' '''block''' in the '''loop'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block and drag it to the working area.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on '''Add-ons.'''&lt;br /&gt;
&lt;br /&gt;
A new list will appear.&lt;br /&gt;
|| Now we will add an '''LED''' to the circuit.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list appears. &lt;br /&gt;
|- &lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it in the working area.&lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it to the working area.&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;
Point to the grey area.&lt;br /&gt;
&lt;br /&gt;
Point to the simulation screen to show the circuit disappeared.&lt;br /&gt;
|| Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
You will see that the '''LED''' and '''button setup''' block will turn to grey.&lt;br /&gt;
&lt;br /&gt;
Also, the circuit in the '''simulation '''is not seen'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the LED and push button.&lt;br /&gt;
|| This is an error.&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;
To resolve this error, we will assign a different '''pin number''' to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the dropdown arrow in the LED block.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Point towards the block to show their changes.&lt;br /&gt;
|| Click on the dropdown arrow in the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Now, all the blocks appear in normal condition.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time''' section.&lt;br /&gt;
|| Let’s make sure that the LED remains turned '''ON '''for a sufficient amount of time.&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''delay''' '''block'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Time''' on the left panel.&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block in the working area.&lt;br /&gt;
Place this block below the '''turn ON LED''' block.&lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the block.&lt;br /&gt;
&lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED block''' &lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the '''block'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&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;
|| Now we will '''turn OFF the LED.'''&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;
A new '''Turn on LED block''' will be created in the working space.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and place this new block inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown arrow and select '''OFF'''&lt;br /&gt;
&lt;br /&gt;
|| Drag and place this new '''block''' inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
To change the state of the LED, click on the dropdown arrow and select '''OFF'''.&lt;br /&gt;
&lt;br /&gt;
This '''block''' '''turns OFF''' the LED connected to '''pin 4'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|| Now we will see the '''arduino code''' generated by '''electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''Pin 4''' line of code.&lt;br /&gt;
|| In the '''void setup''' function, you will see '''pin 2''' and '''pin 4''' are mentioned. &lt;br /&gt;
&lt;br /&gt;
'''Pin 4''' is assigned to the '''LED'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to OUTPUT&lt;br /&gt;
&lt;br /&gt;
Highlight '''Pin 2''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| 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;
|| Point to the '''void loop function.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the '''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''HIGH''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| This is the '''void loop function'''.&lt;br /&gt;
&lt;br /&gt;
It shows the action performed by '''components''' and '''sensors''' in the experiment.&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;
'''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;
|| Highlight '''delay(2000)''' line of code.&lt;br /&gt;
&lt;br /&gt;
Arduino narration.&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''LOW''' line of commands.&lt;br /&gt;
&lt;br /&gt;
|| '''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;
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;
|| Let’s check the desired result using the simulator.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Home page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
|| 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;
||  Show the '''LED''' is turned '''ON'''.&lt;br /&gt;
|| 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;
Let us check the output of the '''LED''' if we don’t press the '''pushbutton'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
'''Uncheck''' the Is button is pressed box in the button setup&lt;br /&gt;
&lt;br /&gt;
Click on the '''play''' button again.&lt;br /&gt;
&lt;br /&gt;
|| For this condition, '''uncheck''' the '''Is button pressed''' checkbox in the button '''setup block'''.&lt;br /&gt;
&lt;br /&gt;
Start the simulation again.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
'''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
|| To see the simulation in the step by step manner.&lt;br /&gt;
&lt;br /&gt;
First '''check''' the '''Is button pressed '''box in the '''button setup block.'''&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;
|| Click on the '''Next step'''&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the yellow colour outline&lt;br /&gt;
&lt;br /&gt;
|| Click on the '''Next Step''' button and notice the blocks in the working area.&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;
|| '''Add the entire Output video.mp4 in the main video at the 10:21 timestamp.'''&lt;br /&gt;
|| Notice the output of the experiment.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| 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;
|| Slide 5: &lt;br /&gt;
&lt;br /&gt;
'''Summary'''&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;
|| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment, please do the following:&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;
     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;
|| '''Add the Assignment video.mp4 in the main video at 10:54 timestamp.'''&lt;br /&gt;
|| Notice the output of the assignment shown in the video.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7:'''&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial project'''&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide&amp;amp;nbsp;8:'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial workshops'''&lt;br /&gt;
|| The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;Team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|- &lt;br /&gt;
||  '''Slide 9:'''&lt;br /&gt;
&lt;br /&gt;
'''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgement'''&lt;br /&gt;
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11:'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| 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/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-04-15T11:19:35Z</updated>
		
		<summary type="html">&lt;p&gt;PratikNemane: Created page with &amp;quot;'''Title of the Script:'''Control LED with Push button  '''Author''': Pratik Nemane  '''Keywords''': Electroblocks, arduino board, 220 ohm resistor, LEDs breadboard, Push butt...&amp;quot;&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;
{| border =1&lt;br /&gt;
|- &lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title slide.'''&lt;br /&gt;
|| Welcome to the Spoken Tutorial on '''Control LED with Push button''' using '''Electroblocks'''.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objective'''&lt;br /&gt;
|| In this tutorial, we will learn how to,# 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;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System Requirements'''&lt;br /&gt;
|| To record this tutorial, I am using:&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;
|| '''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;
|| To follow this tutorial, &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;
|| Open Google Chrome browser.&lt;br /&gt;
&lt;br /&gt;
&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;
|| 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;
You will see the default '''Blink LED''' circuit on the screen.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the '''New File/Blank File''' icon.&lt;br /&gt;
&lt;br /&gt;
A Pop-up window appears.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button.&lt;br /&gt;
|| Click on the '''New File/Blank file''' option available on the toolbar.&lt;br /&gt;
&lt;br /&gt;
A pop-up window appears on the screen.&lt;br /&gt;
&lt;br /&gt;
Click on the '''OK''' button to start a new project.&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the '''loop block'''.&lt;br /&gt;
|| A default '''loop block''' appears on the screen.&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;
|| '''Add the entire Output video.mp4 in the main video at the 1:29 timestamp.'''&lt;br /&gt;
|| We will create this '''Control LED with Push Button''' output.&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;
|| '''Main Video.mp4'''&lt;br /&gt;
&lt;br /&gt;
Click on '''Logic Block.'''&lt;br /&gt;
&lt;br /&gt;
Point towards all the six '''Logic Blocks'''.&lt;br /&gt;
&lt;br /&gt;
Select''' If then else block, '''and drag it in the working area.''' '''&lt;br /&gt;
&lt;br /&gt;
Place this block inside the '''loop block'''.&lt;br /&gt;
|| First we need an '''If then else''' block.&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;
Click on the '''If then else block''' and drag it to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this '''block''' inside the '''loop block'''.&lt;br /&gt;
|- &lt;br /&gt;
||  Click on '''Sensor''' &lt;br /&gt;
&lt;br /&gt;
A new list will appear. &lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|| We require a '''button''' to control the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list opens.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor towards all three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Point towards “'''Button Setup'''”&lt;br /&gt;
|| You will see three blocks.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button setup''' block and drag it to the working area.&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;
|| Point towards '''“Connected to PIN#”'''&lt;br /&gt;
&lt;br /&gt;
Point towards the '''“USE PULL UP Resistor” '''checkbox.&lt;br /&gt;
&lt;br /&gt;
Point towards the unchecked checkbox.&lt;br /&gt;
&lt;br /&gt;
Only narration.&lt;br /&gt;
||  By default, this button is connected to '''pin 2''' of Arduino.&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;
By default this box is unchecked.&lt;br /&gt;
&lt;br /&gt;
We will leave the box unchecked.&lt;br /&gt;
&lt;br /&gt;
This indicates that an '''external resistor''' is connected to the '''button'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point the cursor to the “Is Button Pressed” checkbox.&lt;br /&gt;
&lt;br /&gt;
Show the enabled checkbox.&lt;br /&gt;
|| 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;
|| Point towards the '''“Loop Dropdown”'''&lt;br /&gt;
&lt;br /&gt;
Point towards&lt;br /&gt;
|| Observe the '''loop dropdown''' option in the '''Button Setup''' block.&lt;br /&gt;
&lt;br /&gt;
Here, '''loop 1''' is selected. &lt;br /&gt;
&lt;br /&gt;
It indicates that this setting is applied to '''loop 1 only'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to '''Copy All''' option.&lt;br /&gt;
&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
Point to button setup block&lt;br /&gt;
|| 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;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&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;
Place this block in the '''If '''section of the '''if then else '''block.&lt;br /&gt;
|| We will add a '''button''' '''block''' in the '''loop'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Button''' option.&lt;br /&gt;
&lt;br /&gt;
Select the '''Button is pressed?''' block and drag it to the working area.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on '''Add-ons.'''&lt;br /&gt;
&lt;br /&gt;
A new list will appear.&lt;br /&gt;
|| Now we will add an '''LED''' to the circuit.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Add-ons''' menu on the left panel.&lt;br /&gt;
&lt;br /&gt;
A new list appears. &lt;br /&gt;
|- &lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it in the working area.&lt;br /&gt;
|| 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;
Click on the '''Turn on LED''' block and drag it to the working area.&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;
Point to the grey area.&lt;br /&gt;
&lt;br /&gt;
Point to the simulation screen to show the circuit disappeared.&lt;br /&gt;
|| Place this block in the '''then''' section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
You will see that the '''LED''' and '''button setup''' block will turn to grey.&lt;br /&gt;
&lt;br /&gt;
Also, the circuit in the '''simulation '''is not seen'''.'''&lt;br /&gt;
|- &lt;br /&gt;
|| Point towards the LED and push button.&lt;br /&gt;
|| This is an error.&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;
To resolve this error, we will assign a different '''pin number''' to the '''LED'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Click on the dropdown arrow in the LED block.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Point towards the block to show their changes.&lt;br /&gt;
|| Click on the dropdown arrow in the '''LED block'''.&lt;br /&gt;
&lt;br /&gt;
Change the pin number to '''pin 4'''.&lt;br /&gt;
&lt;br /&gt;
Now, all the blocks appear in normal condition.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Time''' section.&lt;br /&gt;
|| Let’s make sure that the LED remains turned '''ON '''for a sufficient amount of time.&lt;br /&gt;
&lt;br /&gt;
For this, we must add a '''delay''' '''block'''.&lt;br /&gt;
&lt;br /&gt;
Click on '''Time''' on the left panel.&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block in the working area.&lt;br /&gt;
Place this block below the '''turn ON LED''' block.&lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the block.&lt;br /&gt;
&lt;br /&gt;
|| Drag and drop the '''Wait block for 0.2 second''' block to the working area.&lt;br /&gt;
&lt;br /&gt;
Place this block below the '''turn ON LED block''' &lt;br /&gt;
&lt;br /&gt;
Change the time to 2 seconds in the '''block'''.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&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;
|| Now we will '''turn OFF the LED.'''&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;
A new '''Turn on LED block''' will be created in the working space.&lt;br /&gt;
&lt;br /&gt;
|- &lt;br /&gt;
|| Drag and place this new block inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
Click on the dropdown arrow and select '''OFF'''&lt;br /&gt;
&lt;br /&gt;
|| Drag and place this new '''block''' inside the '''else''' section of '''If then else''' block.&lt;br /&gt;
&lt;br /&gt;
To change the state of the LED, click on the dropdown arrow and select '''OFF'''.&lt;br /&gt;
&lt;br /&gt;
This '''block''' '''turns OFF''' the LED connected to '''pin 4'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|| Now we will see the '''arduino code''' generated by '''electroblocks'''.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Code Icon'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Highlight '''Pin 4''' line of code.&lt;br /&gt;
|| In the '''void setup''' function, you will see '''pin 2''' and '''pin 4''' are mentioned. &lt;br /&gt;
&lt;br /&gt;
'''Pin 4''' is assigned to the '''LED'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Point to OUTPUT&lt;br /&gt;
&lt;br /&gt;
Highlight '''Pin 2''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| 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;
|| Point to the '''void loop function.'''&lt;br /&gt;
&lt;br /&gt;
Highlight the '''if ((digitalRead(2) == HIGH))'''&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''HIGH''' line of code.&lt;br /&gt;
&lt;br /&gt;
|| This is the '''void loop function'''.&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;
|| Highlight '''delay(2000)''' line of code.&lt;br /&gt;
&lt;br /&gt;
Arduino narration.&lt;br /&gt;
&lt;br /&gt;
Highlight '''LED''' turned '''LOW''' line of commands.&lt;br /&gt;
&lt;br /&gt;
|| '''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;
|| Let’s check the desired result using the simulator.&lt;br /&gt;
|- &lt;br /&gt;
|| Click on Home page&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Click on the play button&lt;br /&gt;
|| 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;
||  Show the '''LED''' is turned '''ON'''.&lt;br /&gt;
|| 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;
Let us check the output of the '''LED''' if we don’t press the '''pushbutton'''.&lt;br /&gt;
|- &lt;br /&gt;
|| Only narration&lt;br /&gt;
&lt;br /&gt;
'''Uncheck''' the Is button is pressed box in the button setup&lt;br /&gt;
&lt;br /&gt;
Click on the '''play''' button again.&lt;br /&gt;
&lt;br /&gt;
|| For this condition, '''uncheck''' the '''Is button pressed''' checkbox in the button '''setup block'''.&lt;br /&gt;
&lt;br /&gt;
Start the simulation again.&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;
|| Only narration.&lt;br /&gt;
&lt;br /&gt;
'''check''' the '''Is button pressed '''box in the '''button setup block.'''&lt;br /&gt;
&lt;br /&gt;
Click on the '''Previous Step''' button to return to the beginning of Step 1.&lt;br /&gt;
|| To see the simulation in the step by step manner.&lt;br /&gt;
&lt;br /&gt;
First '''check''' the '''Is button pressed '''box in the '''button setup block.'''&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;
|| Click on the '''Next step'''&lt;br /&gt;
&lt;br /&gt;
Point the cursor to the yellow colour outline&lt;br /&gt;
&lt;br /&gt;
|| Click on the '''Next Step''' button and notice the blocks in the working area.&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;
|| '''Add the entire Output video.mp4 in the main video at the 10:21 timestamp.'''&lt;br /&gt;
|| Notice the output of the experiment.&lt;br /&gt;
|- &lt;br /&gt;
|| &lt;br /&gt;
|| 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;
|| Slide 5: &lt;br /&gt;
&lt;br /&gt;
'''Summary'''&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;
|| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Assignment'''&lt;br /&gt;
|| As an assignment, please do the following:&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;
     # 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;
|| '''Add the Assignment video.mp4 in the main video at 10:54 timestamp.'''&lt;br /&gt;
|| Notice the output of the assignment shown in the video.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 7:'''&lt;br /&gt;
&lt;br /&gt;
'''About Spoken Tutorial project'''&lt;br /&gt;
|| The video at the following link summarizes the Spoken Tutorial project.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please download and watch it.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide&amp;amp;nbsp;8:'''&lt;br /&gt;
&lt;br /&gt;
'''Spoken Tutorial workshops'''&lt;br /&gt;
|| The&amp;amp;nbsp;Spoken Tutorial Project&amp;amp;nbsp;Team conducts workshops and gives certificates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For more details, please write to us.&lt;br /&gt;
|- &lt;br /&gt;
||  '''Slide 9:'''&lt;br /&gt;
&lt;br /&gt;
'''Answers for THIS Spoken Tutorial'''&lt;br /&gt;
&lt;br /&gt;
|| Please post your timed queries in this forum.&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 10:'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Acknowledgement'''&lt;br /&gt;
|| Spoken Tutorial project was established by the Ministry of Education(MoE), Govt of India&lt;br /&gt;
|- &lt;br /&gt;
|| '''Slide 11:'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| 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>

	</feed>