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:
10
Microsoft Windows 10 IoT Core

 

Pulse Train HAT for Raspberry Pi Mecanum Bot Example

STORY

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


Leave a Comment

© 2015 Powered By Engineering Projects Team, Raspberry Pi Projects

Scroll to top