Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : CGCOLORMAX2-B to Sherline CNC Controller for milling machine
Page 3 of 5 | |||||
Author | Message | ||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
Hi Can I Get back to This Thread after being gone so long. Sorry to be gone so long. Had to take care of family. Grandson and family moved in with two lovely 2 year old girl twins and he and I started to work in first of May and just finished, I should have said before. Have to take care of family first, and loving it! Is it O.K. if we continue. I'M 69 and a little over half. And I love these Micro's to control things I Didn't stop responding because I didn't like what was posted. I was over whelmed because posting sort of went of track. The question I asked was could the CGCOLORMAX2_B turn on relays (witch I know can) and in another post can the CMM2 generate the STEP signals, (witch I think Can). Best Regards Allie |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4223 |
Hi Allie, I hope all is well now. Yes, please continue with the thread. The CGCOLORMAX2 can use IO pins to drive a ULN2003. That can drive the relays. Plenty of cheap chineese IO boards that contain (the blue) relays including drivers. The CMM2 can generate STEP signals in MMBasic. It is fast enough. But all depends on how many stepper motors you want to control. If you plan to drive a complete ROBOT, I would suggest different solutions. Of coarse the CMM2 may need a motor driver (chip or module) to control a motor. Regards, Volhout PicomiteVGA PETSCII ROBOTS |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 857 |
@allie I don't use stepper-motors so I could be way-off here. You stated that you want to apply power to the stepper motor only when wanting to drive it(?) But doesn't a stepper need to remain energized to maintain holding torque? |
||||
Rickard5 Guru Joined: 31/03/2022 Location: United StatesPosts: 463 |
WOW I hope you get this working, I'd love to copy it and get it working on my CHEEP CHINESE LATHE AND Mill :) I been fighting using Picomites to manually control steppers for X & Y but spindle indexing so I can input a distance and have the Picomite translate to steps then run the steppers with a time between steps, all while keeping track of origin I may be Vulgar, but , while I'm poor, I'm Industrious, Honest, and trustworthy! I Know my Place |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
Yes Volhout all is well, thank you. I'm coming from the CGCOLORMAX2 IO pin into an L293D to switch on the selected relays, only one relay at a time X or Y or Z. Then the CMM2 will give the STEP signal to the PIC16F77-I/P MicroController which is inside of the Sherline CNC Controller. I'm not trying to run 3 AXIS at the same time only one. I'll try to send a schematic. It may take me a while to Draw it with windows paint an try to figure out how to post it here. How big of a paint file can I post. Regards Allie |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
I just found the file upload button and it says 10 meg max. I'll start to see if I can get the diagram started. Is there a place on this forum where I can practice with uploading pictures. Regards Allie |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
Hi do I need a third party ie(photobucket) to upload a picture or drawing, if so what's a good one to use. regards Allie |
||||
lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3150 |
You don't need a third party. You want the "picture upload" icon (second from right), not the "file upload" (rightmost). If your picture is too large, the forum will widen all posts to fit the size of the picture. This has happened to me (and others) with jpg files. I usually use .gif when posting to this forum, and the oversizing has never occurred. ~ Edited 2024-08-05 00:06 by lizby PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
Turbo46 Guru Joined: 24/12/2017 Location: AustraliaPosts: 1611 |
Hi Allie, You have used the terms CGCOLORMAX2 and CMM2 in your post but I believe that the CGCOLORMAX2 is really CG's version of the CMM1, the original Colour Maximite. The B suffix in CGCOLORMAX2_B is new to me though. You can use MS Paint to re-size the photo if you need to and PNG file format is the best for circuit diagrams. Bill Keep safe. Live long and prosper. |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
I used the two terms because I have the 2 boards. The CGCOLORMAX2-B where I soldered my relays and the L293D driver for the relays which is going to be turned on by the CGCOLORMAX2_B's PIC CPU. The CMM2 generation 2 is going to send the STEP signals to the Sherline Linear stepper motor controller. The CMM2 generation 2 is going to interface with the CGCOLORMAX2-B. Regards Allie |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6781 |
CGCOLORMAX2 info here. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
I'm going to try to upload a drawing. Hope this worked. Regards Allie |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6781 |
Is there a reason why you aren't using three L293D devices rather than mess with relays? They can be hard wired to the stepper motors and will hold them energised while they aren't being stepped. You just give them a direction and step signal if you get the right modules. Maybe I've not understood the system. :) Make sure you get good heatsinks on L293D chips. They are horribly inefficient with a silly volt drop. There are better chips around now. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
PhenixRising Guru Joined: 07/11/2023 Location: United KingdomPosts: 857 |
|
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6781 |
Ah, I see. The 293D is only a relay driver. It doesn't carry the motor current. :) You close the appropriate relay then drive the motor from the Sherline. I'm a bit slow, sorry. :) I'm a bit concerned though. Will shorting the windings of a non-powered motor be enough to lock it and prevent it from drifting? I assume that you *will* short the windings. If you don't the motor will almost certainly drift. Steppers are normally energised when stationary. Not sure what the 138 level converter is doing. It looks like the CGCOLORMAX could equally well be a piece of DIN rail with the relays and a bracket for the 293D. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
The 138 level converter is to convert the CGCOLORMAX2-B's 3.3 volts up to 5 volts that the L293D uses, maybe I don't need it but I had it in my parts supply so I used it. As far as the motors drifting I had this system working a number of years ago with Parallax's Basic Stamp 2 and all worked good. When not using one of the AXIS X,Y or Z all power will be turned off ** no relays turned on **. The only power going to the stepper motors will be the +24 volts common no grounds. regards Allie |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6781 |
Ah, I see. Thanks. :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
Hi all, I decided to add a change to this project. I had one Sherline Linear CNC Controller and one CMM2 Gen2 computer and, with relays was going to control the 3 axis of my milling machine. I just ordered two more CMM2 Gen2's from Rictech Electronics and two more Sherline linear CNC controllers. I'll use one Sherline Controller and 1 CMM2 Gen2 for each axis of the milling machine, X,Y, and Z. I need the CMM2 Gen2 for the step and direction input to the Sherline Controllers. Also I want the CMM2 Gen2's to do a lot more than just step and direction, I'll explain in a later post. Regards Allie |
||||
allie Newbie Joined: 06/10/2018 Location: CanadaPosts: 33 |
After I figure out my next design I'll post a drawing. Regards |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4223 |
Now I understand why you wanted to use relays. These CNC controllers are pretty expensive stuff. Not the 50 dollar Aliexpress kits. Volhout PicomiteVGA PETSCII ROBOTS |
||||
Page 3 of 5 |
Print this page |