August 2017
Intermediate to advanced
254 pages
6h 10m
English
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:
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 to 3.3V.
Connecting Raspberry PI with sensors