Hi all.
I am playing with a servo motor and needed to drive it as a test. Having a RPI sitting here I added a servo component to it but keeps throwing an error. It will simulate but if I try and compile to chip it errors.
I took the servo component out and it compiled to chip ok. Put it back without anything else changing and it erros. I checked the forums and cant find anything. I simply assumed as it let me add it it was compatible but am I wroong?
Error
Building servo1
servo1.c:521:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
servo1.c:733:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
{
^
Error(s) in build!
RPI 3b+ and servo component
Moderator: Benj
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: RPI 3b+ and servo component
Hi,
The servo component won't be compatible with Raspberry Pi due to the need for precise timers.
I will have a think about alternatives next week.
The servo component won't be compatible with Raspberry Pi due to the need for precise timers.
I will have a think about alternatives next week.
-
- Posts: 71
- Joined: Fri Jul 31, 2015 9:21 pm
- Has thanked: 2 times
- Been thanked: 12 times
- Contact:
Re: RPI 3b+ and servo component
All good Leigh.
Just wanted to make sure it wasntsomething I was or wasnt doing
I was just needing to test a servo and breadboarded a small circuit but was missing a couple of capacitors and since I had a rpi here thought I might do it that way.
Absolutely no hurry as its not an ongoing issue for me anyways
Keep up the good work. Very happy with the huge support you and Matrix provide.
Peter
Just wanted to make sure it wasntsomething I was or wasnt doing
I was just needing to test a servo and breadboarded a small circuit but was missing a couple of capacitors and since I had a rpi here thought I might do it that way.
Absolutely no hurry as its not an ongoing issue for me anyways
Keep up the good work. Very happy with the huge support you and Matrix provide.
Peter