Project tutorial
Arduino I2C communication with Raspi 2 WIOT

Arduino I2C communication with Raspi 2 WIOT © GPL3+

Using Arduino to do a communication between sensors and Windows for IOT

  • 35,430 views
  • 25 comments
  • 112 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
Eg: can be replaced by a component of higher value
×1
20120702130508859
DHT11 Temperature & Humidity Sensor (4 pins)
Eg: can be replaced by a component of higher value
×1
R8326274 01
Raspberry Pi 2 Model B
Eg: can be replaced by a component of higher value
×1
11026 02
Jumper wires (generic)
Eg: can be replaced by a component of higher value
×1

Apps and online services

About this project

Personally, I believe that the use of Arduino is more practical when wanting to implement an interaction with sensors, since it is already available at a time, and has a much larger number of libraries.
 This does not diminish the brightness of the Raspberry Pi, which in turn is a much more complete platform, in terms of possibilities.
 But the idea behind this post is to take the best of each platform, explaining in a simple way how to use the Arduino to make the raspberry intermediate PI with sensors or other components using an i2c communication.

The connection between the IP and the Arduino is very simple ...
Basically we connect with GND GND, SDA with SDA and SCL to SCL.
Below I put a scheme and a Fritizing file to download, but either way I think is valid explore more about the Arduino GPIO and Raspberry Pi 2.

Nota that depending of your board (ex. Mega) the i2C will change
DHT 11 - If you don't get a grove you will need a resistor between data and vcc - showed on the schematics. Normally comes with the sensor.

you can download the Arduino library for the DHT sensor from my github repository.


Code

Code from Arduino and C# for Visual Studio 2015
Arduino read data from sensor, and send to a i2c address. Windows 10 app, read data from i2c and show at the screen

Schematics

Arduino and Pi Connection
How to wire DHT11 with Arduino and Raspberry Pi I2C
IC2ARDUINOEPI.fzz
Wiring
How to wire DHT11 with Arduino, and Arduino with Raspberry Pi i2c
Ic2arduinoepi bb

Comments

Similar projects you might like

Home Automation Using Raspberry Pi 2 And Windows 10 IoT

Project tutorial by Anurag S. Vasanwala

  • 297,267 views
  • 98 comments
  • 706 respects

DHT11 /DHT22 Temperature Sensor

Project tutorial by Daniel Porrey

  • 82,653 views
  • 106 comments
  • 133 respects

WARAN - Home Automation

Project tutorial by Arjun Ganesan

  • 30,089 views
  • 13 comments
  • 77 respects

Bridging the Raspberry Pi and the Arduino

by Daniel Porrey

  • 12,400 views
  • 10 comments
  • 38 respects

Windows 10 IoT Core: UltraSonic Distance Mapper

Project showcase by Anurag S. Vasanwala

  • 51,776 views
  • 23 comments
  • 138 respects
Add projectSign up / Login