Skip to main content

Observing Weather changes through RaspberryPi Sense Hat.




I am working on a project that will help gardeners take care of their plants .For the project , I 

have used Raspberry Pi Sense hat, which can detect different weather conditions .





To observe the weather conditions , I have programmed it to detect the outdoor humidity 

and temperature changes .During a period of two weeks , I have recorded different weather 

observations , which are as follows:


1- When the temperature was 28C and the humidity was 43% the Raspberry Pi Sense Hat 

displayed a yellow colour on its screen which means “Sunny”, because it was true for the 

condition when humidity is less than 50% and temperature is greater than 20C .








2-When the temperature was 18C and the humidity was 77% the Raspberry Pi Sense Hat 

displayed a green colour on its screen which means “Nice”, because it was true for the 

condition when humidity is greater than 50% and temperature is less than 20C .







3-When the temperature was 15C and the humidity was 100% the Raspberry Pi Sense Hat 

displayed a indigo colour on its screen which means “Rainy”, because it was true for the 

condition when humidity is greater than 90% and temperature is less than 20C.







 

 if sense.humidity > 80 and sense.temp > 20:
       sense.set_pixels(rainbow) 
   

     elif sense.humidity > 90 and sense.temp > 10 :
        sense.set_pixels(rainy)
   
    elif sense.humidity < 50 and sense.temp > 20 :
       sense.set_pixels(sunny)
   
    elif sense.humidity > 50 and sense.temp  < 20 :
       sense.set_pixels(nice)

Comments

Popular posts from this blog

Facts About Thames Barrier

                                    The Thames Barrier which was built in 1984, protects Central London from tidal surges in the North Sea.                                                         It protects 125 sq km or 48 sqm of Central London. The Thames barrier was built, because of the Thames flood in 1928. The Thames river flooding destroyed lots of properties and 14 people lost their lives in the flood. So, the Environmental Agency came up with the idea of the Thames Barrier and its construction started in 1974. It is predicted that even with heavy rainfall and rising tides due to climate change it will still be able to protect London from flooding until 2070. There are three positions of the Thames Barrier to let the river water flow in a controlled amount.                                         1- The "Underspill position", of the barrier allows a controlled amount of water to go under the barrier, this position is used when tides get too

Lunar Eclipse 2018 - Fun Facts

On 27  July 2018, there will be a longest total lunar eclipse ,  during which  the moon appear a lot bigger and also red.And the eclipse can be seen for the whole one hour.                                                 So ,what causes  the moon to turn red?.This question baffled scientists for many years , but with new technology, it has been discovered that the moon turns red , when the earth blocks the light coming from the sun to the moon , it casts two shadows called the penumbra and umbra shadow .                                                                                                                                   The penumbra gives of a blue light that deflects the red colour to the umbra which is the darkest shadow , since no light gets to moon , the deflected red colour cast a red colour on the moon. If the moon keeps on going round and round the earth then we should get a lunar eclipse every month.Instead , we get a lunar eclipse once every year.Why

Coolest Project UK 2018 - My Experience

This Saturday on the 28th of April 2018, I went to Coolest Projects UK, organized by Raspberry PI foundation in Here East, Stratford London.It was a long journey and the weather was very cold, but I was very excited to show my project to everyone. The event organizers registered and provided all the participants with a shirt and a lanyard with our name and projects name on them.Then, I was allocated to a table with my name and my project name on.Next to me, was a team of children that had made a Zombie Apocalypse project.                                                                   My Presentation Table and Ninja Shirt There were four categories which included web pages, scratch, hardware and mobile applications.Many children took part in those categories.There were four brilliant Science Shows, I had the chance to attend two of them, hosted by Greg Foot and Neil Monteiro, who were the Science presenters. I also got to see 3D printers, speech to text machines and a camera