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?
-
- Posts: 43
- Joined: Fri Jan 04, 2019 3:28 pm
Re: What wireless controller can I use?
Maybe start with this
https://projects.raspberrypi.org/en/pro ... ld-a-buggy
then adapt it as you get more experience?
https://projects.raspberrypi.org/en/pro ... ld-a-buggy
then adapt it as you get more experience?
-
- Posts: 43
- Joined: Fri Jan 04, 2019 3:28 pm
Re: What wireless controller can I use?
I looked at the parts list by didn't see what they were using for a controller
Re: What wireless controller can I use?
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.
-
- Posts: 43
- Joined: Fri Jan 04, 2019 3:28 pm
Re: What wireless controller can I use?
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?
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.
-
- Posts: 43
- Joined: Fri Jan 04, 2019 3:28 pm
Re: What wireless controller can I use?
Between the two Pis you can use WiFi.
-
- Posts: 43
- Joined: Fri Jan 04, 2019 3:28 pm
Re: What wireless controller can I use?
What would I use to send data between the two programs?
Re: What wireless controller can I use?
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.
-
- Posts: 43
- Joined: Fri Jan 04, 2019 3:28 pm
Re: What wireless controller can I use?
Mqtt = protocol?
Re: What wireless controller can I use?
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.
Re: What wireless controller can I use?
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.
- mikronauts
- Posts: 2820
- Joined: Sat Jan 05, 2013 7:28 pm
- Contact: Website
Re: What wireless controller can I use?
Google "bluetooth wireless controller"
birddseedd wrote: ↑Sat Jul 13, 2019 1:16 amI 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
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi
Re: What wireless controller can I use?
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?