501,894 active members
7,942 visitors online
Register for free
Login
Page 4 of 4 234
Results 37 to 45 of 45
  1. #37
    Registered
    Join Date
    Nov 2015
    Posts
    3

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    Quote Originally Posted by kb0nly View Post
    You need two JST-XH connectors to make the interconnect cable, also if you want to add limit/home switches its the same 4 pin JST-XH connector, look on eBay for LiPo balancing cables and connectors as they are used in the LiPo battery packs.

    Note... I don't yet have the PWM speed control working, still finishing up how to set that up, but i DO have Spindle On/Off control now from Mach3! The PWM control just wasn't as big of a concern for me as i generally run it full speed all the time for PCB milling.

    Ok, on the controller board the jack marked PWM i numbered them from the back panel forward, pins 1-4.

    1. LPT Port Pin #17 to Spindle Controller PWM Input
    2. +5v from Spindle Controller to the EL817 labeled DDO, This is Spindle On/Off
    3. Ground from Spindle Controller
    4. Spindle On/Off

    On the Spindle Controller board i labeled the pin numbers Left to Right looking at it from the front panel, pins 1-4.

    1. PWM
    2. +5v
    3. Ground
    4. Spindle On/Off

    The front panel Spindle switch only switches a ground on the Spindle Controller and its in parallel with an Optocoupler, part number EL817, on the Spindle Controller board. So you can leave the front panel switch for manual control and leave it in the OFF position to allow Mach3 to turn it on and off.

    You need to make a cable so that its matching 1-1, 2-2, 3-3, 4-4, using the pinouts as i described them. The plug orientation is flipped, so pin 1 on plug on one end of the cable would be the opposite side of the plug on the other end. You will understand what i mean when you look at the jacks, the controller board has its jack going front to back with the keyway to the left and pin 1 towards the back, but the spindle board has its jack going left to right and keyway to the back and pin one on the left. So the cable is a flipped crossover config.

    Set Mach3 for Active Low on Pin #1 to turn the Spindle On/Off.
    Set Mach3 to control the Spindle PWM using pin #17
    To sum it up. Is it enough to connect the PWM connectors and then you can drive spindle on / off?

  2. #38
    Registered
    Join Date
    Apr 2015
    Posts
    1

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    Don't know if anyone still following this but I have been doing a lot of reading of everything I can find on the web concerning controlling the spindle speed with software with the JP-1482A board. From what I have read this board using a micro controller for the PWM signal is not programmed for external software driving. I looked over the schematics from the PW3618 and the PW3024 boards. People say that they have made these boards operate by software by just connecting the PWM in and out between the two boards in the controller. By my feeble knowledge it looks to me like you could build the 555 timer portion of the circuit used on the 3618 or the 3024 board. Its just an opto isolator, a few resistors and caps and the 555 chip. Plug it into the PWM out from the JP-382A board and feed your new board into the gate of the mosfet driving the spindle motor using whatever method you like. Hopefully someone is still thinking about this also and has a comment.

  3. #39
    Registered
    Join Date
    Nov 2016
    Posts
    7

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    Quote Originally Posted by toppytop View Post
    Don't know if anyone still following this but I have been doing a lot of reading of everything I can find on the web concerning controlling the spindle speed with software with the JP-1482A board. From what I have read this board using a micro controller for the PWM signal is not programmed for external software driving. I looked over the schematics from the PW3618 and the PW3024 boards. People say that they have made these boards operate by software by just connecting the PWM in and out between the two boards in the controller. By my feeble knowledge it looks to me like you could build the 555 timer portion of the circuit used on the 3618 or the 3024 board. Its just an opto isolator, a few resistors and caps and the 555 chip. Plug it into the PWM out from the JP-382A board and feed your new board into the gate of the mosfet driving the spindle motor using whatever method you like. Hopefully someone is still thinking about this also and has a comment.
    That's the main problem. There appears to be descriptions of ideas or methods associated with modifications to achieve spindle control via software (eg. Mach 3 control). But the described methods never appear to be complete or clear. Eg. " connecting the PWM in and out between the two boards in the controller" isn't very clear. Also, "build the 555 timer portion". What 555 timer? What's that used for?

    At the moment, I'm trying to achieve the same thing..... spindle control using software (such as Mach 3), instead of always needing to turn the dial on the black coloured China CNC controller box. I don't know much about the boards in that controller box right now, since I'm new to this. However, I assume that when we turn the physical speed control dial clockwise, this action will vary a DC voltage (somewhere inside the China CNC controller box) for which to rotate the spindle, right? Or, that varied DC voltage is used to generate a PWM signal (with adequate power handling) to energise the spindle. So, if we are able to disconnect that particular internal DC or PWM signal (which means removing the physical dial speed-control functionality), and put in our own hardware module as a middle-man, then we could then have a way of controlling the spindle speed via software.

    It appears that people have successfully achieved software-controlled spindle operation, but they all have their own way - due to the various kinds of software and hardware available. What I'm interested in is .....a method to make minimal modifications to the stock China CNC black-coloured controller box in order to achieve spindle control (via software - preferably Mach 3).

    This person at the following link appears to have done some very nice work in figuring out various details of China CNC controllers.

    https://hackaday.io/project/6776/logs

    But...... once again... some inconsistencies in details. Eg.... it mentions that the China CNC spindle dial involves a resistive divider, consisting of 6K resistance, with one end of that 6K resistance connected to "3.3 V".....while their hand-drawn circuit diagram indicates that end is connected to 5 Volt DC, instead of '3.3V'. And then it says the mid-point of the resistive divider has a 5K rheostat (in the form of a potentiometer) connected to it, and the other end of the rheostat goes to ground. However, the details indicate that the 'maximum resistance' of the rheostat is 3.3K, which doesn't make sense when they're initially indicating a 5K rheostat. Confusing.

  4. #40
    Registered
    Join Date
    Nov 2016
    Posts
    7

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    Quote Originally Posted by SouthPark View Post
    This person at the following link appears to have done some very nice work in figuring out various details of China CNC controllers.

    https://hackaday.io/project/6776/logs

    But...... once again... some inconsistencies in details. Eg.... it mentions that the China CNC spindle dial involves a resistive divider, consisting of 6K resistance, with one end of that 6K resistance connected to "3.3 V".....while their hand-drawn circuit diagram indicates that end is connected to 5 Volt DC, instead of '3.3V'. And then it says the mid-point of the resistive divider has a 5K rheostat (in the form of a potentiometer) connected to it, and the other end of the rheostat goes to ground. However, the details indicate that the 'maximum resistance' of the rheostat is 3.3K, which doesn't make sense when they're initially indicating a 5K rheostat. Confusing.
    Update: After some tinkering of my 3040Z-DQ, I found out (from internet searches) that the Mach 3 software can indeed be used to produce a PWM signal signal from a parallel port pin of a desktop computer. I used windows xp (as Mach 3 recommends XP or Win 2000, which are 32 bit operating systems). Apparently Mach 3 has issues with controlling the parallel port when 64 bit operating systems are used. Need to go to 32 bit systems. I followed a youtube video for making pin 17 of the parallel port produce PWM.

    https://www.youtube.com/watch?v=P3CNtyOVHNc

    After checking things out, I discovered that the most important things include:

    1) Mach 3 configuration of the spindle PWM output pin is performed in the 'motor output' section, in the configuration row for the 'Spindle'. And this PWM output pin will relate to the "STEP" pin. Yes, relates to the "STEP" pin. Yes, we know that "PWM" has got absolutely nothing to do with stepper motor "steps" (since spindle motors are usually not stepper motors), but these are the 'rules' that the Mach 3 software writers created themselves, however ridiculous and confusing it is. Anyway, in the 'Spindle' row settings, a tick/checkmark is needed to ENABLE the spindle, and the "STEP" pin number (which is the parallel port pin number we want to produce the PWM signal) is to be set to 17.

    So the 'Spindle' row settings should be:

    TICK - 17 - 0 - CROSS - CROSS - 1 - 0. And, in the Spindle Setup page, under 'Motor Control', put a tick/check mark for the "Use spindle control" box, and also put a tick/check mark for the "PWM control" box, and also set PWMbasefrequency to "250"

    The settings for output#1, output#2 etc are unnecessary for PWM generation. So, no need to deal with output#1, output#2 etc. I'm just focusing on the essentials for getting a PWM signal to show up on a parallel port pin.

    2) Then, massively important, is to finally go to the Mach 3 front control panel, and focus on the SPINDLE SPEED control panel, which is the box that has the software BUTTON that says 'Spindle CW F5". Here, it's necessary to use the mouse to push this button in order to activate it. Activated mode will mean yellow edges on this button. And secondly (massively important), is to click on the purple box to manually set a Spindle Speed. For example, the purple box might initially have '0'. So, it's necessary to use the mouse to click on that value (such as click on the '0' with the purple box around it), and then manually type in something like a value of '100' (then hit enter). Once we've manually entered a value, the PWM pin we selected (such as pin 17) will spring to life. And we can then use the mouse to increase or decrease the PWM duty cycle with those software up/down arrow buttons directly underneath the "Spindle CW F5" button.

    I'm writing the above, since I noticed that leaving out some very tiny thing can put us in a 'so close, but yet so far' situation in terms of trying to achieve something that is meant to be simple to do.

    Also, for the spindle "PULLEY" configuration, I just configured Pulley Number 1 with Min Speed = 0, Max Speed = 100, ratio = 1.

    Anyway, what I need to do now is to just make use of the PWM signal. At least the software allows us to generate PWM.

    Now, how could we use the PWM? I'm thinking.....the mid-point of the voltage divider (of the CHINA CNC controller's physical potentiometer) is currently used in the China CNC controller for providing a DC control voltage. So, instead of using the potentiometer for producing the DC control voltage, it should (instead) be possible to make our own control DC voltage by using an "R-C filtered" version of the parallel port's PWM signal. From multimeter measurements on the PWM pin of the parallel port, I found that 100% duty cycle, which translates to a plain DC voltage, corresponds to 3.3 Volt.

  5. #41
    Registered
    Join Date
    Aug 2017
    Posts
    2

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    Hey kb0nly,

    I don't know if you're still on here, but I had questions about the PWM-OUT port. Are you suggesting that the pins are as follows?

    1 - PWM Output -> connected to the collector of ENO optocoupler. Anode pin for this optocoupler is cut on some boards (not mine). Connected to the A-axis.
    2 - External voltage -> emitter for DDO?
    3 - GND -> collector for DDO?
    4 - Spindle ON/OFF output -> Q for DDO?

    It seems like with the mod, both the physical switch and the software switch must be on at the same time right? Also, it seems like PWM Output could not be enabled without interfering with the A-axis. In this case, would it be possible to output a PWM signal on pins 2-3 instead? That way, the spindle would have to be turned on using the physical button, but then the speed could be controlled by software and *effectively* turn off by decreasing the speed to 0.

    Thanks!

  6. #42
    Registered
    Join Date
    Aug 2017
    Posts
    2

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    I found that you can actually use the pin 4 for speed control as well. But the problem is that for speed control, the duty cycle is kept at 50% and the frequency is varied; at the maximum speed, the frequency is 1.475kHz and the speed is proportional to the frequency, but the problem is that with 0rpm, the frequency goes to 1.475kHz again. Other than never using the maximum speed, how could you overcome this? Is there something I'm missing?

  7. #43
    Registered
    Join Date
    Feb 2018
    Posts
    7

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    Hello
    @ kb0nly
    Excuse me would you be able to have both schemes in larger 1024x960?
    top small to read the diagrams.
    cordially

  8. #44
    Registered
    Join Date
    Jul 2014
    Posts
    13

    Re: CNC 3020T-DJ Spindle Control, JP-382A JP-1482

    Quote Originally Posted by kb0nly View Post
    Ok, i got tired of having to flip the Spindle switch all the time and decided it was time to get Mach3 doing its job!

    I have a newer version of the Chinese CNC 3020T-DJ with a black controller box and the controller board is model JP-382A and the spindle board is JP-1482.

    The controller has a PWM output and the spindle board has a PWM input but they are not connected. Here is some pictures i included on another post..

    Attachment 250510 Attachment 250512

    After i got done adding home switches to the controller i also started to trace out the boards to figure out the Spindle control.

    You need two JST-XH connectors to make the interconnect cable, also if you want to add limit/home switches its the same 4 pin JST-XH connector, look on eBay for LiPo balancing cables and connectors as they are used in the LiPo battery packs.

    Note... I don't yet have the PWM speed control working, still finishing up how to set that up, but i DO have Spindle On/Off control now from Mach3! The PWM control just wasn't as big of a concern for me as i generally run it full speed all the time for PCB milling.

    Ok, on the controller board the jack marked PWM i numbered them from the back panel forward, pins 1-4.

    1. LPT Port Pin #17 to Spindle Controller PWM Input
    2. +5v from Spindle Controller to the EL817 labeled DDO, This is Spindle On/Off
    3. Ground from Spindle Controller
    4. Spindle On/Off

    On the Spindle Controller board i labeled the pin numbers Left to Right looking at it from the front panel, pins 1-4.

    1. PWM
    2. +5v
    3. Ground
    4. Spindle On/Off

    The front panel Spindle switch only switches a ground on the Spindle Controller and its in parallel with an Optocoupler, part number EL817, on the Spindle Controller board. So you can leave the front panel switch for manual control and leave it in the OFF position to allow Mach3 to turn it on and off.

    You need to make a cable so that its matching 1-1, 2-2, 3-3, 4-4, using the pinouts as i described them. The plug orientation is flipped, so pin 1 on plug on one end of the cable would be the opposite side of the plug on the other end. You will understand what i mean when you look at the jacks, the controller board has its jack going front to back with the keyway to the left and pin 1 towards the back, but the spindle board has its jack going left to right and keyway to the back and pin one on the left. So the cable is a flipped crossover config.

    Set Mach3 for Active Low on Pin #1 to turn the Spindle On/Off.
    Set Mach3 to control the Spindle PWM using pin #17

    Now, as i said i haven't hooked up and configured the PWM control to pin 17 yet, so all i wired up was three pins between the boards, i didn't install the wire from pin #1 on the controller to pin #1 on the spindle controller, thats the PWM control. You need pins 2-4 for On/Off control as the Spindle controller board feeds +5v back to the controller board via pin #2 to run the Optocoupler labeled DDO, the output of which toggles another EL817 optocoupler on the Spindle board that then enables the spindle motor, the front panel switch is wired in parallel across the Optocoupler on the Spindle controller board which gives manual control and can be left in place.

    Here is some schematics i drew up quickly... Notice that pins i didn't continue to trace out for PWM on the Spindle board or the ENO Opto on the Controller board are marked unknown. Also in the case of the EL817 marked ENO on the Controller board note that Pin 1 of the component was clipped and bent back at the factory, ENO looks to have something to do with the A-Axis as its connected to one of the pins of the four pin header marked A-Axis, i didn't continue tracing that out as it wasn't necessary. Also pin 2 of ENO dead ends at a set of open pads on the back side of the board, i would guess there should be a 330 Ohm resistor there as they kept the same basic design across the boards, using a 4.7k pullup resistor to 5v on pin 1 and a 330 ohm resistor on pin 2 on the others for what i would assume is current limiting through the optocoupler.

    Attachment 250418 Attachment 250420

    Anyway, with a three pin jumper you can make the Spindle On/Off control work with Mach3, or whatever software you use, but i haven't got the PWM config working just yet. I would assume it requires removing the front panel trimpot from the circuit, either just unplugging it or installing a jumper as in the other versions of these boards but i don't have that info yet.

    do you have a photo with the cable in place between the two boards

  9. #45
    Member
    Join Date
    May 2019
    Posts
    2
    Thank you for finding the spindle control.
    Attached Thumbnails Attached Thumbnails 20190508_071915.jpg  
    Last edited by Cellfreak; 05-08-2019 at 12:23 PM.

Page 4 of 4 234

Similar Threads

  1. Need help with eBay 3020T-DJ
    By morbidmind6 in forum Chinese Machines
    Replies: 2
    Last Post: 06-20-2016, 05:15 AM
  2. CNC 3020T-DJ Assistance Needed Immediately
    By CrisHooker29 in forum General Off Topic Discussions
    Replies: 1
    Last Post: 06-11-2015, 12:45 AM
  3. It's Alive! 3020T-DJ
    By kb0nly in forum PCB milling
    Replies: 0
    Last Post: 09-21-2014, 06:46 AM
  4. 3020t Size and specs
    By tracyaf_2 in forum Chinese Machines
    Replies: 0
    Last Post: 09-07-2014, 05:33 AM
  5. No Movement Cnc 3020t-dj
    By seriousman in forum Chinese Machines
    Replies: 3
    Last Post: 09-03-2013, 02:35 PM

Tags for this Thread

Posting Permissions

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