Page 1 of 1

RPI 3b+ and servo component

Posted: Sat Sep 14, 2019 7:03 am
by secs
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!

Re: RPI 3b+ and servo component

Posted: Sat Sep 14, 2019 12:55 pm
by LeighM
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.

Re: RPI 3b+ and servo component

Posted: Sun Sep 15, 2019 12:09 am
by secs
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