I’d like to send commands to multiple servos from Visual Studio C# through USB port.
That doesn’t sound like Arduino. The usual Arduino programmer uses C and/or C++. The usual Arduino does not have a serial port.
I found a tutorial for controlling one through the serial port however I need to be able to control more than one.
How would I do that?
I don’t know the source for the tutorial or how the tutorial was controlling a servo through a serial port, so how can I guess how to control more?
I also need to know their positions, so how would I retrieve such information from Arduino?
The usual servos do not provide any position information except that they usually end up eventually at the position that you command. Thus, the Arduino cannot provide that information.
Instead of guessing games, how about showing us what the wiring looks like and what code you have so far.
Just remember, to post:
- Use CTRL-T in the Arduino IDE to autoformat your code.
- Paste the autoformatted code between code tags (the </> button)
so that we can easily see and deal with your code.
These details and more are located in the locked items at the top of this forum.