Project tutorial

Arduino I2C communication with Raspi 2 WIOT © GPL3+

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

  • 34,517 views
  • 25 comments
  • 107 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.


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

Lightpipe 7-Segment Display

Project tutorial by Brian Lough

  • 2,856 views
  • 3 comments
  • 9 respects

Arduino - Control Arm Robot via Web

Project tutorial by phpoc_man

  • 358 views
  • 1 comment
  • 11 respects

ElBanquos 1D Pong

Project showcase by ElBanquo

  • 183 views
  • 2 comments
  • 2 respects

Arduino Spider Robot (Quadruped)

Project tutorial by MEGA DAS

  • 2,457 views
  • 1 comment
  • 18 respects

PENXZYL: Arduino 3-Axis Brush Plotter

Project showcase by Guiye Perez Bongiovanni

  • 4,593 views
  • 4 comments
  • 20 respects

Arduino Joystick

Project tutorial by Ingeimaks Ingeimaks

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