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!
Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground” – Adafruit’s Apps!
Maker Business — How Intel Makes a Chip
Wearables — Tape tactics
Electronics — Ground connections cooler via more vias
Biohacking — Itch Tracker for Apple Watch
No comments yet.
Sorry, the comment form is closed at this time.