Hi I am building third cnc machine (almost done). I use 12.5Nm closed loop servo stepers with encoders, water cooled spindle very strong mechanic etc... I use Atmega 2560 on board I designed and GRBL. I have PWM to 0-10V analog for spindle but I left enable and direction signals, no FWD REW. (I used optocouplers for all signals and other psu). I made small PCB DirEna to FwdRew. It works perfect, so if anyone need something like this be free to ask me for DipTrace files of pcb and schematic.
Similar Threads:
It is good to have REV direction.
You are not right. I got for free set of more than 50 unused tools for metal which need REV direction. Well it is Russian set very good steel (probably for an unusual strange machine). Got it for free because no one can use it on FWD machine. Changing m3 to m4 in gcode will make it work.
It's a nice little board, but you could simply reconfigure your VFD inputs to RUN/DIR instead of FWD/REV.
For a Huanyang VFD:
PD044=01
PD045=05
That is the normal way to control this VFD it has nothing to do with his board which he needed for his method of controlling the VFD Drive he has some left hand cutters so needed it to be able to run in both directions this is the Default for this VFD Drive so nothing more needed just the Breakout Board he made to suit his control
Mactec54
Mactec, I perfectly understand what the OP did and for what purpose. My point is, the same result could have been achieved without any additional hardware, just by changing two parameters in the VFD.
I didn't mention that I paid 0,75€ for components.
Thanks a lot, I check it and you are right. It is P00.16=1 on my YL620-A and X5, X6 inputs but anyway I need to add optocouplers or relays because my logic levels are 5V and as I measured VFD levels are about 15V. Anyway board I made works well, so I leave it this way, lazy to make a new optocoupler board.
Last edited by srmarkovic; 07-25-2020 at 03:51 PM.
You are right. It is the first CNC I made with spindle. All previous builds were with routers, I had no experience with spindles and their inputs. I made 6 axis control board with Atmega2560 (I will use 3 axis with option for additional rotary one and two other maybe for putting - pushing material on vacuum wasteboard) and all outputs and inputs are through optocouplers with dedicated power supply. I use 24V for inductive limit switches and 5V for other outputs. I put optocouplers on enable and direction pins but I made it that it is zero or 5V output I should leave just optocoupler output unconnected.
Raspberry pi with touch screen (but used with remote keyboard and mouse now with Teamviewer and attached usb camera, it is nice to watch youtube in other room and check machine remotely from time to time) as CNC computer
This is one of my previous light build 750x450x150mm work space with attached 15W laser. Its purpose was woodworking but it does aluminium from time to time. As it can be seen I used router. I work with spindle for the first time. Sorry, I am not a machinist I am BD in EE making software for living and building CNCs for my friends who are doing woodworking and aluminium jobs is my hobby. This new one should make steel molds for casting aluminium, but friend also wants to be able to make wooden parts for casting in sand and maybe adding vacuum table with automatic MDF loading, I hope it will work. All CNCs I made (5 till now) work and work well. I love design electronic circuits and like welding and grinding, I only use CNC when I need part for a new machine or case for electronic so I draw just simple things in Solid works and Fusion, beginner projects in machining holes for connectors or just cutting and drilling aluminium plates.
Here is new electronics
New machine 1200x750x200mm work space is almost done it moves fast 10m per minute very fast and strong but I have to attach spindle and lasers and I will post pictures when I finish all.
So as you see I use spindle in my project for the first time.
This forum is great because I learned a lot. Thank you all.
Last edited by srmarkovic; 07-25-2020 at 05:16 PM.
English is not my native language but now I see logical mistake 220V connectors should be labeled ROUTER not spindle because I leave possibility to plug in router or VFD. New electronic is not so pretty looking because I made holes on 4mm aluminium and glued paper on it and not do it good but I am lazy to remove all wiring and connectors to print labeling paper again. Also I need bigger case so friend who ask me to make a machine give me box for home electric installation to put electronic inside. Previous electronic cases I cut on laser from 2mm still sheet then bend it on a press but now I used fabric made case.
Dill with friends is that they buy all still, bearing and electronic parts needed and I made them machine for free, ok they also do jobs for me for free when I need something.