Arduino IO Expansion

More
2 years 1 month ago #310045 by vibram
Replied by vibram on topic Arduino IO Expansion
Hello
I managed to solve the issue with the following command:

loadusr python3 /usr/bin/arduino-collector

Another question regarding the keyboard : is it possible to send a keystroke for a shortcut ?

Thank you for your help

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

More
1 year 10 months ago #316233 by angelnu
Replied by angelnu on topic Arduino IO Expansion
Hello everyone.
I am trying to connect an MPG encoder, but it does not work, it does not always count to 0. I connect it to an Arduino Nano in pins 2 and 3 that are the pins with interruptions.

I have modified in the .ino file:
#define Quadencs 1;
Encoder Encoder0 (2,3); // a, b pin
const int quadencsig = {2,2};
const int quadencmp = {4.4};

In the .py file
Quadencks = 1
Quadenck = [2,2]

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

More
1 year 10 months ago #317318 by WarcoVMC
Replied by WarcoVMC on topic Arduino IO Expansion
Have you a HAL file example
I have had this woking using the show hal example in you video

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

More
1 year 9 months ago #317906 by Ehsan_R
Replied by Ehsan_R on topic Arduino IO Expansion
hello
Thanks for your good work
I had a question
Why don't you use spi communication instead of using serial communication?
In my opinion, more reliable performance can be expected using spi connection

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

More
1 year 9 months ago #317908 by Cant do this anymore bye all
I guess SPI would tie you to an arm platform or trying to bit bang from the host PC.
SPI is not recommended for long distance runs (its only really meant to board comms), even 6 or so inches can be unreliable when approaching MHz speeds. Seen this when experimenting with a Mesa 7c81.

Serial can use differential signals if there is noise, SPI differential signals can play havoc with timing at speeds.

And in reality unless you have a real hardware serial port, the serial comms is USB (at the host PC), doesn't run in realtime......in fact there is no realtime serial driver for Linuxcnc.

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

More
1 year 9 months ago - 1 year 9 months ago #317930 by Ehsan_R
Replied by Ehsan_R on topic Arduino IO Expansion
It is possible to solve the problem related to distance and speed by using a spi to lan converter similar to the module below
And it had a real time component
www.amazon.com/HiLetgo-Ethernet-Network-...Z820io/dp/B08KXM8TKJ
Last edit: 1 year 9 months ago by Ehsan_R.

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

Time to create page: 0.300 seconds
Powered by Kunena Forum