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

  • 39,895 views
  • 25 comments
  • 121 respects

Components and supplies

Ph a000066 iso (1) ztbmubhmho
Arduino 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

  • 326,594 views
  • 101 comments
  • 786 respects

DHT11 /DHT22 Temperature Sensor

Project tutorial by Daniel Porrey

  • 100,030 views
  • 107 comments
  • 147 respects

WARAN - Home Automation

Project tutorial by Arjun Ganesan

  • 34,815 views
  • 13 comments
  • 81 respects

Bridging the Raspberry Pi and the Arduino

by Daniel Porrey

  • 13,820 views
  • 10 comments
  • 39 respects

Windows 10 IoT Core: UltraSonic Distance Mapper

Project showcase by Anurag S. Vasanwala

  • 59,042 views
  • 23 comments
  • 157 respects
Add projectSign up / Login