CNC idea

43 views
Skip to first unread message

hans

unread,
Dec 29, 2021, 3:38:51 AM12/29/21
to jallib
Hi all,
Having a lot of material like steppers laser etc i am now thinking about making a cnc graving tool. I have not yet  done anything with CNC etc. 
My question : Is there a Jal lib for CNC decoding or other advices?
Thank in advance (again)
regards
Hans

Oliver Seitz

unread,
Dec 29, 2021, 8:16:31 AM12/29/21
to jal...@googlegroups.com
Hi Hans,

jal is not the language to decode almost any files. It is solely for 8bit microcontrollers. Such a controller is an excellent choice to control stepper motors in sync with an engraving laser module, but not for decoding any data files. You would want something with more computing power, more memory and other kinds of interfaces.

For decoding files, I myself would use a raspberry pi, connected to a PIC by UART. Then, I would transmit only simple actions like "go forward 300 steps, then turn on laser, go forward another 100 steps, turn off laser" to the microcontroller.

On a complete little computer, there are libraries for decoding most file types you may want to use. The microcontroller then can do the swiching with fractions of microseconds accuracy.  

Greets,
Kiste

Am Mittwoch, 29. Dezember 2021, 10:02:41 MEZ hat hans <hansvanve...@gmail.com> Folgendes geschrieben:


--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/17de83e8-726d-45fd-8d97-acd61ab06dbdn%40googlegroups.com.

hans

unread,
Dec 29, 2021, 9:46:39 AM12/29/21
to jallib
Hi  Kiste,
Thank you for responding. I bought a raspberry set with screen a while ago, but because it's very different from JAI, I haven't done anything with it yet beside  running some ready-made programs on it. Can you give me some info  how you did this?

Op woensdag 29 december 2021 om 14:16:31 UTC+1 schreef Kiste:

vsurducan

unread,
Dec 29, 2021, 11:42:03 PM12/29/21
to jal...@googlegroups.com

hans

unread,
Dec 30, 2021, 8:49:45 AM12/30/21
to jallib
 Hi Vasile, i have ordered your first adviced part. See what i can do with it. Thanks and best wishes for all. Hans

Op donderdag 30 december 2021 om 05:42:03 UTC+1 schreef vasile:

vsurducan

unread,
Dec 30, 2021, 11:11:01 AM12/30/21
to jal...@googlegroups.com
Oki, for that one you need stepper drivers with pulse/sense inputs. Mach3 it is a good choice.

Oliver Seitz

unread,
Dec 30, 2021, 1:17:52 PM12/30/21
to jal...@googlegroups.com
Hi Hans,

"how you did this?"

Well, I didn't. I just said how I would do it. I usually do projects which are not readily available or far to expensive.

The raspberry pi is my desktop computer, or a video player, or the more complex side of a project.

My fridge, which is outside and needs heating in winter, is controlled by a PIC. It's connected to a Pi zero W, which acts as nothing more than a wifi interface to get the temperature curves to my screen. Yes, an ESP controller would do it, but that's a new world I haven't entered yet.

You shoudn't compare the raspberry pi to a PIC controller. It is a (cheap and small and low-power) computer.

Greets,
Kiste

Am Donnerstag, 30. Dezember 2021, 17:39:28 MEZ hat hans <hansvanve...@gmail.com> Folgendes geschrieben:


vasi vasi

unread,
Dec 30, 2021, 4:19:13 PM12/30/21
to jal...@googlegroups.com
Guys, be careful with the option from link nr.3, a customer says:

"There's one glaring flaw: the micro-stepping jumpers don't work because they connect to ground instead of vcc. I had to modify mine. I removed all of the ground-side pins from the jumper pairs, then made a wire that reached each stepper driver's remaining jumper pins. One end of the wire connects to the +5v on the board and each of the other three ends was soldered to a jumper, which allowed me to send voltage to one or two pins on each stepper (I was able to enable 8x microstepping, which was fine for me). As for the flaw that another buyer mentioned, with the "step" and "dir" pins being reversed, you don't necessarily need to modify the board for that. Just compile your GRBL with the "config.h" file listed in the link on Banggood's CNC Shield product page. Overall, I'm happy, now that I got it working. The Arduino and the stepper motors seem to be flawless so far. And it only took 2 or 3 weeks to get to Ottawa, Canada via regular mail, so that's not bad."



--
Vasi

vasi vasi

unread,
Dec 30, 2021, 7:51:26 PM12/30/21
to jal...@googlegroups.com
Option nr.2 is the best from all angles. Free software, excellent modularity, excellent online documentation,  huge blueprint "database". Instead of Arduino UNO R3, you can use a Nucleo board and gain in speed (with the required grbl version built for STM32) just by moving the shield from a board to another, matching industrial solutions.
--
Vasi

vsurducan

unread,
Dec 30, 2021, 10:56:00 PM12/30/21
to jal...@googlegroups.com
Vasi, all Chinese kits have to be seriously touched before use, it's nothing special to cut a trace and solder a wire :) :P
Check for the missing thermal vaseline in all kits and products having radiators... Double check things supplied at 5V connected with other things supplied at 3.3V...etc.
The worst thing is when you have to deal with Chinese bandwidth (like Fnirsi DSO 110MHz say, 20MHz is...:o) Chinese watts or any other parameters you will wonder about... So. no big problem. Chinese cheap is expensive. Chinese hobby kits are fine. Hobby it suppose to modify and understand.
Happy new 2022!


vasi vasi

unread,
Dec 31, 2021, 6:24:31 PM12/31/21
to jal...@googlegroups.com
Happy new year and blessings from our Creator to all!



--
Vasi

Rob CJ

unread,
Jan 1, 2022, 4:17:14 AM1/1/22
to jal...@googlegroups.com
Hi Vasi, Vasi (and others),

Happy New YearI 

May the next Jallib release be the best release ever.

Kind regards,

Rob


Van: jal...@googlegroups.com <jal...@googlegroups.com> namens vasi vasi <fun...@gmail.com>
Verzonden: zaterdag 1 januari 2022 00:22
Aan: jal...@googlegroups.com <jal...@googlegroups.com>
Onderwerp: Re: [jallib] CNC idea
 
Reply all
Reply to author
Forward
0 new messages