element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Controlling a sewing machine with the PWM output from GRBL Arduino shield?
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 391 subscribers
  • Views 530 views
  • Users 0 members are here
Related

Controlling a sewing machine with the PWM output from GRBL Arduino shield?

vindieselwalker
vindieselwalker over 6 years ago

The foot pedal on the sewing machine is a 0-5V 400ohm POT. Wondering if there's any way I can control that with the PWM output. Hoping to control the speed of the stitch as if it were the spindle speed of the CNC.

End goal is an automated quilting machine.

  • Sign in to reply
  • Cancel

Top Replies

  • a531016
    a531016 over 6 years ago +1
    That's going to depend quite a lot on the sewing machine you are starting with. Can you provide details? Some generate a PWM signal internally to drive the motor anyway, so maybe you can bypass the built…
Parents
  • Gough Lui
    Gough Lui over 6 years ago

    It could be a potentially dangerous and expensive adventure - gotta keep an eye while experimenting and hopefully don't make any mistakes with the code!!! Runaway sewing machine ahoy! No responsibility accepted for any damage either, just general advice:

    • If you've determined the input is 0-5V derived from potential dividing using a potentiometer in the pedal, you could in theory share a common ground with the Arduino and run the PWM through a resistor/capacitor style filter to smooth out the PWM into an analog voltage - the downside is that there will be some lag in the control and you wouldn't be able to quite stop it straight away.
    • If you can handle just full speed or stopped, you could just run the unit from a digital output that gives either 0V or 5V. But that's in the ideal case - in reality, there will be some non-zero voltage at logic zero, and maybe slightly less than 5V at logic one. But you might also add a resistor in-line in case of logic clashes to avoid causing any damage in case of overcurrent in the circuit.
    • This would only really work in case of the control current being relatively limited. But if the sewing machine isn't isolated from the mains, probably not a good idea to common the grounds, you might need an optoisolator or similar.

     

    - Gough

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Gough Lui
    Gough Lui over 6 years ago

    It could be a potentially dangerous and expensive adventure - gotta keep an eye while experimenting and hopefully don't make any mistakes with the code!!! Runaway sewing machine ahoy! No responsibility accepted for any damage either, just general advice:

    • If you've determined the input is 0-5V derived from potential dividing using a potentiometer in the pedal, you could in theory share a common ground with the Arduino and run the PWM through a resistor/capacitor style filter to smooth out the PWM into an analog voltage - the downside is that there will be some lag in the control and you wouldn't be able to quite stop it straight away.
    • If you can handle just full speed or stopped, you could just run the unit from a digital output that gives either 0V or 5V. But that's in the ideal case - in reality, there will be some non-zero voltage at logic zero, and maybe slightly less than 5V at logic one. But you might also add a resistor in-line in case of logic clashes to avoid causing any damage in case of overcurrent in the circuit.
    • This would only really work in case of the control current being relatively limited. But if the sewing machine isn't isolated from the mains, probably not a good idea to common the grounds, you might need an optoisolator or similar.

     

    - Gough

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube