Archive

Posts Tagged ‘pi4j’

Orange Pi Zero GPIO Programming using JAVA

April 19th, 2017 No comments

Orange Pi Zero GPIO ProgrammingThis is a simple tutorial on Orange Pi Zero GPIO Programming using JAVA. For this, I have used Pi4J library which also works with Raspberry Pi. This tutorial might help you to interact with GPIO in your IOT projects. In his tutorial, I have tested the application with LUBUNTU OS on Orange Pi Zero.

Links :
Install LUBUNTU on Orange Pi Zero
JAVA Applications on Orange Pi Zero

Github Repository: bit.ly/2oEkHDA

Connection Schematic: bit.ly/2oEBgzm
Website (Orange Pi Zero): bit.ly/2i4g9S0

Buy Orange Pi Zero: bit.ly/2ptMSoN

 

Read more…

IIC (I2C) Communication on Raspberry Pi by using JAVA

January 27th, 2017 No comments

IIC

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, and 1.7MHz I2C™Compatible compatible modes

Read more…

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

January 16th, 2017 No comments

HC - SR04This 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 high level, time of high output IO duration is the time from sending ultrasonic to returning.
Read more…

Thermocouple Interfacing usng MAX31855 | Raspberry Pi

December 20th, 2016 No comments

thermocouple MAX31855Reading 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…