Go to advanced search

by johnnyz77
Fri Feb 08, 2013 8:15 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

Hi Richard
Just realised I didnt have the latest servod. I now got it, and it works a treat.
Thanks for your help.
John
by johnnyz77
Fri Feb 08, 2013 8:05 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

Hi Richard I tried that adding --pcm, but it didnt work. This is the console when I run the command: [email protected] ~ $ sudo /home/pi/tmp/servo/ServoBlaster/servod --pcm Number of servos: 8 Servo cycle time: 20000us Pulse width units: 10us Maximum width value: 249 (2490us) I didnt see the "using PCM...
by johnnyz77
Fri Feb 08, 2013 5:42 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

Roman, please ignore my comments about battery and ground etc. I am a total newbie to electronics and am making lots of mistakes as I learn. I thought battery negative line was = ground. But of course this is not the case!! Hi johnnyz77, No worries, everyone was green at some point in time. Actuall...
by johnnyz77
Fri Feb 08, 2013 5:36 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

One last thing.... even when I play an audio file from the command line ie sudo aplay 12345.wav the servos buzz/vibrate uncontrollably and go into an invalid state as described above. FYI, the servos are being powered with their own power source: 4xAA batteries. Your help/comments is greatly appreci...
by johnnyz77
Fri Feb 08, 2013 5:32 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

I should add, for clarity's sake, that what I want to do is have the servos move while the music is playing. Both the actions for audio (WAV file) to play and the instruction sent to servo to move is made from the same Java program.
by johnnyz77
Fri Feb 08, 2013 5:29 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Servo doesnt work when playing audio

Hi Richard (or who ever else can help!) I have been able to get the servos to work. But there is a problem. When I ask the Pi to play some audio, ie a WAV file, the servo goes into an uncontrollable state. It just buzzes/vibrates somewhat violently, and moves in small movements in one direction. If ...
by johnnyz77
Wed Feb 06, 2013 12:08 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

OK I will try that out! I was grounding to battery. What exactly do you mean? Was the battery negative terminal connected to the ground of the RPi (i.e. GPIO pin 6)? Both, the servo ground as well as battery negative must be connected to common ground reference. ... .... ...... I have run update, c...
by johnnyz77
Tue Feb 05, 2013 11:55 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

I've just realised I have to run
sudo ./servod

for it to create the "/dev/servoblaster" file.

When I do this it all runs OK :)

I just dont remember doing this on the other Pi.
I would just run the servoblaster.ko file.
by johnnyz77
Tue Feb 05, 2013 9:12 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

FYI:

[email protected] /dev $ ls -l /dev/servoblaster
ls: cannot access /dev/servoblaster: No such file or directory


I believe this is wrong.... File should be there?!
by johnnyz77
Tue Feb 05, 2013 9:04 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

OK I will try that out! I was grounding to battery. I'm setting up another Pi now and I just got this error when trying to send an instruction: [email protected] /dev $ echo 1=120 > /dev/servoblaster -bash: /dev/servoblaster: Permission denied Any idea why this is happening??? Should I be able to see "...
by johnnyz77
Tue Feb 05, 2013 3:10 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

Hi Richard, Have done more testing and I have worked out that the problem is related to the power supply. So nothing to do with your lib. I was able to get the servos to work when power source and ground is the Pi. I have a 4xAA battery case that gives my 6V and when this is used as power/ground, it...
by johnnyz77
Tue Feb 05, 2013 1:13 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

Hi Richard or anyone else! Can't get my servo to move. I have got all the code/files and connect a single servo to GPIO 4. Servo is being powered by 4xAA batteries via breadboard. Problem is when I send it a command such as "echo 0=120 > /dev/servoblaster", the servo moves a fraction of a millimeter...
by johnnyz77
Sat Jan 26, 2013 10:56 pm
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

Do not power your servos from the Pi. It might be suffiicient for a small hobby motor, not much else. Take the control signal from a gpio. Use a battery or other power supply for the servos power and ground. Make sure you common the Pi's ground and the power supply's ground. The control signal and ...
by johnnyz77
Sat Jan 26, 2013 2:04 am
Forum: Automation, sensing and robotics
Topic: Driving multiple servos from the RaspberryPi
Replies: 209
Views: 99737

Re: Driving multiple servos from the RaspberryPi

Hi Richard First of all, nice work! Your work here saves all the extra components and programming, which makes your solution beautiful. Haven't implemented anything as yet, but wanted to ask you some questions before I order parts and start experimenting. I am an experienced software engineer but pr...

Go to advanced search