Hello Guest it is December 02, 2024, 02:28:30 PM

Author Topic: Mach4 - Arduino and Touchscreen  (Read 86711 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
Re: Mach4 - Arduino and Touchscreen
« Reply #10 on: May 17, 2015, 06:16:48 PM »
Very handy to know.

DazTheGas
New For 2022 - Instagram: dazthegas

Offline dude1

*
  •  1,253 1,253
Re: Mach4 - Arduino and Touchscreen
« Reply #11 on: May 17, 2015, 06:32:37 PM »
the M4 scripting manual is under manuals in the web site

Offline DazTheGas

*
  •  778 778
  • DazTheGas
Re: Mach4 - Arduino and Touchscreen
« Reply #12 on: May 18, 2015, 03:43:29 PM »
After lots of research today I've ordered an Arduino yun in replacement for the Leonardo, it's got dedicated Ethernet and Linux bridged to the Arduino opening up a whole new avenue for communication between Mach 4 and external devices.

DazTheGas
New For 2022 - Instagram: dazthegas

Offline simpson36

*
  •  1,369 1,369
Re: Mach4 - Arduino and Touchscreen
« Reply #13 on: May 18, 2015, 04:57:10 PM »
After lots of research today I've ordered an Arduino yun in replacement for the Leonardo, it's got dedicated Ethernet and Linux bridged to the Arduino opening up a whole new avenue for communication between Mach 4 and external devices.

DazTheGas

You may want to also look at the new Rasberry, especially if you are going to use the processor based 4D libraries.  It has Ethernet and a bunch of other stuff built in, can run Linux OS and has multi processors. My current product uses the Arduino MEGA and the next Gen (MACH3 and MACH4 TCP) uses the Arduino DUE.

The MEGA was pretty much maxed out and the only avenue to loading it more would be to implement interrupts, but I could never get the interrupts to work right on the MEGA.

In the real world, the DUE is about 5 to 7 times faster for typical stuff. For me the real highlights are the FP performance and also the DUE's interrupts work perfectly. I have added a LOT of load to the DUE and was anticipating (but not looking forward to) the need to move to the Rasberry, but the DUE is chomping thru everything without any perceptible slowdown.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
Re: Mach4 - Arduino and Touchscreen
« Reply #14 on: May 25, 2015, 11:15:44 AM »

My current product uses the Arduino MEGA and the next Gen (MACH3 and MACH4 TCP) uses the Arduino DUE

What libraries you using on the arduino to connect to modbus??

DazTheGas
New For 2022 - Instagram: dazthegas
Re: Mach4 - Arduino and Touchscreen
« Reply #15 on: May 28, 2015, 10:14:41 PM »
don't forget about the Beaglebone Black! Now we are talking. Let's load Mach4 (didn't they say cross-platform?) on these little guys that can run full Linux. The Aurdrino Yun is good for comms as an interface to your host to which your requirement is for.  But as a host, the Beaglebone can run full Linux...I think the Raspberry Pi does to. Mach4 in my pocket! w/ an MPG cape/shield. Fingers crossed on Ubuntu/ Mach4 platform. Mach4 needs to be a type of open-source API is paid for but the core code is available for customization. It would become LinuxCNC on steroids I bet.

http://beagleboard.org/black

Offline DazTheGas

*
  •  778 778
  • DazTheGas
Re: Mach4 - Arduino and Touchscreen
« Reply #16 on: May 29, 2015, 03:23:46 PM »
The Arduino yun that I am playing with also run a cutdown version of Linux, plus able to run Python scripts, there is a bridge library which enables the Arduino chip to communicate directly to the Linux os,  so I decided to use pymodbus for communication via tcp and have the atmel chip collect or send via the bridge.

DazTheGas
New For 2022 - Instagram: dazthegas
Re: Mach4 - Arduino and Touchscreen
« Reply #17 on: May 30, 2015, 04:31:43 AM »
Dude, you are totally opening up a world in which we can program and use Mach 4 's core engine for customization on a very small footprint. You are beating me to it! haha! I'm glad. It's the love for the game right there. The experimentation and the excitement of accomplishment...plus the frustration, trial and error, and cost...but funk it. It's about learning, expanding our knowledge and sharing it. Mach3 boards have good Audrino threads in it too. You can start to see common themes and patterns. Once they are identified, it doesn't matter what language something is programmed in. How do you think people can talk five or six different languages? They are good at pattern identification and association. It's only a matter of time before Mach 4 is broke wide open and is truly customizable. I am not talking about cracking Mach 4. What I am talking about is the potential of Mach 4 to be a PLC interface that everyone can afford and tailor to their specific requirement. It's pretty cool actually and exciting. Knowledge, experience, skills, abilities...it is those characteristics we need to share. Other than selling our foreign competitors the licensing fees to our patents and property rights at minimal value while they turn around and buy US debt and resell their products from our designs at a higher value. But, it is cheap you say? How cheap does our investment in our future become? ....FML, i just went into left field. Sorry.

Keep on rockin Daz!
Re: Mach4 - Arduino and Touchscreen
« Reply #18 on: May 30, 2015, 04:35:34 AM »
yah, I know. The PCB boards we are experimenting with are manufactured in China. I just went off the cliff there. Off topic and I promise not to bring it up again.

Offline dude1

*
  •  1,253 1,253
Re: Mach4 - Arduino and Touchscreen
« Reply #19 on: May 30, 2015, 04:45:41 AM »
the amount of faster boards that are coming out almost make what don't you use, some of them are still a arm and leg to buy some are at a good prices a few of them will work with arduino code it would be good to try one of the faster boards using modbus