Arduino IO Expansion

More
10 months 1 week ago - 10 months 1 week ago #340421 by Sekai
Replied by Sekai on topic Arduino IO Expansion
Hi. 
I copied the arduino-connector.py to the usr/bin/ as arduino-connector
Run the terminal with halrun and then with loadusr arduino-connector, it load next i try show pin, all good.
I run linuxcnc and go to Halshow and input loadusr arduino-connector and it loads.
I can see the pins, and net signals to a external encoder or input pins, works great.
The problem is when i put the command loadusr arduino-connector in custom.hal but i get the error  pin arduino.din.4 is not found. (the pin is active in show pin command)
I did try loadusr python3 arduino-connector or loadusr python3 /usr/bin/arduino-connector but no change.
If i try loadusr -W arduino-connector it loads but after that its waiting for something.
I use Debian 10 with kernel 4.19.195 RTAI with python 3.7.3

Edit: well the pins are not loaded. i put a show pin in the custom.hal after the loadusr arduino-connector and it shows no pin.
Last edit: 10 months 1 week ago by Sekai.

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

More
10 months 1 week ago - 10 months 1 week ago #340427 by COFHAL
Replied by COFHAL on topic Arduino IO Expansion
The real-time threads must be loaded before using any pin.

Put loadusr -W arduino-connector at end main hal file.
Last edit: 10 months 1 week ago by COFHAL.

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

More
10 months 1 week ago - 10 months 1 week ago #340428 by Sekai
Replied by Sekai on topic Arduino IO Expansion
i put that. it just waits for something.
 

Edit: i got it. Just rename the file from arduino-connector to arduino with loadusr -W arduino and it works.
Last edit: 10 months 1 week ago by Sekai.
The following user(s) said Thank You: tommylight

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

More
1 month 4 weeks ago #349288 by COFHAL
Replied by COFHAL on topic Arduino IO Expansion
I'm trying to use LinuxCNC_ArduinoConnector V2, but it's not very clear how to install this new version. I initially used install.sh, then loadusr arduino-connector, but an error appears. I included the instructions in the hal and ini files, but nothing happens when I run linuxcnc.

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

More
1 month 4 weeks ago #349293 by tuxcnc
Replied by tuxcnc on topic Arduino IO Expansion

Edit: i got it. Just rename the file from arduino-connector to arduino with loadusr -W arduino and it works.
 
Yes, it works, but is not solution.
I remember that program name must be the same as component name, so if component is "arduino" the program must be "arduino" too.
But "arduino" is bad name, because is widely used for many things, so it should be renamed to unique one.
 

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

Time to create page: 0.096 seconds
Powered by Kunena Forum