Demo - smart parking
Smart parking implementation needs the use of low cost sensors, real-time data, and applications that allow users to monitor available and unavailable parking spots.
Using an IoT connected parking solution, we can help users to identify the open parking slot and navigate them to the right place. This will eventually have multiple benefits. Some of them are:
- Optimized parking
- Reduction in fuel consumption
- Managing traffic
Getting ready
We will use Raspberry Pi with Windows IoT Core installed on it. You can follow the recipe Install Windows IoT Core on Raspberry Pi from this chapter to install it.
The ultra sonic sensor that we will be using for this practical has the following four pins:
- VCC (V)
- GND (G)
- Echo
- Trigger
Voltage divider
The ECHO output is of 5v. The input pin of Raspberry Pi GPIO is rated at 3.3v. So to convert the 5v to the unprotected 3.3v input pin we use the voltage divider.
we use a voltage divider circuit using 1kΩ for R1 and a 2kΩ resistor to bring down the voltage...