2010年11月8日 星期一

EggPointer

Video Inside


video

使用Rhino外掛的Firefly來控制Arduino
作為控制伺服馬達的介面
更清楚的影片
clearer video here:


Use the Firefly plugin under the Rhino/Grasshopper
to design an interface for controlling the motors.



這是EggPointer的Grasshopper檔案
左邊主要為埠port的設定
透過Arduino軟體我們可以知道現在所使用的port為何
(安裝方法請參考firefly網站
可下載軟體及PDF)

This is the EggPointer's grasshopper file.
On the Left is the setting of the port
and use the arduino we could get what port are you in
(check out the firefly website to get the program
and PDF tutorial to know how to set-up)

在右邊的主要就輸出的功能
基本上就0與1的變化
(即是開與關)
有星號的
3, 5, 6 ,9, 10, 11
可為PWM
即可操控伺服馬達所用

On the right, mainly it is the output.
Basically you just set "1" or "0"
to control "on" and "off".
The number, 3, 5, 6, 9, 10, 11 with"*"mark
mean there could be used for PWM
to control the Servo Motors.


設定好之後
只要移動Slider於0-180之間
則可控制蛋形的轉動


When we get all setup, we just use the slider 
to control the servo motor.


唯一的問題是
好像裝多個馬達之後訊號會有問題


the only question of this is if I set up more than 2 servo motors, 
it seems to have problem sending the data
and make wierd movement.  



2 則留言:

  1. Nice work. You mentioned you were having problems controlling more than 2 servos. If you are using the standard Firefly Firmata, then can only use pins 9, 10, and 11 for servo control (this has been defined in the Firmata). You will likely get poor results if you try to put a servo on a different pin. There is another Firmata sketch that comes with the zip file from the website (www.fireflyexperiments.com) that does enable up to six servos to be controlled... but you have to make sure you load the right Firmata onto your board to get this to work properly. Feel free to post questions on the Firefly website if you have any further concerns.
    Thanks,
    Andy Payne
    Firefly co-developer | LIFT architects

    回覆刪除
  2. OH~ OK I got it, I just load the first Firmata, so maybe it will solve the problem after I load the 6 servos one, Thank you~~How did you get to know my blog?

    回覆刪除