{"id":418,"date":"2022-12-22T09:13:31","date_gmt":"2022-12-22T07:13:31","guid":{"rendered":"https:\/\/www.hh3dlab.fi\/blog\/?p=418"},"modified":"2022-12-22T09:14:42","modified_gmt":"2022-12-22T07:14:42","slug":"the-electricity-price-lamp","status":"publish","type":"post","link":"https:\/\/www.hh3dlab.fi\/blog\/iot\/the-electricity-price-lamp\/","title":{"rendered":"The electricity price lamp"},"content":{"rendered":"\n<p>We could say that we are pretty much beginners in this field. One member of the group has done the blender course. In our school we have done so far some coding with java script, css, html and used some code library.<\/p>\n\n\n\n<p>In our team were Heidi, Juho, Robert, Hannes and Pekka.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Ideas<\/h1>\n\n\n\n<p>Top of the list for us was:<\/p>\n\n\n\n<p><strong>A lamp that changes colour according to current electricity price.<\/strong> Basically by looking at the light you can see if <a>it is<\/a> a good moment to turn on the dishwasher (example). <strong>Why we chose this one?<\/strong> We are currently in a global energy crisis so we thought a device like that could be useful.<\/p>\n\n\n\n<p><strong>Automatic plant watering device.<\/strong> Device that would measure the moisture of the dirt and that way they would get the information when it needs to be watered. It would also have some kind of water storage system so it would be automatic.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">What did you need to learn<\/h1>\n\n\n\n<p>We needed to learn pretty much everything. First we needed to improve some brainstorming skills and for that we used the 6-3-5 method. It was very useful because it removed the doubts that we might have about our own ideas. We learned that during the innovative process, it\u2019s important to have an open mind to new ideas and think without any constraints. After all the ideas were layed out, we took a closer look on what is actually possible to really create.<\/p>\n\n\n\n<p>Next thing to learn was the skills we needed to build the final product. For that we needed to learn how to use arduino program, learn how to code c+, how to code and process API data, learn how to build something based on the arduino manual and how to plug in esp32. &nbsp;&nbsp;<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">The building phase<\/h1>\n\n\n\n<p>Today we had our first short lab session. We installed Arduino programs to our computers and started experimenting with it. We build a small device that turned the led light one when pressing the button.<\/p>\n\n\n\n<p>Now we wanted to do something that could help us with our project. In order to get the lights work with the data we had to first find out how the <a>led<\/a> lights work without the data. We found a tutorial from the web page random nerds&#8217; tutorial and built the setup we needed. Changing the code was the more challenging part. We tried quite a few things but eventually we got it to work towards the direction we want to. It still seems that we have a long way to go but we are moving to the right direction which is the most important thing.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"750\" src=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-14.png?resize=563%2C750&#038;ssl=1\" alt=\"\" class=\"wp-image-419\" srcset=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-14.png?w=563&amp;ssl=1 563w, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-14.png?resize=225%2C300&amp;ssl=1 225w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><figcaption class=\"wp-element-caption\">The LED strip<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Here you can see our first setup. We are working on the code to get all the lights to burn in the LED string. &nbsp;So far we only manged to make one or two lights on and we are trying to create a loop.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"750\" src=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-15.png?resize=563%2C750&#038;ssl=1\" alt=\"\" class=\"wp-image-420\" srcset=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-15.png?w=563&amp;ssl=1 563w, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-15.png?resize=225%2C300&amp;ssl=1 225w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><figcaption class=\"wp-element-caption\">Success!<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Then we found out that we might have some issues with getting the data from Fingrid. We are trying to find alternative solutions. Juho and Pekka went working on the code to get it from a 3rd party.<\/p>\n\n\n\n<p>We are also trying what the rgb tones that we want actually look like in the LED light. We made a plan what rgb colours we want to use and we are building Project 8.1 Control RGB LED through Potentiometer to test them out.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"750\" src=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-16.png?resize=563%2C750&#038;ssl=1\" alt=\"\" class=\"wp-image-421\" srcset=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-16.png?w=563&amp;ssl=1 563w, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-16.png?resize=225%2C300&amp;ssl=1 225w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><figcaption class=\"wp-element-caption\">1st try of color mapping<\/figcaption><\/figure>\n<\/div>\n\n\n<p>The color palette ended up not working, \u2018cuz we didn\u2019t realize that the rgb values above don\u2019t look the same in LED lights. So, we had to do some testing with the LED stripe to find proper colors that we were happy with.<\/p>\n\n\n\n<p>We found a code that we could use to test out the wanted LED rgb values. It turned out that the \u201cplan\u201d we made what would be the right colour was not very good because they looked so differend in the LED string. So we defined the rgb values straight in to the code a tired what they would look like in the LED. We found 6 (note originally we had planned 10 shades) good shades that we want to use. We also defined what would be the electricity price range \u2013 what is expencive &amp; what is cheap. We now we have six colors we want to use in the final project.<\/p>\n\n\n\n<p>Juho was designing the box for the light with blender and spent many hours on it but eventually we decided to just use a box that was ready so Juho did all that work for nothing.<\/p>\n\n\n\n<p>We had originally send an email requesting the data about the prices of electricity to entso.e but it turned out to be too complicated. Instead of that Pekka found from l\u00e4mp\u00f6pumput.fi&nbsp; (heat pump.fi) forum a simplified version of it. He also got it to work!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"750\" src=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-17.png?resize=563%2C750&#038;ssl=1\" alt=\"\" class=\"wp-image-422\" srcset=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-17.png?w=563&amp;ssl=1 563w, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-17.png?resize=225%2C300&amp;ssl=1 225w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><figcaption class=\"wp-element-caption\">Code for color by price<\/figcaption><\/figure>\n<\/div>\n\n\n<p>Juho and Pekka were able to connect the electricity price code with the screen, yay!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"435\" height=\"580\" src=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-18.png?resize=435%2C580&#038;ssl=1\" alt=\"\" class=\"wp-image-423\" srcset=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-18.png?w=435&amp;ssl=1 435w, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-18.png?resize=225%2C300&amp;ssl=1 225w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><figcaption class=\"wp-element-caption\">Spot price off the Web<\/figcaption><\/figure>\n<\/div>\n\n\n<p>We finished the code and got the LED to connect with the electricity price. Everything is basically ready, we just want to do some fine tuning for the box to make it more pretty to look at.<\/p>\n\n\n\n<p>The prices of the day can be found from the code library and they are ranked to 24 slots from the cheapest (1) to the most expensive (24). Pekka then divided them in the code in six, so that the colors are flexible with the prices not based on values set by us but rather by the scale in which the price operates during each day.<\/p>\n\n\n\n<p>Since we now have a lot of empty time in our hands Juho is thinking should he 3D print the box or are we going to keep on using the one we already have.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"750\" src=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-19.png?resize=563%2C750&#038;ssl=1\" alt=\"\" class=\"wp-image-424\" srcset=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-19.png?w=563&amp;ssl=1 563w, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-19.png?resize=225%2C300&amp;ssl=1 225w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><figcaption class=\"wp-element-caption\">Building the final device<\/figcaption><\/figure>\n<\/div>\n\n\n<p>And there is is ! Works just the way we hoped and the look is also very similiar to what we had planned. Very happy with the end result !!!!<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"750\" src=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-20.png?resize=563%2C750&#038;ssl=1\" alt=\"\" class=\"wp-image-425\" srcset=\"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-20.png?w=563&amp;ssl=1 563w, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-20.png?resize=225%2C300&amp;ssl=1 225w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><figcaption class=\"wp-element-caption\">The complete device running<\/figcaption><\/figure>\n<\/div>\n\n\n<h1 class=\"wp-block-heading\">The outcome<\/h1>\n\n\n\n<p><em>What did you learn?<\/em><\/p>\n\n\n\n<p>Well&#8230; we learned pretty much everything. At the beginning we learned of a few different techniques for innovating. We learned more on electronics. We learned how to find information and adapt it while learning new.<\/p>\n\n\n\n<p><em>Did this course make you more interested in tinkering, or was this a one-off thing for you?<\/em><\/p>\n\n\n\n<p>We felt that it was rewarding to build a project from our own idea and to see the concrete results of our own handicraft. This course had a more hands-on approach to learning than most other courses that are based more on theory.<\/p>\n\n\n\n<p><em>What further ideas did you get for making in the future?<\/em><\/p>\n\n\n\n<p>Well, we got a glimpse of the IoT world and might take up on any upcoming courses in this area of it.<\/p>\n\n\n\n<p>Also we believe this gave us a lot of confidence for further projects. In the beginning we knew basically nothing, but we still managed to make everything work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We could say that we are pretty much beginners in this field. One member of the group has done the blender course. In our school we have done so far some coding with java script, css, html and used some code library. In our team were Heidi, Juho, Robert, Hannes and Pekka. Ideas Top of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":425,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,39,20,15,33,40],"tags":[],"class_list":["post-418","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-3d-printing","category-blog","category-esp32","category-iot","category-lcd-display","category-personal-experience"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-20.png?fit=563%2C750&ssl=1","jetpack-related-posts":[{"id":411,"url":"https:\/\/www.hh3dlab.fi\/blog\/esp32\/project-dementia-safety-for-elder-people\/","url_meta":{"origin":418,"position":0},"title":"Project Dementia &#8211; safety for elder people","author":"Heikki Hietala, lab admin","date":"22.12.2022","format":false,"excerpt":"We are a group of five people from Haaga-Helia, Finland, studying degree programme in business information technology. Our goal is to learn new while having fun! So far we are working on a device that helps in everyday safety matters in home, such as reminding to close the front door,\u2026","rel":"","context":"In &quot;blog&quot;","block_context":{"text":"blog","link":"https:\/\/www.hh3dlab.fi\/blog\/category\/blog\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2022\/12\/image-11.png?fit=436%2C581&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":524,"url":"https:\/\/www.hh3dlab.fi\/blog\/3d-robo-lab\/524\/","url_meta":{"origin":418,"position":1},"title":"Person counter for the 3D + Robo Lab","author":"Heikki Hietala, lab admin","date":"16.4.2024","format":false,"excerpt":"Introduction Hello! Our team consists of four students who worked together on a project for our 3D and Robotics course at Haaga-Helia. Although the four of us come from different backgrounds, we managed to combine our strengths to work together to get this project done. In our team we have\u2026","rel":"","context":"In &quot;3D&quot;","block_context":{"text":"3D","link":"https:\/\/www.hh3dlab.fi\/blog\/category\/3d\/"},"img":{"alt_text":"First test device","src":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2024\/04\/upload1-225x300.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":458,"url":"https:\/\/www.hh3dlab.fi\/blog\/sierre-2023\/it-seminar-sierre-2023-team-4\/","url_meta":{"origin":418,"position":2},"title":"IT Seminar Sierre 2023, Team 4","author":"Heikki Hietala, lab admin","date":"1.6.2023","format":false,"excerpt":"Beautiful Sierre 15th International IT Seminar in Sierre Blog Hi! We are Team 4, part of the Sierre Seminar 2023. Our group is made of two second year students from Haaga-Helia, Helsinki, Finland, studying degree program in business information technology.We could say that we are beginners in this field. Arduino\u2026","rel":"","context":"In &quot;Sierre 2023&quot;","block_context":{"text":"Sierre 2023","link":"https:\/\/www.hh3dlab.fi\/blog\/category\/sierre-2023\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2023\/06\/image-13.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2023\/06\/image-13.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2023\/06\/image-13.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2023\/06\/image-13.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":614,"url":"https:\/\/www.hh3dlab.fi\/blog\/3d-robo-lab\/614\/","url_meta":{"origin":418,"position":3},"title":"Game based Candy Dispenser","author":"Heikki Hietala, lab admin","date":"16.3.2026","format":false,"excerpt":"3D + Robotics DIG007AS3AE-3004 \u2013 Blog \u2013 Candy Dispenser Group: Katja Koskela, Mia K\u00e4rtner, Inari H\u00e4rm\u00e4l\u00e4 Introduction We are all specializing in digital services and have prior experience with the course topics. This experience has been gained either through other courses such as 3D printing and IoT courses or through\u2026","rel":"","context":"In &quot;3D + Robo Lab&quot;","block_context":{"text":"3D + Robo Lab","link":"https:\/\/www.hh3dlab.fi\/blog\/category\/3d-robo-lab\/"},"img":{"alt_text":"A screenshot of a computer screen AI-generated content may be incorrect.","src":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/a-screenshot-of-a-computer-screen-ai-generated-co.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/a-screenshot-of-a-computer-screen-ai-generated-co.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/a-screenshot-of-a-computer-screen-ai-generated-co.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/a-screenshot-of-a-computer-screen-ai-generated-co.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":658,"url":"https:\/\/www.hh3dlab.fi\/blog\/3d-robo-lab\/the-weatherslayeaer-project\/","url_meta":{"origin":418,"position":4},"title":"The Weatherslayeaer project","author":"Heikki Hietala, lab admin","date":"25.3.2026","format":false,"excerpt":"Introduction We are a team of three second\u2011year students from different areas of digital and technical studies, each bringing our own strengths into this 3D and Robotics course. Hey there! I\u2019m Saana, and I\u2019m currently in my second year of studying digital services. When I started the IoT course, I\u2026","rel":"","context":"In &quot;3D&quot;","block_context":{"text":"3D","link":"https:\/\/www.hh3dlab.fi\/blog\/category\/3d\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/word-image-658-6.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/word-image-658-6.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/word-image-658-6.jpeg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2026\/03\/word-image-658-6.jpeg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":575,"url":"https:\/\/www.hh3dlab.fi\/blog\/iot\/sip-n-sense-intelligence-mug-project\/","url_meta":{"origin":418,"position":5},"title":"Sip &#8216;n&#8217; Sense &#8211; Intelligent mug project","author":"Lab Student","date":"28.10.2025","format":false,"excerpt":"Introduction When we first began our studies at Haaga-Helia University of Applied Sciences, we were immediately intrigued by the world of IoT. Our journey started with the very first course, Internet of Things: A Business Perspective, where we explored different approaches to creating IoT solutions. From the beginning, our main\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.hh3dlab.fi\/blog\/category\/arduino\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2025\/10\/IMG_1753-300x169.jpeg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2025\/10\/IMG_1753-300x169.jpeg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.hh3dlab.fi\/blog\/wp-content\/uploads\/2025\/10\/IMG_1753-300x169.jpeg?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/posts\/418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/comments?post=418"}],"version-history":[{"count":2,"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/posts\/418\/revisions"}],"predecessor-version":[{"id":428,"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/posts\/418\/revisions\/428"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/media\/425"}],"wp:attachment":[{"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/media?parent=418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/categories?post=418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hh3dlab.fi\/blog\/wp-json\/wp\/v2\/tags?post=418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}