Go to advanced search

by savageautomate
Sun Mar 31, 2013 8:42 pm
Forum: Java
Topic: RPI with water flow sensor
Replies: 14
Views: 16348

Re: RPI with water flow sensor

I have not ... but want to :-)
by savageautomate
Sun Mar 31, 2013 8:40 pm
Forum: Java
Topic: Keypad on Rpi using Pi4J
Replies: 28
Views: 12768

Re: Keypad on Rpi using Pi4J

(I have not programmed or wired a keypad before, so I may be speaking from a bit of a disadvantage here...) Since the Pi's GPIO pins are only digital pins, I don't think you can know which (of the two) power (output) pin is sourcing which input pins. That is ... unless you implement some sort of tim...
by savageautomate
Tue Mar 26, 2013 8:15 pm
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 13750

Re: Pi-Face + Java + Pi4J

Just for clarification ... is it just the button events that are not firing? One thing you could try in the meantime is running these commands to make sure your system is up to date. I think there was an issue with the GPIO eventing is a earlier builds. sudo apt-get update sudo apt-get upgrade Thank...
by savageautomate
Mon Mar 25, 2013 7:50 pm
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 13750

Re: Pi-Face + Java + Pi4J

It should initialize on the constructor of 'PiFaceDevice'.
When I was working with mine, I never loaded any Python or Perl code, only Java.
I can retest it on my system in a few days.

-Robert
by savageautomate
Fri Mar 22, 2013 2:56 pm
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 13750

Re: Pi-Face + Java + Pi4J

There are several lines of initialization code that configure the MCP23S17 chip for use with Pi4J. These all happen in the class constructor. See this code: https://github.com/Pi4J/pi4j/blob/master/pi4j-gpio-extension/src/main/java/com/pi4j/gpio/extension/piface/PiFaceGpioProvider.java#L114 If you n...
by savageautomate
Tue Mar 19, 2013 2:07 pm
Forum: Java
Topic: Pi4J Version 0.0.5 Released!
Replies: 0
Views: 826

Pi4J Version 0.0.5 Released!

Pi4J Version 0.0.5 Released! Pi4J Version 0.0.5 is now released and it has been a stable build for quite some time. Users of previous versions are encouraged to upgrade to this latest build. This release includes a number of bug fixes, new features, and added support for add-on accessory boards and...
by savageautomate
Fri Mar 08, 2013 4:25 am
Forum: Java
Topic: I2C example in java
Replies: 1
Views: 9328

Re: I2C example in java

Here are a few examples provided in the Pi4J sources: https://github.com/Pi4J/pi4j/blob/master/pi4j-example/src/main/java/I2CWiiMotionPlusExample.java https://github.com/Pi4J/pi4j/blob/develop/pi4j-gpio-extension/src/main/java/com/pi4j/gpio/extension/mcp/MCP23017GpioProvider.java https://github.com/...
by savageautomate
Tue Mar 05, 2013 11:02 am
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 13750

Re: Pi-Face + Java + Pi4J

Hi Mauro, Unfortunately Pi4J does not currently support 1-wire, IR transmitter, IR receiver, CAN interface, Bluetooth, etc. This is a very interesting add-on board and I think Pi4J would be a good fit for these type of communication I/Os, but its just not currently in the project. http://shop.basis....
by savageautomate
Mon Mar 04, 2013 3:00 pm
Forum: Java
Topic: need a tut for installing and running java for beginners
Replies: 2
Views: 3130

Re: need a tut for installing and running java for beginners

It sounds like you are looking for something more comprehensive, but ... the tutorial below is a step-by-step guide for installing the Java 8 Runtime/Development Kit on your Raspberry Pi. http://www.savagehomeautomation.com/raspi-jdk8 You can run Java programs from the local terminal console (via at...
by savageautomate
Sun Mar 03, 2013 4:22 pm
Forum: Java
Topic: Java, getting CPU Temps
Replies: 2
Views: 4153

Re: Java, getting CPU Temps

To control the power on your cooler you will need something like a relay to control the power on and off to the actual fan/cooler. With a simple circuit you can control the relay using a GPIO pin from the Raspberry Pi. You can use Pi4J to control the GPIO pins which drive your switching circuit. Her...
by savageautomate
Sun Mar 03, 2013 4:15 pm
Forum: Java
Topic: Java, getting CPU Temps
Replies: 2
Views: 4153

Re: Java, getting CPU Temps

The easiest way would be to use Pi4J ( http://www.pi4j.com ). In a recent build of version 0.0.5-SNAPSHOT, we added CPU temperature and voltages and several additional new system info metrics. Here is the sample program getting all the "System Info": https://github.com/Pi4J/pi4j/blob/develop/pi4j-ex...
by savageautomate
Mon Feb 25, 2013 8:21 pm
Forum: Java
Topic: (newbie) building pi4j from maven
Replies: 7
Views: 5774

Re: (newbie) building pi4j from maven

The .so files are shared object files. Basically bits of native C compiled code for the Pi4J Java libraries reference to perform the hardware level communication and interfacing. The .so files are packaged inside the pi4j-core.jar file. Pi4J will attempt to extract these .so file dynamically and bin...
by savageautomate
Mon Feb 25, 2013 1:38 pm
Forum: Java
Topic: Pi-Face + Java + Pi4J
Replies: 21
Views: 13750

Pi-Face + Java + Pi4J

I just got my hands on a Pi-Face expansion board for my Raspberry Pi. My first objective was to get this board integrated into the Pi4J project and fully working with Java on my Raspberry Pi. The following article ( in the link below ) covers installing the Pi-Face board, setting up the SPI communic...
by savageautomate
Mon Feb 25, 2013 12:51 pm
Forum: Java
Topic: (newbie) building pi4j from maven
Replies: 7
Views: 5774

Re: (newbie) building pi4j from maven

Are you building the Pi4J JARs locally? Or are you using the pre-compiled Pi4J JARs from the repository?

-Robert
by savageautomate
Mon Feb 25, 2013 4:01 am
Forum: Java
Topic: TCP to serial port program
Replies: 6
Views: 5607

Re: TCP to serial port program

Hi hqm,
Try searching for examples using the RXTX library.
-Robert
by savageautomate
Sun Feb 24, 2013 3:31 am
Forum: Java
Topic: Problem with pi4j and eclipse
Replies: 12
Views: 4121

Re: Problem with pi4j and eclipse

It would be very possible that the data being transmitted it split across multiple events. Please note that Pi4J does not do anything to ensure that events are triggered on line breaks or certain data packet lengths. Pi4J simply has a thread that monitors the receive data buffer on a regular interva...
by savageautomate
Sat Feb 23, 2013 3:19 pm
Forum: Java
Topic: Java GPIO Frequency Benchmarks
Replies: 35
Views: 19356

Re: Java GPIO Frequency Benchmarks

This article ( http://codeandlife.com/2012/07/03/benchmarking-raspberry-pi-gpio-speed/ ) shows that ~14-22 MHz is attainable using Native C. All my Java tests were conducted using JNI wrappers around the WiringPi C library which topped out around 7 MHz. It may be possible that your implementation is...
by savageautomate
Fri Feb 22, 2013 12:08 pm
Forum: Java
Topic: Problem with pi4j and eclipse
Replies: 12
Views: 4121

Re: Problem with pi4j and eclipse

Yes, the 0.0.5-SNAPSHOT build of Pi4J does work with Oracle's JDK8 on Raspbian.

Thanks, Robert
by savageautomate
Fri Feb 22, 2013 12:06 pm
Forum: Java
Topic: Raspberry java instalation
Replies: 3
Views: 1451

Re: Raspberry java instalation

The installation for Oracle's JDK8 is also documented on my blog site:
http://www.savagehomeautomation.com/raspi-jdk8

Thanks, Robert
by savageautomate
Sat Feb 16, 2013 11:04 pm
Forum: Java
Topic: Problem with pi4j and eclipse
Replies: 12
Views: 4121

Re: Problem with pi4j and eclipse

Also make sure you have disabled the system use of the serial port:
http://www.savagehomeautomation.com/pro ... l#software
by savageautomate
Sat Feb 16, 2013 11:03 pm
Forum: Java
Topic: Problem with pi4j and eclipse
Replies: 12
Views: 4121

Re: Problem with pi4j and eclipse

I was not able to reproduce the exact results that you got, but I definitely found a defect in the write(byte[]) method. This has been fixed in the latest 0.0.5-SNAPSHOT build.
https://github.com/Pi4J/pi4j/issues/37
by savageautomate
Sat Feb 16, 2013 7:43 pm
Forum: Java
Topic: Scheduled release of Pi4J (version 0.0.5) coming soon!
Replies: 0
Views: 1010

Scheduled release of Pi4J (version 0.0.5) coming soon!

Please note that Pi4J build 0.0.5-SNAPSHOT is nearing a release. The current release date is planned for the end of Feb. Please comment if there are any outstanding defects that should be addressed before this build is released. The current open issues are listed here ( they are all enhancements ): ...
by savageautomate
Fri Feb 15, 2013 9:13 pm
Forum: Java
Topic: Problem with pi4j and eclipse
Replies: 12
Views: 4121

Re: Problem with pi4j and eclipse

Without seeing the stack trace, this is just a guess, but I would bet that the Pi4J library is attempting to load the native/system library which is compiled for ARM/Linux. On your PC or MAC, this step is probably failing very early in the startup process.

-Robert
by savageautomate
Tue Feb 12, 2013 1:00 am
Forum: Java
Topic: DS18B20 Temperature sensor and Java
Replies: 8
Views: 12046

Re: DS18B20 Temperature sensor and Java

I'm not sure. I have never attempted to write something like this in Java. I think the timing would concern me, but perhaps some others will comment here with any experience they may have had.

Go to advanced search