Raspberry Pi3 + Arduino UNO + DHT22 over I2C (test environment)


hi!
i test rpi3 + arduino uno + dht22 on i2c communication: rpi3 send request arduino. arduino use dht22 sensor (temp, humidity) , send results rpi.
i tested rpi3+gpio+dht22 communication. works fine! :)
but use i2c, because elegant, fine solution.

so how can configure hardwares?
rpi3 has gpio: raspbery-pi-3-gpio-pinout-40-pin
dht22: dht22 pins

the arduino has power usb cable. need use resistors this: i2c configuration
or connect rpi3 i2c gpio pins arduino uno sda/scl pins directly?

(so the rpi 5v level may problem.)

the gpio pins connected directly if both boards 5v or both 3.3v boards.  if boards supplied different voltages level shifter required.  pullup resistors (4.7k ohm sda vcc , scl vcc) required i2c buss work.


Arduino Forum > Using Arduino > Programming Questions > Raspberry Pi3 + Arduino UNO + DHT22 over I2C (test environment)


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor