Is Arduino fast enough? 🤔

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • Arduino Nano reads 600 pulse encoder and controls 200 step motor. Let's see how many pulses can it handle 💨
    Build your own - github.com/kac...

Комментарии • 32

  • @astrogerard
    @astrogerard Год назад +5

    Excellent! Hopefully in time there will be a complete kit available.

    • @johannriedlberger4390
      @johannriedlberger4390 Год назад

      I have seen a complete kit for this lathe on aliexpress. But it has only some pitches to choose from. I like Maxim's solution more.

    • @MaximKachurovskiy
      @MaximKachurovskiy  Год назад

      Thank you for the validation. The time has come :) kachurovskiy.com

  • @PiefacePete46
    @PiefacePete46 Год назад +2

    Excellent, thanks. The workpiece deflection during the heaviest cuts is a bit scary! You could be cited for cruelty to a defenceless piece of metal!
    Satisfying end result. 👍

  • @HM-Projects
    @HM-Projects Год назад +2

    Excellent, with some fine tuning it can probably cut threads at even higher RPM but it's not so healthy for the leadscrews. You'll have to switch to low friction ball screws and linear rails like they have in larger CNC machines. I can cut M8 threads in mine pretty accurately at 1600rpm but don't usually run it past 600rpm. The wear on half nuts will reduce their lifespan.

  • @Ben_Guse
    @Ben_Guse Год назад +1

    This is awesome!
    there is another electronic lead screw project on youtube the creator overbuilt the microcontroller.
    I always thought Arduino would be able to handle it.

    • @carneeki
      @carneeki Год назад

      Agree with the over building. It's a cool project but it's just a simple divider and multiplier at the end of the day. And the expensive micro has me fearful of anything zapping it.

  • @azinfidel6461
    @azinfidel6461 Год назад +1

    That is some fast threading....

  • @johannriedlberger4390
    @johannriedlberger4390 Год назад

    I use the same lathe. I have just upgraded it with 1hp 3 phase motor and VFD. The torque is very impressive now. Just my spindle pulley is now to big for the most gears when thread cutting. Next project will be the Arduino ELS.

  • @jirvin4505
    @jirvin4505 Год назад +2

    I’ve just updated my quadrature scale reader to esp32 chip. Maybe a consideration. Very economical. Fast and specialist onboard chips to handle encoders

    • @MaximKachurovskiy
      @MaximKachurovskiy  Год назад +4

      Yes, I have my 👀 on ESP32 WROOM for ELS, not only it's 5x higher MHz but also double core making it possible to update the display and drive the motor at the same time 🥹 And costs same as Nano.

    • @HM-Projects
      @HM-Projects Год назад

      @@MaximKachurovskiy certainly worth investigating, the last time I looked at it was a while back and the isr and gpio latency was pretty high compared to stm32f4 by a factor of 10x. also man I hate freertos, but I think you may be able to do bare metal stuff now.

    • @HM-Projects
      @HM-Projects Год назад

      like someone else said, nothing beats atmegas in interrupt handling from a clock speed to interrupt latency point of view which is why grbl authors managed to pull off a complex system.

  • @carneeki
    @carneeki Год назад +1

    This is great!

  • @HM-Projects
    @HM-Projects Год назад

    Ah I forgot. One thing to take into account with encoder signals at high rpm is the impedance and inductance, the pulse shape become less square / sharp. If you have additional capacitance in the way, then the signal will also get attenuated making it harder for the AVR to decode those pulses. You'd want as short a cable as possible, good shielding and low capacitance path to the GPIO.

    • @MaximKachurovskiy
      @MaximKachurovskiy  Год назад

      Good point but it was not a practical concern since we're just dealing with 30kHz here which really isn't much. Adding external pull-ups was all that was needed so far.

    • @HM-Projects
      @HM-Projects Год назад

      @@MaximKachurovskiy I have mine stepped up with belt ratios so it's effectively 1200ppr and 2400 quadrature transitions. It's fine at 3000rpm, but even small stray capacitance can change the pulse shape or the phase difference. I have some oscilloscope captures somewhere when debugging issues, I'll see if I can find them.

    • @HM-Projects
      @HM-Projects Год назад

      Nope can't find them. I can capture some to explain in a video. Line capacitance, PPR, max response frequency of the encoder transistors (cheap open collector types) all add up but it's not going to be an issue unless you're using a high PPR encoder or step up like I did at > 3500rpm

  • @ryebis
    @ryebis Год назад

    AVRs have much lower latency on interrupts and IO compared to ARM, this is a good example.

  • @40020964
    @40020964 Год назад

    very good

  • @Valery_1954
    @Valery_1954 Год назад

    Привет, Максим! Шестерня установлена прямо на оси энкодера без дополнительных подшипников?

    • @MaximKachurovskiy
      @MaximKachurovskiy  Год назад

      Привет! Да. Есть зазор между шпинделем и шестерней так что давление минимальное.

  • @johannriedlberger4390
    @johannriedlberger4390 Год назад

    I have ordered closed loop Nema23 and controller. It looks like, that it can't do full steps. I will see how fast it can go with 400 steps/revolution.

  • @MrDelabrousse
    @MrDelabrousse Год назад

    it's really well done hat can be updated with auto thread, cone, sphere ect later? like the Russian project

    • @MaximKachurovskiy
      @MaximKachurovskiy  Год назад +3

      I'm working on 1 axis device for 2 years already and there's no end in sight. Check back maybe 5 years from now for a 2 axis one 😂 Cheers!

    • @MrDelabrousse
      @MrDelabrousse Год назад

      @@MaximKachurovskiy so there go on I can't wait to see the result I'm really looking forward to putting this on my lathe with two axes it would be the best on the other hand since I have a system like that the lead screw is damaged really fast I think it would be necessary to put a lead ball screw?

  • @Bjarne2411
    @Bjarne2411 Год назад

    how to mount LCD 2004 Display on nanoels/h2/ and wirring it together du you have a link for it

    • @MaximKachurovskiy
      @MaximKachurovskiy  Год назад +1

      You would solder the display onto the PCB, no wiring needed. More info at github.com/kachurovskiy/nanoels/tree/main/h2

    • @Bjarne2411
      @Bjarne2411 Год назад

      Thanks

  • @Drxxx
    @Drxxx Год назад

    😍😍😍

  • @paulklasmann1218
    @paulklasmann1218 Год назад

    What lathe is that?

    • @MaximKachurovskiy
      @MaximKachurovskiy  Год назад +3

      WM210-V from AliExpress, the exact shop where I bought it seems to have closed but there are similar ones.