Page 1 of 1

What wireless controller can I use?

Posted: Sat Jul 13, 2019 1:16 am
by birddseedd
I want to build a bought from ground up. Four wheels, four-wheel drive. I need two joysticks, one joystick for the two right Wheels another joystick for the two left Wheels. And a few other things. I would need and knob that I can control the speed of a motor with. And a few buttons that I can control a few servos with.

What is my best bet and what type of signal would it use?

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 11:33 am
by neilgl
Maybe start with this
https://projects.raspberrypi.org/en/pro ... ld-a-buggy
then adapt it as you get more experience?

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 1:13 pm
by birddseedd
I looked at the parts list by didn't see what they were using for a controller

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 4:41 pm
by neilgl
The controller could be your mobile phone sending commands via WiFi to the pi, or some switches/joysticks connected to a pi to send commands to the robot etc. Depends on how much you want to spend.

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 4:54 pm
by birddseedd
Having a dedicated controller would make the buy a lot easier to use. Having Hardware controls vs. Software controls. Sounds like building my own controller is going to be the only way I can go about it. What would be the best method for a wireless communication between two pi's?

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 5:06 pm
by gkaiseril
You pick your controller like your cell phone or a laptop and use either ssh or VNC to log into the robot's Pi then you control the robot via your controller.

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 5:10 pm
by birddseedd
gkaiseril wrote:
Sat Jul 13, 2019 5:06 pm
You pick your controller like your cell phone or a laptop and use either ssh or VNC to log into the robot's Pi then you control the robot via your controller.
For the application I would prefer to have Hardware controls

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 5:14 pm
by neilgl
Between the two Pis you can use WiFi.

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 5:16 pm
by birddseedd
What would I use to send data between the two programs?

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 5:29 pm
by neilgl
These days I usually use mqtt. (In python) Set one pi up as an mqtt server (aka broker) and the other as an mqtt client to send messages (the commands e.g. motor1/stop ) to it.

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 5:31 pm
by birddseedd
Mqtt = protocol?

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 5:32 pm
by gkaiseril
The Pi you use to login using either ssh or VNC is the console for the Pi on the robot. You performing a remote login to the Pi on the robot and appear to be the console to that robot.

Re: What wireless controller can I use?

Posted: Sat Jul 13, 2019 7:40 pm
by neilgl
Yes mqtt is a protocol. The good news is that is it well supported on the pi and other platforms (Windows etc.) with many examples around.

Re: What wireless controller can I use?

Posted: Sun Jul 14, 2019 1:28 am
by mikronauts
Google "bluetooth wireless controller"
birddseedd wrote:
Sat Jul 13, 2019 1:16 am
I want to build a bought from ground up. Four wheels, four-wheel drive. I need two joysticks, one joystick for the two right Wheels another joystick for the two left Wheels. And a few other things. I would need and knob that I can control the speed of a motor with. And a few buttons that I can control a few servos with.

What is my best bet and what type of signal would it use?

Re: What wireless controller can I use?

Posted: Sun Jul 14, 2019 1:45 am
by PhatFil
pick your favorite game console controller ps3/4 x box or the other one, and google how to hijack its signals by your pi.. why reinvent the wheel?