FluidNC // Beginner tutorial // ESP32 GRBL
Вставка
- Опубліковано 23 лис 2024
- I have had requests to make a video about FluidNC and my setup, so here we are!! There is far too much information to dive into on one video, although I hope this gives you a starting point.
Please read through the FluidNC Wiki for more information!! Enjoy :)
UPDATE:
I have sorted out my issue with compatability with Windows 11 and incorrect driver installed. If you have an issue, use this link: www.silabs.com...
Regarding the 6axis board that I have used in this video, please do not purchase. It is not well designed - It is just an example! However I can be used if already purchased.
FluidNC:
GitHub: github.com/bdr...
Wiki: wiki.fluidnc.com/
Electronics links:
6 axis board: DON'T purchase.
ESP32 board: tinyurl.com/yc...
Optocoupler module: tinyurl.com/2r...
5v regulator circuit: www.electronic...
Tinybee board: tinyurl.com/54...
Two quick tips. I just got my ESP32 and was getting fatal errors when running the install-wifi.bat. Basically the board was not recognized by Windows 10 despite it beeping upon connection. I downloaded and installed windows drivers for my particular ESP32 which was manufactured by KeeYees. That didn't do the trick, but holding down the "boot" button on the ESP32 the entire time the FluidNC was installing, allowed the batch file to find the board and the upload was successful. Off to the races!
Great point 👍👍
Wow, I just had a hell of a time putting this on my ESP32 I just got from amazon, but I managed to get it working finally, by doing the 10uf capacitor trick.
That wasn't working for the last few hours, and I was trying other cables and anything I could think of, but it turns out, these ESP32 boards I got, are pinned different, so when I actually located and used the proper GND and EN pins, it worked perfect instantly!!!
Just as a heads up to anyone struggling to get their ESP32 to connect and be able to write to, check to make sure your pins are correct, and don't just trust the pins on other peoples boards online in images and videos... Some of these things are different... I almost gave up and ordered a new one. LOL
Great job! Thanks for your feedback and sharing valuable information 👍
This is the only video you can find on youtube about ESP32 with Fluidnc! great explanation. 👍
Cheers mate! 🤩
Thanks for posting. I’ve followed a similar journey with an MPCNC and a variety of control boards. The original ESP32 Grbl Bart wrote was really good. I ended up modifying an Uno shield to run the motors and 4 axes. I’ve been waiting for FluidNC to mature and this video suggests that it has. I never had a problem with BT on my earlier build.
Thanks for your response. I will order the bundled screen option, and give it a shot.
The us a really great primer on FluidNC! I'm about to embark on an upgrade from grbl + Arduino to FluidNC + ESP32 and am very excited about it. grbl has served me well for years, but it's now time to join the revolution. Cheers! Important to note that multiple axis beyond 3 are not simultaneous. At least that is my understanding, for those of you wanting to build a 5 axis machine.
Thank for your comment! Wonderful to hear you are making the jump fro grbl. My workbee only made the jump from an arduino uno to esp32 last year and made a huge difference especially with the pulses. Due to the esp32 ability to process faster, I was able to achieve more then double speed output due to more processing power. No, fluidnc can independently move all 6axis simultaneously! Great for multi axis machines 🤩🤩
Hey, is there a particular ESP32 board I should be purchasing, in terms of quality, features, etc. I bought the 6 pack board, but I'm unsure if which ESP32 to purchase. Any links or tips would be appreciated.@@NEWTechCreative
Thanks for your comment! I assume you are referring to Barts 6 pack board? wiki.fluidnc.com/en/hardware/official/6_Pack_External
Checkout the esp32 Module section for more info. Note- This needs a 38pin esp32 wroom board!
hello good evening
Could you help me if I want to control two stepper motors with the esp32 and receive the g code which configuration should I use?
You can use any board that is compatible with the ESP32 and just use 2 axis only. The yaml configuration depends on what board you have. If you have just an esp32, you can use the 3axis_v4 setup and just select the z axis. Good luck 👍
THANK YOU THANK YOU AND THANK YOU, this video is exactly what I needed, can't believe how easy it made it for me.
No problems Alexandru!! I’m pleased to hear my video helped 😄😄 thanks for your kind feedback!
A gift from heaven indeed.
That's come a long way in the past 2 years. I remember when Bart initially released grbl for ESP32, I tried it, even made a custom board for it. What timing on your video, I have 2 of those 6 axis boards on order. Thanks for the video.
It sure has!! I’m so pleased to see where it is now. Let me know how you for with the 6axis boards? Thanks for your support 👍
@@NEWTechCreative will do
I have the generic 6-axis boards here now $16US. Here's how they're loaded.
[MSG:Grbl_ESP32 Ver 1.3a Date 20210424]
[MSG:Compiled with ESP32 SDK:v3.3.5-1-g85c43024c]
[MSG:Using machine:ESP32 I2S 6 Axis Driver Board (StepStick)]
[MSG:Axis count 6]
[MSG:I2S Steps, Stream]
[MSG:Init Motors]
[MSG:Using StepStick Mode]
[MSG:X Axis Standard Stepper Step:I2SO(2) Dir:I2SO(1) Disable:I2SO(0) Limits(0.000,300.000)]
[MSG:Y Axis Standard Stepper Step:I2SO(5) Dir:I2SO(4) Disable:I2SO(7) Limits(0.000,300.000)]
[MSG:Z Axis Standard Stepper Step:I2SO(10) Dir:I2SO(9) Disable:I2SO(8) Limits(-300.000,0.000)]
[MSG:A Axis Standard Stepper Step:I2SO(13) Dir:I2SO(12) Disable:I2SO(15) Limits(-300.000,0.000)]
[MSG:B Axis Standard Stepper Step:I2SO(18) Dir:I2SO(17) Disable:I2SO(16) Limits(-300.000,0.000)]
[MSG:C Axis Standard Stepper Step:I2SO(21) Dir:I2SO(20) Disable:I2SO(23) Limits(-300.000,0.000)]
[MSG:PWM spindle Output:GPIO(27), Enbl:GPIO(12), Dir:GPIO(16), Freq:5000Hz, Res:13bits]
The seller, macrobase, doesn't have the schematic (they claim the supplier didn't send it). I suspect its a clone of a "ESP32 I2S 6 Axis Driver Board", it has 3 74595s and an H-bridge. I looked around and couldn't find a match for existing board. It probably a clone of Dring's 6-Pack controller.
I guess with these startup messages, its possible to setup fluidNC's config files.
This this the board you have purchased?
wiki.fluidnc.com/en/hardware/3rd-party/ESP32_6_axis_breakout_board
If so, I have mapped the board already (yes it was painful). Upload fluidnc and use the yaml file from wiki link I have above. The spindle and mist out are 24v. I think this is intended to use the variable amp setting in vfd, however untested. You will need to supply 24v to board to upload firmware.
@@NEWTechCreative Ha! Yes, that's the board! I spent 4 hours this afternoon doing the same thing. Used the machine.h (from their github repo) to config.yaml converter. Then flashed FluidNC from the latest release without any problems. I learned a lot about FluidNC during this process. Its so simple now to get a board running. Verified 6 axis, limits, spindle and mist.
I looked over your file and there are a few things that should be changed (for example, motor stepstick should be standard_stepper, also ms3 doesn't exist.) I'll finalize and confirm mine then get it to you.
Fantastic Overview! Thank you for creating it. Big question... for "non-standard" mechanisms and machines (I.E. SCARA, or cable-style like Maslow) where motor steps / mm are not consistent through the movement, and need to be calculated based on position with an equation. Is there a method or place in the settings to accomplish this?
I could see this as a platform to accomplish all types of automation control on so many machines I have in my head... but so many are not a straight 1:1 step per mm mechanical set-up...
Thanks for your comment! Great question. I agree with you! Yes there is a range of kinematics available on fluidnc and yes I have seen a basic wall plotter style project using fluidnc. The Maslow style already has its own fork of the fluidnc project and looks great (google fluidnc Maslow). You can also create your own kinematics if you are savvy in the coding space and compile your own version. You can find some of the kinematics available here:
github.com/bdring/FluidNC/tree/main/FluidNC/src/Kinematics
Fantastic! Thank you for the reply. Now hopefully I can dust off the brain cells and revive the ideas...@@NEWTechCreative
Help. I just uploaded the 3.7.0 firmware to my xpro v5. There was no yaml file in the zip folder and now I can’t jog my cnc machine.
You need to download/ create the yaml file separately. You can copy and paste the example code from the wiki as a starting point.
wiki.fluidnc.com/en/hardware/3rd-party/xPro_V5
@@NEWTechCreative thank you
@@moinshaikh6684 I later found out that the yaml file was stored in a micro Sd that came with the controller. It worked for a few months but I ended up switching to open builds black box
I’m using protoneer CNC shield and wemos esp32 breakout board, hoping this is similar! Thanks for the video tutorial, that Bart sure is amazing
Yes this looks promising… I can see the pins used on this website that you can easily duplicate across to fluidnc.. deeemm.com/cnc/2021/07/15/ESPduino-protoneer-CNC-Shield.html
Let me know how it goes?
This is pretty cool. I've been wanting a new controller for my 18 year old Taig 3 axis CNC mill. Wanted to get away from the parallel port forever.
Wow! That’s served you well. If you jump onto the discord discussion, you can see another user who has created a parallel port esp32 for fluidnc!! Very impressive 👍
Thanks for the video. It's interesting to see what other types of control software there is. You mention that there's too much for one video so I wonder if there's going to be additional videos? It would really be interesting to see an example of building a CNC or converting one over to use this system. It would also be interesting to learn about what kind of interface software you can use. For example, could you use something like Carbide Motion?
Not a problem! I agree.. there is so many variations with CNC controllers. I will be building a new CNC soon and most definitely will include an electronics component with fluidNC… might take me a while to complete so stay tuned! I’m sure that Carbide motion is comparable as it also uses grbl, however it might be only compatible via usb… I will have to research. Thanks for watching 👍👍
Excellent guide. Wish it was available earlier. I read it all the written guide and info online. The discord support is amazing. Im going to be changing my 3 machines to use fluidnc the first 6 pack was a godsend ( my main LR2 is what drives a huge part of my business PVC and acrylic cutting. I never liked the Marlin 😜)
Haha! Sorry it took me some time to get around to making the video. The 6 pack is a fantastic board 😁 let me know how it goes!
Hi, currently I'm interested in installing fluidnc. :) After one year you still use fluidnc? what feedback? Thank you
@@arunasjaspelkis4880 yep the six pack and fluidnc are going strong. I have changed all GRBL boards to fluidnc. I wish they have better webui honestly but there is one in the works.
If the usb cord works for DATA on other stuff but not your ESP32. your missing "windows" com port drivers. install Windows CH340 Driver or CP210x Universal Windows Driver and you will likely have joy. For example, if you have a wemos d1 and the blue LED does not light up when you plug the usb port into a PC. Its because there is no com port. It needs a virtual comport driver. As well you will also need the correct .jason file and the correct board file/library loaded in arduino IDE.
Thank you for this Berin! Yes you are correct - since posting the video, the ESP32 can now communicate with windows 11 using the correct drivers! Great advice 🤩🤩
Thanks for your explanations. I am building a lowrider v3 and mechanical work is done. I am supposed to build minimal control electronics (an esp32 dev kit and many breadboad rats nest) for XXYYZ configuration. I would be curious to see if it has enough IO for 3xEndstops, 4xTMC2209, 1xProbe, 1xE-stop and 1xRelay ? I don't really need dual endstop and fancy laser stuff.
Yes this is possible if you set up with XYZ and just split the direction and step pins out to two XX and YY drivers. Or just use one motor driver with two steppers as long it can supply enough power for both motors. This is how I setup up my MPCNC and just swapped the stepper motor wires to mirror the motor directions. I hope this makes sense?
Thanks for the video .. at 7:36 you mention you built a CNC machine wiring directly to the ESP32 - can you please send a link or where to find the instructions for this - Many thanks!
Thanks for your comment! Yes here is my MPCNC video that I use an esp32… if I was to do it again- I would not use a stand alone esp32 and purchase a CNC/3d printer purpose ESP32 board to make process easier.
ua-cam.com/video/PoFJuorRqWw/v-deo.html
Thanks for the video. I need to change the standard engine ports for board development reasons. In this case, do I use the recording medium via the Arduino IDE?
No need to use Arduino IDE. To change pins, just change the yaml file for fluidnc and upload either by fluidnc term or the web ui 👍
Hi, when I try to do some order like move with axis, I get an error message in the commands:
ERROR:8
Grbl '$' command cannot be used unless Grbl is IDLE. Ensures smooth operation during a job.
Error : undefined :undefined
I don't understand why the firmware thinks the machine isn't in idle state even if I just apply power to the board. Any advise please ?
Thanks for your message. Connect via usb and run the fluidterm file. When you restart the board, this will show you what is throwing the error. It’s usually due to a limit/input or duplicate pin use. It might take some trial and error to sort out. Let me know how you go?
I ve made a config.yaml to test on an esp32. Fluidnc setup went good, config upload works but it gives me an error that says the stepper motors step_pin has to be a gpio pin. It is currently configured as an I2SO pin because I'm planning on getting the 6 pack external driver controller and the wiki says the 6 motor outputs use I2SO pins.
Great idea to test on an ESP32! For the i2S to work you will also need to include the setup for the i2S as follows:
i2so:
bck_pin: gpio.25
data_pin: gpio.27
ws_pin: gpio.26
Drop this above your stepping setup on your yaml file and should work fine. Let me know how you go?
This is just amazing, congratulations!!!
I just bought the V1Engineering Jackpot CNC Controller, I want to go with Nema23's for my CNC it has onboard TMC2209 Drivers... is there a way to bypass those and use external drivers for the bigger steppers ?
Great choice 👍 yes absolutely you can bypass having to use plug-in drivers only. If you flip the board over, it will tell you the step, direction and enable pins for each driver output. If you deliver those drivers, you can use jumper wires to hijack the signals to your external motor drivers. Just remember that this is only possible with drivers that have a 0v or GND input next to the drv,stp,ena and GND … not 5v. I have explained how to swap to a 5v version on my wiring video. Let me know if you need further clarification?
Hi All, I have made some big strides since my last comment here! I now have Bart's 6 pack controller, running FluidNC connected to a 4 axis robot arm! I also have a TinyBee with plans for it to run FluidNC on a 3d printer to laser cutter conversion project. Really liking FluidNC so far. I have some new questions. Where is the best place for community support? I heard there was a Discord server for FluidNC but can't find it. Cheers. I have been pouring over the wiki and can't for the life of me figure out how to get axes a, b & c active on the GUI, for jogging etc.
Fantastic to hear! Very curious to see your arm in action. How would you go about programming in cad for this? Unfortunately you can’t get additional axes available via tbe GUI however you might have not luck using a gcode control program such as universal gcode sender, cncjs or candle. The discord page is here:
wiki.fluidnc.com/en/support/discord
ua-cam.com/video/TJnjjnmWcow/v-deo.html@@NEWTechCreative
I want to switch away from Mach4 for my CNC router. I want the new style wifi type firmware like 3D printers use. I think I have narrowed down between FluidNC and buying a board from Bart, or Buying a Duet3 board and using Reprap. I wonder which one is more finished and will be easiest to implement on my CNC router? The good thing about Duet is I want to switch a couple 3D printers I have from Marlin to Duet / Reprap as well. So I could have a common hardware / firmware between my CNC machines and 3D printers.
Great question. Personally I would stay with mach4 due to the dedicated CNC platform and flexibility in software, however if your intending to change, I would get frustrated using Reprap platform for CNC purposes. Reprap will have a reduced functionality for CNC use where as fluidnc is a CNC platform at heart. At the end of the day go with what you are most comfortable with and make it a learning journey 🤩🤩
Thank you. I have the 6 axis Chinesium board and find that enabling the i2so config to drive the shift registers in the yaml breaks the WiFi - ie won't connect to the station and the fallback AP doesn't broadcast SSID. WiFi works fine with the default config.
Have you experienced this and if so have you seen a solution?
Thanks for your comment! I assume this is the same board I am showing in this video? I would check the error log using the fluidterm program when connected via usb and this should explain what is going wrong. If it is the same board that I show in this video, check out the sample ymal config file: wiki.fluidnc.com/en/hardware/3rd-party/ESP32_6_axis_breakout_board
Great howto, but it is possible to add a macro on FluidNC to run the frame area before the real gcode ?
Great question! Unfortunately I’m not aware of such macro, however I often use universal gcode sender with fluidnc and has that option. There are a few more gcode programs that are popping up that play nicely with fluidnc and allow extended features like this. This might be a good video in the future 👍
Hi, I've had a Queenbee Pro for a year and I still haven't been able to use it because I can't connect the spindle either by RS485 or by PWM. I'm really going crazy with this. Do you have an email address to send a photo of what I get when I try to put fluidnc?
Feel free to join me on discord (preferred):
discord.gg/wYJJcQEE
Or email: newtechcreative@gmail.com
What "off the shelf" CNC boards are y'all running? I looked at Bart's new universal 6 axis. Looks great. Clearly a ton of R&D in that board. But a bit over my current budget, especially with all the modules adding up. My whole project is based on scrap/repurposed parts etc., with the exception of electronics. The MKS TinyBee hits my price point, but Amazon is out of stock (I am in USA), and Aliexpress would be a delivery end of Feb. '23. Many of the other options on the FluidNC wiki are no longer available. I'll refrain from listing my criteria, as it is quite low. Just want to do some testing and learning on a minimal budget.
Unfortunately it’s one of those decisions you will have to weigh up… spend more to receive faster or spend less and wait longer!! Due to the Chinese new year, most Chinese suppliers are on holiday until end of January and longer wait times. I would head over to the Discord server and ask around as well! I’ve also purchased the tinybee a few weeks ago and should arrive soon… it seems to have most bells and whistles.
@@NEWTechCreative Cool, yeah you mentioned that in your video. TinyBee seems like a lot of bang for the buck. I really like Bart's concept of the Universal 6 axis. I think I want to consider his as an upgrade path. For now, just learning about FluidNC.
@@NEWTechCreative Fair enough. I just placed an order for Bart Dring's Universal 6 axis CNC controller, plus his 5v Output module. In the meantime, I will still experiment with my bare bones rig and a generic level shifter from my "parts drawer" to see if I can make these steppers do their thing via some TB6600s. I am still curious about the TinyBee and might reconsider a purchase after the Chinese New Year.
@@NEWTechCreative Got my Bart Dring 6 Axis CNC board today!
I would like to test FluidNC on my ESP32 dev board but, in case I need to bring it back to my usual Arduino IDE environment for simple automation circuits, is it possible/easy afterwards to reset the board to the initial state ?
Absolutely! Fluidnc comes with an erase tool to wipe the ESP32.
Great vid. Did I miss how you run fluid NC from serial port or does it ony run from Wifi or Bluetooth gui??
Great question Dennis! You can use over serial if you use a gcode send like universal gcode sender or CNCjs. I use UGS to connect via serial. You won’t be able to use the webUI over serial. 👍
Don't know much about this stuff so please forgive me if this is a stupid question. Can Fluid NC be used for a CNC plasma table
I’m not an expert regards to plasma tables, however there are other users who are using fluidnc for plasma cutters. There is a whole discord channel on the fluidic discord dedicated for plasma cutters and should definitely check out!!
Thanks for the video!!! in order to run the .nc file do i need to connect my computer and esp32 to the same wifi? Or can I run it by just connecting the micro usb from the esp32 to my computer? I've got all my .nc files saved on an micro sd card.
Thanks for your comment! You can upload the .nc file over Wi-Fi to the Sd card (if you have on attached to your esp32) and run directly from the esp32. The esp32 doesn’t really like Sd cards any larger than 8Gb, but as long as it’s fat32 formatted and under 8Gb, you can plug in and read from file system via esp32. Alternatively you can also connect via usb and control using a g code send such as UGS, CNCjs or focus and not use the Sd card at all 👍👍
@@NEWTechCreative Thanks for your help and sorry if these questions are really dumb - I'm just getting started. So far I've noticed I can only run the .nc files when I connect my computer and esp32 to the same wifi. Strangely, when i connect directly to the fluidnc wifi or just plug my computer to the esp32 via micro usb I find I can jog the machine, but I can't run the .nc file. Not sure why this is the case. In all cases I have the .nc files stored on the microSD. Regardless, if i understand you correctly I can fix this by installing a g-code sender like CNCjs on my PC. But in this case, won't I still have the same issue? Once the g-code sender sends the .nc file to the fluidnc firmware, then will it run?
Hmmm sounds strange indeed! It’s difficult to say and would be better to see a video of what’s happening. If you in discord, feel free to jump on to the fluidnc discord and ask there or more than happy for you to jump onto my discord to sort out. discord.gg/MYXurYv2
so can i use the wemos d1 r32 esp32 with fluidnc? without the use of cnc-shield. But with tb6600?
I haven’t had a chance to use this board, however it definitely looks possible!!
Thank you! Please can you tell me: is it sence to buy ESP32 S3 for machine project? Will it work with Fluid nc? Not sure is it supported by software
Thank you for your support! I don’t believe that fluidnc is up and running successfully on the S3 yet! More info here! wiki.fluidnc.com/en/support/controller_design_guidelines
So what this is, is Smoothie Board software ported to whichever random ESP32 board you want to use. Brilliant.
Another way to look at "shift registers" is converting SPI serial to parallel, to break out individual bits.
There SHOULD be a way to make this bidirectional. Hmmm... That gives me an idea!
Haha! Maybe a future project for you??
If it doesn't work on Windows 11, try right clicking it, going to Properties, and running it in Compatibility Mode.
I don't have Win11 myself, but it should be there just like the previous many versions of Windows.
Great suggestion! Thank you.
so if i need 3 axis mill and 2 axis rotate/tilt table this would be able to handle 5 axis and generate G Code from Fusion 360 Cad File?????? 32 Bit, Wifi, wow this could be awesome. Dennis
Yes absolutely! As long as you can create gcode that has XYZABC axis you’re all good to go 🤩🤩
Very useful for embedded hoppiest. I will try it latter. 👌👌👍👍🌹🌹☺☺
May I ask you what would be the very best ESP 32 board money could buy?
Great question!! This might be a great episode down the track reviewing multiple boards. If your intending for use with fluidnc, unfortunately the newer s3 boards aren’t compatible as yet, however for CNC purposes I would definitely look into the root controller rev3!! There are a decent range of boards already available varying in quality and functionality!!
I have gone from standard grbl to fluid nc but I notice a change in the management of laser power... for engraving on methacrylate I previously used 200mm/sec 20 power and now I have to use only 5 power because with 20 it perforates the material, It seems to me that power management is not delicate... Can someone tell me how to solve this please.
Check the following fluidnc documentation:
wiki.fluidnc.com/en/support/senders/lightburn
I had a problem when I modified the 3axis_v4.yaml file with Notepad++, and when I uploaded the file and opened it with the command $cd, it appears like this.
steps:
engine:RMT
idle_ms: 255
pulse_us: 4
dir_delay_us: 0
disable_delay_us: 0
segments: 12
spi:
miso_pin: NO_PIN
mosi_pin: NO_PIN
sck_pin: NO_PIN
sdcard:
cs_pin: NO_PIN
card_detect_pin: NO_PIN
frequency_hz: 8000000
kinematics:
Cartesian:
axes:
I have to edit my pins like this
spi:
miso_pin: gpio.19
mosi_pin: gpio.23
sck_pin: gpio.18
sdcard:
cs_pin: gpio.5
card_detect_pin: NO_PIN
The pin numbers do not appear when the file is modified
So what is the solution?
Please Help
Great question! You might need to update what yaml file name your are using in the ui. Try changing the yaml file name to config.yaml and re-upload. This should fix your issue
Thank you for your help.
Is this tensillica or risc-v. GRBL was originally developed for crummy slow atmel bullshit microcontroller. The way GRBL is designed seems to get the job done, but ... is there a better way GRBL? I suspicious you could make multi axis coordinated indexer program that is much better than GRBL....
I’m using a 240 MHz dual core Tensilica LX6 ESP32. I do like the simplicity of grbl and even after using mach3 I would rather use grbl. It’s more then enough to do what I need!! I’m still using an atmel uno on one machine and still kicking strong!! (However I can’t wait to upgrade)
Hi, but using fluidNC I can monitoring the cnc for example when start, stop, wait, allarm, type allarm, ecc? And I can also send the gcode? Please help me
Thanks for your comment! Maybe check your version and update your index.html.gz file to a newer version! You should head across to the Discord and ask as well :)
@@NEWTechCreative where find your discord channel?
It’s not my Discord, this is the official fluidnc discord:
wiki.fluidnc.com/en/support/discord
I missed something. How can you upload, or find a new ESP32 if the WiFi on it is not set up?
Two ways for this:
1. Over USB port and using the fluidterm to setup - fluidterm is in the setup files. Use the $ commands to setup. More info here:
wiki.fluidnc.com/en/features/wifi_bt
2. You can connect directly to the esp32 over its own access point. Once fluidnc is uploaded to the esp32, it will create its own wifi to connect to called ‘fluidnc’ password 12345678
Wondered if you could use fluidnc on the big tree boards for cnc router?
Great question!! Unfortunately fluidnc is only comparable with ESP32 chips… from memory big tree boards don’t use these chips.
Well crap need to look closer at things. Just saw 32 bit and figured it was esp32. Thanks 😊
I wonder if ESTLCAM will get an update for it. The writer of the program has left it sitting at 11.244 for some months now, so I'm hoping he's healthy and only busy, maybe working on a on aversion 12. It actually burns it's own custom GRBL equivalent for setup, I don't imagine it would be too hard for him to reassemble on the ESP32 platform.
I hope so! I’m sure they are catching up soon after the new year start.
Great Explanations ;-), How do you manage to use FluiNc if you are not Windows user like Mac ou Linux (tons of) people ?
Thank you Lauren! In the release download there are files available for various platforms! Check them out on the GitHub repository. 👍😁
Perfect!! This worked first try!!
Well done 🤩 what board did you go with?
Can it drive a 4 axis plasma table and manage THC, torch height control?
Great question! I’m not sure exactly on this. If you can usually setup with a grbl controller, it could be possible. You might have to head over to the discord and ask the community. Thanks Dennis 👍
Does anyone know how to calibrate the steps per millimeter for the XYZ axis. I’ve been looking all over and I can’t find any information. Thanks.
In your yaml file for each axis you will change the steps_per_mm. More information here:
wiki.fluidnc.com/en/config/axes
I have the FluidNC installed in my ESP32, when I’m logged in I found the area where you can edit the steps/mm but when I modify them, it doesn’t seem to save them. I reboot the device and type in$$ and they never get changed. I noticed there’s no area to hit like a save button, why are they not being modified. I’m trying to calibrate my XYZ table.
Why is this so hard? I’m not a programmer, shouldn’t have to be, I know how to set up my DIY CNC table just fine in an Arduino.
You need to update your steps per mm in the yaml file, however not the settings section on the esp32 as this is a temporary change and will reset when rebooted. Change yaml and re-upload.
Please read through the wiki - this will cover most questions. wiki.fluidnc.com
I am running a simple ESP dev board like you, nothing fancy, for my testing/learning rig. Connected to 3x TB6600 stepper drivers. Did you have to use a level shifter or are your drivers 3.3v tolerant? I am getting intermittent results with basic jogs.
Thank for your comment! I’m running the drivers directly from the esp32… no shift registers. Just check you have the direction pins and stepping pins in the correct pin… try swapping to test. Feel free to send me an email at newtechcreative@gmail.com with video if that doesn’t work!
I had one other thought… you might need to change your ‘shared_stepper_disabled_pin: gpio.13:low’ change low to high 👌
@@NEWTechCreative Thanks. Tried that setting both ways, low and high. Strange I was getting action on the Y originally. Now no motion on any axis. I will double check everything. I must be overlooking something. Thanks again for the help!
I’m not sure if you are using the screw terminal breakout board, although I have had some issues with the terminal boards I’m using and not making good connections… I went back to using my diy terminal board and everything works perfectly. I hope your able to fix the issue soon. 👍
@@NEWTechCreative For the moment I am using a solderless breadboard and Dupont connectors for testing. The issue seems to follow the wires coming from the ESP32. In other words, I have swapped motors, and swapped driver boards and the behavior stays with the associated axis from the ESP32. (eliminating driver configuration issues, bad motors etc). Currently my Y is working fine. My X just makes a tiny little movement, like a jitter. And my Z stutters back and forth for as long as it is getting step pulses. My .yaml file contains this: axes:
shared_stepper_disable_pin: gpio.13:high I will definitely go back and seat and re-seat all the Dupont wires in the breadboard, to eliminate dodgy connections as the problem. I've double checked and don't have any control wires mixed up. Pretty sure I am wired correctly. Thanks again for taking an interest in this troubleshooting. Cheers.
Hi, i have tested all about fluidnc over esp32, but when i try to connect the sd card adapter and the sd, it give me this error, could you pls, help me about it?
I have responded to your comment on wiring video!
@@NEWTechCreative Thanks for answer, Ok i have connected all wires as you indicate, but it continues same mistake error [MSG:ERR: sdmmc_card_init failed code 0x0x107]
Awesome, thanks so much for the tutorial!
Fantastic video and overview of FluidNC. Do you have any recommendations for an MPCNC user that wants to maybe give this a try? I looked at the 6 pack boards but by the time I get it in Canada it’s over $300 for the options I want.
Thanks for your comment! I hope it assisted with some of your questions. If you are after dual axis control… so 5 independent motor control XXYYZ you should purchase a board with 5 motor driver capability such as the MKS tinybee board as you can use with internal or external motor drivers. The 6axis control board that you can see in my video can also do the same with external motors and you can just switch the motor outputs to XXYYZ instead of XYZABC. I’m not sure what you are able to get in Canada but you might have to do some research. Feel free to send me a link to see if you need a hand on what you decide to purchase.
@@NEWTechCreative thank you that is great. I think the TinyBee board looks good and is a pretty cost effective way to try out FluidNC as I can get it in Canada with drivers for about $75.00
As for the inputs and outputs is there a way to expand that at all, looking at doing dual endstops, spindle on and off and laser it looks like I will run out if I/O pretty quickly.
@@sparks-tech the end stops are daisy chain, you don't need more inputs you just need them to be triggered once each axis is touched. In the other hand, if you need many inputs for other stuff, esp32 is not for you, because esp32 has limited inputs, it can and has many outputs as he shown with shift registers.
@@johnlocke9609 I want to control 3 motors max.
1 for x, y and z each respectively.
No endstops, no limit switches. Just one relay for the plasma torch.
Is it possible to use just esp for this?
@@AS-ug2vq Yeah, totally possible, there's also a little circuit with an Arduino Implementation for a THC. So, even at that you could take your time to do it.
Thanks for sharing, help me a lot.
Hi dear friend, i would like to know how i can use the feed hold/pause button using an external button, what should i do?
Thanks for your comment. You will need to connect your button to one of the input pins and GND. I’m not sure what board you have, however you might need a pull-up resistor (10k) if your using pins 34, 35, 36 or 39. However your board might already have this. Then setup in yaml file. Good luck 👍
@@NEWTechCreative Ok i did all you indicate me but it does not work. i put a pull-up resistor (10k) on the pin 34 and setup in yaml file.
Any add help...?
Make sure that the 10k resistor goes from 3v3 pin on board to pin34 then connect the button from pin 34 and GND. Ensure that the yaml file is setup correctly with gpio.43 .
I would double check the following:
- check pins with a multimeter to ensure pull-up voltage
- check that button is pressing and making a connection with a multimeter
- when pressing button, fluidnc is unlocked and running
- check that there are no errors on startup with the fluidterm usb connection.
- check that there are no spelling or grammar errors in yaml code
- check that you are using the correct yaml file setup on your fluidnc
@@NEWTechCreative ok in my yaml file, i am using as follow
control:
feed_hold_pin: gpio.34:low
is it in the right way
Just use gpio.34 (no need for low)
Is there gcode visualization? And live toolhead view?
Great question!! Unfortunately not on the webUI (at this stage) however if you use a 3rd party software with Universal gcode sender, this is possible. There are a few folk currently dabbling in these functions!
Yes; Candle, CNCjs, and a ton of other senders all support that.
Am I the only one that can’t get this to work, I’m not tech savy yea, but followed it word for word, it doesn’t connect or anything, WiFi says can’t connect to fw, then if it does it’s just a static screen that I can’t do anything with,
Has anyone got any other set up videos , I’m tearing my hair out here!!!!!!
Thank you for your comment and sorry to hear your having some issues getting up and working. Happy to walk you through to assist. I’m contactable via email: newtechcreative@gmail.com or discord discord.gg/fYPJkCRd
😢lots of potential points of obselescents : wifi router, windows proprietary upload software....
I wonder have they fixed line offset when raster engraving... I attempted to use it last year, and all was awesome except there was line offset when raster engraving...
Hmmm I’m not sure on your issue.. usually this would be handled by a gcode sender like lightburn, not the controller itself. You might have to ask the community on discord.
Hi
How control the dc spindle motor with software
Thanks for your question! Here is the main information regarding spindles:
wiki.fluidnc.com/en/config/config_spindles
If it is a basic on or off function you require, you can just setup a relay to turn on/off dc spindle. Most spindles have a speed control function that you can control through fluidnc and worth while reading up using the link provided. 🤩🤩
im on my journey with experimenting and noticed that you closed the installer, you dont need to to this it automatically changes over to 'fluidterm' after installation
Correct! Good eye 👍😁
@@NEWTechCreative i still thank you for this video, it cleared up a lot and made it easier to get to the webpage
is it possible to run gcode from internal storage?
Absolutely
without sd card???
Correct! To access local storage system in the fluidnc tab - send command
$LocalFS/Run=insertfilename.nc
Keep in mind that you very little memory to work with. On my wroom32 I only have 50kb of free memory after installing necessary files. After adding any Marcos, you might not have much to play with.
Can it Drive Industrial Ethernet Servos?
I know that fluidnc supports many types of motors. Head over to the discord server to find out more details! 👍
using it with a mks tinybee on a mpcnc, works great, sure there is a lot of stuff to find out and to read, a lot to test and a lot of f around and find out.
If you want something quick cnc is not for you.
Great insight 🤩
This is Awesome. Thankyou so much.
Amazing bro. Thanks a lot.
now the latest version is v3.7.0
that supports windows 11 to upload code.
anyways whats the purpose of json file in your video?
Thank you! Yes I realized that windows 11 doesn’t install the correct driver for the ESP32 and after manually installing everything works well! The json file is essentially the machine calibration/setup file. I love the idea for the json file as it provides flexibility depending on machine without reconfiguring the firmware. Thr version in my video is to show an example of how this can be calibrated and comparability with hardware 👍
Finally!! :)
Awesome video thanks dude
Actually there's an incorrect bit, you can use input shift registers too. or you can use a cheat like I did years ago for digital inputs which is to multiplex the inputs by using some outputs to drive one side of your inputs in a group for each multiplex pin.
Thanks for your comment! Yes you are correct that you could use shift registers as inputs on microcontrollers, unfortunately I haven’t seen any boards available with this setup or using fluidnc. I think this would be a great addition in the future!
@@NEWTechCreative The ESP32-S3 has versions with more pins and it's a superior chip too. maybe that will be the solution.
Is this just as capable as uccnc?
Absolutely… uccnc comes with a really great UI with plenty of buttons and visualization that fluidnc does not provide on the webUI, however if you use cncjs, UGS or focus by sourcerabbit, you can take advantage of these additional features with fluidnc 👍👍
Excellent job 👍👍👍
Would this also work on Linux?
I believe this is possible! However I am not familiar with Linux.
@@NEWTechCreative thank you :)
Does it support torch height control
Great question. I haven’t ventured into plasma cutters, however there is plenty of discussion on this topic on the discord. Feel free to head over and check it out 👍👍
8:10 this board has major pcb design issues! just look at the placement of the esp32! with copper plane under it!
I agree that this board has some design issues. However, I’m not entirely clear on your point about the copper plane. Most boards will have a copper plane or ground plane, which also assists with heat dissipation. If you are referring to the black section under the ESP module on this board, this is an antenna area.
Where is the Password for SSID Fluid NC, pls anyone may tell me how to find?
The password for AP mode (default "12345678")
wiki.fluidnc.com/en/features/commands_and_settings
@@NEWTechCreative thx😉
@@NEWTechCreative Is that compatible with CNC Shield V3?
No, the CNC shield I assume you are referring to the arduino nano CNC shield v3? If so - this is not comparable 😞
THANK YOU SO MUCH!!!
This only work with wifi?
Also works via Bluetooth or tethered via usb 👍
Great video. Thanks
esp32s3 suported?
Yes I believe so. Check out the wiki for more info 👍
wINDOWS 11 DOES WORK ON UPLOAD ON MY PC AT LEAST.
Great to hear! Yes with the correct drivers this will work. Thanks for posting 🤩
Thanks mate 😊
i am using the 3.7.0 fluidnc version
I have responded to your comment on wiring video!
Can it autosquare
Absolutely! Dual axis control with independent limit switches are supported 👍
only for stepper driven machines
Nope. We support a bunch of other motors as well, like servo's and dynamixels.
Thank you @stefandebruijn3167 👍
Cool 👍😎😁
can this use whit linuxcnc, i not want use old GRBL software waht has made cave men time, too slowly and not can use flexiple all own tools etc, mean linuxcnc have flexiple realtime software and lot lot better use cnc than old pre-history GRBL software. i has build before GRBL whit arduno and have worst software than mach3 or linuxcnc. mach3 have problem need use under windows and NOT realtime, dangerous and old style, linuxcnc have problem only not support usb controllers, GRBL problem have too slow, not can use many help tools and not can made own tools easy, than linuxcnc have many tools and help softwares, and need use external drivers all GRBL boards not can use better external motor drivers good, because good cnc not used nema 17 less than 3Ampere motors newer, need use 4-9A motors if want build good cnc, all boards who uses less than 3A motors have only toy, laser or 3D printer only.cnc need lot biggest motors and torque
Thanks for your comment. Check out the wiki for more info!
@@NEWTechCreative thank you, i interesting all new systems to cnc if can DIY and small budget build good machines. thanks. i not know lot esp32 but try learn little, platform io not newer can do any project, i used before only arduino ide. platform not newer working for me, very hard use and not can newer do this. i test before platform only clipper board raspberry pi and my clipper board but newer not working. arduino work well. mach3 work easy but have very weak worst software, linuxcnc first cnc work very well.
can load software/firmware in board other than windows, many not newer use windows OS because have worst, many use linux, lot better than mac shit or windows shit. ext lot users use raspberry pi today. and raspian OS. same can use all softwares under linux ? debian 10 realtime preemt users have lot.
Great question. There is a posix file available for Linux users.
More info here: wiki.fluidnc.com/en/installation
@@NEWTechCreative thanks, this help me lot understand better how install and need do. im not code writer not understand all code anythink and how need do all install,config etc. im old school engineer haha, i have arduino cnc, mach3 cnc and linuxcnc i have made before many factory cnc but not understand code think. hardware and own skill has lot.
can this use many output relay too many user need lot more, spindle,water pump,coolland, tools changer, lot more than many board have only 1 or 2 relay output ,not good, and maybe need someday update servo or other input more too, some need use touch display, some not, basic need use biggest external motor drivers, XXYYZ touch probe important, 6 limit switch basic, 3 home switch need use, spindle speed control, or VFD, laser support, and have all code made ready to use, many not understand write code anythink, need be all codes library what need use can add to use, interesting but not know lot and can use and modified easy, and important no need use super expensive mesa card can build factory guality machine. steel and aluminium mill. and can use normal motors used 36-80 volt and board used 5 volt, external drivers need min 5 volt not 3,3 volt. dream good board can use internal/external drivers 4-9AMP and max 50-80 volt then motors can use better and bigger, minimum need use 4-5 motor, and lot output pin can use many external motor controll, spindle,cooland,water,light, and input need be if update better motors servo, speed, probe, etc,etc,
I suggest checking out the wiki in detail Matti…. I think this will answer these questions 👍👍
I just want an dang ESP32 based controller that works with Mach3 and not a grbl clone!
Unfortunately mach3/4 does not use ESP32 😕 you will have to stay with one of the approved boards. I also have mach3, however I prefer using grbl controllers and Universal gcode sender.
ESP32 breakout board and the headers don't line up? What kind of CRAP is that? GARBAGE! UNACCEPTABLE!
This is the error [MSG:ERR: sdmmc_card_init failed code 0x0x107]
I have responded to your comment on wiring video!
Your video is very nice! Your best option is to make an account with 'promo sm'!
Hi, i have tested all about fluidnc over esp32, but when i try to connect the sd card adapter and the sd, it give me this error, could you pls, help me about it?
I have responded to your comment on wiring video!
set up fluidcnc yesterday and am having homing issues, every time home all 3 axis simultaneously they stop right at they hit the limit switch. i get no error codes the machine just says its jogging any ideas?
Thanks for your message! Difficult to say without seeing your yaml file and a video of what’s happening. Feel free to email newtechcreative@gmail.com or jump onto my discord discord.gg/NDe9uPZf to get to the bottom of the issue.