3D Plots: MATLAB tutorial

I’m getting questions about MATLAB plots. Maybe it’s project time. Although I am busy learning Python and matplotlib, I won’t hate on MATLAB–here is my tutorial on plotting your data in 3D using 3 kinds of MATLAB plots.

This time of year brings questions on which software is best for all kinds of topics. Common topics for this question are 3D modelling, microcontroller programming, and electromagnetic simulation. If you’re not told what to use in a class or at work, it’s smart to pick software that lets you get moving fast, rather than aim for the software package that’s #1 in the field. Pick something where you don’t get bogged down in setting up your work environment, whether because it’s easy or because you have local support specifically for that software, so you can move on immediately to learn the things that are more universal. The basic concepts of generating the x,y, and z data for your 3D plot are similar from system to system, while the details of your license server are not.

Matplotlib is aiming for the same features as MATLAB plots, so most of what you would learn in a MATLAB class applies to it even though the syntax is a little different. The main advantage of Python/matplotlib over MATLAB is that it’s free (this can be important after you move to a new job), the disadvantage is that the documentation is less consistent. Greater consistency has a price…probably they have more meetings at the MATLAB factory.

Add some fiber to your 3D printer’s diet

We continue to investigate the potential of strings and fibers added to 3D printed, laser-cut and machined parts. The most basic application is soft, flexible links between parts that wouldn’t normally bend. Beyond that, conductive materials and sliding cables are discussed in this slide set from the IDETC conference.

Here is the preprint 

New grant: Combining Soft Materials with Mechanical Parts

The lab has a new grant from the Kentucky Science and Engineering Foundation: “Combining Soft Materials with Mechanical Parts for Robotic and Human Health Applications.” We will install functional fibers in laser-cut and 3D printed parts using a modified sewing machine. Above: video of the current machine installing high strength Kevlar fiber in a plastic sheet, a process that we will develop to work with thicker fibers in the funded work. In related news, I hit the road with the embroidery machine this summer. The video above shows it stitching a design by Steve Ceron in the Organic Robotics Lab, directed by Rob Shepherd at Cornell. Such fibers are often used to control the expansion of robotic actuators, for example wrapping inflatable soft robotic “fingers” to make them bend instead of puff up. With the support from KSEF, we should be able to do more with these stiff fibers and also soft, stretchy and fuzzy materials–including some newly developed threads from the summer that are pushing the limits of the machine we have now.

Below: Kevlar fiber couched to a plastic sheet, in one of Steve’s layouts.

Below: polymer fibers under development; functional fibers spooled up and ready for stitching.

Strings attached

Whether it’s superstrings in physics or the first violin in a symphony orchestra, strings run the universe. Invisible strings control everything from creepy marionettes to the direction of the global economy.  Without them, we would lack conduits for mechanical forces and fodder for cheesy metaphors.
Strings. They form the fabric of human society and the clothing we all hope you’re wearing right now.


When it comes to engineering, how can strings help? There are plenty of cable-driven and articulated designs where automated string installation would greatly speed up the build. Conductive, shrinking, and optical fibers add functions desktop 3D printers are not yet able to provide. These are the reasons we have been working on methods to insert strings and fibers into 3D printed and laser cut parts.
Manual string installation from YouTube assembly videos of articulated 3D printed parts

Manual string installation from YouTube assembly videos of articulated 3D printed parts

(a) Fold-flat bike helmet assembly https://youtu.be/DVzoognroCY?t=28s
(b) eNable prosthetic hand assembly https://youtu.be/5HVwC3RnWXk?t=46m22s
(c) Articulated dragon model assembly https://youtu.be/pEerHkxMN2w?t=9m22s


How about some ideas from nature? Tendons come to mind,  but here is something weirder: the mysterious extinct animal Dinomischus of the Burgess Shale used strings at its core. Were they muscle fibers? Intriguing but unlikely, say paleontologists. Was their only function to keep the stomach in place, just like bungees keep a zorber centered? And how did they grow? Who knows for sure. Only three Dinomischus fossils have been found.
Screen Shot 2016-05-28 at 3.18.14 PM
The strings or “suspensory fibers” are labeled “Sus. Fb.” in this image from

Continue reading

This semester’s ECE 412 projects are on another level

April 25 was demo day in the ECE 412 (Embedded Systems) course I taught this semester, and we had the biggest batch ever. 17 teams presented projects ranging from musical instruments to games to wheeled robots.


Clockwise from top left: Skittles sorter, guitar auto-strummer, disturbing metal creature probably found in the depths of LVL1, and capacitive-touch LED-equipped piano.

This spring’s project quality led to mild swearing from the instructor. Students had about three weeks to do these projects and many were working in lab on the weekend before (or early morning of) the 8am Monday demo. New additions for spring 2016 included TWI/I2C code from Eugene Rockey that will enable students to add powerful sensors in future years. We benefited from fantastic TA’s (Eugene, plus Troy Kremer), Ben Douglas on grading/lab, Tom Carroll’s parts procurement, the growing base of previous code for the A3BUs donated by Atmel, the nearby resources of FirstBuild, the Engineering Garage, and LVL1, and possibly the fact that the 17 teams were each named after delicious local restaurants.