Asked — Edited

Ssc-32U Servo Controller Script

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 ARC 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 ARC.

The codes I have are: UARTInit(0,2,115200)

UARTWrite(0,2,"#31"+$pos+$m_speed,13)

Any Help is appreciated

Thank you!


ARC Pro

Upgrade to ARC Pro

Join the ARC Pro community and gain access to a wealth of resources and support, ensuring your robot's success.

PRO
Synthiam
#9  

Original poster is using the scc32 control. There's no need for code. Why are you writing code? There's no mention of uartinit or anything for using the control. Follow the manual of the control. Push the question mark on the control to read the manual as mentioned everywhere in the software and website.

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: https://synthiam.com/Tutorials/Help.aspx?id=216

Where in that manual page does it mention uartinit?

#10  

SSC-32U now has 6v power. Everything else still the same. The problem still seems to be the same (still tested the servo and works with the EZB). My script still fine?

PRO
Synthiam
#11  

It's a good idea to first understand how to move a servo and what a servo control is. Select the learn section, choose your product (I suspect ezb v4 in this case) and read the tutorials.

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?

#12  

@DJ Sures

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:


Servo(V0,65)
sleep(2000)
Servo(V0,180)

PRO
Synthiam
#13  

That's all you need. Those commands will work. If they do not work, check the configuration menu of that control. Check to see that the correct port is specified.

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.

#15  

@DJ Sures

Gotcha, Thank you very much.