Pulse Train HAT for Raspberry Pi Mecanum Bot Example

Hardware components:
Pi 3 02
Raspberry Pi 3 Model B
Tested with Raspberry Pi 3
× 1
Pulse Train Hat
× 1
Xbox Controller
× 1
Software apps and online services:
Microsoft Windows 10 IoT Core


Pulse Train HAT for Raspberry Pi Mecanum Bot Example


PTHAT Mecanum Bot Example using Instant Commands

With this example, we show how to use the PTHAT and wireless Xbox controller to control a Mecanum Bot.

We called it the Mecanum Bot because it uses the Mecanum wheels that allows for some mad moves.

It works great with all communications sent over WiFi and it can be used with a Xbox controller for free style.

The PC acts as a middle man where the wireless Xbox controller communicates to a Universal Windows Application (UWA) written in C# for Windows 10 IOT.

It then creates a Network Socket connection over to the another UWA running on the Raspberry Pi that listens on the network and receives commands and then relays those commands to the Pulse Train Hat, which controls the motors.

First we deployed the UWA to the Raspberry Pi and then used the IOT Remote Control to set things up.

Within the application you first connect to your Raspberry Pi serial port by choosing it from the drop down list and then clicking the Connect button.

Now you can test the Jog buttons within the application to make sure the Bot moves and then move onto testing with the Xbox Controller using the UWA that runs on the PC.

The UWA running on the Raspberry Pi also creates a Network Socket and listens on Port 9000 for incoming packets from the PC where the Xbox controller is connected.

As you can see there are not a lot of components and it is pretty big at over 500mm square and using 152mm wheels.You can get smaller, cheaper wheels and also use smaller low cost motors.

Instant Commands used in this example are:

Set Axis Command Start Axis Command Stop Axis Command Toggle Motor Enable Line Request Firmware Version Reset PTHAT.

Pulse Train HAT for Raspberry Pi Mecanum Bot Example

The end developer has easily modify this example to build their own application.

Read More: Pulse Train HAT for Raspberry Pi Mecanum Bot Example

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top