Project tutorial

Arduino I2C communication with Raspi 2 WIOT © GPL3+

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

  • 30,877 views
  • 25 comments
  • 104 respects

Components and supplies

A000066 iso both
Arduino UNO & Genuino UNO
Eg: can be replaced by a component of higher value
×1
386 00
DHT11 Temperature & Humidity Sensor
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.


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

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

Comments

Similar projects you might like

Arduino UNO High Precision Counting Scale

Project showcase by Fedeasche

  • 3,307 views
  • 5 comments
  • 19 respects

Arduino Controlled Piano Robot: PiBot

Project tutorial by Jeremy Yoo

  • 1,229 views
  • 0 comments
  • 6 respects

Automation of Railway Models Part 3 - Bidirectional Line

Project showcase by Steve_Massikker

  • 752 views
  • 2 comments
  • 10 respects

Arduino TV Volume Control

Project tutorial by Sam

  • 2,402 views
  • 0 comments
  • 11 respects

Arduino Strain Relief Enclosure

Project tutorial by Jeremy S. Cook

  • 981 views
  • 0 comments
  • 7 respects

Mini CNC a Hand-Made Masterpiece

Project showcase by Mr-M

  • 615 views
  • 0 comments
  • 3 respects
Add projectSign up / Login