Arduino Mega as panel interface

More
09 Nov 2022 12:46 #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 or Create an account to join the conversation.

More
09 Nov 2022 13:06 #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 or Create an account to join the conversation.

More
09 Nov 2022 13:35 #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 or Create an account to join the conversation.

More
09 Nov 2022 17:56 #256298 by cmorley

Please Log in or Create an account to join the conversation.

More
09 Nov 2022 19:17 #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
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
10 Nov 2022 13:54 - 10 Nov 2022 13:57 #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
Last edit: 10 Nov 2022 13:57 by andypugh.

Please Log in or Create an account to join the conversation.

More
10 Nov 2022 19:07 #256370 by thewho
Interesting, but not in stock..

Please Log in or Create an account to join the conversation.

More
10 Nov 2022 19:14 #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 or Create an account to join the conversation.

More
14 Dec 2022 09:47 #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 or Create an account to join the conversation.

More
14 Dec 2022 16:57 #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
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.139 seconds
Powered by Kunena Forum