Go to advanced search

by clicky
Sat Nov 23, 2013 10:28 pm
Forum: Java
Topic: Java NetBeans or Eclipse on Raspberry Pi
Replies: 16
Views: 14108

Re: Java NetBeans or Eclipse on Raspberry Pi

Here's first few sentences of how to remotely launch Java application from development machine's IDE on RPi:

http://remotevm.abstracthorizon.org/

I'll do some more in following days.
by clicky
Sat Nov 23, 2013 3:56 pm
Forum: Java
Topic: Java NetBeans or Eclipse on Raspberry Pi
Replies: 16
Views: 14108

Re: Java NetBeans or Eclipse on Raspberry Pi

Now I am looking for ways of starting Java process on RPi directly from Eclipse on PC. Worse case scenario, when I get some time I'll write an plugin (if there isn't already one). That way I would be able to do all the development in nice, fast environment with Eclipse and even run and debug code d...
by clicky
Fri Nov 01, 2013 3:11 pm
Forum: Java
Topic: How can Java control GPIOs?
Replies: 4
Views: 15622

Re: How can Java control GPIOs?

From what I have understood from the pi4j native code, interrupts are handled somewhere deep in sysfs and state changes reported back all when they change. So, it seems, it is safe to rely on that mechanism instead of polling. You will get responses back only when state(s) change. Polling large numb...
by clicky
Thu Oct 24, 2013 1:58 pm
Forum: Java
Topic: How can Java control GPIOs?
Replies: 4
Views: 15622

Re: How can Java control GPIOs?

Sorry for not replying earlier - completely missed it. Anyway, your questions are quite valid and I can answer some, to the some extent, from pi4j library perspective: "Is this interaction entirely based on sysfs?" I don't know. pi4j's (one, current) implementation is supposedly based on https://pro...
by clicky
Wed Oct 16, 2013 2:20 pm
Forum: Java
Topic: Java NetBeans or Eclipse on Raspberry Pi
Replies: 16
Views: 14108

Re: Java NetBeans or Eclipse on Raspberry Pi

It is similar here: I use Eclipse on my (linux) laptop and then sshfs from RPi back to the laptop. That way all class files produced by Eclipse (and/or maven) are instantaneously available on RPi. Only thing I do on RPi is to do java -cp ... to start the code. Sshfs is available for Raspbian (sudo a...
by clicky
Mon Oct 14, 2013 12:01 pm
Forum: Java
Topic: Java + Pi4J + I2C + AXL345
Replies: 5
Views: 3260

Re: Java + Pi4J + I2C + AXL345

It is already here:

https://github.com/Pi4J/pi4j/blob/devel ... L345.java

It might not be at the final place but it can be good starting point.
by clicky
Thu Oct 03, 2013 6:09 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 109216

Re: Driving multiple servos from the RaspberryPi

Oh - no - that wouldn't be right. I am just forgetting that those are not real devices. :(
by clicky
Thu Oct 03, 2013 5:55 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 109216

Re: Driving multiple servos from the RaspberryPi

Thank you for the explanation! It makes perfect sense. Would you be cross if I ask for you to, maybe, consider providing those values on /dev/servoblaster-cfg? O : ) It surely is not that bad as an idea, is it? :) Generally it can serve as initial value for our abstraction or to be able to slowly mo...
by clicky
Mon Sep 30, 2013 8:28 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 109216

Re: Driving multiple servos from the RaspberryPi

Fantastic! Thanks!

I'll be adding all needed changes to pi4j now!

BTW quick question: is it going to be possible to read /dev/servoblaster of userspace implementation?
by clicky
Mon Sep 23, 2013 8:38 am
Forum: Automation, sensing and robotics
Topic: DIY lipo low voltage alarm
Replies: 17
Views: 7036

Re: DIY lipo low voltage alarm

Strangely enough I am preparing to get on the same issue, too, but I took completely different path: I am, currently, coding for i2c slave for AVR processors and my idea is to use their ADCs to monitor battery voltage directly. Next is to use a relay (solid state if possible) to power BEC (or any ot...
by clicky
Thu Sep 19, 2013 9:22 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 109216

Re: Driving multiple servos from the RaspberryPi

Note the driver needs to know which pins are to be used for servos, so it can program them as outputs on startup. So, if you want to use a P1-4=<width> sort of syntax "'P1-4" would only be valid if either P1-4 was one of the default pins, or if you'd specified it in a --p1-pins= parameter. Yes. I a...
by clicky
Sat Sep 14, 2013 9:47 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 109216

Re: Driving multiple servos from the RaspberryPi

You can in fact map the servo numbers to the P1 header pins already. In this example I have four servos connected to P1 pins 7, 11, 12, and 15, and I refer to them as servos 7, 11, 12 and 15 when writing to /dev/servoblaster: pi@raspberrypi ~ $ sudo ./servod --p1pins=0,0,0,0,0,0,0,7,0,0,0,11,12,0,0...
by clicky
Thu Sep 12, 2013 11:56 am
Forum: Java
Topic: How to import Pi4j?
Replies: 2
Views: 1921

Re: How to import Pi4j?

I know this doesn't help a lot - but from what I see you have done everything you needed to. I have no idea why would end up with such error. Since you cropped your window snapshot I can't certainly say that imports are in file which is on the same project as references libraries (as that is only th...
by clicky
Thu Sep 12, 2013 7:23 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 109216

Re: Driving multiple servos from the RaspberryPi

I was just to finish pi4j implementation that uses your servo driver so could you please help me with something: In this latest version you can specify pins in a list - would it be too hard to provide a way for such list to be read back somehow? Maybe as a comment at the end of read from /dev/servob...
by clicky
Fri Dec 14, 2012 3:38 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Question: I2C, How much do the hardware drivers do?
Replies: 1
Views: 903

Re: Question: I2C, How much do the hardware drivers do?

I've just checked the link you gave briefly and didn't get most of the answer you were looking for. Would you mind summarising what you learned from that blog in here?
by clicky
Fri Dec 14, 2012 11:35 am
Forum: Automation, sensing and robotics
Topic: Help controlling Futaba S3003 servo using RPi
Replies: 4
Views: 3927

Re: Help controlling Futaba S3003 servo using RPi

If I understand servos correctly you need to send pulse of 1ms to 2ms to define servo angle. 1ms should be fully left and 2ms fully right. 1.5ms (or more precisely 1520µs) should be middle. Also, be careful not to send pulses faster than 50 times a second (20ms). Some servos can't handle them (and s...
by clicky
Mon Dec 03, 2012 8:06 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c bus address
Replies: 8
Views: 1665

Re: i2c bus address

Suddenly remembered what I realy should have said. But all units with 512MB are Rev 2, so at that point no further revision checks (until Rev 3 appears). If 256MB still do other checks for revision.2 That's good to know, but rev 2 board without flashed firmware (updated kernel or whatever else is n...
by clicky
Wed Nov 28, 2012 3:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c bus address
Replies: 8
Views: 1665

Re: i2c bus address

Oh, thanks! That makes perfect sense. Only think I am not sure now is (as I have both revision RPis and would like to use both): a) should I in software detect revision of board and adjust bus number accordingly? or b) is there a way something else to do it for me (underlying software, kernel, modul...
by clicky
Tue Nov 27, 2012 1:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c bus address
Replies: 8
Views: 1665

i2c bus address

Hi all, I must have missed something, but now I have installed the latest kernel and updated firmware (all part of the same process) for 512Mb device I found that two i2c buses have swapped addresses! Previously using Chris's Digital Realm kernel i2c bus on the header (gpio 0 and gpio 1) was on bus ...

Go to advanced search