birddseedd
Posts: 43
Joined: Fri Jan 04, 2019 3:28 pm

What wireless controller can I use?

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?

User avatar
neilgl
Posts: 626
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: What wireless controller can I use?

Sat Jul 13, 2019 11:33 am

Maybe start with this
https://projects.raspberrypi.org/en/pro ... ld-a-buggy
then adapt it as you get more experience?

birddseedd
Posts: 43
Joined: Fri Jan 04, 2019 3:28 pm

Re: What wireless controller can I use?

Sat Jul 13, 2019 1:13 pm

I looked at the parts list by didn't see what they were using for a controller

User avatar
neilgl
Posts: 626
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: What wireless controller can I use?

Sat Jul 13, 2019 4:41 pm

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.

birddseedd
Posts: 43
Joined: Fri Jan 04, 2019 3:28 pm

Re: What wireless controller can I use?

Sat Jul 13, 2019 4:54 pm

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?

gkaiseril
Posts: 627
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: What wireless controller can I use?

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.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

birddseedd
Posts: 43
Joined: Fri Jan 04, 2019 3:28 pm

Re: What wireless controller can I use?

Sat Jul 13, 2019 5:10 pm

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

User avatar
neilgl
Posts: 626
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: What wireless controller can I use?

Sat Jul 13, 2019 5:14 pm

Between the two Pis you can use WiFi.

birddseedd
Posts: 43
Joined: Fri Jan 04, 2019 3:28 pm

Re: What wireless controller can I use?

Sat Jul 13, 2019 5:16 pm

What would I use to send data between the two programs?

User avatar
neilgl
Posts: 626
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: What wireless controller can I use?

Sat Jul 13, 2019 5:29 pm

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.

birddseedd
Posts: 43
Joined: Fri Jan 04, 2019 3:28 pm

Re: What wireless controller can I use?

Sat Jul 13, 2019 5:31 pm

Mqtt = protocol?

gkaiseril
Posts: 627
Joined: Mon Aug 08, 2016 9:27 pm
Location: Chicago, IL

Re: What wireless controller can I use?

Sat Jul 13, 2019 5:32 pm

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.
f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng.

User avatar
neilgl
Posts: 626
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near Aston Martin factory

Re: What wireless controller can I use?

Sat Jul 13, 2019 7:40 pm

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.

User avatar
mikronauts
Posts: 2708
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: What wireless controller can I use?

Sun Jul 14, 2019 1:28 am

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?
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

PhatFil
Posts: 1305
Joined: Thu Apr 13, 2017 3:55 pm
Location: Oxford UK

Re: What wireless controller can I use?

Sun Jul 14, 2019 1:45 am

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?

Return to “Beginners”