81Views2Replies

Author Options:

Controlling ServoBlaster with Keyboard Keys? Answered

I am working on a project involving multiple servos, a pi, Servoblaster, and a short period of time left.
What i was wondering, is that is there a "interface" of sorts for servoblaster that would allow me to control the servos with keys on my keyboard? I saw a thread where someone made an interface where you could switch between servo pins using left and right arrow keys, and adjust the servo with the up and down arrow keys. However, this could only be done one at a time. What i want, is to be able to control all 7 servos with 14 keys. Because of the lack of time (This is needs to be done before next week Saturday) i don't care if i have to access terminal with putty to control said interface. (A web page would be nice, but again, lack of time, and first i need the actual interface.) It really isn't an interface, i guess... I don't need to see what i am pushing/what is happening, so long as the servos move when the keys are pressed. I have a custom ./servod, which basically changes pin layout, and the max and min for the servos. Beyond that, ServoBlaster is vanilla. How would i do this? I haven't written any code for Servoblaster, nor any massive coding in general (I know basics of Python, nothing more.) Is there something like this that exists? Anyone have free time to make it? I am willing to try, so long as i am told what needs to be done. (Time is short, and i am busy. Though, i will still make an effort.)
Thanks for your time!

2 Replies

user
crapflinger (author)2015-02-12

I'm going to preface this by saying I DO NOT know anything about the coding you're doing or servoblaster or anything else

but if you have the code that the guy used with the arrow keys, you could just chop that up. ignore the bit about the left and right, and just concentrate on the up and down bit. assign the up and downs correctly for each individual pin

Select as Best AnswerUndo Best Answer

user

I'd look into that.... If i could find it again ;_;

Uninstalled it, and haven't found it again since.

Select as Best AnswerUndo Best Answer