Go to advanced search

by clicky
Mon Sep 30, 2013 8:28 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 120207

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: 7869

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: 120207

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...
by clicky
Sat Sep 14, 2013 9:47 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 212
Views: 120207

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: 2080

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: 120207

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: 981

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: 4421

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: 2059

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: 2059

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: 2059

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