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!
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.
Join us every Wednesday night at 8pm ET for Ask an Engineer!
Maker Business — Peloton to break ground at a new manufacturing campus in Ohio
Wearables — Tear it all apart
Electronics — Disable unused channels!
Python for Microcontrollers — Python on Microcontrollers Newsletter: CircuitPython tops Tom’s Hardware Best RP2040 Boards 2021 and more #Python #Adafruit #CircuitPython @micropython @ThePSF
Adafruit IoT Monthly — Toddler Clock, Predictive Weather Station, and more!
Microsoft MakeCode — Arcade Beginner Skillmap
EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey
New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 06/09/21 feat. #Adafruit #Trinkey #QT2040 – RP2040 USB Key with Stemma QT!
Sorry, the comment form is closed at this time.