본문 바로가기

개발

라즈베리 파이용 자바 Pi4J 개발 관련 내용

라즈베리 파이용 자바 Pi4J 개발 관련 내용

아두이노, 라즈베리 파이용 자바 개발에 관련된 내용들입니다.

Advanced GPIO: UART, PWM, Digital and Level Conversion

From Pi4J (Pi4J :: Java library for Raspberry Pi)
This project is intended to provide a bridge between the native libraries and Java for full access to the Raspberry Pi.

This is our 6th live training session as part of the IoT Developer Challenge. In this session, Vinicius will discuss how to get your Raspberry Pi (or any otherboard) to communicate with GPIO using UART and PWM. He will present some techniques to do voltage level conversion using MAX232. This will be very useful for the integration between components with different voltage levels, e.g., 3.3volts to 5volts. He will also present demos and make all the source code available.

To get the most out of this session, visit the Pi4J project, and visit the Pi4J code samples and come prepared with questions.

Join us on Tuesday, April 29, 2014: 10:00am - 12:00am Singapore time; 7:30am - 9:30am India Mumbai; 11:00am - 1:00pm Tokyo Japan; 2:00am - 4:00am UTC. Monday, April 28, 2014: 7:00pm - 9:00pm Pacific Time. Registering for this training will give you a chance to win a Raspberry Pi kit.

There are five weeks left before the Challenge deadline on May 30. Don't miss the chance to submit the video and code of your project. You may win a trip to JavaOne 2014, the premier Java conference in the world.

Make sure you are taking full advantage of our resources, training, and forums. Here are the links: 

• Iot Developer Challenge Forum.
• Challenge FAQ
• Seven training videos on-demand about Java Embedded, IoT and  Raspberry Pi as well as a great demo of a Gemalto application.
• Two more sessions where you can ask questions coming up

About the Challenge:

• Submit your application by May 30, 2014
• The Challenge rules are here http://bit.ly/1nKlRKe

Project Status

Please note that this project is currently under development and only SNAPSHOT builds are available at this time.
The functionality is reasonable stable but some documentation and development tasks have not yet been completed.
The API is fairly well defined; however, is subject to minor change until a release build is produced.

You are welcome to start using and integrating this library in your project. Please provide any feedback good, bad or ulgy. (Well maybe keep the ugly feedback to a minimum.)

Visit the Downloads page to download the latest Pi4J library builds.

Features
• Export & unexport GPIO pins
• Configure GPIO pin direction
• Configure GPIO pin edge detection
• Control/write GPIO pin states
• Pulse GPIO pin state
• Read GPIO pin states
• Listen for GPIO pin state changes (interrupt-based; not polling)
• Automatically set GPIO states on program termination (GPIO shutdown)
• Triggers for automation based on pin state changes
• Send & receive data via RS232 serial communication
• I2C Communication
• SPI Communication
• Extensible GPIO Provider interface to add GPIO capacity via expansion boards
• Access system information and network information from the Raspberry Pi
• Wrapper classes for direct access to WiringPi Library from Java