0

June 11, 2014 AT 8:00 am

DIY Open Embroidery Machine #WearableWednesday

2014-04-21 19.58.42

DIY Embroidery machine with XY belt and pinion drive via Hackaday

I was thinking about a winter project when the Missus informed me that she fancied an embroidery machine. Although there seemed plenty of options, I got to thinking that perhaps I could adapt her relatively cheap sewing machine. This site helped me to quickly understand the many options that would be available to me.

The main requirement is to control a 2D XY arm that positions the embroidery hoop as required. In addition, the machine also requires control of the sewing machine mains supply, and some means of reliably detecting the needle position.

I came across the V-Slot belt and pinion drive, as published on this site, and set about creating a 2D version using a single gantry plate with drives on opposing sides.The attached sketch-up file shows the final concept, and it is this design that became the prototype.

The type 17 stepper motors use a pinion with 20 teeth driving a 2mm pitch belt (rack). Thus one full revolution gives a displacement of 40mm – this results in a resolution of 0.1mm when used in half step mode. The stepper drives were purchased from EBAY and use the very common L298 driver. I used a 12V supply and pulse width modulation to control the maximum drive current.

The heart of the system is based around a 16F73 PIC Microcontroller that provides the stepper motor control and current regulation. The speed is set at a relatively sluggish 500 steps/s for both axes, avoiding the need for relatively complex acceleration/deceleration profiles. The PIC chip also monitors the mains zero crossing and controls the trigger delay for the TRIAC – used to control power to the sewing machine motor. Both these circuits are opto-isolated to ensure separation from the main supply – this should not be attempted unless you are experienced in the field!

The needle position detection proved quite tricky, but a simple solution using some very fine spring steel gave me the detection required.

Finally, communications to the PIC chip was via serial I/O – using a simple ascii command set running at 38400 Baud.

The high level interaction is provided by an Android tablet (Nexus 7) with code on this developed using Eclipse. Bluetooth connection was provided by adding a widely available Ebay Bluetooth module to the embedded board. I probably spent just as much time with Eclipse as I did on the rest of the project put together. My background is C++ using MS Visual Studio 2010 and it took quite a bit of conversion to get into the Java world!


Check out all the Circuit Playground Episodes! Our new kid’s show and subscribe!

Have an amazing project to share? Join the SHOW-AND-TELL every Wednesday night at 7:30pm ET on Google+ Hangouts.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Learn resistor values with Mho’s Resistance or get the best electronics calculator for engineers “Circuit Playground”Adafruit’s Apps!


Maker Business — Transforming Today’s Bad Jobs into Tomorrow’s Good Jobs

Wearables — Brushing it clean

Electronics — Electrolytic Limitations

Biohacking — High Power Density Human Sweat Battery

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



1 Comment

  1. Great project.

    Can you give us an idea of build cost?

    Can we use a larger hoop?

    Thanks for any help.

Sorry, the comment form is closed at this time.