Skip to Content
Azure IoT Development Cookbook
book

Azure IoT Development Cookbook

by Yatish Patil
August 2017
Intermediate to advanced
254 pages
6h 10m
English
Packt Publishing
Content preview from Azure IoT Development Cookbook

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 to 3.3V.

 

Connecting Raspberry PI with sensors

  • Connect the 5v (P2) to VCC (V) pin of Sensor
  • GND (P6) into negative rail of the breadboard
  • GPIO23 (P16) to Trigger
  • GPIO24 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Azure Serverless Computing Cookbook - Third Edition

Azure Serverless Computing Cookbook - Third Edition

Praveen Kumar Sreeram, Kasam Shaikh, Greg Leonardo

Publisher Resources

ISBN: 9781787283008Supplemental Content