Building an IoT Weather Indicator
In this chapter, we will learn about servo motors and LEDs and then use this knowledge, along with our understanding of the Raspberry Pi and web services, to create a practical project: an IoT weather indicator.
The weather indicator will draw weather information from a web service and then use a pointer attached to the servo motor to indicate suitable attire based on the current outdoor conditions. It will include an LED that turns on when it’s raining and blinks on and off if there is a thunderstorm. The configuration that you’ll use to create this application may be used for other applications, such as a water quality monitor or a traffic density monitor.
We’ll start by looking at servo motors, which will help us understand what they are and how we may use them in our IoT applications. Then, we’ll focus on LEDs.
Following that, we’ll begin constructing a physical stand to house the components for our application...