JulyOT Student Ambassador Projects

Published Aug 05 2021 12:18 AM 1,453 Views
Microsoft

JimBennett_0-1625264767368.png

 

 

Every July we celebrate JulyOT here at Microsoft – a whole month where those of us who like IoT and bad puns create and share IoT projects with the world. We also love it when our communities share the projects they have built to celebrate JulyOT with us.

 

In this post I want to highlight a few projects that our Microsoft Learn Student Ambassadors have worked on and shared with us in their own words.

 

Majd Safi - Sustainable electricity and monitored consumption :light_bulb:

 

JimBennett_0-1627601785633.jpeg

 

Majd’s Student Ambassador Profile | Connect with Majd on LinkedIn

 

Sustainable energy does not only consist of increasing the production of energy but also decreasing waste and minimizing consumption. For example, Lebanon is a country that does not have the capability to produce more energy because of the state of its economy and thus, blackouts happen on a daily basis. Monitoring power consumption of every plug in a household will lead to a better understanding of the usage of electricity. Furthermore collecting consumption data will help us detect which appliance brands are the most efficient, detect unexpected power consumption, analyze how many people live in a household and know which appliances we should expect in every house, restaurant, factory etc. Finally, we can reduce the waste of energy by automating the use of appliances, such as the deactivation time of a street light in the morning.

 

JimBennett_1-1627601785633.jpeg

 

You can see more on the projects GitHub page.

 

Ricardo Zamudio – Growing cherry tomatoes with IoT :tomato:

 

JimBennett_2-1627601785633.png

 

Ricardo’s Student Ambassador Profile | Connect with Ricardo on LinkedIn

 

At the beginning of this year, I decided to grow some cherry tomato plants to understand a little more about one of the most important industries that is the industry of food obtained through agriculture. As the weeks passed, the plants began to grow and when I least expected it, they were already huge, and the tomatoes fruits were already starting to grow.

 

I am enthusiastic about the concept of IoT mainly because I believe that if it is used in the right way it can bring incredible benefits to the proper industries. Crop food production is one of those industries, so I decided to prototype a monitoring station to supervise the conditions of my tomato plants and explore on a smaller scale what an IoT solution for agriculture would look like.

 

The home garden is a couple dozens of meters away from my wi-fi router, in addition to the fact that there is no electrical outlet nearby, so I built the following solution based on two devices:

 

1.- Sensor node

The sensor node is developed around the ATmega4809 microcontroller within the Arduino framework, the firmware was developed to collect data from different sensors and send the records obtained through radio frequency across a transceiver module with LoRa protocol. Additionally, to feed with power the node a solar panel with a lithium battery and a voltage regulator was added to ensure its 24/7 function.

 

Measured variables:

  • Air Temperature
  • Air Relative Humidity
  • Atmospheric pressure
  • Lux
  • Soil Temperature
  • Soil Moisture

 

JimBennett_3-1627601785633.jpeg

 

JimBennett_4-1627601785633.jpeg

 

JimBennett_5-1627601785634.jpeg

 

2.- Gateway

 

Consists of the ESP32-DevKitC board and a LoRa Module.

Takes advantage of the dual core of the ESP32. One core is dedicated to receiving the data through the LoRa module and the second to send the received data to the Azure IoT Central App.

 

Device tasks:

  • Data reception through RF LoRa module
  • Data transmission via ESP32 Wi-Fi microcontroller connected to the network. The software was developed using the Azure IoT Hub library for Arduino.

 

JimBennett_6-1627601785634.jpeg

 

User graphical interface for data display and analysis

 

With the two devices ready, what follows is to develop an interface to display all the data collected by the sensor node and received by the gateway through LoRa. For that I opted for Azure IoT central, since once you configure your device template and connect your device it allows you to create amazing dashboards for the display and analysis of the data from your IoT devices.

 

Results:

 

JimBennett_7-1627601785634.jpeg

 

You can find more of Ricardo’s projects on his GitHub.

 

Marko Paloski - Program your TV remote 

 

JimBennett_10-1627601785634.jpeg

 

Marko’s Student Ambassador Profile | Connect with Marko on LinkedIn

 

You can program “any” TV remote so you can use it on your computer with Arduino Pro Micro, Infrared Receiver, and little knowledge of C++. The whole reason after this project is for the need if you are watching movies and laying on your bed, to do not use any wireless mouse or similar things, but to use it the remote TV controller. It is very good product in the end, in correlation with the time used to make it. 

 

Github code: https://github.com/magicalturtle420/tv-remote 

 

The hardware that is needed: 

 

JimBennett_11-1627601785634.jpeg

 

 

 

JimBennett_12-1627601785634.png

 

 

  • TV Remote (tip: Better to have some remote from some TV, not universal TV remote because you will need to search the internet for libraries or decoding codes schemes) 

JimBennett_13-1627601785634.jpeg

 

 

The software that is needed: 

 

 

Arduino Pro Micro it has different chipset than the Arduino Uno, which is more made for small micro USB things, like controllers, mouses, keyboards etc. And in our case, more like micro-USB IR receiver for the TV remote. 

 

For me the most complicated and important part was the function IREventHandler from line 176 to 244. This function is recognizing and decoding the signals from the TV remote with big help from IRremote.h library. And after that it puts them in variables. Because every signal is composed with protocol, address and command. In my case the protocol is Samsung, Address 0xE0E and command 0xA2.  

 

From line 57 to 169 is the most interesting part where we point which button on the remote will do which command on the computer. The codes which are hexadecimal numbers (ex. 0x000000A20E0E0010), we get by using the Serial Monitor in the Arduino IDE, and by pressing the buttons on the Monitor will show the code for the pressed button. 

 

JimBennett_14-1627601785634.png

 

 

And after we know which button has which code, we then program what we want to happen when that code is shown. 

 

For example, line 70 is Play and Pause, or line 73 will start your default browser with your home page. There are a lot of things possible to do thanks to the HID-Project.h . Also, we can complicate things to be more advanced, like line 91 to 97 will do the following when I press button 1 on the remote: open new tab on Firefox/Chrome browser and open www.youtube.com. It is possible to combine more commands for single button. 

 

There are two help prints on the Monitor for button down and button up (when the button is pressed and when it is released), this is useful because some commands need to be directly programmed to update the command if the button is pressed more time, for example if you hold the volume up button it needs to know that after some time the command needs to be executed again (in my case it is 250 milliseconds), but for buttons like mute it needs only once to be executed no matter how much time you hold the button pressed.  

 

Pictures: 

 

JimBennett_15-1627601785634.jpeg

 

 

JimBennett_16-1627601785634.jpeg

 

Microsoft Learn Student Ambassadors

 

If you’ve not come across our Microsoft Learn Student Ambassadors program before, it’s a program for students who are leaders in their own tech communities, supporting other students in building their tech skills. You can learn more at studentambassadors.microsoft.com.

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2595685%22%20slang%3D%22en-US%22%3EJulyOT%20Student%20Ambassador%20Projects%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2595685%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22JimBennett_0-1625264767368.png%22%20style%3D%22width%3A%20372px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299382i040FB8F0C942DBC6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22JimBennett_0-1625264767368.png%22%20alt%3D%22JimBennett_0-1625264767368.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEvery%20July%20we%20celebrate%20JulyOT%20here%20at%20Microsoft%20%E2%80%93%20a%20whole%20month%20where%20those%20of%20us%20who%20like%20IoT%20and%20bad%20puns%20create%20and%20share%20IoT%20projects%20with%20the%20world.%20We%20also%20love%20it%20when%20our%20communities%20share%20the%20projects%20they%20have%20built%20to%20celebrate%20JulyOT%20with%20us.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20this%20post%20I%20want%20to%20highlight%20a%20few%20projects%20that%20our%20%3CA%20href%3D%22https%3A%2F%2Fstudentambassadors.microsoft.com%2F%3FWT.mc_id%3Dacademic-35405-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EMicrosoft%20Learn%20Student%20Ambassadors%3C%2FSPAN%3E%3C%2FA%3E%20have%20worked%20on%20and%20shared%20with%20us%20in%20their%20own%20words.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--384796141%22%20id%3D%22toc-hId--384796141%22%3EMajd%20Safi%20-%20Sustainable%20electricity%20and%20monitored%20consumption%20%3Alight_bulb%3A%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_0-1627601785633.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299363iB8310C570A1B3606%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_0-1627601785633.jpeg%22%20alt%3D%22JimBennett_0-1627601785633.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstudentambassadors.microsoft.com%2Fprofile%2F106415%3FWT.mc_id%3Dacademic-35405-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EMajd%E2%80%99s%20Student%20Ambassador%20Profile%3C%2FSPAN%3E%3C%2FA%3E%20%7C%20%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmajd-s%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%3EConnect%20with%20Majd%20on%20LinkedIn%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESustainable%20energy%20does%20not%20only%20consist%20of%20increasing%20the%20production%20of%20energy%20but%20also%20decreasing%20waste%20and%20minimizing%20consumption.%20For%20example%2C%20Lebanon%20is%20a%20country%20that%20does%20not%20have%20the%20capability%20to%20produce%20more%20energy%20because%20of%20the%20state%20of%20its%20economy%20and%20thus%2C%20blackouts%20happen%20on%20a%20daily%20basis.%20Monitoring%20power%20consumption%20of%20every%20plug%20in%20a%20household%20will%20lead%20to%20a%20better%20understanding%20of%20the%20usage%20of%20electricity.%20Furthermore%20collecting%20consumption%20data%20will%20help%20us%20detect%20which%20appliance%20brands%20are%20the%20most%20efficient%2C%20detect%20unexpected%20power%20consumption%2C%20analyze%20how%20many%20people%20live%20in%20a%20household%20and%20know%20which%20appliances%20we%20should%20expect%20in%20every%20house%2C%20restaurant%2C%20factory%20etc.%20Finally%2C%20we%20can%20reduce%20the%20waste%20of%20energy%20by%20automating%20the%20use%20of%20appliances%2C%20such%20as%20the%20deactivation%20time%20of%20a%20street%20light%20in%20the%20morning.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_1-1627601785633.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299365i806BF4A5F9CA73FB%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_1-1627601785633.jpeg%22%20alt%3D%22JimBennett_1-1627601785633.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20see%20more%20on%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMajd223%2FElectricity-Consumption-Monitor%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Eprojects%20GitHub%20page%3C%2FSPAN%3E%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2102716692%22%20id%3D%22toc-hId-2102716692%22%3ERicardo%20Zamudio%20%E2%80%93%20Growing%20cherry%20tomatoes%20with%20IoT%20%3Atomato%3A%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_2-1627601785633.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299364i2C35B3C793CFC7D4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_2-1627601785633.png%22%20alt%3D%22JimBennett_2-1627601785633.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstudentambassadors.microsoft.com%2Fprofile%2F4377%3FWT.mc_id%3Dacademic-35405-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3ERicardo%E2%80%99s%20Student%20Ambassador%20Profile%3C%2FSPAN%3E%3C%2FA%3E%20%7C%20%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fricardo-zamudio-carbajal%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%3EConnect%20with%20Ricardo%20on%20LinkedIn%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAt%20the%20beginning%20of%20this%20year%2C%20I%20decided%20to%20grow%20some%20cherry%20tomato%20plants%20to%20understand%20a%20little%20more%20about%20one%20of%20the%20most%20important%20industries%20that%20is%20the%20industry%20of%20food%20obtained%20through%20agriculture.%20As%20the%20weeks%20passed%2C%20the%20plants%20began%20to%20grow%20and%20when%20I%20least%20expected%20it%2C%20they%20were%20already%20huge%2C%20and%20the%20tomatoes%20fruits%20were%20already%20starting%20to%20grow.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20am%20enthusiastic%20about%20the%20concept%20of%20IoT%20mainly%20because%20I%20believe%20that%20if%20it%20is%20used%20in%20the%20right%20way%20it%20can%20bring%20incredible%20benefits%20to%20the%20proper%20industries.%20Crop%20food%20production%20is%20one%20of%20those%20industries%2C%20so%20I%20decided%20to%20prototype%20a%20monitoring%20station%20to%20supervise%20the%20conditions%20of%20my%20tomato%20plants%20and%20explore%20on%20a%20smaller%20scale%20what%20an%20IoT%20solution%20for%20agriculture%20would%20look%20like.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20home%20garden%20is%20a%20couple%20dozens%20of%20meters%20away%20from%20my%20wi-fi%20router%2C%20in%20addition%20to%20the%20fact%20that%20there%20is%20no%20electrical%20outlet%20nearby%2C%20so%20I%20built%20the%20following%20solution%20based%20on%20two%20devices%3A%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E1.-%20Sensor%20node%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20sensor%20node%20is%20developed%20around%20the%20ATmega4809%20microcontroller%20within%20the%20Arduino%20framework%2C%20the%20firmware%20was%20developed%20to%20collect%20data%20from%20different%20sensors%20and%20send%20the%20records%20obtained%20through%20radio%20frequency%20across%20a%20transceiver%20module%20with%20LoRa%20protocol.%20Additionally%2C%20to%20feed%20with%20power%20the%20node%20a%20solar%20panel%20with%20a%20lithium%20battery%20and%20a%20voltage%20regulator%20was%20added%20to%20ensure%20its%2024%2F7%20function.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CEM%3EMeasured%20variables%3A%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EAir%20Temperature%3C%2FLI%3E%0A%3CLI%3EAir%20Relative%20Humidity%3C%2FLI%3E%0A%3CLI%3EAtmospheric%20pressure%3C%2FLI%3E%0A%3CLI%3ELux%3C%2FLI%3E%0A%3CLI%3ESoil%20Temperature%3C%2FLI%3E%0A%3CLI%3ESoil%20Moisture%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_3-1627601785633.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299366iB79EE3665990DE0C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_3-1627601785633.jpeg%22%20alt%3D%22JimBennett_3-1627601785633.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_4-1627601785633.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299368i811C6CDF1C22C7CA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_4-1627601785633.jpeg%22%20alt%3D%22JimBennett_4-1627601785633.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_5-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299367i69C08965735C98EF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_5-1627601785634.jpeg%22%20alt%3D%22JimBennett_5-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E2.-%20Gateway%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EConsists%20of%20the%20ESP32-DevKitC%20board%20and%20a%20LoRa%20Module.%3C%2FP%3E%0A%3CP%3ETakes%20advantage%20of%20the%20dual%20core%20of%20the%20ESP32.%20One%20core%20is%20dedicated%20to%20receiving%20the%20data%20through%20the%20LoRa%20module%20and%20the%20second%20to%20send%20the%20received%20data%20to%20the%20Azure%20IoT%20Central%20App.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDevice%20tasks%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EData%20reception%20through%20RF%20LoRa%20module%3C%2FLI%3E%0A%3CLI%3EData%20transmission%20via%20ESP32%20Wi-Fi%20microcontroller%20connected%20to%20the%20network.%20%3CEM%3EThe%20software%20was%20developed%20using%20the%20Azure%20IoT%20Hub%20library%20for%20Arduino.%3C%2FEM%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_6-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299369i3FAB107B8A0CEB80%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_6-1627601785634.jpeg%22%20alt%3D%22JimBennett_6-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EUser%20graphical%20interface%20for%20data%20display%20and%20analysis%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EWith%20the%20two%20devices%20ready%2C%20what%20follows%20is%20to%20develop%20an%20interface%20to%20display%20all%20the%20data%20collected%20by%20the%20sensor%20node%20and%20received%20by%20the%20gateway%20through%20LoRa.%20For%20that%20I%20opted%20for%20Azure%20IoT%20central%2C%20since%20once%20you%20configure%20your%20device%20template%20and%20connect%20your%20device%20it%20allows%20you%20to%20create%20amazing%20dashboards%20for%20the%20display%20and%20analysis%20of%20the%20data%20from%20your%20IoT%20devices.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EResults%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_7-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299370i7C3357495AF6120A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_7-1627601785634.jpeg%22%20alt%3D%22JimBennett_7-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20find%20more%20of%20Ricardo%E2%80%99s%20projects%20on%20his%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FJustZeus%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EGitHub%3C%2FSPAN%3E%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-295262229%22%20id%3D%22toc-hId-295262229%22%3EMarko%20Paloski%20-%20Program%20your%20TV%20remote%26nbsp%3B%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_10-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299372iC0E0E0B2D74320C7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_10-1627601785634.jpeg%22%20alt%3D%22JimBennett_10-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fstudentambassadors.microsoft.com%2Fprofile%2F628%3FWT.mc_id%3Dacademic-35405-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EMarko%E2%80%99s%20Student%20Ambassador%20Profile%3C%2FSPAN%3E%3C%2FA%3E%20%7C%20%3CA%20href%3D%22https%3A%2F%2Fwww.linkedin.com%2Fin%2Fmpaloski%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSPAN%3EConnect%20with%20Marko%20on%20LinkedIn%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20program%20%E2%80%9Cany%E2%80%9D%20TV%20remote%20so%20you%20can%20use%20it%20on%20your%20computer%20with%20Arduino%20Pro%20Micro%2C%26nbsp%3BInfrared%26nbsp%3BReceiver%2C%26nbsp%3Band%20little%20knowledge%20of%20C%2B%2B.%20The%20whole%20reason%20after%20this%20project%20is%20for%20the%20need%20if%20you%20are%20watching%20movies%20and%20laying%20on%20your%20bed%2C%20to%20do%20not%20use%20any%20wireless%20mouse%20or%20similar%20things%2C%20but%20to%20use%20it%20the%20remote%20TV%20controller.%20It%20is%20very%20good%20product%20in%20the%20end%2C%20in%20correlation%20with%20the%20time%20used%20to%20make%20it.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EGithub%26nbsp%3Bcode%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmagicalturtle420%2Ftv-remote%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fmagicalturtle420%2Ftv-remote%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20hardware%26nbsp%3Bthat%20is%26nbsp%3Bneeded%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EArduino%20Pro%20Micro%20(%3CA%20href%3D%22https%3A%2F%2Fdeskthority.net%2Fwiki%2FArduino_Pro_Micro%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EArduino%20Leonardo%20Micro%3C%2FA%3E)%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_11-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299374iDC842F916D4D5A76%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_11-1627601785634.jpeg%22%20alt%3D%22JimBennett_11-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EInfrared%20Receiver%20(%3CA%20href%3D%22http%3A%2F%2Fwww.loging.mk%2Fen%2F1607%2F189417%2F0%2FShowProduct%2FIR_Receiver%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ETSOP31238%3C%2FA%3E)%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_12-1627601785634.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299377i8BE9D98C7D905B6A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_12-1627601785634.png%22%20alt%3D%22JimBennett_12-1627601785634.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ETV%20Remote%26nbsp%3B(tip%3A%20Better%20to%20have%20some%20remote%20from%20some%20TV%2C%20not%20universal%20TV%20remote%20because%20you%20will%20need%20to%20search%20the%20internet%20for%20libraries%20or%20decoding%20codes%20schemes)%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_13-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299378i024A4F9153CC8AF7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_13-1627601785634.jpeg%22%20alt%3D%22JimBennett_13-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20software%20that%20is%20needed%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.arduino.cc%2Fen%2Fsoftware%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EArduino%20IDE%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EIRremote.h%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.arduino.cc%2Freference%2Fen%2Flibraries%2Firremote%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Elibrary%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EHID-Project.h%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.arduino.cc%2Freference%2Fen%2Flibraries%2Fhid-project%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Elibrary%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EArduino%20Pro%20Micro%20it%20has%20different%20chipset%20than%20the%20Arduino%20Uno%2C%20which%20is%20more%20made%20for%20small%26nbsp%3Bmicro%20USB%26nbsp%3Bthings%2C%20like%20controllers%2C%20mouses%2C%20keyboards%20etc.%20And%20in%20our%20case%2C%20more%20like%20micro-USB%20IR%20receiver%20for%20the%20TV%20remote.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20me%20the%20most%20complicated%20and%20important%20part%20was%20the%20function%26nbsp%3BIREventHandler%26nbsp%3Bfrom%20line%20176%20to%20244.%20This%20function%20is%20recognizing%20and%20decoding%20the%20signals%20from%20the%20TV%20remote%20with%20big%20help%20from%26nbsp%3BIRremote.h%26nbsp%3Blibrary.%20And%20after%20that%20it%20puts%20them%20in%20variables.%20Because%20every%20signal%20is%20composed%20with%20protocol%2C%20address%20and%20command.%20In%20my%20case%20the%20protocol%20is%20Samsung%2C%20Address%26nbsp%3B0xE0E%26nbsp%3Band%20command%26nbsp%3B0xA2.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFrom%20line%2057%20to%20169%20is%20the%20most%20interesting%20part%20where%20we%20point%20which%20button%20on%20the%20remote%20will%20do%20which%20command%20on%20the%20computer.%20The%20codes%20which%20are%26nbsp%3Bhexadecimal%20numbers%20(ex.%26nbsp%3B0x000000A20E0E0010)%2C%20we%20get%20by%20using%20the%20Serial%20Monitor%20in%20the%20Arduino%20IDE%2C%20and%20by%20pressing%20the%20buttons%20on%20the%20Monitor%20will%20show%20the%20code%20for%20the%20pressed%20button.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_14-1627601785634.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299376i643947B606EBBBF4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_14-1627601785634.png%22%20alt%3D%22JimBennett_14-1627601785634.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20after%20we%20know%20which%20button%20has%20which%20code%2C%20we%20then%20program%20what%20we%20want%20to%20happen%20when%20that%20code%20is%20shown.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%2C%20line%2070%20is%26nbsp%3BPlay%20and%20Pause%2C%20or%20line%2073%20will%20start%20your%20default%20browser%20with%20your%20home%20page.%20There%20are%20a%20lot%20of%20things%20possible%20to%20do%20thanks%20to%20the%26nbsp%3BHID-Project.h%26nbsp%3B.%20Also%2C%20we%20can%20complicate%20things%20to%20be%20more%20advanced%2C%20like%20line%2091%20to%2097%20will%20do%20the%20following%20when%20I%20press%20button%201%20on%20the%20remote%3A%20open%20new%20tab%20on%20Firefox%2FChrome%20browser%20and%20open%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fwww.youtube.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ewww.youtube.com%3C%2FA%3E.%20It%20is%20possible%20to%20combine%20more%20commands%20for%20single%20button.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20two%20help%20prints%20on%20the%20Monitor%20for%20button%20down%20and%20button%20up%20(when%20the%20button%20is%20pressed%20and%20when%20it%20is%20released)%2C%20this%20is%20useful%20because%20some%20commands%20need%20to%20be%20directly%20programmed%20to%20update%20the%20command%20if%20the%20button%20is%20pressed%20more%20time%2C%20for%20example%20if%20you%20hold%20the%20volume%20up%20button%20it%20needs%20to%20know%20that%20after%20some%20time%20the%20command%20needs%20to%20be%20executed%20again%20(in%20my%20case%20it%20is%20250%20milliseconds)%2C%20but%20for%20buttons%20like%20mute%20it%20needs%20only%20once%20to%20be%20executed%20no%20matter%20how%20much%20time%20you%20hold%20the%20button%20pressed.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPictures%3A%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_15-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299380iBFF1537B3526CB7F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_15-1627601785634.jpeg%22%20alt%3D%22JimBennett_15-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22JimBennett_16-1627601785634.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F299381iCE8FE3DAB3B4BC87%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22JimBennett_16-1627601785634.jpeg%22%20alt%3D%22JimBennett_16-1627601785634.jpeg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1512192234%22%20id%3D%22toc-hId--1512192234%22%3EMicrosoft%20Learn%20Student%20Ambassadors%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20you%E2%80%99ve%20not%20come%20across%20our%20%3CA%20href%3D%22https%3A%2F%2Fstudentambassadors.microsoft.com%2F%3FWT.mc_id%3Dacademic-35405-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3EMicrosoft%20Learn%20Student%20Ambassadors%3C%2FSPAN%3E%3C%2FA%3E%20program%20before%2C%20it%E2%80%99s%20a%20program%20for%20students%20who%20are%20leaders%20in%20their%20own%20tech%20communities%2C%20supporting%20other%20students%20in%20building%20their%20tech%20skills.%20You%20can%20learn%20more%20at%20%3CA%20href%3D%22https%3A%2F%2Fstudentambassadors.microsoft.com%2F%3FWT.mc_id%3Dacademic-35405-jabenn%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSPAN%3Estudentambassadors.microsoft.com%3C%2FSPAN%3E%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2595685%22%20slang%3D%22en-US%22%3E%3CP%3EEvery%20July%20we%20celebrate%20JulyOT%20here%20at%20Microsoft%20%E2%80%93%20a%20whole%20month%20where%20those%20of%20us%20who%20like%20IoT%20and%20bad%20puns%20create%20and%20share%20IoT%20projects%20with%20the%20world.%20We%20also%20love%20it%20when%20our%20communities%20share%20the%20projects%20they%20have%20built%20to%20celebrate%20JulyOT%20with%20us.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Jul 29 2021 04:39 PM
Updated by: