Skip to main content

Pulse Train Hat for Raspberry Pi

The Pulse Train Hat for Raspberry Pi is a unique solution for anyone wanting to control motors within their own projects using the Raspberry Pi computer.

Image_11_cf086f8a5ace2279130b9b261d1c3ea3255600be.png

The Pulse Train Hat is an add-on board for the Raspberry Pi computer and allows clean, fast and accurate pulses to be created using simple ASCII commands.

There are many hardware designs where a variable frequency pulse is needed, but one that is the most popular is for driving stepper/servo motors that use pulse and direction lines.

Motors like this are found in machines such as 3D Printers, CNC machines, Robot Arms and not to mention the other endless motion control and automation machines.

Below is a Test Rig we used while developing the code.

It allows us to test all 4 channels of the PTHAT by sending the pulses to stepper drivers, that were connected to small Nema 17 motors. It also has all the limit switch inputs brought out to switches, the ADC inputs connect to 10K pots and AUX outputs connected to LEDs.

We decided to use low-cost stepper drivers that are usually found in 3D printers as they are not brilliant, but do the job. Our thinking is if the PTHAT can control these noisy little drivers, then handling the more expensive drivers would be easier!

Image_21_cf4de537832e003c7de40cd6890ed113650a93e5.jpg

Controlling motors may seem simple, but when you get down to detailed control, it can all become very confusing and a big learning curve.

With the new Pulse Train Hat (PTHAT) add-on for the Raspberry Pi and a new dedicated support site, we plan to make that task very simple and allow everyone to easily create their automation product.

Image_3_2844cee3cb7367da9c96d4f614049ce3e4ac7578.jpg

We have created a number of example applications using Visual Studio 2015 that can be used with Windows 10 IOT.

These examples have been written in C# as a Universal Windows Platform (UWP) and all the source code can be downloaded from the website.

Image_4_d1eed1e8230f5520fbce8393af3d595e1ed8795f.jpg

Image_5_f27f86e4c8d1d0243738c26a42136a7d5a1b6e5d.jpg

Image_6_ab7537b079b8500f63ed45ed09ccd8a260cb9ff1.jpg

Image_7_2c9dd2cc2d3de76ab9b81b95883dc40e9496665a.jpg

Image_8_bbe6ab80bc1a61b35a1460304c596d1be9f0f3cb.jpg

We have also designed the PTHAT to have it's firmware upgraded easily using a JTAG programmer that we supply with each board.

Also, full details on the ARM processor we use has been released covering all the GPIO information, Clock settings and peripherals for people wanting to write their own firmware.

Image_9_eb1995da7ee3a9b19c3fc811840e22d22ff0836c.jpg

Also, there are a number of wiring diagrams released covering various stepper driver hookups.

Of course, you do not have to use the PTHAT to control motors and can be used as a pulse generator for other projects.

Please feel free to check out the dedicated support site for more information http://www.pthat.com

Image_10_19df59b800fca96124d7ef73313a0040b2bd4b56.jpg

Image_111_0ee0262627d51149ef2285b99ff83c814e3350b5.jpg

Image_12_cfe12044686d95e788f7a2e96c5638b7689e7625.jpg