PWM to Voltage Converter Issues - Again!
-
@Nightowl I'm not sure you understood my suggestion. I wasn't suggesting you measure the output from the Duet board, rather I was suggesting you feed a 100% pwm signal (which basically means a signal that is on all of the time), into the pwm to voltage converter and then measure the output from the converter. That voltage should be 10V if it is not then you need to adjust the converter until it is.
-
@gloomyandy
No I didn't, sorry, and I'm not sure I do nowWith it all connected as is and entering M3 S25000 in the command line, doesn't that provide a "100% PWM signal"? If so, the output is only 8.6V.
But, at the lowest settings, the spindle speed is high, but at the higher settings, the speed is low (probably because it only achieves 8.6V).
If I were to adjust the upper end to provide 10V, wouldn't that make the lower end speeds even higher?
Sorry if I'm being a bit slow...
-
@Nightowl Since you have decided to start a new thread on this topic, you should post details of the converter you are using and your config.g file. Otherwise folks need to go looking for your previous thread...
I'm assuming you are using a converter that maps a 0% PWM signal to 0V and 100% PWM to 10V like this device does: https://www.amazon.co.uk/voltage-module-Voltage-Converter-Digital-Analog/dp/B07X2KB4X3
I'm trying to give you a way to separate a potential Duet problem from a potential problem with your PWM converter. As I said above, disconnect the Duet and simply feed a constant 3.3V (or 5V of that is what your PWM converter takes) into the input. If that does not generate 10V output then the PWM converter is at fault (you may be able to correct it by adjusting the converter, but without details of what you are using it is hard to say). You then need to repeat the process with a 0V input to the converter and measure the output again. If you can't get the converter set up to generate 0V with a 0% PWM signal and 10V with a 100% PWM signal then you may need to think again about your setup.
-
Also, there's a calibration procedure listed in that ad:
Input a signal with 50% duty cycle and 3.3V amplitude to DIN- and DIN+. The frequency is 1-3KHZ. Use a multimeter to measure two ports of AO and GND. Adjust the potentiometer on the board to make the multimeter display 5.40V
It's a bit of a mystery to me why they want a 50% duty cycle to output 5.4 Volts, but that's what it says anyway.
Can you use the Duet to generate different PWM duty cycles (like 0, 50 and 100%) and measure the OUTPUT votlage of the converter when it's not connected to the spindle controller?
-
@alankilian You don't need a duet to generate 0% and 100%. Using those signals eliminates the Duet board. That calibration process makes no sense to me either, why would you want a 50% signal to generate 5.4V rather than 5V?
-
@gloomyandy said in PWM to Voltage Converter Issues - Again!:
Since you have decided to start a new thread on this topic, you should post details of the converter you are using and your config.g file. Otherwise folks need to go looking for your previous thread...
Ok, sorry.
This is a link to the converter I'm using, which appears to be similar to the one you linked to.
The spindle section of the config.g file is shown below:
; Milling motor and relay configuration M950 R0 C"vfd+out7" L4000:25000 Q1000 ; enable router relay on out7 M563 P0 S"George" R0 ; assign spindle 0 to tool 0 and name it George T0 ; select tool 0 M5 ; ensure motor is turned off
Note: out7 enables/disables the relay providing mains power to the spindle. This is because the minimum speed, when connected to a digital interface is 4,000rpm (not 0rpm).
I've attached the config.g as a .txt file, in case you want to check it out.
What I needed to be sure of was that "...feeding a 100% signal..." to the converter is exactly the same as "...applying 3.3V..." to it, although it seems this one requires 5V (according to the product page), but I understand that now.
I'll test it tomorrow and report back here.
Thank you
-
Tested the converter and it is defective. I cannot get more than 8.4V out from the spindle control pins when I actually need 10V, so a new one is on order!
Thanks for pointing me in the right direction in getting this sorted.
-
I've ordered two of these, from different manufacturers (at least as far as the trading name goes) but both of the new ones have an output of between 0 and 8.6VDC, and turning the small screw has absolutely no effect at all.
The input voltage is 12VDC (measured) and the PWM voltage is 5VDC (measured) to get an output of 8.4VDC, or a PWM voltage of 0VDC to get an output of 0.0VDC
So now I'm clean out of ideas.
-
@Nightowl can you trace the schematic of them?
-
@dc42
Not very well, I'm afraid. What would I need to know?I could provide a photo
-
@Nightowl I have one somewhere, but it may take me a while to find it.
-
@dc42 Isn't it in the cupboard, behind the clock?
That's where I keep finding 'lost' stuff
-
@Nightowl said in PWM to Voltage Converter Issues - Again!:
've ordered two of these, from different manufacturers (at least as far as the trading name goes) but both of the new ones have an output of between 0 and 8.6VDC, and turning the small screw has absolutely no effect at all.
I would return them as faulty as a start!
-
Yup, they're gone!
Further to this, though... The one that does come close still only provides 9.6VDC, and that's with the brass screw all the way in, but I had to use 24V directly from the PSU, not 12V/GND supply adjacent to the VFD/Laser/Servo Driver header.
I really don't understand why the converter won't give the 10V the spindle needs.
Perhaps it's time to persuade Duet to design it into the control board
-
So, I've been out to the workshed (too small to be a workshop, too big to be a toolshed) and, with the (cheapest) PWM-Voltage converter managed to achieve the following:
Programmed - Actual Speeds M10000 gives 10,150rpm M14000 gives 14,010rpm M18000 gives 18,000rpm
As this is the speed range within which I primarily use the spindle, I think that'll do!
Thanks to you all for your help!
-
@Nightowl EXCELLENT!!!