algorithmic modeling for Rhino
Tags:
Hi Yasser,
The main reason you're having problems is that you haven't told the output pin what type of data you're trying to send out... in this case it should be Servo. I can see from your image that all of the output messages are set to "LOW" which is a digital signal (and not a servo signal). If you right-click on the DPin11 input and set the input state to Servo, then you should be able to control your servo from 0-180 degrees.
Also, your circuit setup is a little strange to me. Basically, you should be able to control 1 servo just from the Arduino board (connected to your computer). You don't really need an external power supply You can basically connect the GND pin from your Arduino directly to the GND wire on your servo... you can connect the 5V Output pin on the Arduino to your Power line on your Servo... and your Signal wire on your servo should go to Digital Pin 11 (according to your screenshot). Of course, you can use an external power supply if you want... but it may be more complicated than is needed (plus, I'm not sure why you need to use that blue adapter at the left of your picture). Anyway, just a suggestion.
HTH,
Andy
Thanks Andy for quick reply,
I'm sorry for not add specific question. Yes,I have select PWM output before and it move just 1 degree, because if I used Servo output, it can't move.
Yeah, first time I've used power from Arduino board too, but have'nt enough power, then my port Usb laptop got error when plug-in from Arduino board, in UNO write component said "runtime errors: Solution exceptions: The port COM31 does'nt exist". When I said to servo seller, they said I need DC for external power supply.
Finally, my servo dancing to 180 degree :D
I switch adapter to 6V and share ground (black wire) from adapter to Arduino board GND.
I find it in this discussion: http://rcarduino.blogspot.com/2012/04/servo-problems-with-arduino-p...
Thank you so much to Andy Payne, for great plug-in.
Great. Glad you got it fixed.
-Andy
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by