
Cameron
Hey Everyone,
I can't seem to figure out why my servo Controller isn't working. I have put in the start up and opened up the control in EZ Builder and it still doesnt seem to work.
I have power to it from a port on EZB (D18 UART 2) and have it connected to a battery source. (I even tried it to UART 0)
I have tried Baud Rate 38400 and 115200 and it seems to work but when I try to move a servo it doesnt allow me to even adjust it. It keeps it at 90 degrees both ways and force quits EZ Builder.
The codes I have are:
UARTInit(0,2,115200)
UARTWrite(0,2,"#31"+$pos+$m_speed,13)
Any Help is appreciated
Thank you!
1) Set the ssc-32 at 38400 baud via the PDF manual...
2) Add the ssc-32 control to your ARC project...
3) Plug a servo into the SSC-32 port 0
4) Add a horizontal or vertical servo control setting the port to V0... don't try to move it yet
5) In an INIT script run this
Code:
6) Now try and move the servo
Thank you for the tip. I did all those steps and messed with the SSC 32 settings earlier so it is at the correct baud rate. And it does allow me to move the settings, but the servo doesn't move itself.. I did test it and each servo I tried does work plugged into EZB port, but not the servo Controller, everything else works though..
Here is the code I also have tried and still nothing (along with the servo not moving with me dragging the degrees manually)
Code:
UART0 Tx on EZB to RX on SSC-32U
UART0 GD on EZB to GD on SSC-32U
SSC-32U VL positive and negative plugged into 12v battery (Same as EZB, but seperated)
Do not use code to initialize anything.
The only time you ever need code is if you're using the servo() command.
Here's the direct link to the ssc32 manual if you push the question mark: http://www.ez-robot.com/Tutorials/Help.aspx?id=216
Where in that manual page does it mention uartinit?
Again, reread my previous post! Do not inituart. Do not write code. I have no idea why anyone is telling you to write any unit code.
Add the control. Look at the control manual page. Follow the instructions. Stop writing init code. Read the manual for the control. There is no reason to write any init code.
Where did you find any reference to writing init code for the ssc32 control?
I have tried different ways and it still doesnt seem to work. I have researched and looked at different examples to get a better visual and still in the same spot.
I even tried servo command:
Code:
If that still doesn't work, check the configuration of your ssc33
If it still doesn't work, check the wiring.
Those are the ONLY three things you need to check.
Again:
1) control configuration
2) ssc configuration
3) wiring
That's it.
https://www.ez-robot.com/Community/Forum/Thread?threadId=7859&page=2
https://www.ez-robot.com/Community/Forum/Thread?threadId=8449
https://www.ez-robot.com/Tutorials/UserTutorials/155/6
https://www.ez-robot.com/Community/Forum/posts.aspx?threadId=10352&page=1
Some have Init. Others are servo coding more in depth to control speeds in one line.
Gotcha, Thank you very much.