Control multiple small robots from a single pc, how to connect
Posted: Thu Aug 17, 2023 3:29 pm
Hi all,
new here and not sure if this is the correct forum to ask this so feel free to guide me to a better place if needed.
Anyway, picture attached is somewhat what I would like to build, multiple small 3D-printed robots/cars that I could control from a single pc with a controller one at a time and then change the unit I'm controlling with a D-pad on the controller or choose the unit from a software that's running on the pc. Or have multiple "players" with controllers that could shuffle the free units and each control one at a time.
I know how to write the software for the pc and I know how to write the code for the robots moving and stuff.
The question:
What is unclear to me however is how could I handle the communication between the robot unit being controlled and the pc. I guess it should be some kind of an ssh connection but not an ssh? Some form of stream of inputs from the pc to the esp. Basically rc-control but over the wifi.
The connection should be somehow terminated when a user switches from controlled unit to another so that the pc software can see that a unit is "free" to use and the robot unit itself knows to halt all motion. And then the connection should be formed again when a user decides to control that unit.
I don't think an usecase like this needs to be very secure so any kind of a raw data stream should be fine.
Most of the tutorials I find online seem to all be about making single commands to turn lights etc on/off but how would I have a constant input with joysticks and buttons. So if you know any documentation about this kind of project please leave a link.
Bonus question:
Are there some limitations which boards would be suitable for this kind of application?
Thanks in advance for any tips or help you are able to provide
new here and not sure if this is the correct forum to ask this so feel free to guide me to a better place if needed.
Anyway, picture attached is somewhat what I would like to build, multiple small 3D-printed robots/cars that I could control from a single pc with a controller one at a time and then change the unit I'm controlling with a D-pad on the controller or choose the unit from a software that's running on the pc. Or have multiple "players" with controllers that could shuffle the free units and each control one at a time.
I know how to write the software for the pc and I know how to write the code for the robots moving and stuff.
The question:
What is unclear to me however is how could I handle the communication between the robot unit being controlled and the pc. I guess it should be some kind of an ssh connection but not an ssh? Some form of stream of inputs from the pc to the esp. Basically rc-control but over the wifi.
The connection should be somehow terminated when a user switches from controlled unit to another so that the pc software can see that a unit is "free" to use and the robot unit itself knows to halt all motion. And then the connection should be formed again when a user decides to control that unit.
I don't think an usecase like this needs to be very secure so any kind of a raw data stream should be fine.
Most of the tutorials I find online seem to all be about making single commands to turn lights etc on/off but how would I have a constant input with joysticks and buttons. So if you know any documentation about this kind of project please leave a link.
Bonus question:
Are there some limitations which boards would be suitable for this kind of application?
Thanks in advance for any tips or help you are able to provide