Arduino Mega as panel interface

More
3 years 11 months ago #256276 by thewho
Hello

Has someone written code to interface an arduino mega with linuxcnc that supports input/output and analog input?
I'm converting an -01 Hyundai vmc and need a lot of i/o for buttons and leds on the control panel. And would also like analog overrides. 

I've seen these topics, but none of them support analog inputs.
Arduino based USB Pendant for Linuxcnc - LinuxCNC
Arduino I/O with Linuxcnc - LinuxCNC

Please Log in to join the conversation.

More
3 years 11 months ago #256279 by tommylight
What is the current price of an Arduino Mega?
On the phone so i can not do "google foo", but there are some posts with arduinos for panel use.
Asking about price as they are also in the "chip shortage" bucket, so price has skyroketed, so have a look at Mesa 7i73 if already using other Mesa boards, it is made for panels, runs LCD, IO, analog etc, all through a single ethernet cable, so can be 100 Meters far! :)

Please Log in to join the conversation.

More
3 years 11 months ago #256286 by HansU
I hacked a little ModBus server on a PIC microcontroller. Then I am using the MB2HAl component to interface it with LinuxCNC.
I think this can be easily apapted for an Arduino. Currently I am thinking of using a STM32 for this to make it easier to use and also to add a connection for an encoder. So then you have basically a 7i73 running Modbus instead of SmartSerial.

There is also a solution with an Arduino using its own protocol written by Jeff Epler and recently extended here: forum.linuxcnc.org/24-hal-components/473...uinoio-hal-component

Please Log in to join the conversation.

More
3 years 11 months ago #256298 by cmorley

Please Log in to join the conversation.

More
3 years 11 months ago #256303 by thewho
tommylight:
I have megas and mega "pro"s already. And I have looked at 7i73 but I need something like 35 inputs, 32 outputs and 3 analog inputs. And yes it could certainly be done with mesa hardware as I'm already using 5i25+7i77+7i84.

HansU & cmorley:
I will check those links

Please Log in to join the conversation.

More
3 years 11 months ago #256352 by andypugh
7i69 (and friends) might be worth a look too (just because there is already driver support and the IO is handled in realtime) 
store.mesanet.com/index.php?route=product/category&path=83_88

Please Log in to join the conversation.

More
3 years 11 months ago #256370 by thewho
Interesting, but not in stock..

Please Log in to join the conversation.

More
3 years 11 months ago #256371 by PCW
Replied by PCW on topic Arduino Mega as panel interface
A 7I90HD is one possibility (72 I/O pins) no analog though.

Please Log in to join the conversation.

More
3 years 10 months ago #259438 by HansU
How far is the 7i90HD supported in LinuxCNC?
If supported, it would be good if this card would also shows in the categorie "Remote Serial Daughter Cards" in the Mesa shop.

Please Log in to join the conversation.

More
3 years 10 months ago #259475 by PCW
Replied by PCW on topic Arduino Mega as panel interface
Yes, any sserial daughtercard is supported by LinuxCNC
(because sserial cards are self describing to LinuxCNC/HAL)

I added the 7I90HD to the "Remote Serial Daughter Cards" section

Please Log in to join the conversation.

Time to create page: 0.174 seconds
Powered by Kunena Forum