Page 1 sur 1

GCode running correctly, spindle not on.

Posté : 04 juil. 2020 18:53
par Inevergiveup
Wondering if anyone had the same problem as me.
Still trying to get my 1st project made, so this is a startup issue.

[*]I am using Fusion 360 to generate my Gcodes. I am using the openbuildGRBL.cps post processor with the gcode extension from the link here: https://www.makerfr.com/en/cnc/grbl-32- ... ilisation/
[*]I am using a Makita RT0701C for the router.

When I run the gcode the tool paths appear to be working as I would expect, except 1 problem, the spindle isn't turning on...

I did a little troubleshooting:
[*] The hard switch of the spindle is on.
[*] I confirmed the spindle is wired correctly and turns on when I jump the Neutral wire to ground manually.
[*] I connected to the RS-CNC32 with my laptop & bCNC to try to manually engage the spindle, when I entered M3 into the terminal the spindle didn't turn on.

Is there a particular solder joint on the STM32 board that I should double check?
Is there some setting I need to adjust be it in the GBRL settings or Fusion 360?

Please help, I am so close to actually machining my first part I can taste it.

Thank you,

Inevergiveup

Re: GCode running correctly, spindle not on.

Posté : 04 juil. 2020 21:47
par jimbalny
did you try setting M3 with a RPM above 0?

Re: GCode running correctly, spindle not on.

Posté : 05 juil. 2020 00:03
par Inevergiveup
jimbalny a écrit : 04 juil. 2020 21:47 did you try setting M3 with a RPM above 0?
The Makita is set to 6 (Max of the variable control and in the on position (|).
Speed Chart.jpg
Attached are my GRBL settings. The $30= 30000 & $31=10000
Every other setting is the default flashed settings.
Settings.JPG

I connected to bCNC & tried m3s10000 & m3s30000 in bCNC in the command prompt, nothing happens.

Re: GCode running correctly, spindle not on.

Posté : 05 juil. 2020 09:08
par mstrens
When you send the command M3 S10000 you should hear a "clic" on the STM32 board. It should be the relay that goes ON (and put the 220V/110V on the makita).

You can also control this with a multimeter. If you disconnect the 2 wires for the makita from the STM32 board and you put you multimeter in Ohmmeter, you should get a resistance close to 0 when you send e.g. M3 S10000.

If it is not the case, you can have :
- a bad soldering on STM32
- a bad relay.
It is possible to make the difference with the multimeter if you measure the voltage between the 2 pins that drive the relay (so not the output pins of the relay).
When M3 S10000 is sent, there should be a voltage of about 24V between the 2 pins.
Take care to disconnect the 2 wires for the Makita from the shield in order to avoid having high voltage on the board.

Re: GCode running correctly, spindle not on.

Posté : 05 juil. 2020 16:16
par Inevergiveup
mstrens a écrit : 05 juil. 2020 09:08 When you send the command M3 S10000 you should hear a "clic" on the STM32 board. It should be the relay that goes ON (and put the 220V/110V on the makita).

You can also control this with a multimeter. If you disconnect the 2 wires for the makita from the STM32 board and you put you multimeter in Ohmmeter, you should get a resistance close to 0 when you send e.g. M3 S10000.

If it is not the case, you can have :
- a bad soldering on STM32
- a bad relay.
It is possible to make the difference with the multimeter if you measure the voltage between the 2 pins that drive the relay (so not the output pins of the relay).
When M3 S10000 is sent, there should be a voltage of about 24V between the 2 pins.
Take care to disconnect the 2 wires for the Makita from the shield in order to avoid having high voltage on the board.

I will check this today. Just curious what pins on the STM32 control the spindle?

Re: GCode running correctly, spindle not on.

Posté : 05 juil. 2020 21:46
par Inevergiveup
mstrens a écrit : 05 juil. 2020 09:08 When you send the command M3 S10000 you should hear a "clic" on the STM32 board. It should be the relay that goes ON (and put the 220V/110V on the makita).

You can also control this with a multimeter. If you disconnect the 2 wires for the makita from the STM32 board and you put you multimeter in Ohmmeter, you should get a resistance close to 0 when you send e.g. M3 S10000.

If it is not the case, you can have :
- a bad soldering on STM32
- a bad relay.
It is possible to make the difference with the multimeter if you measure the voltage between the 2 pins that drive the relay (so not the output pins of the relay).
When M3 S10000 is sent, there should be a voltage of about 24V between the 2 pins.
Take care to disconnect the 2 wires for the Makita from the shield in order to avoid having high voltage on the board.
I did what you suggested. I do not hear the relay clicking open when I send M3 S10000 or M3 S30000. I am also getting OL (open line) when I check the resistance between the contacts for the Spindle.

I checked & re-soldered any suspect connections on the STM32 board, with special focus on the circled ones for the spindle.
STM32 Pinout.JPG
I currently have the GRBL 32bits board next to me checking the relay. The solder points look good, how can I check if the relay is good?
GRBL 32bits PCB board.JPG

Re: GCode running correctly, spindle not on.

Posté : 06 juil. 2020 10:34
par mstrens
Before testing the relay, can you already measure if the STM32 generates the rigth signal.
You should measure the voltage on pin PB1 (regarding to ground).
After reset, it should be 0V and after a M3 S10000, it should be about 3V3.

If this is correct, then later on you could check if the ULN2803 is OK and finally the relay..