I’m using a V1 Engineering control board along a 0–10 V spindle module (see attached image top right), and I’m trying to control my spindle speed via FluidNC. Unfortunately, I can’t get it to work correctly.
No matter what I set in the FluidNC Dashboard (see attached top left), the spindle always runs at a constant speed. I’ve connected the 0–10 V output from the spindle module to the speed control input of my spindle (see image buttom right), and I’m expecting the speed to change according to the S-value.
Also at the spindle module, a wire is connected to the G terminal, which is tied to Ground of both the spindle and the control board.
Here’s the code I added to my FluidNC config file for the spindle:
Thanks for the reply! I don’t use a separate VFD — my spindle is an AMB 1050 FME-P DI, which has a built-in speed controller. According to the official documentation (see attached image), this model is specifically designed to be controlled via a 0–10 V analog signal.
The + and – terminals of the 24 V power supply of the spindel speed controll are connected to the V1 Engineering board, so the control logic and the spindle controller share a common power and ground reference
Looking at the examples, I’m guessing the speed map needs to be adjusted. You’ll notice the example speed map goes from 0 to 24000 and 6000 is still mapped to 0.
I’ll try adjusting the speed map accordingly. I won’t be able to test it until tomorrow, but as soon as I get to the machine, I’ll give it a go and report back.
Just a quick update: the code I posted earlier was outdated — I had already uploaded a version with the adjusted speed map to the controller. Unfortunately, changing the speed map didn’t solve the issue; the spindle still runs at a constant speed regardless of the S-value.
Put a DMM in voltage mode. Connect the (-) lead to the GND terminal of the AMB. Turn on the system and let it boot. Measure and report the voltage with the (+) lead connected to the following points:
AMB +24V
AMB 0-10V
Jackpot VMOT (-)
Jackpot VMOT (+)
Jackpot 0-10V module COM
Jackpot 0-10V module 10V
Jackpot 0-10V module G
In FluidNC, command full speed on the spindle, repeat the measurements on the 0-10V module.
In FluidNC, command the spindle off. Repeat the measurements on the 0-10V module.
Report all measurements.
Some suggestions-
not the problem, but best practice is to twist the two wires going from 0-10V module to the spindle.
The wires going to the spindle look like solid wire. Best practice for wiring a motion system is to use stranded wire with a flexible jacket.
alright, I was guessing it was just a level shifting.
I just found a 2024 topic you helped solve a similar problem. But the
yami was different
10V:
output_pin: gpio.14
forward_pin: gpio.13
reverse_pin: gpio.15
spinup_ms: 0
spindown_ms: 0
tool_num: 0
speed_map: 0=0% 5000=10% 25000=100%
I know little to nothing about yami but guess I better get started. Haven’t taken my jackpot out of the box yet
Thanks a lot for the detailed instructions and the wiring tips — I really appreciate it!
I won’t be able to access the machine until tomorrow, but I’ll perform all the voltage measurements as described and report back with the results as soon as I can.
Yes, that YAML snippet is actually from the FluidNC wiki — I’ve already tried it, but unfortunately it didn’t make a difference in my setup.
That’s why I switched to a slightly different version I found in another thread here on the forum where someone had a similar issue with 0–10 V control. I figured it was worth trying as a base.
But I really appreciate the tip, and I’ll definitely give that version another shot in parallel to see if it makes any difference.
Thanks for the detailed instructions — I followed them today.
I connected the ground lead of my multimeter to the common GND point, where all grounds (V1 board, spindle controller, and 0–10 V module) are tied together. Then I measured the following voltages:
AMB +24V to GND: 24 V
AMB 0–10 V (number 5 in pic) to GND: 7.5 V
gpio.14 (number 4 in pic) to GND: 3 V
Jackpot VMOT (number 2 in pic) to GND: 24 V
Jackpot 5V (number 3 in pic) to GND: 5V
The strange part: these voltages did not change at all when I sent G-code commands in FluidNC to vary the spindle speed (e.g., M3 S10000, M3 S25000, M3 S0). I also noticed that I cannot turn off the spindle using M5 or M3 S0, so it just keeps running at a constant speed.
Could this indicate that PWM isn’t being sent correctly from the FluidNC output pin? Or that the 0–10 V converter isn’t reacting to it?
That’s not the reference point we need for your measurments, it very specifically needs to be the AMB GND pin, the DMM (-) lead for this set of tests must physically be plugged into the AMB, not anywhere in the Jackpot.
The reason for this is to rule out various possible problems. Your AMB GND wire should be tied to the analog common of the 0-10V module, not VMOT (-).
That’s the pin below the “5” in your picture. Yes, in theory that pin should end up tied back to VMOT return through your module, but since your system isn’t working this is one of the data points we need. I’d move the return wire for the AMB to the module before repeating any tests.
We need to establish what your spindle “Sees” from the system, so the measurements need to be made with the DMM (-) connected to the spindle GND (At the AMB)
There’s a pot on the analog board which adjusts gain from U1, and this may need adjustment if we get your system to respond to commanding- but don’t touch the pot until we solve the voltage being fixed at 7.5V.
If you connect your DMM return to the AMB GND and still measure 7.5V at the 0-10V output terminal of the module, then we also want to check the GPIO 14 voltage on the jackpot. If GPIO 14 isn’t changing as you command different speeds in FluidNC, then the spindle board can’t work.
Your spindle won’t use the digital common, out1 or out2 (which you correctly did not wire to)
For reference, the schematic for the module and the pinout for the green connector is shown below:
I re-ran the measurements today with the spindels GND conected to the 0-10V spindle modul (see image number 6), as you instructed. I also moved the AMB GND return wire to the analog common (ACM) terminal of the 0–10 V module.
The big issue: None of the voltages change when I send different G-code commands like M3 S10000, M3 S25000, or M5. The analog output stays stuck at 7.5 V, and the GPIO input on the module (connected to gpio.14) doesn’t change either.
At this point, I’m starting to suspect that gpio.14 isn’t producing PWM correctly. Do you think it makes sense to test the GPIO pin directly with a scope or LED?
Thanks again for all the guidance — it’s a huge help!al common, out1 or out2 (which you correctly did not wire to)
[/quote]
Yes, if you have a scope then we want to see what pin 14 looks like as it is commanded to different speed settings
I don’t have a 0-10V module to test with, but I do have a couple of test Jackpots that I can try to recreate your configuration on, and similarly see what result I get.
Depending on what we see with the GPIO 14 levels, we may want to try a replacement ESP-32.
I believe GPIO 14 is PWM capable, and I believe other folks have been able to use Jackpot with Bart’s 0-10V. board.
Thanks for the offer — I really appreciate you taking the time to test it on your side!
Unfortunately, I don’t have access to an oscilloscope right now. However, I’ll try to test GPIO 14 using an LED to at least get a rough idea of whether PWM is being output.
If I’m right, connecting a standard LED with a 220 Ω resistor between GPIO 14 (through the resistor) and GND should give a rough indication of PWM activity — the LED should glow dimmer at lower S-values and brighter at higher ones.
If it stays fully on, fully off, or doesn’t change at all, then GPIO 14 might not be generating any PWM.
It’s definitely not a precise test, but it should give us at least some idea of what’s going on.
What I also was thinking of: could the reason why GPIO 14 isn’t outputting any signal be because I didn’t include pwm_hz: 5000 in my 10V: block?
I’ve just added it now, but wanted to ask if that could be the root cause for the 0–10 V module not responding. I’ll definitely check this tomorrow first.
For reference, I’ve included the full YAML configuration below. The 10V: section that controls the spindle is at the bottom of the file.