Skip to main content
Ingenium Logo

You are leaving IngeniumCanada.org

✖


This link leads to an external website that Ingenium does not control. Please read the third-party’s privacy policies before entering personal information or conducting a transaction on their site.

Have questions? Review our Privacy Statement

Vous quittez IngeniumCanada.org

✖


Ce lien mène à un site Web externe qu'Ingenium ne contrôle pas. Veuillez lire les politiques de confidentialité des tiers avant de partager des renseignements personnels ou d'effectuer une transaction sur leur site.

Questions? Consultez notre Énoncé de confidentialité

Ingenium The Channel

Langue

  • Français
Search Toggle

Menu des liens rapides

  • Ingenium Locations
  • Shop
  • Donate
  • Join
Menu

Main Navigation

  • Browse
    • Categories
    • Media Types
    • Boards
    • Featured Stories
  • About
    • About The Channel
    • Content Partners

Project Log #1: Raspberry Pi & Arduino

Share
5 m
Jul 26, 2018
Categories
Earth & Environment
Categories
Engineering & Technology
Computing
Media
Blog
Profile picture for user Mohamed Ebsim
By: Mohamed Ebsim
Ingenium
The front of the Canada Aviation and Space Museum
Photo Credit
Mohamed Ebsim

To be honest, I was not completely sure what I would be doing in my internship here at the Canadian Aviation and Space Museum. There had been mentions of a cool project, but I really had no idea what I was getting into.

On my first day, I arrived and was given a tour of the place by my supervisor, Jesse Rogerson, who is a science advisor for the museum. Next, I was  introduced to one of the coolest projects I have ever done.

The project is to design, code, and build a personal weather station for the museum. A personal weather station is a set of equipment that can collect a variety of data including temperature, humidity and pressure in a desired location. They come with the ability to personalize and extend them to the builder’s desire. Personal weather stations are pretty big in the maker community.

Neither myself nor my supervisor have ever built a personal weather station, so this is going to be a journey for the two of us! The great thing about this project is that it will use and extend my  existing skills, while at the same time building new ones.

In order to get started, I was given a Raspberry Pi and an Arduino Mega. If you have never used either of those, I strongly recommend that you find somewhere that you can play with one. You can think of a Raspberry Pi as a really small computer with CPU, RAM, GPU and storage. An Arduino, on the other hand, is a programmable circuit board. It might seem a little daunting, but it can turn out to be a lot of fun and a great experience.

A Raspberry Pi and an Arduino with Stapler for scale

Photo of Raspberry Pi and Arduino Mega with stapler for scale


 

The first problem I faced was figuring out how to get the Raspberry Pi and the Arduino communicating. I have used both an Arduino and a Raspberry Pi, but never together. The idea in my mind was that the Raspberry Pi would be the brains, while the Arduino would act more as a controller for all the sensors that will be attached. This operates to the strengths of each device. Figuring out how to get them to communicate was an interesting challenge that required a considerable amount of time. The solution lay in remembering that the Raspberry Pi is pretty much a computer.

While there are online resources about getting a Raspberry Pi and an Arduino communicating, it pales in comparison to the amount of resources for having a host computer communicating with one. Reading through various Arduino community forums, the solution seemed to be in using serial communication. Serial communication is the process of sending one bit at a time to a receiver. With an Arduino, it sends back data through a USB cable to the host computer. I ran a few simple programs to ensure everything was functioning correctly, including illuminating an LED and returning an ever-increasing number to the Raspberry Pi.

My first week yielded  some good progress, and set the foundation for the next steps: hooking up the sensors. This, should be a lot of fun!

All the code that has been made can be found at my GitHub page: https://github.com/mebsim/WeatherStation

Tags
DIY, Raspberry Pi, Arduino, Weather Station, Breadboard, Circuit, weather
Author(s)
Profile picture for user Mohamed Ebsim
Mohamed Ebsim

Mohamed Ebsim is an intern at the Canada Aviation and Space Museum, working under Science Advisor Jesse Rogerson. He is also a high school student at Ashbury College.

Related Stories

A map of the cranberry bog of Les Producteurs de Québec Limitée of Lemieux, Québec. Luc Bureau, “Un exemple d’adaptation de l’agriculture à des conditions écologiques en apparence hostiles: L’Atocatière de Lemieux,” Cahiers de géographie du Québec, December 1970, 389.

“A sea serpent without affidavit, is like roast turkey without cranberry sauce;” Or, how the Larocque family created the first cranberry bog in Québec, part 3

A serious looking Lawrence Niles Swank points out the initial impact point of the meteorite which had hit his automobile near Crawfordsville, Indiana, October 1930. Anon., “Projectile céleste.” Le Petit Journal, 2 July 1933, 22.

“A difficult target for a meteoric sharpshooter from interplanetary space” – The incredible story of a Indiana teenager, Lawrence Niles Swank, whose automobile was hammered by a meteorite

Left to right: solar panels placed high above low-lying green farm crops in a field; bubbles of various sizes rising in a yellow-green medium; and two tarantula feet magnified 40 times appear orange in colour against a navy-blue background.

3 Things you should know about using the same farmland for producing crops AND solar energy, museum conservators’ superhuman “vision,” and making french fries in space

A spliced photo, from left to right: Shaun the Sheep in front of a model of ESA’s European Service Module, a top view into a red bucket containing thousands of light-brown, rod-shaped pellets, and a toddler wearing a wool hat and wool sweater holds a grownup’s finger.

3 things you should know about why wool keeps us warm, and about its surprising uses in the garden and in space.

A large impact crater viewed from the rim, a woodern spoon full of small yellow grains, a close up of a forearm being tattooed.

3 things you should know about the untapped potential of millet, the permanence of tattoos, and asteroid airbursts

The thirty or so Mexican peasants who helped clear the Bacubirito meteorite, not far from Bacubirito, Mexico, 1902. N. Rosst, “La grande météorite de ‘Bacubirito’ (Mexique).” La Nature, 14 February 1903, 173.

A blaze in the northern skies and a cinder of sidereal fire: The Bacubirito meteorite

A rear view of a person wearing a yellow coat and backpack in winter, a close-up view of bright red poinsettias with small yellow central flowers.

Two things you should know about the science of wind chill, and the Orion spacecraft's selfies.

Three images side by side, Canada’s White Glacier, dried mealworms shown on a round wooden platter, and a pair of hands rubbing together, covered in soap bubbles.

3 things you should know about insects as an important source of protein, the science superpowers of soap, and monitoring glaciers in Canada’s Arctic

Three images side by side, plastic-wrapped cucumbers, a woman with an inflamed shoulder, and the James Webb Space Telescope.

3 things you should know about plastic-wrapped cucumbers, the James Webb telescope, and inflammation

Three images side by side, grocery shelves full of eggs in clear trays, coral reefs seen from space, and a map of Canada divided into four differently coloured shapes.

3 things you should know about egg refrigeration, coral reef satellite maps, and watersheds

Autumn vista of a river winding between pine trees and snow-capped mountains.

AI-Generated sound therapy for critically ill patients

A wide view of the underwater room in the RIPPLE EFFECT exhibition; the walls, floor, and ceiling are blue and information about water conservation adorns the walls.

A refreshing approach: Students create virtual exhibition to inspire water conservation

Footer

About The Channel

The Channel

Contact Us

Ingenium
P.O. Box 9724, Station T
Ottawa ON K1G 5A3
Canada

613-991-3044
1-866-442-4416
contact@IngeniumCanada.org
  • Facebook
  • Instagram
  • Twitter
  • Channel

    • Channel Home
    • About the Channel
    • Content Partners
  • Visit

    • Online Resources for Science at Home
    • Canada Agriculture and Food Museum
    • Canada Aviation and Space Museum
    • Canada Science and Technology Museum
    • Ingenium Centre
  • Ingenium

    • Ingenium Home
    • About Ingenium
    • The Foundation
  • For Media

    • Newsroom
    • Awards

Connect with us

Subscribe to our newsletter to receive the latest Ingenium news straight to your inbox!

Sign Up

Legal Bits

Ingenium Privacy Statement

© 2023 Ingenium

Symbol of the Government of Canada
  • Browse
    • Categories
    • Media Types
    • Boards
    • Featured Stories
  • About
    • About The Channel
    • Content Partners