<?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/index.php?action=history&amp;feed=atom&amp;title=ElectroBlocks%2FC2%2FTemperature-Indicator%2FEnglish</id>
		<title>ElectroBlocks/C2/Temperature-Indicator/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=ElectroBlocks%2FC2%2FTemperature-Indicator%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Temperature-Indicator/English&amp;action=history"/>
		<updated>2026-05-04T23:57:45Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Temperature-Indicator/English&amp;diff=57247&amp;oldid=prev</id>
		<title>Madhurig at 16:42, 23 November 2025</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Temperature-Indicator/English&amp;diff=57247&amp;oldid=prev"/>
				<updated>2025-11-23T16:42:43Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Temperature-Indicator/English&amp;amp;diff=57247&amp;amp;oldid=57190&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Madhurig</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Temperature-Indicator/English&amp;diff=57190&amp;oldid=prev</id>
		<title>Nirmala Venkat: Created page with &quot;{| border=&quot;1&quot; |- || '''Visual Cue''' || '''Narration''' |- |- style=&quot;border:1pt solid #000000;padding:0.176cm;&quot; || '''Slide 1:'''  '''Title Slide''' || Welcome to the '''Spoke...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Temperature-Indicator/English&amp;diff=57190&amp;oldid=prev"/>
				<updated>2025-10-16T09:27:04Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=&amp;quot;1&amp;quot; |- || &amp;#039;&amp;#039;&amp;#039;Visual Cue&amp;#039;&amp;#039;&amp;#039; || &amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039; |- |- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot; || &amp;#039;&amp;#039;&amp;#039;Slide 1:&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Title Slide&amp;#039;&amp;#039;&amp;#039; || Welcome to the &amp;#039;&amp;#039;&amp;#039;Spoke...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|| '''Visual Cue'''&lt;br /&gt;
|| '''Narration'''&lt;br /&gt;
|-&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the '''Spoken Tutorial''' on '''Temperature indicator''' using '''Electroblocks'''.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Slide 2:'''&lt;br /&gt;
&lt;br /&gt;
'''Learning Objectives'''&lt;br /&gt;
&lt;br /&gt;
|| In this tutorial, we will learn how to&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Build a set of blocks for '''Temperature Indicator'''&amp;lt;/div&amp;gt;&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Check the output of the experiment using the simulator&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Slide 3:'''&lt;br /&gt;
&lt;br /&gt;
'''System requirement'''&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''Ubuntu Linux OS version 22.04 '''&amp;lt;/div&amp;gt;&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''Google Chrome browser'''&amp;lt;/div&amp;gt;&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;A working internet connection to use Electroblocks&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Type &lt;br /&gt;
&lt;br /&gt;
'''https://electroblocks.org/'''&lt;br /&gt;
|| Let us open the''' ElectroBlocks''' website using '''Chrome''' browser.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Let us open a new blank project.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Slide:5'''&lt;br /&gt;
&lt;br /&gt;
Required section&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Logic&amp;lt;/div&amp;gt;&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Thermister&amp;lt;/div&amp;gt;&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;LED &amp;lt;/div&amp;gt;&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Math&amp;lt;/div&amp;gt;&lt;br /&gt;
|| We will need the following sections for this experiment.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| &lt;br /&gt;
|| Switch back to the '''Electroblocks''' interface.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Show Circuit Diagram.png'''&lt;br /&gt;
&lt;br /&gt;
|| This is the circuit diagram of the '''Temperature indicator '''experiment.&lt;br /&gt;
&lt;br /&gt;
Here, when the temperature value is greater than the defined value the LED is turned ON.&lt;br /&gt;
&lt;br /&gt;
Otherwise the LED is turned OFF.&lt;br /&gt;
&lt;br /&gt;
Let us build this circuit using''' ElectroBlocks'''.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Keep the loop block in the middle area (compulsory)'''&lt;br /&gt;
&lt;br /&gt;
Click on the Logic section&lt;br /&gt;
&lt;br /&gt;
Point to if-then-else block&lt;br /&gt;
|| Click on the '''Logic''' section.&lt;br /&gt;
&lt;br /&gt;
Drag the '''if then else''' block and place it inside the '''loop''' block.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Only narration.&lt;br /&gt;
Click on the '''Logic''' option available on the left hand side of the screen.&lt;br /&gt;
|| Click on the '''Logic''' section.&lt;br /&gt;
&lt;br /&gt;
The third block represents the '''Comparison block.'''&lt;br /&gt;
&lt;br /&gt;
Select and place this block in the '''if''' section of the '''if then else''' block.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Narration&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' section&lt;br /&gt;
|| Now we will add a thermistor''' '''block.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Sensors''' section and Click on the '''Thermistor'''.&lt;br /&gt;
&lt;br /&gt;
Select the '''Thermistor Setup '''block and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
By default, this button will be connected to '''analog pin A0''' of Arduino.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Point to '''Temp in C 23 value.&lt;br /&gt;
&lt;br /&gt;
Click on the number box and change the value to 25.&lt;br /&gt;
|| We can change the temperature value to 25 by clicking on the '''temperature in °C '''box.&lt;br /&gt;
&lt;br /&gt;
Note that, in the simulation window, the temperature changes to 25 '''°'''C as well.&lt;br /&gt;
Check the '''Copy All''' checkbox.&lt;br /&gt;
&lt;br /&gt;
This setting will set the temperature of the thermistor to 25 degrees for all the 3 loops.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Only narration &lt;br /&gt;
&lt;br /&gt;
Click on the '''Thermistor''' option.&lt;br /&gt;
&lt;br /&gt;
Place this block in the 1st section of the comparison block.&lt;br /&gt;
|| Let's add a thermistor block to read the temperature.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Thermistor'''.&lt;br /&gt;
&lt;br /&gt;
Select the '''Read temperature block''' and drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Now place this block in the first section of the Comparison block.&lt;br /&gt;
&lt;br /&gt;
Let us set the condition for the temperature reading for the thermistor.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on the dropdown option in the comparison block&lt;br /&gt;
&lt;br /&gt;
select the condition to''' greater than equal to'''&lt;br /&gt;
|| Click on the dropdown option in the comparison block.&lt;br /&gt;
&lt;br /&gt;
Select the condition to''' greater than equal to '''as shown'''.'''&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on the '''Math''' option&lt;br /&gt;
&lt;br /&gt;
Select the '''number''' block.&lt;br /&gt;
|| Click on the '''Math '''section'''.'''&lt;br /&gt;
&lt;br /&gt;
'''Select''' the '''number''' block and place this block in the 2nd section of the Comparison block.&lt;br /&gt;
&lt;br /&gt;
Click on the number block and change the number to 20.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on the LED option. &lt;br /&gt;
&lt;br /&gt;
Select and drag the Turn on LED.&lt;br /&gt;
|| Click on the '''Add-ons''' section and click on '''LED'''. &lt;br /&gt;
&lt;br /&gt;
Select the '''Turn a LED ON''' block and place this block in the '''then '''section of the '''If then else '''block.&lt;br /&gt;
&lt;br /&gt;
The LED is connected to '''pin 2''' of the Arduino.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on Time section&lt;br /&gt;
&lt;br /&gt;
Select the wait for 0.2 second block&lt;br /&gt;
&lt;br /&gt;
Drag it in the working area.&lt;br /&gt;
&lt;br /&gt;
Place this block below '''Turn a LED ON'''&lt;br /&gt;
&lt;br /&gt;
Change the time to 1 second&lt;br /&gt;
&lt;br /&gt;
Point to if then block&lt;br /&gt;
|| Click on the '''Time''' section.&lt;br /&gt;
&lt;br /&gt;
Select the '''wait for 0.2 second''' block and place this block below the '''Turn a LED ON''' block.&lt;br /&gt;
&lt;br /&gt;
Change the time in the '''wait block''' to 2 seconds.&lt;br /&gt;
&lt;br /&gt;
We have set the blocks for '''LED''' to turn ON for 2 seconds if the temperature value is above 20 '''°C'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;color:#ff0000;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&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;
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;
|| Right click on the '''Turn a LED on '''block and select the '''Duplicate''' option.&lt;br /&gt;
&lt;br /&gt;
Drag and place this 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;
Now we have completed the block setup for this experiment.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on the '''Code''' icon to view the auto-generated Arduino code for the experiment.&lt;br /&gt;
&lt;br /&gt;
Highlight the code on right side&lt;br /&gt;
|| Click on the '''Code icon''' to view the automatically generated''' Arduino code'''.&lt;br /&gt;
&lt;br /&gt;
The code includes self-explanatory''' comments''' for better understanding.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| &lt;br /&gt;
|| Let’s check the working of the temperature indicator using the simulator.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on '''Home''' page and click on the '''Play''' button &lt;br /&gt;
|| Click on the '''Home''' icon and press the '''Play button''' to start the simulation.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Point to simulation window&lt;br /&gt;
&lt;br /&gt;
In the thermistor setup block, change the temperature value to 15 &amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt;C.&lt;br /&gt;
&lt;br /&gt;
play the simulation button to see the output.&lt;br /&gt;
&lt;br /&gt;
|| We can see the LED turns ON for 2 seconds.&lt;br /&gt;
&lt;br /&gt;
This is because the thermistor temperature is 25°C which is greater than the comparison block .&lt;br /&gt;
&lt;br /&gt;
We will create a situation, where the thermistor reading is below 20&amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt;C.&lt;br /&gt;
&lt;br /&gt;
In the thermistor setup block, change the temperature value to 15 &amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt;C.&lt;br /&gt;
&lt;br /&gt;
Now, play the simulation again to see the output.&lt;br /&gt;
&lt;br /&gt;
Notice, the LED remains OFF.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Narration only&lt;br /&gt;
|| The '''XML '''file of this experiment is provided in the code files for your reference.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Slide 6:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we learnt how to:&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Build a set of blocks for '''Temperature Indicator'''&amp;lt;/div&amp;gt;&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Check the output of experiment using the simulator&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|| This brings us to the end of this tutorial. Let us summarise.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Slide 7:&lt;br /&gt;
&lt;br /&gt;
'''Assignment''':&lt;br /&gt;
# &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Connect a LED to pin 5&amp;lt;/div&amp;gt;&lt;br /&gt;
# &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Turn ON the LED when the temperature is below 25°C&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|| As an assignment, please do the following &lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding-top:0cm;padding-bottom:0cm;padding-left:0.206cm;padding-right:0.191cm;&amp;quot;&lt;br /&gt;
|| '''Slide '''8''':'''&lt;br /&gt;
&lt;br /&gt;
'''Thank you'''&lt;br /&gt;
|| Thank you for joining.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin-left:-1.905cm;margin-right:-1.905cm;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nirmala Venkat</name></author>	</entry>

	</feed>