IOT With Raspberry Pi using JAVA

IOT_Pi

This post features videos that I published to my YouTube channel in the series “IOT with Raspberry Pi “. This basically contains 4 videos around raspberry pi that show how to use Raspberry Pi as an IOT device. It starts from interfacing sensor to publishing the sensor data to cloud server using protocols like REST or MQTT. For the entire project I have used JAVA and on top of that used various libraries for specific tasks like Pi4J, Unirest, Eclipse PAHO etc (Links provided below). If you have watched any of the videos you…

Read More

DHT12 Interfacing with Raspberry Pi using Pi4J

DHT12

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

Send data using MQTT from Raspberry Pi with JAVA

MQTT JAVA

This is the third video in the series “IOT with Raspberry Pi” and that’s using JAVA. The series comprises of Sensor interfacing using pi4J, REST API usage with JAVA, MQTT usage with JAVA and finally adding all to the same project and running over Raspberry Pi. last two videos shows how to interface DS18B20 1 wire temperature sensor with Raspberry Pi and send data to Thingspeak by using REST API with JAVA. If you have not checked those you can do that with the links down below. This video is…

Read More

Call REST API using JAVA on Raspberry Pi

This video is around Raspberry Pi to showcase the usage of Raspberry Pi in IOT projects and that’s using JAVA. This is going to be a series of video including Sensor interfacing using pi4J, REST API usage with JAVA, MQTT usage with JAVA and finally adding all to the same project and running over Raspberry Pi. In the last video, we saw how to interface DS18B20 1 wire temperature sensor with Raspberry Pi by using JAVA. If you have not checked it out you can do that and for that,…

Read More

DS18B20 Sensor Interfacing with Rsapberry Pi using JAVA

This video is around Raspberry Pi to showcase the usage of Raspberry Pi in IOT projects and that’s using JAVA. This is going to be a series of video including  Sensor interfacing using pi4J, REST API usage with JAVA, MQTT usage with JAVA and finally adding all to the same project and running over Raspberry Pi. So this video is going to be the first part of it where we will see how to interface DS18B20 one wire temperature sensor with Raspberry Pi by using JAVA with the help of…

Read More

NAS using Raspberry Pi and Open Media Vault

Pi NAS

A simple easy to use Network Attached Storage by using Raspberry Pi and Open Media Vault open source NAS solution. The video demonstrates all detail about the Open Media Vault.  In the making, I have used 2x 1 Tb HDD with  Raspberry Pi.  

Read More

DIN Mount Enclosure for Raspberry Pi

Phoenix Contact DIN Mount Enclosure

RPI-BC DIN rail housing is designed to accommodate Raspberry Pi computers. Besides the Raspberry Pi boards, the housing can also be equipped with further printed-circuit boards to integrate additional components and circuits. Features: Tool-free mounting Plenty of space for additional circuits on matrix or additional boards Width: 107.6 mm Compatible with Raspberry Pi A+, B+, B2, B3 (Model B Not compatible) Can be mounted on the wall or DIN rail.Website : Source: bit.ly/2lIrOsK (Phoenix Contact) Links: Element14 Roadtest : bit.ly/2jVZhBx Buy from Element14: bit.ly/2l8aTlO

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

Measure Distance using Ultrasonic Sensor HC – SR04 | Pi4J | JAVA | Raspberry Pi

uLTRASONI pI

This is a simple tutorial showing how to interface HC – SR04  ultrasonic ranging module with Raspberry Pi to measure distance using JAVA. Ultrasonic ranging module HC – SR04 provides 2cm – 400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules include ultrasonic transmitters, receiver and control circuit. The basic principle of work: (1) Using IO trigger for at least 10us high-level signal, (2) The Module automatically sends eight 40 kHz and detect whether there is a pulse signal back. (3) IF the signal back, through…

Read More

Thermocouple Interfacing usng MAX31855 | Raspberry Pi

Thermocouple Interfacing usng MAX31855 | JAVA & Pi4J| Raspberry Pi

Reading thermocouple data on Raspberry Pi using JAVA and Pi4J with the help of MAX31855 14 bit thermocouple to digital converter. The MAX31855 performs cold-junction compensation and digitizes the signal from a K-, J-, N-, T-, S-, R-, or E-type thermocouple. The data is output in a signed 14-bit, SPI-compatible, read-only format. This converter resolves temperatures to 0.25°C, allows readings as high as +1800°C and as low as -270°C, and exhibits thermocouple accuracy of ±2°C for temperatures ranging from -200°C to +700°C for K-type thermocouples. Source : MAXIM Integrated(bit.ly/2i3GvZ4)  …

Read More