Thanks to Jose for sending in these tutorials he posted in the oracle community.
Learn how to connect sensors to the Raspberry Pi and control them with Java.
Part 1 of this series explained how to connect electronic sensors to the Raspberry Pi Model B using general-purpose input/output (GPIO) interfaces. (That article and the rest of this series also apply to the Raspberry Pi Model B+ or the Raspberry Pi 2 Model B.)
This article focuses on using inter-integrated circuit bus (I2C) interfaces to connect sensors, and it shows examples of how to develop Java ME 8 classes that can do the following:
- Control servo motors using the Adafruit PCA9685 16-channel 12-bit pulse width modulation (PWM) servo driver
- Detect light and object proximity using the VCNL4000 proximity/light sensor
- Measure temperature and humidity using the SparkFun HTU21D humidity and temperature sensor
- Create an electronic compass using the Honeywell HMC5883L digital compass module
Check out the full tutorial here.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!