Pololu Blog (Page 18)

Welcome to the Pololu Blog, where we provide updates about what we and our customers are doing and thinking about. This blog used to be Pololu president Jan Malášek’s Engage Your Brain blog; you can view just those posts here.

Popular tags: community projects new products raspberry pi arduino more…

New product: Stability Conversion Kit for Balboa (and some memories of my first robot)

Posted by Jan on 27 June 2018

I don’t blame you if you have no idea why the new Stability Conversion Kit for Balboa is so exciting. With a name like that, you probably couldn’t even guess what it is, let alone why it’s exciting. But let me keep you guessing while I share a little about the first robot I built, which is kind of a hint. It’s pure coincidence that I happened to get reunited with it just as we were preparing to release this new product I’m announcing here.

I know for sure that I built my first robot in eighth grade, for the science and engineering fair for which everyone in my school had to do a project, which means I must have started working on it in 1992 when I was twelve years old. The better projects in my school went on to the local, island-wide science fair in Hilo, and the better projects there went on to the state fair in Honolulu. (I was initially not among those chosen to go on from the Big Island, I think because of some judging process mistake, but my science teacher and probably others lobbied to get me there.) There was time between the different stages, so I kept working on it through the spring of 1993, which would now make it over 25 years old. I probably added the labels in later stages in response to some advice to better present what I made.

Jan’s first robot, “Robot Line Tracker,” built 1992-1993.

When Paul saw the robot for the first time in my office this morning, he immediately recognized a piece of it: “That looks like the gearbox from my first robot!” I was a bit skeptical, but he immediately backed it up by pulling out Gordon McComb’s Robot Builder’s Bonanza and showing me the project he had followed from the book. (In another amusing twist, it turns out that the copy of the book Paul had in his office is my old book, though I hadn’t gotten it until high school, and I didn’t realize until today that the gearbox in the book was the same one I had used.)

I’m pretty sure I got the gearbox from Edmund Scientific, because their printed catalogs and Radio Shack (nearest one in Kona, 40 miles away) were initially my only sources for anything electronics-related. The wheels were from some broken radio control toy. The ball caster was long a point of frustration. In earlier versions of the robot, I had tried more common swivel casters and then a ball caster I made from a ping pong ball in a toilet paper tube, but neither was very reliable. I was very happy to eventually find the metal ball caster that I used in the final version, which you can see here along with the three IR LED and phototransistor pairs used for detecting a two-inch white line on a black background:

That heavy, noisy caster was not ideal, but at least it didn’t jam at a bad angle like the swivel caster or collapse like my ping pong ball and cardboard creations. I am mentioning all these details because it was so much work just to put a basic chassis together, without even getting to the electronics part. The electronics are not something I want to cover in this blog post, but I should mention that I was very fortunate to find a mentor at the Canada-France-Hawaii Telescope headquarters right across the road from my school. CFHT had a nice electronics lab stocked with all kinds of components they just gave me and tools they let me use, and I got lots of help from John Horne when I was in 8th grade and then from many others there while I was in high school.

So, to bring this back to Pololu’s new product: the Stability Conversion Kit for Balboa is primarily a ball caster attachment for the Balboa chassis:

That might sound pretty basic, but using it fundamentally transforms the Balboa into a very different kind of robot. As a reminder, Balboa is a two-wheeled, balancing robot:

You can read more about the balancing robot in my blog post introducing the Balboa robot. It’s a very capable platform that we spent many years developing, but making a balancing robot is not easy, and it’s probably not the best type of robot to build as your first robot. We did not even release the chassis as a separate product independent of electronics because it would be difficult to do much with it. The new stability conversion kit completely changes that. With the ball caster, the chassis can be used as a much more beginner-friendly differential-drive mobile base with three points of contact with the ground:

We offer the ball caster attachment by itself, for those who want to use it with a complete Balboa 32U4 robot kit to immediately get up and running without developing their own electronics. We also now offer the Balboa Chassis with Stability Conversion Kit, which includes all the mechanical components for the chassis other than wheels and motors:

Balboa Chassis with Stability Conversion Kit (No Motors, Wheels, or Electronics).

As with the original Balboa 32U4 kit that includes electronics, we deliberately do not include motors and wheels so that you can pick your own to customize the look and performance of your robot. This diagram shows the possible chassis angles with four different wheel sizes ranging from 60 mm through 90 mm:

Variety of chassis angles available when using different wheels on the Balboa Chassis with Stability Conversion.

Micro Metal Gearmotor HPCB with extended motor shaft.

For motors, we recommend our 30:1 HPCB, 50:1 HPCB, or 75:1 HPCB micro metal gearmotors with extended back shafts that can be used with encoders. Even if you do not plan on using encoders on your robot at first, it’s nice to have the option down the road.

And options are what our chassis kits are all about, whether you select our Zumo tracked chassis, Romi round chassis, or now the new Balboa chassis. One of my guiding principles in developing our robot platforms is that I want to help you, our customers, build your robot, not just the particular one we designed.

I realize there are many kids interested in robotics who are not as fortunate as I was to have Canada-France-Hawaii Telescope headquarters across the street from my middle school, and that for many of them (and their parents and teachers), all of the options we offer can be overwhelming. Over the next several years, we will be working on sensors and other modules specifically for the Balboa, along with combination bundles and tutorials that will make Balboa a platform that students can begin with as a basic first robot in middle school and keep expanding through higher levels of their education.

I’ll end this product introduction as I have all my product announcements this year, with an introductory special to encourage you to try the Balboa chassis out for yourself. Be among the first 100 customers to use coupon code BALBOACHASSIS (click to add the coupon code to your cart) and get 15% off on Balboa-related products (limit 4 per product).

Shiny new software for the Jrk G2 USB Motor Controllers with Feedback

Posted by David on 26 June 2018
Tags: jrk

I am happy to announce that we have released version 1.2.0 of the configuration software for the Jrk G2 USB Motor Controllers with Feedback.

This release contains a large number of new features for our graphical user interface (GUI) software that let you have more information and control while you are setting up a feedback system with the Jrk.

The graph window received the most striking update: you can now use the mouse to vertically move and zoom the different plots independently of each other. You can change the colors of the plots and save your settings to a file so you don’t have to redo them the next time you start the utility. Colored indicator arrows appear at the top and/or bottom of the graph if one of the values you are plotting is too high or low to be plotted.

The variables shown in the status tab can now be moved into their own, separate window, so you can see them at all times without having to switch back to the status tab. Similarly, the “Manually set target” interface is now visible from every tab, so you can quickly test your feedback system after changing any setting. We added a “Center” button that sets the Jrk’s target to 2048, and we added a moving red dot to the target slider that shows the scaled feedback if feedback is enabled. If feedback is not enabled, the dot is green and shows the duty cycle instead.

The “Apply settings” button now has a blue background and a label to its left when it is enabled, to make it more obvious that you should apply your settings.

The main window and the variables window in the Jrk G2 Configuration Utility (version 1.2.0).

A brief history of Jrk software development

We developed the software for our original Jrk 21v3 and Jrk 12v12 controllers back in 2009. We used the C# language and the WinForms GUI API from Microsoft since that is what we were familiar with, but unfortunately those choices basically locked us into only having the software work on Windows. While you can compile and run C# code on Linux and macOS using Mono, and Mono does have an implementation of the WinForms API, that WinForms implementation was far from adequate. It worked on x86 Linux machines, crashed immediately on ARM Linux machines, and kind of ran but was totally unusable on macOS machines. I reported a few bugs to the Mono project, and the only response I got was that WinForms is no longer being developed actively. We never released Jrk software for Linux, though we did release Maestro and Simple Motor Controller software for x86 Linux using Mono. People have asked us many times over the years about running our software on a Raspberry Pi, and for our C#/WinForms GUI software we always had to tell them that it was not possible because there was no good implementation of the WinForms API for that platform.

Starting with the Wixel in 2011, we switched to using C, C++, and Qt for our configuration software. Qt is a giant cross-platform C++ library with many components. For us, the most important component is Qt Widgets, which makes it easy to develop a cross-platform GUI with the standard elements that people expect, like windows, menus, buttons, checkboxes, and text fields. There are wrappers for accessing Qt in different languages, but we chose to write our GUI software in C++ so that it can directly access Qt, and because C++ code is easier to deploy than a lot of other languages that might require a virtual machine or interpreter. Qt works well on Windows, macOS, and Linux – including on the Raspberry Pi. While we sometimes encounter bugs in Qt or overly-rigid APIs that lack important features, we are usually able to work around those issues and get a good result.

Along with C++ and Qt, we use the C language to write low-level libraries for actually talking to the USB devices. The upper layer of these libraries takes device-specific commands like “set target to 2800” and translates them into USB commands. The lower layer takes the USB commands and passes them to an appropriate USB API provided by the operating system. This is a nice way to split up the software: the device layer knows about the device but doesn’t know about the operating system, and the USB abstraction layer knows about the operating system but doesn’t know about the device.

The Wixel software developed in 2011 used its own minimal USB abstraction layer written in C. The first versions of p-load, developed in 2014 for our P-Star 25K50 Micro, did something similar. In 2015, I built on the lessons learned from these earlier projects to develop a much better USB abstraction library called libusbp. This new library has been working great for us since then, and powers all of the USB communication in the latest versions of p-load, the Pololu USB AVR Programmer v2 software, the Tic software, and the Pololu Jrk G2 software.

In 2017, I developed another piece of the stack: nixcrpkgs. The nixcrpkgs project solves the problem of reliably compiling our portable C/C++ source code into actual executables and installers that work on a variety of different systems. With nixcrpkgs, I can compile our software for Windows, macOS, and Linux (32-bit, 64-bit, and ARM) by just running a single command on one computer. It allows me to control the exact versions of all the dependencies that go into the software. I no longer have to worry about the versions of tools and libraries installed on my development machines. I also do not have to worry about the software installed on the end user’s machine: software compiled with nixcrpkgs uses static linking so all of its dependencies (except for certain things provided by the operating system) are linked directly into the executable. The download for the Jrk G2 software for the Raspberry Pi generated by nixcrpkgs is only 6 MB (compressed), and it installs just 4 files.

Prior to nixcrpkgs, we only provided binary downloads for Windows and macOS. It was difficult to produce these downloads because we relied on third-party software distribution systems like MSYS2 and Homebrew to provide binary versions of the libraries we depended on, and we didn’t have much control over those systems. We required Linux users to compile the software and its dependencies (like libusbp) themselves. Compiling software from source can be a pretty error-prone process: we strive to make our software portable, but it’s hard to test enough combinations of compiler and library versions to avoid all the issues that might come up.

The Jrk G2 software is open source and comes with build instructions for many platforms. I am hoping that this will allow people to do cool things in the future, such as translating the GUI text into their native language, adding buttons to perform custom commands, or using the code in their own software to control the Jrk. It should also provide some confidence that you will be able to use the Jrk in long-term applications and recompile the software for future operating systems.

You can download the new software from the Jrk G2 Motor Controller User’s Guide or the “Resources” tab on a Jrk G2 product page. If you need help using the software or troubleshooting your system, please post on our forum. If you have feedback or additional feature requests for the software, let us know in the comments.

Video: LVBots May 2018 line following competition

Posted by Ryan on 13 June 2018
Video: LVBots May 2018 line following competition

LVBots held a line following competition at Pololu on May 24th. This time we had our “classic” line following course like in previous competitions, and an “advanced” course with gaps, intersections, tighter turns, and shortcuts. Continued…

New Products: TB67S249FTG and TB67S279FTG Stepper Motor Driver Carriers

Posted by Jan on 8 June 2018
Tags: new products

I am happy to announce the release of two new stepper motor driver products, carriers for Toshiba’s TB67S249FTG and TB67S279FTG. The only difference between the two is the maximum current supported, and with operation up to 47 V, the TB67S249FTG is our highest-power stepper motor driver. Both chips offer several innovative features, including Toshiba’s Active Gain Control (AGC):

Ben and I met with some Toshiba reps at the CES show earlier this year and got to see the demo setup shown starting from around 1:45 in that video, and it looks like it could be great for many applications where the drivers and motors are inefficiently running at maximum current all the time.

The folks at Toshiba were also excited about their Advanced Dynamic Mixed Decay (ADMD) feature:

The last special feature that I’ll point out is the internal current sensing, which Toshiba calls Advanced Current Detection System (ACDS). This is not very relevant when comparing our assembled breakout boards, but if you are considering using the driver chips directly in your own design, not having to add two big current sense resistors is a big plus.

Because these stepper motor driver ICs have so many features, we made breakout boards larger than our usual small stepper driver carriers (popular on RAMPS and similar projects) so that we could fit all the necessary control pins. We are looking into the feasibility of fitting this chip into that smaller 0.6″ × 0.8″ form factor and what mix of features we would make accessible on it.

As with all of our new product announcements, we are offering an introductory discount to make it extra easy to try out these new drivers. Be among the first 100 customers to use coupon code TB67SINTRO (click to add the coupon code to your cart) and get 40% off on up to three units of each type.

Now available: VL53L1X library for Arduino

Posted by Kevin on 6 June 2018
Tags: arduino
Now available: VL53L1X library for Arduino

We’ve released a basic VL53L1X library for Arduino to make it easier to get started using an ST VL53L1X time-of-flight distance sensor with an Arduino-compatible controller.

Because of how complex the VL53L1X is and how difficult it is to learn how it works, developing a library for it has been more of a challenge than writing one for a typical sensor like an LSM303 accelerometer/magnetometer. Continued…

Mycronic MY600 solder paste jet printer first print

Posted by Jan on 30 May 2018

Installation of our new Mycronic MY600 that arrived earlier this month is going smoothly. Here are a few pictures and a video from our first test print on a Pololu PCB panel.

Ninoos from Mycronic showing us how to use the MY600 solder paste jet printer.

First Pololu test panel in our new Mycronic MY600 solder paste jet printer.

The gantry is supported only on the left side!

First print on a Pololu PCB panel using Mycronic MY600 solder paste jet printer.

MY600 jet printer first print: Looks like we need a little more solder paste under the central chip and a little less on the leads.

That footage of the jet printer in action is not sped up!

Save on all active Pololu-brand products, now through Tuesday

Posted by Ben on 25 May 2018


Over the next few days, we’re welcoming summer by discounting all active Pololu-brand products, which is almost everything we make. If you’re about to have a lot of free time on your hands, why not spend some of it building a robot? And if you’re going to be as busy as ever this summer, why not unwind by building a robot?

Check out the sale page for details!

Please note that we will be closed on Monday for Memorial Day, so orders will not ship until Tuesday, May 29.

MY600 solder paste jet printer arrived!

Posted by Jan on 18 May 2018

In my February post about our new equipment, I wrote about why I did not get a jet printer for solder paste. Well, I ended up getting one after all, and it arrived today.

We have a great building, but we don’t have loading docks, which always makes these big equipment deliveries a bit more of an adventure. Despite assurances that the crate would be at the back of the truck (and that it would have a lift gate that could handle the weight), it arrived way at the front.

18 May 2018: yet another heavy machine (MY600 jet printer) arrives deep in a truck.

At least it wasn’t as big of a crate in as deep of a truck as this time. The Mycronic MY600 jet printer is not the biggest machine, but it weighs a ton because of its granite base. And by “it weighs a ton”, I mean literally more than two tons. Especially with the weight of the crate and the other accessories in there, it was way too much for the lift gate. We tried to get two pallet trucks under it but could not get it to move, even after repositioning the truck to make the crate moving downhill.

Because of the crate’s weight and weight distribution, we couldn’t drag it downhill even with two pallet trucks.

The big forklift we rented had not arrived yet, but our smaller forklift was able to add enough pulling power to get the crate to the back of the truck.

Dragging the MY600 jet printer crate out of the truck with our smaller forklift.

MY600 jet printer crate almost to the back of the truck.

I like noticing that silver Honda in the back of some of these pictures. Here it is almost sixteen years ago (more about our first ten years in Vegas here):

Leaving Watertown, MA on 30 May 2002.

The big forklift arrived just in time to keep us from attempting some small forklift plus lift gate kind of stunt.

10,000 pound forklift with long forks arrived just in time.

The crate had a very lopsided weight distribution, and the crate had some peculiar skids that required some precision alignment to get the fork into the pocket. (The small gap was too small for the pallet trucks, which contributed to the earlier difficulty in moving the crate with pallet trucks.)

Couldn’t they have given us a few more inches for the fork to fit?

Ryan lining up the forks just right to get under the MY600 jet printer crate.

I really liked truck driver Sharrieff, with a great “we’re going to work together and we’re going to get this crate down” attitude. I just noticed now as I wrote this up that he’s the owner of his trucking company.

Woo, the crate is safely on the ground!

With the crate in our warehouse and the sides removed, it was easier to see why the weight distribution was so off-center.

First glimpse of the MY600 jet printer in its crate.

MY600 jet printer unwrapped.

And here it is in its temporary home next to the Europlacer stencil printer we got earlier this year:

Mycronic MY600 jet printer temporarily in position next to Europlacer stencil printer.

It’s a temporary home since we will be doing some major remodeling of our building later this year. At the moment we have two full SMT assembly lines, with the newest pick-and-place machine separately on its own in a batch setup. Once we free up more space on the main manufacturing floor, we should be putting the jet printer in line with the pick and place machine in a third complete line that should be ultra-optimized for efficient manufacturing in small quantities. Installation of the new jet printer isn’t until after Memorial Day, and I will be sure to post more updates once we have the machine in action.

We didn’t drop it!

New Product: TB9051FTG Motor Driver Carrier

Posted by Jan on 14 May 2018

This is the second new motor driver product in less than a week, and I’m really excited about this one: the TB9051FTG from Toshiba. The TB67H420FTG I posted about the other day has this new part beat for higher voltages, but its one shortcoming for our purposes is that it doesn’t work at lower voltages. This new TB9051 doesn’t go up into those voltages where it starts getting dangerous, but it covers a great operating range of 4.5 V to 28 V, with transient operation to 40 V, which means you can use this driver with everything from 6 V lead-acid batteries and 2-cell LiPo packs all the way up to 24 V systems and 6-cell LiPo packs, maybe even 7-cell packs. The operating voltage range is similar to another recent favorite of mine, Maxim’s MAX14870, but this new Toshiba part delivers almost double the current.

Pololu dual MC33926 motor driver (assembled) on a Raspberry Pi Model B+.

With its excellent operating voltage range and great current ability for an integrated package, I expect the TB9051 to be an ideal all-around DC brushed motor driver for most indoor robots and other projects that do not involve moving frighteningly large objects at potentially catastrophic speeds. The chip seems positioned to compete performance-wise with my previous almost-favorite chip, the Motorola Freescale NXP MC33926. That chip would have been my favorite if it had been easier to work with Freescale, and things have only gotten worse since NXP acquired them and then got distracted by yet another merger, this time with Qualcomm, which seems to have been in limbo forever. Maybe their sales are actually doing great, and we just have a hard time with them because they are busy with bigger customers. In any case, a part with great performance is not so great overall if it’s difficult to get it, so you can expect us to be updating some of those products that use the NXP part to use the Toshiba part instead.

One pretty obvious feature the TB9051 has over the MC33926 is its smaller size, from 8 mm x 8 mm down to 6 mm x 6 mm, which is great for getting these onto smaller boards in smaller spaces, but it might also have some ramifications for how it tolerates pushing the limits of the specs. We liked how the MC33926 was able to endure lots of abuse from customers who were pushing it because it was our highest-voltage integrated driver. The TB9051 is, like the MC33926, an automotive-rated part, so it is intended to last a long time in harsh conditions. It’s interesting to see how thick the packages for these chips are, and I like their thickness (similar to how I like the proportions on 737 airplanes):

Clockwise from upper left: packages of a 28-pin microcontroller, TB9051FTG, MC33926, TB67H420FTG, and TB6612FNG.

This video makes it seem like Toshiba is quite proud of their packaging accomplishment with the TB9051FTG:

Update: It looks like the above video might no longer be available on youtube, but it is still available on the Toshiba website.

Is the “competitor” in this video the MC33926? Sure seems like it to me. I know of no other part like that, and I keep looking.

Toshiba has not publicly posted a complete datasheet for the TB9051FTG yet, so the product page for our carrier only has a preliminary summary document. Our product page has more information about how to use the device, and we are working on getting a complete datasheet that we can post.

Since I expect this driver to hit a nice sweet spot for many of our customers’ general-purpose motor control needs, it’s a good candidate for using in some higher channel count products. We have not gone much beyond two motors (the TReX motor controllers have a third, unidirectional channel), and I would like to know what kind of interest there is in single boards that can control three or more motors. If you would like to see such products, please let me know.

As with all of our new product announcements, we are offering an introductory discount to make it extra easy to try out these new drivers. Be among the first 100 customers to use coupon code TB9051INTRO (click to add the coupon code to your cart) and get up to three units for just $4.95 each. We are still manufacturing our initial stock of these, and even if the quantity shown online goes to zero, you can backorder with the coupon price and chances are that we will be able to fill your order the same day.

We're having an Arduino Day sale, now through Monday!

Posted by Ben on 10 May 2018


Arduino Day is this Saturday, May 12, and in celebration, we are having a big sale on many of our Arduino-related products, including Pololu-made Arduino shields and Arduino-compatible A-Stars and robots. For those who aren’t necessarily enamored with the Arduino environment but are excited about AVR microcontrollers, you can program these products from AVR Studio or other environments using our AVR Programmer, which is also on sale. And because of the awesome way we don’t include motors with the Balboa or Zumo Robot kits, we are also putting those on sale so you can get all the parts for your robots at a discount (we’ll let it slide if you just want to stock up on motors independent of any kind of Arduino application)!

The sale has already started, and it runs through Monday, May 14.

New Products

ACS72981LLRATR-100B5 Current Sensor Large Carrier -100A to +100A, 5V
ACS37220LEZATR-150B5 Current Sensor Compact Carrier -150A to +150A, 5V
4.2-15V, 3.3A Fine-Adjust Step-Down Voltage Regulator D30V33MAS
DRV8434 Stepper Motor Driver Carrier
Zumo 2040 Robot (Assembled with 50:1 HP Motors)
ACS72981KLRATR-150B3 Current Sensor Compact Carrier -150A to +150A, 3.3V
ACS71240KEXBLT-050B3 Current Sensor Carrier -50A to +50A, 3.3V
150:1 Micro Metal Gearmotor MP 6V with 12 CPR Encoder, Side Connector
ACS72981LLRATR-050U3 Current Sensor Large Carrier 0A to 50A, 3.3V
Zumo 2040 Robot (Assembled with 100:1 HP Motors)
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors