Hardware Reference
In-Depth Information
Summary
In this project, we built a Bluetooth- and Arduino-based temperature and humidity sensor.
Using this sensor, you can measure data that comes from your Arduino board via Bluetooth
and display this data on your computer.
Let's see the major takeaways from this chapter. In the first part of the chapter, we chose
the components of this project, including the Bluetooth module and the temperature and
humidity sensor. We also downloaded and installed the required software components of
the project.
Then, we built the hardware part of the project and made the required connections on the
breadboard. We connected the Bluetooth module and the temperature and humidity sensor
to the Arduino board.
Then, we spent some time building the main sketch of the project. At the same time, we
tested the project by checking whether the Bluetooth connection was actually working. We
also checked whether the temperature and humidity sensor was working correctly.
Finally, we used Python to build a simple interface on your computer. Using this interface,
we established a connection to the Arduino board via Bluetooth and displayed the measure-
ment data on your computer.
There are also several ways to improve the project. You can easily couple Python and a
database, for example MySQL, to automatically log measurements locally on your com-
puter. You can also couple this project, still using Python, with one of the Python-plotting
modules to constantly display the measured values on a graph.
In the next chapter, we are going to use Wi-Fi again but for a completely different purpose.
This time, we are not going to measure and store data locally, but automatically upload data
to a cloud service so that it is stored and displayed there.
Search WWH ::




Custom Search