In this tutorial, we will learn how to build an ice house from scratch.
In the first part of this tutorial we will install the software on a Raspberry Pi, connect the Raspberry Pi to the internet and wire the power to the Arduino Mega.
We will also configure the temperature sensor to detect the temperature of the water and then use it to determine the exact amount of water needed.
In this second part we will build a small snow globe using the code we learned in the first tutorial.
We also create a few buttons that will let us control the temperature and pressure of the snow.
Finally, we’ll add a snowflake to the top of the ice house.
Let’s start with the installation and the software.
1.
Installing the software The software we will use is the free Raspberry Pi-Arduino Mega software.
The software will be downloaded to the RaspberryPi, and it will automatically boot into the Raspbian image.
If you do not have a RaspberryPi you can download it here.
Once the software is downloaded, you need to make sure that it has not been tampered with or that it is executable.
2.
Configuring the temperature/pressure sensor If you are not sure what the RaspberryPI is, or if you are just curious about the hardware details of the Raspberry, please check out this article.
The RaspberryPi is a tiny computer, about the size of a credit card, and can run Linux, Windows, macOS, and the PiBSD.
To start, the software needs to know the current temperature and the pressure in Celsius.
For example, to monitor the temperature on the Raspberry we can use the command below: pi-temp=$(pi-config –temperature –c)pi-pressure=$(gdb)pi2=$(sudo apt-get install libsdl2-dev)pi3=$(apt-get upgrade libsdls-dev libsdcm-dev-dev wget)The first thing to do is to install the Python package called arduino-pi.
We are using the Raspberry’s default installation directory, which is the root directory of the pi.
You need to add this to the Python environment variable.
You can do this by adding the following line to your Python interpreter: export PATH=$PATH:/usr/local/bin:/usr