Spindle Tachometer For Mach3 CNC Conversion Mill Lathe RPM Hall Effect Sensor Spindle Control

Поділитися
Вставка
  • Опубліковано 9 вер 2024
  • Make a simple tachometer for Mach3 using a hall effect sensor.

КОМЕНТАРІ • 59

  • @bms250ford
    @bms250ford 8 років тому

    Simple ,easy, well explained, good job Franco

    • @FrancoCNC
      @FrancoCNC  8 років тому

      Thanks. I'm glad you liked the video.

  • @danielkitson6878
    @danielkitson6878 9 років тому

    great video. Daniel

  • @jaimevillada9150
    @jaimevillada9150 4 роки тому +1

    Cordial saludo.
    1. Me podría indicar cual es diámetro que se requiere para el imán?
    2. Es posible utilizar el sensor A3144 para realizar este control de husillo?
    3. Con el sensor A3144 a 5V, es necesario el uso de resistencia?
    De antemano, muchas gracias por compartir sus conocimientos a todos los apasionados que nos estamos iniciando en estos temas.
    Gracias por su valiosa atención y sensata respuesta.
    Bendiciones de salud y tranquilidad en estos tiempos.

  • @DeGebittenCentrale
    @DeGebittenCentrale 4 роки тому +1

    Hey Franco. I’m trying to get the oh137 to comunicate to mach3 but I can’t get it to work. Setting it up with a voltmeter I can see the voltage drops but mach3 does not react. Using a proximity sensor in the same setup does trigger the index. Same voltage drop off.

  • @GraphicManInnovations
    @GraphicManInnovations 10 років тому

    Great work, I am using a proximity sensor for that, but I can not manage to make it read out without clicking on the mach3 spindle button, any idea?

  • @christophervargasschebesta3752
    @christophervargasschebesta3752 2 роки тому

    i have the bl mach 3.3v and i can´t see the green light blinking? do you solve it until now i tried with all the pins number but nothing. Im using and arduino 5v sensor hall

  • @HuyTran-sw3iv
    @HuyTran-sw3iv 5 років тому +1

    Franco, can i wire the hall sensor input to this board, Which P on this board?
    ae01.alicdn.com/kf/HTB11dMoRpXXXXaAXpXXq6xXFXXXp/Upgraded-5-Axis-CNC-Interface-Adapter-Breakout-Board-For-Stepper-Motor-Driver-Mach3.jpg
    and i dont know can this board support index? if you know, can you help me, thank for your reply

  • @rafaeldiegonavarro
    @rafaeldiegonavarro 3 роки тому

    hey Man thanks for the upload ! im starting to gather all materials to make my lathe cnc and to be able to do threading operations. for the threading operation all you need is that index signal right ? whats the best way and easiest way to get my hands on these sensors?

  • @motosmartinhadad9117
    @motosmartinhadad9117 9 років тому

    excellent friend !! thanks

    • @FrancoCNC
      @FrancoCNC  9 років тому

      Motosmartin Hadad You are welcome. I'm glad you found the video helpful.

    • @gordonbournival152
      @gordonbournival152 9 років тому

      Hi I am new with electronics ,I understand and made as your video but the thing is that my BB don't have separate 5v and ground like your driver boardif I check my inputs I have 10v between ground and inl11 for exemplecan I use an external power supply the only place I have 5v it is on my step and dir therminalif you can help me I will appreciate thanks Gordon

    • @FrancoCNC
      @FrancoCNC  9 років тому

      +Gordon Bournival Hello. I believe the oh137 can handle up to 12 volts. You should be OK. I would not use a separate power supply. I am not an electronics expert but I'm pretty sure you will damage your break out board if you do that.

    • @gordonbournival152
      @gordonbournival152 9 років тому

      +Franco Thanks to reply , I finally find the way to make it work . I user inl 11 as power supply and inl 12 as input . the only thing is I always get 3.25v and goes to 6.25v when l put the magnet but mach3 read it correct . is it because I have 10v power supply and put a higher resistor to get 0v . can you help me with this!

  • @minasianjohn
    @minasianjohn 8 років тому +1

    franco, thanks for you reply. I am using a 1/4 wat 680k resistor, I'm still trying to get it to work.i must have done something wrong...
    john

    • @FrancoCNC
      @FrancoCNC  8 років тому +1

      I think 1/4 watt will be fine. Test your circuit with a volt meter before you start working with Mach3. Also, Mach3 won't give you spindle feedback unless you tell it the spindle is on. Command a M3 or click the spindle button. This confused me at first.

  • @lendrapitrahr.1128
    @lendrapitrahr.1128 2 роки тому

    Can i use this method to read rpm on axis, i need it because i have to make sure rpm on A axis have the same speed as my rpm's program,
    i'm using the A axis for 3d print ekstruder btw. Thank you

  • @rpicinic
    @rpicinic 9 років тому

    Nice video and explanation on how you setup the mill with an RPM sensor on the spindle. Easy to make and connect.
    are you also planning on controlling the motor through Mach3?
    I've used a C6 board to control my spindle .... works good. But would like to get an accurate reading from my spindle with a sensor so that i can make adjustments to get to spin at the set speed
    Thanks again for the post......very informative

    • @FrancoCNC
      @FrancoCNC  9 років тому

      Hello Robert. At one point wanted to control the spindle RPM of my X2 mini-mill using Mach3. I tried to use the PWM output from my TB6560 but I didn't understand the concept of optoisolation and I wound up damaging the control board in the X2. I would be very interested in seeing how you wired up the C6 board to the X3. Where did you tap into the 12V to power the C6 board? Thanks!

  • @FrancoCNC
    @FrancoCNC  9 років тому

    I've heard of using "brains" but I've never tried it. Do you have any links to good documentation or examples?

    • @ExtantFrodo2
      @ExtantFrodo2 9 років тому +2

      +Franco *"I've heard of using "brains" but I've never tried it."*
      To anyone not familiar with Mach3, this would be a humorous statement.

  • @TheHalloweenmasks
    @TheHalloweenmasks 3 роки тому

    Which type of Hall effect sensor do you use? Bi polar or linear?

  • @a.d8055
    @a.d8055 3 роки тому

    Which Breakout Board do you use?

  • @Kageitenshi
    @Kageitenshi 9 років тому +1

    Just ordered a smoothstepper, but my control board has only a basic relay input, while I was thinking of using the PWM capability of the SS to drive and regulate the RPM of a brushless spindle. I reckoned it would be just as simple to set up a breakout board for the port 2 on the SS and assign any of the input pins on mach3 as the rpm counter input, unless there is some analog to digital conversion going on there inside the TB6560?
    My driver board is also based on the TB6560, but it's the compact "3rd gen" with an LCD and jogging / pos controls.

    • @FrancoCNC
      @FrancoCNC  9 років тому

      Kageitenshi The INDEX input Mach3 is simply counting pulses. It is pretty basic stuff. No need for any type of analog to digital conversion. Feeding pulses to the INDEX input is a quick way to get RPM values. Using Mach3 to actually control the spindle speed takes a little bit more work. You also have more safety issues to keep in mind. Check out the CNC4PC website - they have a lot of good boards that facilitate spindle control.

    • @Kageitenshi
      @Kageitenshi 9 років тому

      Franco Excellent, thought that might be the case for measuring RPM. I haven't yet decided whether or not to build a spindle out of 1.4kW RC brushless motor or not, like so many have successfully done, instead of getting a similarly priced 400W premade. In the case of a DIY spindle, the RPM control and safety features would be trivial... hmm. I'll check the website once I get back from a trip to Italy.

    • @FrancoCNC
      @FrancoCNC  9 років тому

      Kageitenshi To be safe, you should use a charge pump board. They are cheap and they will prevent your machine from going "crazy" if Mach3 starts to glitch out.

    • @Kageitenshi
      @Kageitenshi 9 років тому

      Franco
      Alright, back from the trip! I looked up the charge pump board and CNC4PC was the first site to pop up. Seems like a good idea to have one indeed, without busting the wallet either. Thank you!

    • @FrancoCNC
      @FrancoCNC  9 років тому

      Kageitenshi Cool! Post some videos when you have all of that working.

  • @johnnynono
    @johnnynono 4 роки тому

    Thanks for the video. Why use
    pull up resistor?

    • @FrancoCNC
      @FrancoCNC  4 роки тому

      Hi - you need the pull-up resistor to cause a change in voltage across the input.

  • @georgesabov
    @georgesabov 10 років тому

    Very nice! Is it possible to configure the Mach3 to issue a STOP action in case of Zero RPM? I'm thinking about a kind of RPM feedback, in case of spindle failure I want to stop the machine.

    • @FrancoCNC
      @FrancoCNC  9 років тому

      I'm not sure what Mach3 does when it detects an error between actual speed and programmed speed. There has to be some accommodation for speed fluctuations but I don't know at what point an error is generated. It is possible that your spindle driver may have some alarm output you can wire into the Mach3 e-stop circuit.
      I only use the tachometer to give Mach3 spindle feedback. I don't use Mach3 to control the spindle. Once you give Mach3 spindle control, you have to make a lot more provisions for safety - a charge pump and whatnot.

    • @dalerogers9402
      @dalerogers9402 9 років тому

      You can use a 'brain' to do what you want. Brains are a visual ladder logic type program that can perform a range of logic functions based on accessible inputs and outputs.
      Set up your brain to read your spindle RPM input Port 1 Pin1 or whatever, AND the mach3 internal bit 'axes moving'. If RPM AND AXES --> Output STOP. You might also want to add some logic to prevent the brain from working during jogging or when you perform air cuts. Maybe chuck another AND boolean logic in that looks at a HOTKey so you can toggle the 'low RPM Stop' off and on.

  • @minasianjohn
    @minasianjohn 8 років тому

    I am going to make a spindle sensor and wanted to know what is the wattage on the 680K resistor?
    thank you.
    John

    • @FrancoCNC
      @FrancoCNC  8 років тому

      Hi. I'm not an electrical engineer but I'll do my best to answer your question. The resistors I used are not labeled with wattage, so I'm guessing they are less than 1 watt. That being said, I don't think the wattage really makes much of a difference for this application.

  • @rpicinic
    @rpicinic 9 років тому

    Would like to know which type of pull up resister you used. I see you said 680k ohm but do you have a part number?

    • @FrancoCNC
      @FrancoCNC  9 років тому +1

      Hello Robert - I used a 680K Ohm 1/4 Watt Resistor. I purchased a variety pack of several hundred resistors from eBay so I don't have a specific part number. However, you should be able to do a Google search and find plenty of options. If you don't have a 680K resistor, I think you could go larger (820K) without any problems.
      The video shows a typical pull-up resistor layout and, depending on your breakout board, you may or may not need it as some boards have internal pull-up resistors. In fact, I suspect the TB6560 driver I used would have also worked if I had eliminated the connection (and the resistor) between pins 1 and 3 of the oh137 hall effect sensor - but I haven't tried that as of yet.
      Long story short, the connections shown in the video have been working great with the TB6560 for several months so start there. The TB6560 is fairly robust so I don't think you need to be overly concerned about damaging it if you make a mistake with the connections or the resistor values.

    • @rpicinic
      @rpicinic 9 років тому

      Franco
      Thank you for that info.
      You have been a great help.
      Pardon my ignorance, but is there a difference between a regular resistor and a pull-up resistor?

  • @sorstudios
    @sorstudios 9 років тому

    I've done this, but can't seem to get it going on my C10 board wired to in put 10, and Mach3 settings. Any thoughts?

    • @FrancoCNC
      @FrancoCNC  9 років тому

      The first thing I would do is double check the connections. Second, I'd look at the Mach3 diagnostic screen and verify that the input is working - you may need to reverse the polarity of the input (active low or active high). If the input is working and you still don't get a RPM reading then make sure something is telling Mach3 the spindle is on - you must either click on the spindle button (program run screen) or give a command (i.e. M3S1200) from MDI or a CNC program. I hope this helps.

    • @sorstudios
      @sorstudios 9 років тому

      Franco I've check that as well. Even moved my input. Can't figure out what I'm doing wrong. I even did a check on a bread board with a LED, OH137 working fine that way.

    • @sorstudios
      @sorstudios 9 років тому

      Franco Ok might be the resistor. I'm using a wall wort 5V power supply. DAAAAAAAAA I'm stupid.

  • @user-bw4rr4kd9n
    @user-bw4rr4kd9n 8 років тому

    Does this way indexing the spidle for threading to?

    • @FrancoCNC
      @FrancoCNC  8 років тому

      Yes. Check out this video. I used the same sensor on my lathe. ua-cam.com/video/MaH_Nlh4sxk/v-deo.html

    • @user-bw4rr4kd9n
      @user-bw4rr4kd9n 8 років тому

      +Franco How many magnets you put on?

    • @FrancoCNC
      @FrancoCNC  8 років тому

      +Δημήτρης One. I tried to use more but I had the best results with one magnet.

    • @user-bw4rr4kd9n
      @user-bw4rr4kd9n 8 років тому

      Franco Some people said that had problems with mach3 because of one point indexing on the spindle, especialy on long threading.
      Did you find a workaround?

  • @peterwang3052
    @peterwang3052 6 років тому

    Hi Franco,
    I have a Mill with a hall effect sensor 44E to measure the spindle speed. I run mach3 on a AKZ250 board (leafboy77.com/). I run spindle speed from front panel meaning not using any M-code yet. Reason is i get RPM readings all over the place. Measured speed with infrared tester show for example 3000 RPM. But read back on Mach3 display go from 1500 - 30000 RPM fluctuating all the time. I have connected +5V to pin, Ground to ground pin and signal to signal input on board. I DO NO HAVE ANY RESISTOR OR LED CONNECTED !. Do you have any idea why i see the fluctuation on read back ?

  • @cobrawins
    @cobrawins 2 роки тому

    يا ليتنى افهم ما تقول يا رجل