Contributions

Contributions are appreciated and used to host this site. Thank You for your support.

Feature Products
  • Raspberry Pi with Java: Programming the Internet of Things (IoT)
    Raspberry Pi with Java: Programming the Internet of Things (IoT)
  • Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
    Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
  • Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
    Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
  • Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
    Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
  • Getting Started with Raspberry Pi
    Getting Started with Raspberry Pi
  • Raspberry Pi User Guide
    Raspberry Pi User Guide
  • PiBrella LED Add On Board
    PiBrella LED Add On Board
  • Diversitech® WS-1 - Wet Switch Flood Detector
    Diversitech® WS-1 - Wet Switch Flood Detector
  • Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
    Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
  • Floodstop Washing Machine Valve Shutoff Kit
    Floodstop Washing Machine Valve Shutoff Kit
  • Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
    Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
  • Floodstop Individual Water Appliance Additional Water Sensor XS-01
    Floodstop Individual Water Appliance Additional Water Sensor XS-01
  • Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
    Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
  • Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Metra 70-2002 Radio Wiring Harness for Saturn 00-05
    Metra 70-2002 Radio Wiring Harness for Saturn 00-05
  • Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio
    Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio

Entries by Robert Savage (60)

Monday
Feb232015

Pi4J + Pibrella

 

(click to enlarge)The Pibrella add-on board serves as a simple and easy platform to get started with and learn about inputs and outputs on your Raspberry Pi.  

Pibrella is an excellent development tool for both hobbyist and students to learn about programmatic interfacing with inputs and outputs to monitor and control things in the real world. 

For beginners, three LED lights and a momentary button are provided directly on the board so you can get started playing with the input signals for the momentary button and output signals for controlling the LED lights without having to wire any circuits yourself.  

One you are ready to sense (inputs) or control (outputs) other external devices you can use the 4 generic inputs and 4 generic outputs at the bottom of the Pibrella board via the 2 8-pin header connectors.  (Note, breadboard/prototyping jump wires fit perfectly into these header blocks.) 


<<< 
BUY PIBRELLA ON AMAZON $22.99 with Prime Shipping >>>

More details and instructions for getting started can be found at: http://pibrella.com/

 

Pi4J + Pibrella

The Pibrella documentation primarily includes information about programming the Pibrella using Python.  However, we at Pi4J recognizing the Pibrella device as an excellent tool for beginners did not want to leave Java programmers out of the party.  So, we have added native support for the Pibrella board directly into Pi4J.  

Sources

The Pibrella devices interfaces can be found here:
https://github.com/Pi4J/pi4j/tree/develop/pi4j-device/src/main/java/com/pi4j/device/pibrella

An example program demonstrating the usage of the Pibrella device interface can be found here:
https://github.com/Pi4J/pi4j/blob/develop/pi4j-example/src/main/java/PiBrellaExample.java 

Example

Below is a sample program to help you get started using the Pibrella board in your Java program.

Board Layout


<<< 
BUY PIBRELLA ON AMAZON $22.99 with Prime Shipping >>>