Project tutorial

Arduino I2C communication with Raspi 2 WIOT © GPL3+

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

  • 31,375 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

Pac-Man LED Pixel Panel Costume

Project tutorial by Ben Muller

  • 5,430 views
  • 4 comments
  • 90 respects

LoRa Gateway for DeviceHive

Project tutorial by DeviceHive IoT team

  • 1,423 views
  • 2 comments
  • 18 respects

IoT Bird Feeder with Sigfox and Tweeter

Project showcase by Gaël Porté

  • 495 views
  • 0 comments
  • 8 respects

Raspberry Pi and Arduino Laptop

Project tutorial by Dante Roumega

  • 18,072 views
  • 6 comments
  • 45 respects

Arduino-Based Automatic Guitar Tuner

Project tutorial by Ben Overzat

  • 3,954 views
  • 0 comments
  • 13 respects

Carfox: A Device to Find Them All

Project tutorial by Luis Roda Sánchez

  • 1,703 views
  • 0 comments
  • 13 respects
Add projectSign up / Login