Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServoBlaster not working on Raspberry Pi Zero W #84

Closed
ileamihai opened this issue Apr 22, 2017 · 14 comments
Closed

ServoBlaster not working on Raspberry Pi Zero W #84

ileamihai opened this issue Apr 22, 2017 · 14 comments

Comments

@ileamihai
Copy link

ileamihai commented Apr 22, 2017

Hi Guys,

I am struggling with a pan/tilt project on a RPI Zero W.

I am following Allan H's Robot Project from here: https://www.youtube.com/watch?v=wzOkuglA_5s

ServoBlaster was installed as follows:

  • git clone https://github.com/richardghirst/PiBits.git
  • cd /PitBits/ServoBlaster/user
  • changed the servod.c file in order to fix the hardware issue from here. maxjp's post from 22 March.
  • sudo make servod
  • sudo make install
  • sudo ./servod
  • echo P1-12=120 > /dev/servoblaster (NOT working -> PAN servo on pin 12)
  • echo P1-16=70 > /dev/servoblaster (NOT working -> TILT servo on pin 16)

I've been scouring the Internet for a solution but cannot find anything...

Everything is up-to-date as of today (RPI-update, update, upgrade).

Thanks a lot for your feedback!

@githubpac
Copy link

I had the same issue and fixed it with 2 atempts to edit servod.c to change the Board Model to either 1 or 2. Edit line 960 per Maxjp response on #62. I first added || strstr(modelstr, "BCM2835") to the "else if " line to force a Board Model 1, but that didn't work so I removed and added it to if line just above and Made it a Board Model 2

@ileamihai
Copy link
Author

Not working... changed the lines as you said, recompiled, reboot, still no movement... and its not a wiring issue (checked that).
Maybe I need to try a clean install...

@tambechristian
Copy link

Hi ileamihai. I have the same issue and I'm also following Allan H project but with Raspberry Pi W zero, but the pan-tilt camera is not responding to the servoblaster.
Has anyone figured this out?
Thanks

@priema
Copy link

priema commented Jul 8, 2017

I also have the same problem. :(
Does anyone already know how to fix it?

I edited the servod.c line#960, added the BCM2835 link in #62 described but it still does not working

i'm running on the latest noobs with Linux raspberrypi 4.9.28+ #998 Mon May 15 16:50:35 BST 2017 armv6l GNU/Linux

@DarthToker
Copy link

same here

@neutralvibes
Copy link

Unfortunately I have spent considerable time trying various things, including the fix mentioned above & downgrading the firmware, with no results. It appears it may require an older version of the OS, which isn't really a long term solution. I hope some great servoblaster guru can help to dull the pain a
growing numbers of users are feeling, at not being able to use such a great utility.

:(

@MarkR42
Copy link

MarkR42 commented Aug 2, 2017

I think that probably Servoblaster has had its time. Now Pigpio is much better supported (e.g. on newer OS and chip versions) and supports a superset of the functionality, these users are probably advised to use Pigpio instead.

@NewtownGal
Copy link

If no one can figure out how to make the beloved Servoblaster work on Pi-Zero, can someone tell us how to configure Pigpio to act as a drop-in replacement for Servoblaster ? Also, can Pigpio give 2 uS resolution like Servoblaster ?

@richardghirst
Copy link
Owner

richardghirst commented Aug 23, 2017 via email

@tambechristian
Copy link

tambechristian commented Aug 23, 2017

It works Richard ! I just tested in on a Pi Zero W with two servos. Thank you !!
My problem was that I didn't change "board_model = 2" into "board_model = 1"

@salmanarnab
Copy link

hello, i tried on raspberry pi model 3B. my servo is not responding. can anyone give me any suggestion??

@rahul-moorkoth
Copy link

Hey I am also having same problem with raspberry pi 3 Model B. If anyone found solution then please post it. Thanks

@srcshelton
Copy link

Hi all, I've not had the chance to test on RPiZ hardware, but could you try the fork at https://github.com/srcshelton/servoblaster (specifically the change at See changes at srcshelton@4f42f39#diff-364476f388d8ca6306a119734df9fe60R1025) and confirm whether this is also effective on the Zero (which I believe it should be!)

@richardghirst
Copy link
Owner

Relevant fixes for PI Zero and Pi3 copied from from Stuart's version to this repo. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests