Giter Club home page Giter Club logo

Comments (25)

bdring avatar bdring commented on August 13, 2024

you can use the PWM spindle, but we do not support BRK. (Brake?)

from fluidnc.

distebia avatar distebia commented on August 13, 2024

Non traduco bene quel poco di documentazione che ho trovato...
il link è qualcosa di simile https://it.aliexpress.com/i/32650831394.html?gatewayAdapt=glo2ita e mi sembra di capire il brk se collegato a gnd permette il movimento, se scollegato da gnd è freno

from fluidnc.

bdring avatar bdring commented on August 13, 2024

just wire it to ground then.

link does not work for me

from fluidnc.

distebia avatar distebia commented on August 13, 2024

image
https://it.aliexpress.com/i/32650831394.html?gatewayAdapt=glo2ita
non capisco perche non funziona il link
Se 24v, gnd, 5v e pwm sono corretti, quali sarebbero i migliori pin per Dir e brk? Esiste qualche pin che posso usare per dare gnd a brk tipo pin enable o qualcosa del genere?

from fluidnc.

bdring avatar bdring commented on August 13, 2024

Enable with the :low attribute would work.

from fluidnc.

distebia avatar distebia commented on August 13, 2024

ma proprio il pin enable?

from fluidnc.

bdring avatar bdring commented on August 13, 2024

Everything we know about that cheap chinese controller is here.

http://wiki.fluidnc.com/en/hardware/3rd-party/MKS_DLC32

from fluidnc.

distebia avatar distebia commented on August 13, 2024

ok, grazie, provo a costruire un file yaml e fare alcuni test

from fluidnc.

distebia avatar distebia commented on August 13, 2024

pwm:
pwm_hz: 500
direction_pin: gpio.25:low
output_pin: gpio.32
enable_pin: gpio.26:low
disable_with_s0: false
s0_with_disable: true
spinup_ms: 0
spindown_ms: 0
tool_num: 0
speed_map: 0=0.000% 1000=50.000%
off_on_alarm: false

Salve, ho collegato tutto e riesco ad eseguire i comandi della rotazione orario e antiorario con
orario
M3 S10
G1 F1000
e antiorario
M4 S10
G1 F1000

quello che non riesco a regolare è la velocità...se dico m3 s1000 g1 f1000 la rotazione è uguale a m3 s1 g1 f1000
l'unico modo per aumentare la velocità è cambiando il valore pwm_hz. ho provato a 20000 e gira veloce e fluido, se metto 100-300 vedo una rotazione lenta e a scatti, come se non sono sintonizzato bene
il gpio.32 emette regolarmente 0-5v al variare del comando m3 s...

from fluidnc.

bdring avatar bdring commented on August 13, 2024

PWM of 500 is a little low. Do you have a datasheet for the spindle?

Most would use 5000-10000. Try measuring the voltage of S1000 and S500 with PWM of 5000.

from fluidnc.

distebia avatar distebia commented on August 13, 2024

non ho una scheda tecnica del mandrino
ho riportato la mia mappa velocità su speed_map: 0=0.000% 1000=100.000%
con s1000 misuro 5v ma il motore non gira, per questo avevo cambiato la mappa della velocità.
con s500 misuro 2.6v
con pwm_hz=5000 il motore gira veloce, con pwm_hz=1000 gira un po più lento

from fluidnc.

distebia avatar distebia commented on August 13, 2024

Forse ho capito perchè non posso regolare la velocità...il motore, molto probabilmente, è regolato da impulsi di CLK timer. Esiste un modo per sostituire il pwm in uscita con CLK?

from fluidnc.

distebia avatar distebia commented on August 13, 2024

Esiste qualche mandrino da configurare per comandarlo in frequenza variabile?

from fluidnc.

bdring avatar bdring commented on August 13, 2024

Is there a datasheet for this spindle?

Have you contacted the supplier with questions?

from fluidnc.

distebia avatar distebia commented on August 13, 2024

non riesco a trovare niente online. Il motore è Nidec G1271170 DC24V 1.5A 9.6W.

from fluidnc.

bdring avatar bdring commented on August 13, 2024

Sorry, I can't help you without a datasheet.

9.6 watts? The weakest spindle I ever used was 300w

from fluidnc.

distebia avatar distebia commented on August 13, 2024

lo so che è bassa potenza. Il motore a bassi giri ha un'alta coppia. Ne potrei ricavare un sistema di filettatura automatico. quello che mi serve è soltanto avere un pin su mks che genera frequenza variabile anzichè pwm, sempre se è possibile farlo

from fluidnc.

MitchBradley avatar MitchBradley commented on August 13, 2024

ESP32 has no obvious way to generate variable frequency drive signals directly. You would need to use external hardware to generate the signals, like a BESC controller. We have no way of supporting undocumented third-party hardware, so you are on your own.

from fluidnc.

distebia avatar distebia commented on August 13, 2024

pdfcoffee.com_nidec-24h-bl4234-4-pdf-free.pdf
ecco la scheda tecnica, il modello è 27h

from fluidnc.

MitchBradley avatar MitchBradley commented on August 13, 2024

ESP32 cannot drive 3-phase brushless motors directly. To drive such a motor, you need a "BLDC motor driver". In order to use it with FluidNC, you need one that has a PWM input. Here is an example https://www.amazon.com/UMLIFE-Three-Phase-Brushless-Controller-Control/dp/B09BHXLGW6

from fluidnc.

distebia avatar distebia commented on August 13, 2024

image
il motore ha già la sua scheda integrata, se vario il pwm_hz cambio la velocità, se invio m3....vado in senso orario e con m4 vado in senso antiorario.e m5 arresta il motore...farò delle macro in LB dove vario il pwm_hz per avere diverse velocità

from fluidnc.

MitchBradley avatar MitchBradley commented on August 13, 2024

The PWM spindle code is not intended for dynamic control of the frequency. The frequency is set once at startup, then the motor speed is controlled by changing the duty cycle. It might be possible to write a new Spindle code module that dynamically controls the frequency base on the GCode S value, but FluidNC currently has no such code.

from fluidnc.

distebia avatar distebia commented on August 13, 2024

ok, capisco....grazie...se un giorno verrà implementata questa nuova funzione la prego di avvisarmi

from fluidnc.

MitchBradley avatar MitchBradley commented on August 13, 2024

You are the only person who has ever asked for this capability so I don't expect that we will be implementing it any time soon.

from fluidnc.

distebia avatar distebia commented on August 13, 2024

oggi sono l'unico (pazzo) che vuole controllare un motore brushless con alta coppia a bassi giri...domani magari se ne aggiungeranno altri, chissà...

from fluidnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.