- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI
Remora - Rpi Software Stepping Using External Microcontroller via SPI
forum.linuxcnc.org/27-driver-boards/43907-rpi-4-gpio-calculator
Please Log in or Create an account to join the conversation.
Example config.txt below:
{ "Board": "BIGTREETECH SKR v2", "Modules":[ { "Thread": "Servo", "Type": "Reset Pin", "Comment": "Reset pin", "Pin": "PC_4" },
thats what i was looking for, i kept thinking it was on the RESET pin, but its the pin beside reset
Please Log in or Create an account to join the conversation.
Any thoughts on getting this to work over Ethernet UDP vs SPI on the STM32's?A little more work on the STM32F4 version of Remora.
Please Log in or Create an account to join the conversation.
But at the same time one could add a LAN8720 ETH Board to older boards.
It would be interesting as if it were to be supported it would take the project away from just SBC with spi and move it to many platforms.
Potently able to be a direct competitor to some of the MESA boards.
Please Log in or Create an account to join the conversation.
www.st.com/en/motor-drivers/powerstep01.html
github.com/rene-dev/stmbl/blob/master/do...tting%20Started.adoc
forum.linuxcnc.org/18-computer/42414-lin...-using-esp32?start=0 uses ESP32's
Please Log in or Create an account to join the conversation.
This has definitely been on my radar. I've got a W5500 module currently hooked up to a SKRv1.3 and have simple UDP talking to the board as a "Hello world" test and eco back to the PC.
There is a STM32 driver for the W5500 that uses DMA so we could get some good speed with low overhead. I just need to think on the best approach.. polling in the main loop is probably the easiest way to get started. But I do love event driven code. I'll need to see if the W5500 has some form of hardware packet received notification.
Please Log in or Create an account to join the conversation.
Receiving process
Process the received UDP data in Internal RX memory.
The structure of received UDP data is as below.
The Received UDP data format
The received UDP data consists of 8bytes PACKET-INFO, and DATA packet. The PACKETINFO contains transmitter’s information (IP address, Port number) and the length of DATA packet. The UDP can receive UDP data from many others. User can classify the transmitter by transmitter’s information of PACKET-INFO. It also receives broadcast SOCKET by using “255.255.255.255” IP address. So the host should ignore unwanted reception by analysis of transmitter’s information. If the DATA size of Socket n is larger than Internal RX memory free size, user cannot receive that DATA and also cannot receive fragmented DATA.
Please Log in or Create an account to join the conversation.
Sn_IMR and Sn_IR.
First method :
{
if (Sn_IR(RECV) == ‘1’) Sn_IR(RECV) = ‘1’; goto Receiving Process stage;
/* In this case, if the interrupt of Socket n is activated, interrupt occurs. Refer to IR, IMR
Sn_IMR and Sn_IR. */
}
This is a working UDP code both by polling and interrupt , tested on STM32F100RB
forum.wiznet.io/t/topic/3156/4
Attachments:
Please Log in or Create an account to join the conversation.
www.st.com/content/st_com/en/products/mi...uctId=LN11*#products
STM32 ETHERNET #2. UDP SERVER, even easier as a device, slave or peer
I have no problem with designing and building simple devices like these so that they may be copied by low cost manufacturers in order to keep board costs down.
Please Log in or Create an account to join the conversation.
forum.linuxcnc.org/24-hal-components/39813-teensy-4-1-linuxcnc
I wrote realtime HAL component for communication with Teensy from LinuxCNC. Run from LinuxCNC, I am able to achieve 60us roundtrips with 40byte payload. I have written a simple HAL example for a simple servo loop, and have tested the servo loop on a single axis kinematic stage, equipped with high-precision encoder and a DC motor run by a small H-bridge driver.
I did some serious testing at 1ms servo-threads over several hours with no problems whatsoever.
I was also able to run servo-thread with 150us (6600Hz) without any problems, but I haven't spent much time testing it and don't know how stable it really is at this speeds.
Please Log in or Create an account to join the conversation.
- Hardware & Machines
- Computers and Hardware
- Remora - Rpi Software Stepping Using External Microcontroller via SPI