Custom Bart Dring FluidNC controller

Roger thanks!

And, i am not an expert, but that sure doesnt seem right to me

As luck would have it I have a microsd to SD extension cable from when I jailbroke my Tonies smart speaker so I’m good with a physical card transfer

2 Likes

That is a really neat setup. When I was testing the skr pro firmware, I would have really liked having something like that on my desk. I still want one, for no practical purposes.

I don’t do a lot of heavy lifting with my esps, but I have more than 15 running 24/7 and they stay connected fine to my AP. They only dribble a few bytes at a time (except the two cameras). So they could have 80% packets loss and I wouldn’t notice. Mine are all super cheap ones.

2 Likes

Okay I have been running the test files for a while. I can get memory errors if I set the reporting time too low. 1000ms seems fine, if not excessive. 500 I got a memory error but it still finished fine.

I can change defualt that with a preferences file. Not sure about STA mode. I will test that eventually but I am most concerned with AP mode, and wired.

2 Likes

So get to the wifi thing, this was an eye opener,
Mitch may be the only person that can fix the wifi!

Modified WiFi Library

This is a modified version of the WiFi library from the Arduino Espressif32 Framework. The original code is from the 2.0.7 version of that framework.

It adds a new WiFiClient::canWrite() method. That method can be used to determine if the TCP connection is ready to receive new data without blocking. FluidNC needs that feature to determine if a new status report can be sent over a WebSocket without stalling the system. This is used in conjunction with a modified version of the arduinoWebSockets library

2 Likes

Interesting. That would be a problem. I think you could probably fix that in the client side. But FastRTOS may not let you write a truely async function.

3 Likes

For anyone getting unexpected reboots from time to time, I think I found a major cause this evening ^^"
It lies between the keyboard and the chair…

My workflow is

  • On the laptop in the living room: export gcode, connect to the fluidnc webpage, upload file
  • Go downstair to the “man cave”
  • Open the web browser on the tablet next to the LR3 and launch file

I try to always set the refresh rate at 500ms as already lentionned here… but I still got some reboot…
Turns out the laptop upstairs had the browser left open… and set at 50ms refresh rate…

Fast crash! :stuck_out_tongue:

3 Likes

Good point! Multiple instances. Is that something that can easily be stopped from happening? One active terminal at a time.

Also I think 500ms is still pretty crazy. Bump that up to 1500 or even way more.
preferences.zip (499 Bytes)
My test preferences

1 Like

Well it seems I can not preload a preferences file. For some reason it either will not boot right or just doesn’t read it all. If I make one in the webui it seems fine.

The workaround seems to be open the webui, save a preferences file, then upload the altered one. I will test this again tomorrow.

I have been quiet, and watching this thread from the start.
A GRBL board with XYZA capability is very appealing. I have been getting ready to start a dedicated rotary axis setup using a wood lathe as the base A rotary, and a modded MPCNC as the XZ. I discussed this a bit ago on a thread I had started.
Correct me if I am wrong, this is what I have seen here.
Using TMC2209 drivers?
24v only power?
I see a USB-C connection on the ESP32 board, so possible to connect a tablet/PC for gcode sending? (too much RF interference in my shop for reliable wireless, High voltage power lines right behind the shop/ Tried the ESP32 wifi add-on for the SKR 1.2, not reliable)
Touch Screen LCD is not currently an option?

I am sure this has been answered somewhere above. A condensed yea/nay on those question would be appreciated, so I can gather my thoughts and futer planning

1 Like

Yes

9V up to 24V but yes 24V is best.

No Yes. The USB-c boards did not work right, but yes we have microUSB for direct sending and you can turn off the radios.

Not until one of you mad scientists make it happen.

3 Likes

Oh and as for the axis labeling we talked about earlier, 123456, etc. The WebUI labels them as xyzabc, so I will stick with that until we can change it.

5 Likes

Does anyone know if the yaml File line 1 and 2 need to match something?

No those are just labels as far as I know.

2 Likes

So those esp32s came, and they are espressif chips on them!

1 Like

They all say it and even have the QR code, not convinced they are all actually genuine. I will order some real ones and take some pictures.

1 Like

got it. @jamiek What were you doing when the memory nulled out? Unfortunately i do not have anything connected to my esp32, but no matter what i do, connected to my ap and from my desktop, i am not getting it to fail. I am doing anything I can at the moment.

I can’t get it to fail now, even though I don’t think I’m doing anything different.

I was having more trouble when I was on my home wifi network. Now I’m on AP mode.

Even if I set auto reporting to 50 ms, still no failures.

Here’s mine:

I have some tweaks in the code to raise a warning if polling channels takes a long time.

1 Like

What? I just realized I’m running 3.7.2?! Maybe that’s part of the problem!

1 Like