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

No signs of life with Servo #85

Open
fredkelly opened this issue Mar 6, 2021 · 0 comments
Open

No signs of life with Servo #85

fredkelly opened this issue Mar 6, 2021 · 0 comments

Comments

@fredkelly
Copy link

Hi there, I know the CHIP is now a long neglected device, but I'm hoping to get some use from mine to control a servo for a hobby project I'm working on.

I've updated my CHIP to Debian 10 and installed the library using the python-chip-io_0.7.1-1_armhf.deb file. I am running the test servo code with a servo wired up to the CHIP (5v, gnd & CSID4). I can't seem to stir any life from it and I am getting the below error running my test code:

chip@chip:~$ sudo python servo_test.py 
 ** debug enabled
 ** init_module: setup complete **
 ** gpio_allowed: found match
 ** is_this_chippro: total system ram: 491.0 mb
 ** is_this_chippro: we are a chip
 ** gpio_allowed: pin allowed for chip or both and we're a chip
 ** gpio_export **
gpio_export: something went wrong: Device or resource busy
servo_start failedTraceback (most recent call last):
  File "servo_test.py", line 13, in <module>
    SERVO.start("CSID4", 50)
RuntimeError: Error starting servo on pin U14_35 (gpio_export: could not write '136' to /sys/class/gpio/export (Device or resource busy)
Error setting up servo on pin 136, maybe already exported? (gpio_export: could not write '136' to /sys/class/gpio/export (Device or resource busy)))

I'm sure there's probably something obvious I'm doing wrong and wondered if anyone can help?

Many thanks.

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

1 participant