. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I get noise when my stepper motors enable. It affects my FM radio.
    Now.. I have no switches and all circuits etc in a metal control box. The noise is from my estop (un-screened cable in use).

  2. #2
    Kitwn's Avatar
    Lives in Don, Tasmania, Australia. Last Activity: 12 Hours Ago Has been a member for 7-8 years. Has a total post count of 985. Received thanks 118 times, giving thanks to others 52 times.
    Quote Originally Posted by dazp1976 View Post
    I get noise when my stepper motors enable. It affects my FM radio.
    Now.. I have no switches and all circuits etc in a metal control box. The noise is from my estop (un-screened cable in use).
    Have a look at that video Cube3 posted on page 1. Ferrite rings should help you there. You can wind the cable through the ring to increase it's effect.
    Click image for larger version. 

Name:	Ferrite-1.jpg 
Views:	542 
Size:	102.4 KB 
ID:	27740
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

  3. #3
    Kitwn's Avatar
    Lives in Don, Tasmania, Australia. Last Activity: 12 Hours Ago Has been a member for 7-8 years. Has a total post count of 985. Received thanks 118 times, giving thanks to others 52 times.
    Embarrassing but I must own up: I realised during my tests that for all these years I've left the 36V supply for my stepper motors floating. Neither rail was grounded so the whole supply was bouncing up and down by 8 Volts at several KHz. It's a miracle the machine worked at all! Any way that's now fixed and some of the bits from RS have arrived, though not the screened cable for re-wiring the sensors yet.
    -
    Fortunately I have access to the highly sophisticated electronics test laboratory shown below and have been able to make some very revealing, noise-free measurements on the spare cheap Chinese breakout board. Earlier reported voltage measurements were made in the presence of noise and are not reliable.
    -
    With an input fed to the board header rather than the screw terminals, a falling voltage must drop below 0.6V to set the output of the board. A rising voltage must go above 1.7V to reset it. This gap is the hysteresis we expect from a Scmitt trigger input chip and provides some noise immunity.
    -
    When using normally closed (NC) microswitches as sensors the inputs are a good solid short circuit for most of the time and only open briefly during homing. Excellent noise immunity is obtained in this configuration as proved by the fact that my machine has worked reliably for a few years!
    -
    Using proximity sensors presents a problem, even with opto-isolators or other electronic interfacing, since the saturated collector-emitter voltage at the output of the proximity detector or from an isolator when triggered is about 0.6V. No guarantee of reliable triggering here even without noise. The use of a potential divider circuit as described earlier is an option but I've decided to use a more direct and low-impedance option... reed relays. These will be fed by an NPN emitter-follower transistor which serves to boost the current available from the proximity sensor.
    -
    Some will scoff no doubt, but it actually makes sense for a few reasons:
    I know from past experience that a solid short circuit on the inputs works reliably, even in the presence of high noise.
    Low-pass filtering is excellent and requires no additional components.
    When wired as I plan to have them, with the 12V from the sensor holding the relay contacts closed as the normal state (this mimics the previously known-good NC microswitches), the circuit is proof against wiring faults as any breaks will trip the limit input.
    -
    Regarding positional accuracy, a key point of using proximity sensors is improved repeatability over microswitches. The reed relays I'm going to use have a specified response time of 0.5mS. Allowing for, say, 20% variation that gives a repeatability of within of 0.1mS. I can't remember exactly what my second approach speed is set at for homing in LinuxCNC but if it's even as high as 1m/min that equates to a variation of around 2 microns. Which equals nothing.

    The 4 relays are $20 the lot from RS, the transistors and a wee bit of veroboard are existing stock worth much less. The whole circuit has been tested on the bench ( I have 2 relays in stock already) and works a treat. So I might just have a fully working machine again well before Mark McGowan let's me back in the pub!

    Click image for larger version. 

Name:	BreakoutTest-1.jpg 
Views:	5623 
Size:	350.2 KB 
ID:	27796
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

  4. The Following User Says Thank You to Kitwn For This Useful Post:


  5. #4
    No scoffing from this direction.

    I'm somewhat surprised with the Vce(sat) for the opto, but if that's what you've measured then that's what it is. Personally at that stage I'd be using change-over contacts for single-switched inputs and using NC=gnd, NO=5V just to yank that signal line to one rail or the other (nothing left floating).

    For the nay-sayers, what Kitwn's post is providing is belted-and-braced robust and deterministic behaviour. There's too many problems in the world to save pennies on uncertainty on our machines.

    Perhaps I'm feeling humbled after a day's worth of trying to get my control box switching automatically between two machines... and making some stupid assumptions... right, where's that damned scope gone...

  6. #5
    Quote Originally Posted by Kitwn View Post
    Embarrassing but I must own up: I realised during my tests that for all these years I've left the 36V supply for my stepper motors floating. Neither rail was grounded so the whole supply was bouncing up and down by 8 Volts at several KHz. It's a miracle the machine worked at all! Any way that's now fixed and some of the bits from RS have arrived, though not the screened cable for re-wiring the sensors yet.
    -
    Click image for larger version. 

Name:	BreakoutTest-1.jpg 
Views:	5623 
Size:	350.2 KB 
ID:	27796
    I am just rewiring my control panel and realised that my 48V to the drivers was also floating.

  7. #6
    Kitwn's Avatar
    Lives in Don, Tasmania, Australia. Last Activity: 12 Hours Ago Has been a member for 7-8 years. Has a total post count of 985. Received thanks 118 times, giving thanks to others 52 times.
    Muzzer, Neale,

    My original issue with this was in regard to noise getting into the BoB supply which appeared to have been a major part of my problems. It seemed obvious at the time, but I take the points you both make. As long as the BoB supply and the motor supply are completely separated and the cable screens effectively grounded it should not be an issue. I have my machine working now and am keen to start using it to make things but I thing the next time I decide on a significant upgrade it will have to include a complete rebuild of a new controller in a better enclosure with a far more comprehensive approach to noise screening.

    The clamp-on ferrites look like an excelent idea and I'll order a bagful.

    Rob,
    As you'll see from the above replies, you shouldn't be changing that anytime soon. My reasoning lacked the rigourous engineering logic it should have had.
    Last edited by Kitwn; 29-04-2020 at 02:20 AM.
    An optimist says the glass is half full, a pessimist says the glass is half empty, an engineer says you're using the wrong sized glass.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Limit switch problem
    By ECCO in forum General Electronics
    Replies: 7
    Last Post: 25-12-2015, 11:28 AM
  2. Which Type of Limit Switch
    By manofgresley in forum General Electronics
    Replies: 52
    Last Post: 29-07-2014, 03:43 PM
  3. Limit switch issues?!?
    By jonbabbz in forum General Electronics
    Replies: 10
    Last Post: 06-02-2014, 07:37 PM
  4. One limit switch per axis
    By EddyCurrent in forum General Electronics
    Replies: 17
    Last Post: 30-09-2013, 11:38 AM
  5. Limit switch Cable ...
    By Wobblybootie in forum General Electronics
    Replies: 3
    Last Post: 17-01-2011, 04:37 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •