DHT12 Interfacing with Raspberry Pi using Pi4J


This video around raspberry pi showing how to interface DHT12 humidity and temperature sensor with raspberry pi by using JAVA nad Pi4j. DHT12 its a temperature sensor with a 1-Wire and I2C interface to connect with external controllers and having 1-Wire interface makes it compatible with the older DHT11 sensor but with a higher accuracy. For this tutorial, we are going to use the I2C interface of the sensor and to interact with it, we will be using JAVA. One issue with the DHT12 I2C interface is that the device…

Read More

IIC (I2C) Communication on Raspberry Pi by using JAVA

MCP23017 with raspberry Pi using I2C Communication

This tutorial is all about IIC (I2C) communication on Raspberry Pi by using JAVA and for that, I have used Pi4J library. To demonstrate this in the tutorial I have used MCP23017 Port expander IC with Raspberry Pi. MCp23017 is a 16 Bit input/output Port Expander ICcomes with I2C Interface. To interact with the IC suing IIC (I2C) port  here we have used Pi4J and JAVA. MCP23017 Features: 16-bit input/output port expander with interrupt output Cascadable for up to 8 devices on one bus 25mA sink/source capability per I/O Supports 100kHz, 400kHz,…

Read More