Text updates

This commit is contained in:
Hakan Bastedt
2023-12-20 20:10:47 +01:00
parent aba5b7acea
commit 08661c16a3
2 changed files with 27 additions and 11 deletions

View File

@@ -1,19 +1,26 @@
### EtherCAT PCB based on LAN9252 and STM34F407 # EtherCAT PCB based on LAN9252 and STM34F407
##### The firmware is in the **Firmware** folder.
The firmware is in Firmware
Open this in PlatformIO. PlatformIO might be able to install all necessary software. If not, you need at least Arduino for STM32 (STM32duino) and SPI. PlatformIO might be able to figure that out, I hope so. Open this in PlatformIO. PlatformIO might be able to install all necessary software. If not, you need at least Arduino for STM32 (STM32duino) and SPI. PlatformIO might be able to figure that out, I hope so.
SPI settings are in lib/soes/hal/spi.cpp if you are interested. SPI settings are in lib/soes/hal/spi.cpp if you are interested.
SOES is the Arduino port of SOES from https://github.com/kubabuda/ecat_servo/tree/main/examples/SOES_arduino SOES is the Arduino port of SOES from <https://github.com/kubabuda/ecat_servo/tree/main/examples/SOES_arduino>
My own code is in main.cpp. The encoder counter code is in STM34_Encoder.cpp My own code is in main.cpp. The encoder counter code is in STM34_Encoder.cpp
The PCB design is in Kicad. Open with Kicad. I have put the symbols and footprints in there, just set th right paths. ###### The PCB design is in **Kicad**.
The design is in the state I ordered it at Aisler, Germany.
Schematics contains reference documentation, schematics of LAN9252 evaluation boards and other boards. This is from where I got inspiration and ideas to the design. No I didn't read all the reference documentation - I copied most from these designs and that's why it also worked the first time. Open this with Kicad. I have put the symbols and footprints in there, just set the right paths.
The design is in the state I ordered the pcb from Aisler, Germany.
ESI xml file generator is in EEPROM_genrator. Access with a file browser and click on index.html to make your own xml file (and other necessary files, incl eeprom bin). Copy the contents to Firmware/lib/soes ###### The **Schematics** folder
and to Twincat esi xml file directory c:\twincat\3.1\io\modules\ethercat
The original EEPROM_generator is found here https://github.com/kubabuda/EEPROM_generator contains reference documentation, schematics of several LAN9252 evaluation boards and other boards. This is from where I got inspiration and ideas to the design. No I didn't read all the reference documentation - I copied most from these designs and that's why it also worked the first time. [Freerouting](https://github.com/freerouting/freerouting) was used to route the pcb. Normally I route the nets by hand but this time it was a bit much and it came out quite nice and, most importantly, it worked.
##### ESI xml file generator is in **EEPROM_generator**.
Access the folder with a file browser and click on index.html to make or update your own xml file (and other necessary files, incl eeprom bin). Copy the contents to Firmware/lib/soes
and to Twincat esi xml file directory `c:\twincat\3.1\io\modules\ethercat`
The original EEPROM_generator is found here <https://github.com/kubabuda/EEPROM_generator>

View File

@@ -8,18 +8,27 @@ how EtherCAT works, to making my own pcb, program it and testing it in LinuxCNC.
## My own EtherCat 4. My PCB and details ## My own EtherCat 4. My PCB and details
In this video it starts to be inteeresting. I have got the pcb and I try to make it work. In this video it starts to be interesting. I have got the pcb and I try to make it work.
Now I finally make documentation available, see [a link](Pcb-1-lan9252/README.md). Now I finally make documentation available, see [this folder](Pcb-1-lan9252/README.md).
[![Watch the video](https://img.youtube.com/vi/nTQUwghvy5Q/default.jpg)](https://youtu.be/nTQUwghvy5Q) [![Watch the video](https://img.youtube.com/vi/nTQUwghvy5Q/default.jpg)](https://youtu.be/nTQUwghvy5Q)
## Make my own EtherCAT device 3. Encoder ## Make my own EtherCAT device 3. Encoder
I made a rudimentary EtherCAT encoder module. To test it I need something better than my test setup so I start to design my own PCB to be used for testing with LinuxCNC.
[![Watch the video](https://img.youtube.com/vi/oNIBOpeTpQ4/default.jpg)](https://youtu.be/oNIBOpeTpQ4) [![Watch the video](https://img.youtube.com/vi/oNIBOpeTpQ4/default.jpg)](https://youtu.be/oNIBOpeTpQ4)
## Make my own EtherCAT device. 2. MCU and SPI ## Make my own EtherCAT device. 2. MCU and SPI
Testing the SPI connection between the MCU and the LAN9252 chip. Get into state diagrams for EtherCAT and for CIA402.
[![Watch the video](https://img.youtube.com/vi/F9HdCEG6kow/default.jpg)](https://youtu.be/F9HdCEG6kow) [![Watch the video](https://img.youtube.com/vi/F9HdCEG6kow/default.jpg)](https://youtu.be/F9HdCEG6kow)
## Make my own EtherCAT device. 1 Digital IO ## Make my own EtherCAT device. 1 Digital IO
My first tries with the LAN9252 chip. Getting accustomed to some tools.
[![Watch the video](https://img.youtube.com/vi/IGmXsXSSA4s/default.jpg)](https://youtu.be/IGmXsXSSA4s) [![Watch the video](https://img.youtube.com/vi/IGmXsXSSA4s/default.jpg)](https://youtu.be/IGmXsXSSA4s)