Comments (6)
Hi, if you use the new userspace servod.c implementation, all you should
need to do is comment the entries in the servo2gpio[] array that you don't
want. I.e. in you case, comment all entries but one.
Richard
On 12 Mar 2013 14:41, "Ruirize" [email protected] wrote:
What would I need to change in the kernal driver to only have it use one
GPIO pin?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6
.
from pibits.
Hello,
Firstly this module is fantastic!
I was curious though if you could do the same thing to the kernel driver as well? I was looking at the servoblaster.c code and that it had the following
static uint8_t servo2gpio[] = {
4, // P1-7
17, // P1-11
#ifdef PWM0_ON_GPIO18
1, // P1-5 (GPIO-18, P1-12 is currently PWM0, for debug)
#else
18, // P1-12
#endif
21, // P1-13
22, // P1-15
23, // P1-16
24, // P1-18
25, // P1-22
If I were to comment out all the lines except for pins 4 and 17 would that achieve the same thing?
from pibits.
@richardghirst Should commenting out still work? I tried that and everything seemed to compile and run fine, but my servo no longer responded to commands. When I first run servod
it does list that I only had 1 servo...
from pibits.
It should still work, but I admit I've not tested that. I'll take a look
in the next couple of days.
On Wed, Sep 4, 2013 at 10:36 PM, Jack Minardi [email protected]:
@richardghirst https://github.com/richardghirst Should commenting out
still work? I tried that and everything seemed to compile and run fine, but
my servo no longer responded to commands. When I first run servod it does
list that I only had 1 servo...—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-23826900
.
from pibits.
@richardghirst After restarting my computer and recompiling again it worked for me.
Thanks for the awesome software!
from pibits.
Closing this as you can now specify which pins you want to use for servos via the --p1pins= option to servod.
from pibits.
Related Issues (20)
- Debian Buster : undefined reference to `makedev' -> (need define sys/sysmacros.h) HOT 5
- Catastrophic Segfault on PI 4 (crash-loop the ssh server forever) HOT 2
- Servoblaster for Pi4 HOT 2
- Teapot Demo HOT 2
- Installed servoblaster for Raspberry Pi 3 Model B+ but an error occured HOT 15
- MPU6050 Remote I/O error on RasberryPI 4 HOT 2
- one pi to another HOT 4
- Bug. Unable to play audio music files when servod is launched. HOT 3
- Stop continuous servo sg90 with servoblaster HOT 1
- servod: Cannot parse the hardware name string HOT 1
- Cannot compile servod on Pi Zero with Raspbian Buster HOT 2
- is it important that /proc/cpuinfo for the Pi Zero varies by the OS version ? HOT 2
- Servoblaster for Pi4 B HOT 3
- brushless motors run few seconds HOT 5
- modprobe: FATAL: Module servoblaster not found in directory /lib/modules/5.4.79-v7l+ HOT 5
- Me Arm Raspberry Pi issue HOT 7
- complie issue of Pi4 8GB HOT 2
- Servoblaster does not work well on new Raspberry installation HOT 4
- ERROR: /dev/servoblaster does not exist
- ServoBlaster and Bullseye
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pibits.