Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / How to manipulate servo?

Years of Service
User Offline
Joined: 17th Feb 2015
Posted: 22nd Jan 2018 12:50
Hello everybody.
I read a WIP thread about RC car using AppGameKit for Raspberry Pi.
May I know how we can command the servo using AppGameKit commands?
I'm just trying to manipulate a servo using AppGameKit for Raspberry Pi, but I can't see any command for doing that. Or what value should I put in. Or what gpio pin I should connect the servo wire to.
Thanks in advance. Really need the help because I don't have much experience with this...
Conjured Entertainment
AGK Developer
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 22nd Jan 2018 16:40 Edited at: 22nd Jan 2018 17:16
Too bad that thread is locked, because that is interesting.

It looks like he used servos from a Lego Robotics Kit.

That project would have cost millions of dollars at NASA if you called it a Mars rover.

I did a yahoo search for "raspberry pi tutorial for servos" and got a bunch of results including video tutorials on youtube.

You might want to check those out.

I would rather use servos and pi for a glider that uses a weather balloon to launch, and GPS for homing guidance system.

Now that I look at the prices of new servos, I am steering towards salvaging them from discarded broken RC toys.

Coding things my way since 1981 -- Currently using AppGameKit V2 Tier 1
Years of Service
User Offline
Joined: 17th Feb 2015
Posted: 22nd Jan 2018 22:43
Looks like it can be controlled with OpenToWrite and WriteByte command.
They said WriteByte can be used to turn the servo onfor a period of time to move it. Not sure how exactly because I havent tried it yet.
Would be great if someone could explain how to use those functions irl, an example.code maybe?

Login to post a reply

Server time is: 2019-05-26 00:08:59
Your offset time is: 2019-05-26 00:08:59