connect raspberry via ehternet as IO-port - some developer help needed

More
7 years 8 months ago #126442 by wicki
this ha happend the last weeks:

I changed my native-C rasPI-driver into a HAL-component.

It builds 16 IN- and 16 OUT-Pins for the Raspberry.

The receiving parts (for rasPI- an and PC-side) are
also working but not published now. I will make further
tests at first.

It would be fine, if a linuxCNC-developer an take a look
at this:

erste.de/raspi.comp

and give me some feedback.

I'm not sure:
should I include -INV/-NOT-pins into this component or
should those inversion be done by the rasPI- or by the
PC-communication task?
or by the linuxCNC-in/hal-config?

I think, it depends on the number of pins, which need
inversions.... ? or what do you think?

regards

wicki

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

More
7 years 8 months ago #126604 by gtt38
I was looking for an I/O expander cheaper than mesa boards and i think it's possible to create a driver for a STM32F4 or F7 using eth_hm2 with STM32 nucleo 144 boards (with ethernet)
image missing https://www.element14.com/community/dtss-images/uploads/devtool/image/large/STM32_Nucleo144_Development_Board_with_STM32F412ZG_MCU_Supports_Arduino_ST_Zio_and_Morpho_Connectivity.png
I was looking to STMBL and i talked to Rene_dev and he told me it's definitly possible. the spi connexion is also possible (like the Mesa 7i90HD) that could make a perfect I/O expander for the raspberry pi or other small computers without fast I/O.
The STM32 could drive some powerstep01 or some L6470 (SPI based motor drivers) or regular drivers, pendants etc....

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

More
7 years 8 months ago #126614 by wicki
I want to finish the rasPI-driver first.
Now I get a latency of 100-120 usec with my rasPI.
Next step is to try the same thing with an arduino, which has a card-slot
and an eth-interface (100MBit). Could be enough for 30kHz at 40 pins.



Source-code and description here: erste.de/rasPiCat.html

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

More
7 years 8 months ago #126718 by wicki
Now both driver parts (linuxCNC-PC and raspberry) are available:

erste.de/rasPiCat.html

feedback would be nice.....

regards

wicki
The following user(s) said Thank You: tommylight, emilvv

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

Moderators: PCW, jmelson
Time to create page: 4.792 seconds
Powered by Kunena Forum