<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="https://peda.net/:static/533/atom.xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Orientation exercises</title>
<id>https://peda.net/id/8ac00f32335</id>
<updated>2019-02-20T20:38:10+02:00</updated>
<link href="https://peda.net/id/8ac00f32335:atom" rel="self" />
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh#top" rel="alternate" />
<logo>https://peda.net/:static/533/peda.net.logo.bg.svg</logo>
<rights type="html">&lt;div class=&quot;license&quot;&gt;Tämän sivun lisenssi &lt;a rel=&quot;license&quot; href=&quot;https://peda.net/info&quot;&gt;Peda.net-yleislisenssi&lt;/a&gt;&lt;/div&gt;&#10;</rights>

<entry>
<title>Orientation</title>
<id>https://peda.net/id/8ac07724335</id>
<updated>2019-02-19T20:04:05+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/johdanto#top" />
<content type="html">In this part, you will get to know to equipment, you make your first wireing and a small program. As you go forward, the things you have &lt;strong class=&quot;editor red&quot;&gt;to do &lt;/strong&gt;are marked like this,&lt;strong class=&quot;editor red&quot;&gt; with red 🤗&lt;/strong&gt;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;&lt;br/&gt;&#10;&lt;/strong&gt;&lt;b&gt;Happy prototyping!&lt;/b&gt;</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>What is Arduino?</title>
<id>https://peda.net/id/8ac105b8335</id>
<updated>2019-02-20T20:20:10+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/mik%C3%A4-on-arduino#top" />
<content type="html">Below you can see a picture of &lt;b&gt;Arduino Uno&lt;/b&gt;. It’s an open source based micro controller for many things to do.&lt;br/&gt;&#10;&lt;br/&gt;&#10;There are 14 digital in/outputs, from wich 6 can be used as PWM (pulse with modulation, marked in the board with &lt;b&gt;~&lt;/b&gt;). &lt;strong class=&quot;editor red&quot;&gt;Find those in the picture or from Arduino on the table.&lt;/strong&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;editor underline&quot;&gt;&lt;b&gt;If&lt;/b&gt;&lt;/span&gt; &lt;b&gt;you want to know&lt;/b&gt;, what PWM means, check &lt;a href=&quot;https://youtu.be/YmPziPfaByw&quot; target=&quot;_blank&quot; rel=&quot;nofollow ugc noopener&quot;&gt;this&lt;/a&gt; 3 minutes video.&lt;br/&gt;&#10;&lt;br/&gt;&#10;There’s also 6 analog inputs, 16 MHz oskillator, ICSP-port, a reset button, USB- and power source. &#10;&lt;p&gt;Starting to use Arduino is easy: you download and install the enviroment from internet for free (Win, Mac, Linux), you plug Arduino to PC with usb and you are ready!&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;em&gt;Price: about 15-30 euros.&lt;/em&gt;&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/mik%C3%A4-on-arduino/9#top&quot; title=&quot;9BF91F65-B008-4929-A657-B8E308C7BE8A.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/mik%C3%A4-on-arduino/9:file/photo/fa382cae9249278e4968b0eadb54dec83f17c207/9BF91F65-B008-4929-A657-B8E308C7BE8A.jpeg&quot; alt=&quot;&quot; title=&quot;9BF91F65-B008-4929-A657-B8E308C7BE8A.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;TASK: Get the Arduino board and USB-cable and plug Arduino into computer. &lt;/strong&gt;&lt;/p&gt;&#10;</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>Breadboard</title>
<id>https://peda.net/id/8ac240c2335</id>
<updated>2019-02-20T20:21:06+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/breadboar#top" />
<content type="html">Here you can see a Breadboard. The thing with Arduino is, that you can connect lots of stuff (sensors, lights, motors etc) in Arduino. A breadboard makes it easier. You do your own circuit board, but &lt;b&gt;you don’t need soldering iron&lt;/b&gt;. &lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;It’s important you to know wich lines are connected with each other at the breadboard.&lt;/b&gt; The green lines (in the picture below) indicates all lines that are connected. For example, plug +(positive) wire from Arduino into ”+line”and the whole line is now positively charged. You can pick it anywere from the line with another wire. &lt;br/&gt;&#10;&lt;br/&gt;&#10;The center lines (a, b, c, etc.) are all connected vertically. Notice the cut in the very center: it divides the breadboard as half. The halves are not connected with each other unless you use wires.&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/breadboar/e#top&quot; title=&quot;EFDF79D9-5DFA-44F2-A9FB-314DA491378D.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/breadboar/e:file/photo/2f631e6b4d4158a9c6d4da493eda825ce6b7cd6e/EFDF79D9-5DFA-44F2-A9FB-314DA491378D.jpeg&quot; alt=&quot;&quot; title=&quot;EFDF79D9-5DFA-44F2-A9FB-314DA491378D.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>First wiring</title>
<id>https://peda.net/id/8ac39a9e335</id>
<updated>2019-02-23T15:02:06+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ek#top" />
<content type="html">&lt;strong class=&quot;editor red&quot;&gt;TASK: Get a breadboard, one resistor, one LED and two wires.&lt;/strong&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Electricat wiring is based on &lt;b&gt;closed circuit&lt;/b&gt;. Imagine that electicity is a river that flows. It flows always to same direction. &lt;b&gt;It starts from plus (positive), it goes through wire and it has to end up into ground (negative)&lt;/b&gt;. You can use it’s power anywhere between.&lt;br/&gt;&#10;&lt;br/&gt;&#10;With components you need to know what leg is a plus and wich is ground. In some components it’s marked clearly. If not, you can google it. In some components, it’s irrelecant. For example in LED there is no marking wich is wich. And LED lights only, if you connect it correctly. Take a look at the LED. You notice that the other leg is longer than other. The longer one is posivive. The shorter is negative (ground).&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ek/7#top&quot; title=&quot;7CECC9F4-7E98-40A6-A102-4DE5B5B8121F.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ek/7:file/photo/9cfe265cf8aea22b59f209b9a533d8d6ed79cc97/7CECC9F4-7E98-40A6-A102-4DE5B5B8121F.jpeg&quot; alt=&quot;&quot; title=&quot;7CECC9F4-7E98-40A6-A102-4DE5B5B8121F.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;TASK: Do your first wiring as shown in the picture below. &lt;/strong&gt;&lt;strong class=&quot;editor red&quot;&gt;&lt;br/&gt;&#10;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ek/72#top&quot; title=&quot;79E6D5AC-D1EE-4256-BDA3-143DD1E8CEC7.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ek/72:file/photo/03e250a45412e7b47d07158fcd1adbb50f745f4b/79E6D5AC-D1EE-4256-BDA3-143DD1E8CEC7.jpeg&quot; alt=&quot;&quot; title=&quot;79E6D5AC-D1EE-4256-BDA3-143DD1E8CEC7.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;br/&gt;&#10;&lt;/strong&gt;&lt;b&gt;Notice from the picture:&lt;/b&gt;&lt;br/&gt;&#10;- Plus is wired with red coloured wire, ground with black. Those are the official colour codes. Of course you can wire with any colour you like.&lt;br/&gt;&#10;- From the picture you can see markings with green. It shows lines that are connected automaticly at breadboard.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;What is wrong? All is done, but there is no light? &lt;/b&gt;Don’t worry! First you have to tell Arduino to put the light on 😇</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>ECraft2Learn ecosystem</title>
<id>https://peda.net/id/8ac5f73a335</id>
<updated>2019-02-20T20:29:02+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ohjelmointi#top" />
<content type="html">&lt;strong class=&quot;editor red&quot;&gt;TASK: Go to eCraft2Learn learning enviroment. There should be a shortcut on browser. You can also click link below.&lt;br/&gt;&#10;&lt;/strong&gt;&lt;a href=&quot;https://ecraft2learn.github.io/uui/#&quot; target=&quot;_blank&quot; rel=&quot;nofollow ugc noopener&quot;&gt;https://ecraft2learn.github.io/uui/#&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ohjelmointi/5#top&quot; title=&quot;58B5A980-F6A6-44DB-9A0C-54B09FBA3CB2.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ohjelmointi/5:file/photo/a3da81ea7fa3ae6f3e0bbda6c3c1d16ba88baa8b/58B5A980-F6A6-44DB-9A0C-54B09FBA3CB2.jpeg&quot; alt=&quot;&quot; title=&quot;58B5A980-F6A6-44DB-9A0C-54B09FBA3CB2.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;br/&gt;&#10;The Login is easy. &lt;b&gt;You don’t register anywhere but still you make an account. So remember what you put as your username. &lt;/b&gt;You can continue your work from any computer with the same username.&lt;br/&gt;&#10; &lt;span class=&quot;editor red&quot;&gt;&lt;br/&gt;&#10;&lt;b&gt;TASK: give your team a name, then click ”Login”. (Leave others empty)&lt;/b&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Now you can see the eCraft2Learn ecosystem. The five stages of eCraft2Learn are marked as their own sections. &lt;strong class=&quot;editor red&quot;&gt;Notice from the screen:&lt;/strong&gt; &lt;br/&gt;&#10;1. &lt;b&gt;Imagine&lt;/b&gt;&lt;a href=&quot;https://ecraft2learn.github.io/uui/#&quot; target=&quot;_blank&quot; rel=&quot;nofollow ugc noopener&quot;&gt;&lt;br/&gt;&#10;&lt;/a&gt;2. &lt;b&gt;Plan&lt;/b&gt; &lt;br/&gt;&#10;3. &lt;b&gt;Create&lt;/b&gt;&lt;br/&gt;&#10;4. &lt;b&gt;Program&lt;/b&gt;&lt;br/&gt;&#10;5. &lt;b&gt;Share&lt;/b&gt;&lt;br/&gt;&#10;There’s different kind of tools to every stages of work.&lt;br/&gt;&#10;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ohjelmointi/2#top&quot; title=&quot;28DD2359-3578-45E1-B334-C8A643CC6A76.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/ohjelmointi/2:file/photo/fc303cdda4e25603e63e53f3ea7a997fa11c84da/28DD2359-3578-45E1-B334-C8A643CC6A76.jpeg&quot; alt=&quot;&quot; title=&quot;28DD2359-3578-45E1-B334-C8A643CC6A76.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;TASK: From ”&lt;em&gt;Program&lt;/em&gt;” section, click ”&lt;em&gt;Snap4Arduino&lt;/em&gt;”&lt;/strong&gt;</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>Snap4Arduino: How it works and how to connect Arduino</title>
<id>https://peda.net/id/8ac8f890335</id>
<updated>2019-02-20T20:30:20+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so#top" />
<content type="html">Snap4Arduino is graphical programming environment wich works ”drag and drop”. It’s base on C++ programming language.&lt;br/&gt;&#10;&lt;br/&gt;&#10;On the left corner of your screen you can see things like Motion, Looks, Control and so on. When you click any of them, there opens programming blocks. But before we program anything, we have to connect Arduino into Snap.&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so/a#top&quot; title=&quot;AFE779FC-E377-4025-A2DD-BB46FC263BFB.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so/a:file/photo/3a62856e4bc6e3edef575ffbaf29aa4e4fdc91fd/AFE779FC-E377-4025-A2DD-BB46FC263BFB.jpeg&quot; alt=&quot;&quot; title=&quot;AFE779FC-E377-4025-A2DD-BB46FC263BFB.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;TASK: Choose ”&lt;em&gt;Arduino&lt;/em&gt;” (picture above) and click ”&lt;em&gt;Connect Arduino&lt;/em&gt;”. Then you see COM5, COM6 or dev0 whatever... Choose that what you see there.&lt;br/&gt;&#10;&lt;/strong&gt;&lt;br/&gt;&#10;&lt;b&gt;If connection succeeded, you should see the text:&lt;/b&gt;&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so/3#top&quot; title=&quot;33EEA48E-7370-4C94-8E58-356C7284D480.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so/3:file/photo/c5bd71995e79550bca76a73eebae9e59eb857771/33EEA48E-7370-4C94-8E58-356C7284D480.jpeg&quot; alt=&quot;&quot; title=&quot;33EEA48E-7370-4C94-8E58-356C7284D480.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;If not, please call your instructor 🤗</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>Snap4Arduino, Programming</title>
<id>https://peda.net/id/8acbe546335</id>
<updated>2019-02-20T20:34:33+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2#top" />
<content type="html">&lt;b&gt;God job, you are doing great! 🔥👍&lt;/b&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Just to remember, this is what we have done:&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/b#top&quot; title=&quot;B0D725FA-8950-46E8-8339-A0710E8C825D.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/b:file/photo/35dc4ab83b9c57df77bffaaaf288f4308056f270/B0D725FA-8950-46E8-8339-A0710E8C825D.jpeg&quot; alt=&quot;&quot; title=&quot;B0D725FA-8950-46E8-8339-A0710E8C825D.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;Now, we need to notice one very important thing from this: Where did you plug the wire in Arduino? If you did as the picture showed, you should have plugged in &lt;b&gt;pin 13&lt;/b&gt;. If not, that’s ok too. &lt;b&gt;The pin number is important.&lt;/b&gt; You’ll figure this out in one minute... :)&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;TASK: (pictures above) Choose ”&lt;em&gt;Arduino&lt;/em&gt;” and from there ”&lt;em&gt;Set digital pin..&lt;/em&gt;.”, drag it into script area and drop it. &lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/1#top&quot; title=&quot;1E3D85C3-1350-47F7-BBB5-93E057220208.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/1:file/photo/eccfe82f42b4952fcde31d042a88a80f69e8c8bc/1E3D85C3-1350-47F7-BBB5-93E057220208.jpeg&quot; alt=&quot;&quot; title=&quot;1E3D85C3-1350-47F7-BBB5-93E057220208.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Now choose from drop-down menu your pin number, where you have connected the LED.&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/a#top&quot; title=&quot;AFE72E18-8369-451B-A8AC-BCB7BB499C7E.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/a:file/photo/5b0d10130a9ef2c25986237eb45e6720218b21ed/AFE72E18-8369-451B-A8AC-BCB7BB499C7E.jpeg&quot; alt=&quot;&quot; title=&quot;AFE72E18-8369-451B-A8AC-BCB7BB499C7E.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Now set electricity on into pin 13 with slide switch.&lt;br/&gt;&#10;&lt;span class=&quot;small&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/9#top&quot; title=&quot;93F74FE3-2F78-457A-BB7A-A57EDB42CA1A.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so2/9:file/photo/bd2488ab2761b5bb2b482ef709d38443badb8504/93F74FE3-2F78-457A-BB7A-A57EDB42CA1A.jpeg&quot; alt=&quot;&quot; title=&quot;93F74FE3-2F78-457A-BB7A-A57EDB42CA1A.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Click the yellow ”Control” and drag ”When clicked” block there, drop it and put in on top of ”Set digital pin” block.&lt;br/&gt;&#10;&lt;br/&gt;&#10;Activate the code by clicking the block. The LED should have light now.&lt;br/&gt;&#10;&lt;/strong&gt;</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>Snap4Arduino, a little more programming</title>
<id>https://peda.net/id/8acff226335</id>
<updated>2019-02-20T20:36:51+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so22#top" />
<content type="html">Now, let’s get the LED blinking!&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;TASK:&lt;/strong&gt; &lt;strong class=&quot;editor red&quot;&gt;Do program below&lt;/strong&gt;&lt;br/&gt;&#10;1. Have another control block: ”&lt;em&gt;Forever&lt;/em&gt;” and put it under ”when clicked”.  &lt;br/&gt;&#10;2. Move the ”&lt;em&gt;Set digital pin&lt;/em&gt;” that you already have, inside ”forever”&lt;br/&gt;&#10;3. Add Control block: ”&lt;em&gt;wait 1 secs&lt;/em&gt;” under ”Set digital pin”&lt;br/&gt;&#10;4. Click ”&lt;em&gt;set digital pin&lt;/em&gt;” block with left mouse button —&amp;gt; ”&lt;em&gt;Duplicate&lt;/em&gt;”. You should now get those two blocks.&lt;br/&gt;&#10;5. Change the value of another ”Set digital pin”  value to ”off” (click the slider).&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;Your program should look like this:&lt;/b&gt;&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so22/4#top&quot; title=&quot;47BB3475-952A-4EBD-ACFA-0F10C6CA8613.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/so22/4:file/photo/72d401fc0fbcf62edb00dcf181b4096447830fb6/47BB3475-952A-4EBD-ACFA-0F10C6CA8613.jpeg&quot; alt=&quot;&quot; title=&quot;47BB3475-952A-4EBD-ACFA-0F10C6CA8613.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;Click the ”When clicked” block and start the program. Change the values inside ”wait” block, for example 0.5 or 0.05.&lt;/strong&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Congratulations! Your first excercise is done! 🥳&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;div class=&quot;youtube&quot;&gt;&lt;iframe loading=&quot;lazy&quot; width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube.com/embed/nL3aso5PqAs?rel=0&amp;amp;modestbranding=1&amp;amp;hl=fi&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;&lt;div&gt;&lt;a href=&quot;https://youtu.be/nL3aso5PqAs&quot; title=&quot;https://youtu.be/nL3aso5PqAs&quot; target=&quot;_blank&quot; rel=&quot;nofollow ugc noopener&quot;&gt;https://youtu.be/nL3aso5PqAs&lt;/a&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>Short Mission: adapt your skills. The Joker!</title>
<id>https://peda.net/id/8ad19ffe335</id>
<updated>2019-02-20T20:42:40+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/sttjvh#top" />
<content type="html">Your task is to create ”the Joker” as seen on video below 🤡 Blinking eyes are important, the rest is up to you. You whatever material you find. But keep it simple.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;div class=&quot;youtube&quot;&gt;&lt;iframe loading=&quot;lazy&quot; width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube.com/embed/tFGmzF5ziyM?rel=0&amp;amp;modestbranding=1&amp;amp;hl=fi&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;&lt;div&gt;&lt;a href=&quot;https://youtu.be/tFGmzF5ziyM&quot; title=&quot;https://youtu.be/tFGmzF5ziyM&quot; target=&quot;_blank&quot; rel=&quot;nofollow ugc noopener&quot;&gt;https://youtu.be/tFGmzF5ziyM&lt;/a&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;</content>
<published>2019-02-18T10:52:37+02:00</published>
</entry>

<entry>
<title>Project lighthouse</title>
<id>https://peda.net/id/2457c2da335</id>
<updated>2019-02-20T21:30:12+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/project-lighthouse#top" />
<content type="html">Your task is to build a lighthouse / a beacon wich goes automaticly on when the sun sets and goes off when it’s bright. Ofcourse, the beacon is blinking. The Designis totally up to you! Use whatever material you can find in the Light a Bot. Hot glue guns, knives, paint, tape, etc etc are available!&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;Things that you need:&lt;/b&gt;&lt;br/&gt;&#10;Arduino Uno + usb cable&lt;br/&gt;&#10;LED&lt;br/&gt;&#10;a resistor&lt;br/&gt;&#10;a photoresistor&lt;br/&gt;&#10;wires&lt;br/&gt;&#10;&lt;br/&gt;&#10;Below you’ll find instructions how to wire a photoresistor and how to program it.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;Put your team to work!&lt;/b&gt; Maybe you’ll draw a little plan? Do you want to do everything together? Or do you want to different tasks? Someone figuring out programming, someone getting material...However you do it, remember to &lt;b&gt;co-operate&lt;/b&gt; and &lt;b&gt;talk to each other!&lt;/b&gt; &lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;If you use paint, try to do it in the beginning.&lt;/b&gt; The paint dries pretty fast, but can take 15-30 minutes.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span&gt;&lt;b&gt;Before you construct anything ”permanent”, you have to think what electronics is going to be there and how!&lt;/b&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;strong class=&quot;editor red&quot;&gt;This is the last task at this work shop. We’ll leave about 20 minutes to your works presentations and general talk.&lt;/strong&gt;&lt;/span&gt;</content>
<published>2019-02-18T10:49:46+02:00</published>
</entry>

<entry>
<title>If, Else</title>
<id>https://peda.net/id/ce69e384353</id>
<updated>2019-02-20T21:26:14+02:00</updated>
<link href="https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie#top" />
<content type="html">In this tutorial, you can learn how to use a photoresistor as a sensor of light. There’s two leds. The other lits when it’s light, the other when it’s dark.&lt;br/&gt;&#10;&lt;br/&gt;&#10;1. Install and wire two leds into your breadboard, as you installed on previous task. Use digital pins 11 and 13.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;2. Here’s how to install a photoresistor:&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/8#top&quot; title=&quot;8865D5E1-8DF8-43A0-9159-65814120F59C.gif&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/8:file/photo/6b6434040864717bfe83afcf9104dd9160b105d8/8865D5E1-8DF8-43A0-9159-65814120F59C.gif&quot; alt=&quot;&quot; title=&quot;8865D5E1-8DF8-43A0-9159-65814120F59C.gif&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;br/&gt;&#10;&lt;h3&gt;Building the program&lt;/h3&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_4499-jpg#top&quot; title=&quot;IMG_4499.JPG&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_4499-jpg:file/photo/16f174cff1b21ef7c6b93970c48cb87a943eb689/IMG_4499.JPG&quot; alt=&quot;&quot; title=&quot;IMG_4499.JPG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;- Above, I have made settings where digital pin 11 goes ”off” and pin 13 goes ”on” and the others are opposite. Those are inside a Control ”If Else” -block. There is a ”forewer” block waiting. Notice blocks colours. All control blocks are yellow.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_3416-jpg#top&quot; title=&quot;IMG_3416.JPG&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_3416-jpg:file/photo/c5022a0b4af66e74968c50377fdcfd7115b671d4/IMG_3416.JPG&quot; alt=&quot;&quot; title=&quot;IMG_3416.JPG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;- The program has to loop forever, because the photoresistor have to observe the amount of light all the time. So put you program inside ”Forever”&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_3230-jpg#top&quot; title=&quot;IMG_3230.JPG&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_3230-jpg:file/photo/73f6172fe4b89bf75f026502c001f1ccde83b98c/IMG_3230.JPG&quot; alt=&quot;&quot; title=&quot;IMG_3230.JPG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;- I want to make it like this: &lt;em&gt;If there is not enough light, turn pin 11 off and punt pin 13 on. Else turn on pin 11 and pin 13 off.&lt;/em&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;- The photoresistor is an analogic sensor. It gives values of the amount of light in numbers between 0-1023. The bigger number, more light.&lt;br/&gt;&#10;&lt;br/&gt;&#10;- So, I’ll use the green ”smaller than” -block. I dropped it inside ”If”. But I’ll have to find out what numbers to put in. What is the amount of light now?&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_1581-jpg#top&quot; title=&quot;IMG_1581.JPG&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_1581-jpg:file/photo/db893d5931bca87d30bbc055dd301b19a75a0395/IMG_1581.JPG&quot; alt=&quot;&quot; title=&quot;IMG_1581.JPG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;- Choose Arduino -blocks and pick ”Analog reading”. Now choose from dropdown menu the pin that you connected to Arduino. Now, click the block and you’ll see a number. Put you hand to shadow the photoresistor and click again. The numbers should change.&lt;br/&gt;&#10;- In my opinion, 90 is a good value. If the sensors value is smaller than 90, I think it’s dark. You’ll have to test your suitable value and you can change it later.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_5187-jpg3#top&quot; title=&quot;IMG_5187.JPG&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/img_5187-jpg3:file/photo/e078020519b1a2f66df49b6c8a952b22d3c7f37a/IMG_5187.JPG&quot; alt=&quot;&quot; title=&quot;IMG_5187.JPG&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;- Now drag the ”Analog reading” inside the ”smaller than” -block, and write for example 90 on the other side. This means: ”if analog reading value is smaller than 90, turn pin 11 off and 13 on. Else...&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;br/&gt;&#10;Here is a picture of components installed. Valosensori means photoresistor.&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;span class=&quot;medium&quot;&gt;&lt;a href=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/3#top&quot; title=&quot;3412B303-C95F-4D05-AB3F-CBC7F4B40E92.jpeg&quot;&gt;&lt;img src=&quot;https://peda.net/joensuu/jm/lightabot-luonnos/ecraft2learn/iel/oh/jsie/3:file/photo/0a90748490c5e163ac5eeeae3774f7c33ec6b227/3412B303-C95F-4D05-AB3F-CBC7F4B40E92.jpeg&quot; alt=&quot;&quot; title=&quot;3412B303-C95F-4D05-AB3F-CBC7F4B40E92.jpeg&quot; class=&quot;inline&quot; loading=&quot;lazy&quot;/&gt;&lt;/a&gt;&lt;/span&gt;&lt;br/&gt;&#10;&lt;br/&gt;&#10;&lt;b&gt;And, this seems to be working!&lt;/b&gt;&lt;br/&gt;&#10;&lt;div class=&quot;youtube&quot;&gt;&lt;iframe loading=&quot;lazy&quot; width=&quot;640&quot; height=&quot;360&quot; src=&quot;https://www.youtube.com/embed/QAXJV2z8Ly4?rel=0&amp;amp;modestbranding=1&amp;amp;hl=fi&quot; allowfullscreen=&quot;allowfullscreen&quot;&gt;&lt;/iframe&gt;&lt;div&gt;&lt;a href=&quot;https://youtu.be/QAXJV2z8Ly4&quot; title=&quot;https://youtu.be/QAXJV2z8Ly4&quot; target=&quot;_blank&quot; rel=&quot;nofollow ugc noopener&quot;&gt;https://youtu.be/QAXJV2z8Ly4&lt;/a&gt;&lt;/div&gt;&#10;&lt;/div&gt;&#10;</content>
<published>2019-02-20T20:46:17+02:00</published>
</entry>


</feed>