<?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%2FSolar-Tracking-System%2FEnglish</id>
		<title>ElectroBlocks/C2/Solar-Tracking-System/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%2FSolar-Tracking-System%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Solar-Tracking-System/English&amp;action=history"/>
		<updated>2026-05-13T00:02:16Z</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/Solar-Tracking-System/English&amp;diff=57216&amp;oldid=prev</id>
		<title>Nirmala Venkat: Created page with &quot;{| border=&quot;1&quot; |- || '''Visual Cue''' || '''Narration''' |- || '''Slide 1:'''  '''Title Slide''' || Welcome to the '''Spoken Tutorial''' on '''Solar Tracking System '''using ''...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=ElectroBlocks/C2/Solar-Tracking-System/English&amp;diff=57216&amp;oldid=prev"/>
				<updated>2025-11-18T12:51:13Z</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; |- || &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;Spoken Tutorial&amp;#039;&amp;#039;&amp;#039; on &amp;#039;&amp;#039;&amp;#039;Solar Tracking System &amp;#039;&amp;#039;&amp;#039;using &amp;#039;&amp;#039;...&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;
|| '''Slide 1:'''&lt;br /&gt;
&lt;br /&gt;
'''Title Slide'''&lt;br /&gt;
|| Welcome to the '''Spoken Tutorial''' on '''Solar Tracking System '''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;
|| In this tutorial, we will learn about,&lt;br /&gt;
# &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Solar Tracking System and&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;
&amp;lt;div style=&amp;quot;color:#001d35;&amp;quot;&amp;gt;&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;
|| To record this tutorial, I am using the following setup.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| '''Slide 4:'''&lt;br /&gt;
&lt;br /&gt;
'''About Solar tracking system'''&lt;br /&gt;
||&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;'''Solar tracking system'''&amp;lt;span style=&amp;quot;background-color:#ffffff;color:#001d35;&amp;quot;&amp;gt; is used &amp;lt;/span&amp;gt;to increase the energy output of solar panels&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;It is done by automatically adjusting their orientation to follow the sun's path&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:5'''&lt;br /&gt;
&lt;br /&gt;
'''Code file'''&lt;br /&gt;
||&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;The following code file is required to practise this tutorial&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;'''Solar Tracking System.zip'''&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;This file is provided in the Code Files link of this tutorial page&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;
|| Type &lt;br /&gt;
&lt;br /&gt;
https://electroblocks.org/&lt;br /&gt;
|| Let us open the '''ElectroBlocks''' website in the 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;
|| &lt;br /&gt;
&lt;br /&gt;
Click on the Projects icon located on the toolbar.&lt;br /&gt;
&lt;br /&gt;
Select the Choose File option.&lt;br /&gt;
&lt;br /&gt;
Locate and open the solar tracking system.xml file.&lt;br /&gt;
&lt;br /&gt;
A pop-up window will appear on the screen.Click OK.&lt;br /&gt;
&lt;br /&gt;
|| Extract the zip file downloaded in the download folder.&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will see how to load an existing saved project and work on it.&lt;br /&gt;
&lt;br /&gt;
On the toolbar Click on the '''Projects''' icon.&lt;br /&gt;
&lt;br /&gt;
Select the '''Choose File option.'''&lt;br /&gt;
&lt;br /&gt;
And open the Solar Tracking System.xml file in the extracted zip folder.&lt;br /&gt;
&lt;br /&gt;
A pop-up window will appear on the screen.Click '''OK'''.&lt;br /&gt;
&lt;br /&gt;
The''' Solar Tracking System''' project is loaded with the required blocks 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;
|| This is the complete setup of the '''Solar Tracking System.'''&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Point to simulation window and zoom the circuit&lt;br /&gt;
&lt;br /&gt;
Point according to the narration&lt;br /&gt;
|| The circuit is displayed in the simulation window.&lt;br /&gt;
&lt;br /&gt;
Here, two Light sensors are used to detect the light. &lt;br /&gt;
&lt;br /&gt;
The servo motor rotates according to the movement of the sun.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Only narration&lt;br /&gt;
|| Now, let’s explore the code and the corresponding blocks to understand how it works.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on the code icon&lt;br /&gt;
|| Click on the '''Code''' icon.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| &amp;lt;nowiki&amp;gt;#include &amp;lt;Servo.h&amp;gt; // Includes the Servo library for controlling servo motors&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|| '''Servo.h''' is the the Servo header library, which provides built-in functions to control servo motors&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Servo servo_2; // Creates a servo object&lt;br /&gt;
&lt;br /&gt;
|| Creates a Servo object named servo_2, which is used to control a connected servo motor.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| double spoint = 0;&lt;br /&gt;
&lt;br /&gt;
|| '''Spoint''' is the variable which stores the current angle of the servo motor.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| pinMode(A5, INPUT); &lt;br /&gt;
&lt;br /&gt;
pinMode(A4, INPUT);&lt;br /&gt;
&lt;br /&gt;
|| In the working area, two analog setup blocks are displayed.&lt;br /&gt;
&lt;br /&gt;
These blocks are used to configure the analog sensors.&lt;br /&gt;
&lt;br /&gt;
The sensors are connected to analog pins A5 and A4.&lt;br /&gt;
&lt;br /&gt;
In the code window , within the '''void setup() '''function, pins A5 and A4 are defined as input.&lt;br /&gt;
&lt;br /&gt;
In the setup blocks, sensor readings of 512 and 1024 are shown.&lt;br /&gt;
&lt;br /&gt;
These values represent the analog readings from the photo sensors.&lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| servo_2.attach(2);&lt;br /&gt;
&lt;br /&gt;
|| The servo motor is connected to pin 2 in the block so that this code is generated.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| &lt;br /&gt;
|| In the working area, the servo motor is linked to a variable called '''spoint'''.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| if (((double)analogRead(A5) &amp;lt; (double)analogRead(A4))) {&lt;br /&gt;
&lt;br /&gt;
spoint = (spoint + 9);&lt;br /&gt;
delay(1000); /&lt;br /&gt;
|| Let us see the condition in the &amp;lt;span style=&amp;quot;color:#000000;&amp;quot;&amp;gt;First IF-THEN Block.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It checks whether the analog reading from A5 is less than the reading from A4.&lt;br /&gt;
&lt;br /&gt;
If true, the servo motor arm is rotated by 9 degrees to move towards the light.&lt;br /&gt;
&lt;br /&gt;
A short delay is added to slow down the movement, making the rotation smooth and realistic.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| if (((double)analogRead(A5) &amp;gt; (double)analogRead(A4))) {&lt;br /&gt;
&lt;br /&gt;
|| Now in the second IF-THEN Block, it compares the analog values at A5 and A4,&lt;br /&gt;
&lt;br /&gt;
If the light is more on the A5 the servo rotates to the left. &lt;br /&gt;
&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| spoint = (spoint - 9);&lt;br /&gt;
&lt;br /&gt;
|| If the light on A4 is more when compared to A5 then the motor rotates to the right side. &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 output using the simulator.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Click on '''Home''' icon on the tool bar.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Play''' button &lt;br /&gt;
|| Click on '''Home''' icon.&lt;br /&gt;
&lt;br /&gt;
Now click on 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;
|| We can see the servo motor rotates from 0 to 126 degrees when sensor1 value is less than sensor 2.&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 first setup sensor reading number box and change it to 1024.&lt;br /&gt;
&lt;br /&gt;
Similarly Click on the second setup sensor reading number box and change it to 512 &lt;br /&gt;
&lt;br /&gt;
Again click on the '''Play''' button to start the simulation&lt;br /&gt;
&lt;br /&gt;
Point to simulation window&lt;br /&gt;
&lt;br /&gt;
Only narration&lt;br /&gt;
|| Let us check the output of the project if sensor1 value is greater than sensor2 value.&lt;br /&gt;
&lt;br /&gt;
Click on the '''first setup sensor''' reading number box and change it to 1024.&lt;br /&gt;
&lt;br /&gt;
Then Click on the '''second setup sensor''' reading number box and change it to 512.&lt;br /&gt;
&lt;br /&gt;
Next change the '''spoint''' value to 126.&lt;br /&gt;
&lt;br /&gt;
Click on the '''Play''' button to start the simulation.&lt;br /&gt;
&lt;br /&gt;
Now we can see the servo motor rotates from 126 to 0 degrees.&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Summary'''&lt;br /&gt;
&lt;br /&gt;
In this tutorial, we will learn about# &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Solar Tracking System&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 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;
&lt;br /&gt;
|- style=&amp;quot;border:1pt solid #000000;padding:0.176cm;&amp;quot;&lt;br /&gt;
|| Slide:&lt;br /&gt;
&lt;br /&gt;
'''Assignment''':&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;div style=&amp;quot;margin-left:1.27cm;margin-right:0cm;&amp;quot;&amp;gt;Add an LED to pin number 4 in the existing project instead of servo motor&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;If the value from Sensor 1 &amp;gt; Sensor 2, the LED should turn ON&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;If the value from Sensor 1&amp;lt; Sensor 2, the LED should turn OFF&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 12:'''&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>