Build.md initial

This commit is contained in:
Hakan Bastedt
2025-02-12 15:31:59 +01:00
parent c62b865f03
commit edaf00681f
3 changed files with 68 additions and 0 deletions

66
Build.md Normal file
View File

@@ -0,0 +1,66 @@
# Building a EaserCAT board
## Parts
Most parts are generic and can be found in many places. SMD resistors and capacitors are standard, nothing special.
Crystals are standard type hc49/s.
In case of smd crystal then it's a "passive smd crystal 3225"
Ferrite beads marked BLM18EG221SN1D, you can use any generic "ferrite bead 220 Ohm 0603 1ln" can be used. Not sure of 1ln is important nor what it means. In the schematics some are called BLM18EG221SN1D, others are called BLM18EG221S. It is the same, just a mistake in the naming.
RJ45 connectors must include "magnetics" and be configured in this way
![RJ45 Symbol](Utils/Pictures/RJ45-magnetics.png)
I have used PulseJack JN0011D01BNL (and most likely a chinese knockoff) and it works fine, but any that meets the diagram above will work.
The EtherCAT ICs are from aliexpress. There are quite a few sellers that has the LAN9252i/PT and the Ax58100 (LAN9252/PT and LAN9252V/PT are also possible, temperature range differs). Afaik, there is only one variant of the Ax58100 - AX58100LT.
The pcb needs to be ordered. Consider using a solder stencil - but hey it's up to you. I have bought pcbs from some chinese factories and from Aisler, Germany. The Aisler pcb is the nicest and came with excellent solder stencil. At a bit higher cost, nothing dramatic though. If you are hunting pennies then go to one of the chinese ones, maybe check prices at https://pcbshopper.com.
## EEPROM
You need to fill the EEPROM with valid contents before putting it on the pcb. It is actually a must, the EtherCAT will not start with an empty EEPROM, or with a non-valid content. It doesn't have to be for a real EtherCAT slave, because the first thing you will do when the card works, is to upload the correct contents using TwinCAT.
There is a small Arduino program [Link here](Utils/EEPROM_generator/) that helps to fill the empty EEPROM. Follow the link
## Populating the pcb
Enjoy!
## Soldering
I have put the pcb in the soldering oven.
## Powering up
Connect the STLINK/V2 unit and the serial port. The serial port will provide 5V, you don't need to see the output (there isn't any).
Ax58100\
Red led status - Blinking pattern means succesful read of eeprom
Gree led status - Blinking pattern indicates EtherCAT state (init, op, etc.)
LAN9252\
There is no indication.
## Hookup to TwinCAT
Install TwinCAT/XAE\
Ethernet cable\
Network interface assignment\
scan\
free-run\
download EEPROM contents
## Build and download firmware
vscode\
platformio\
open folder\
Build and upload\
## Twincat verification
## Linuxcnc
## Modifying the firmware

View File

@@ -30,6 +30,8 @@ There are accompanying git branches. For example, for video 8 you can check out
Video8 branch to get the software tree in the state at the video.
More info on the videos, which are now more of historical interest, but also a bit of learning by following [this link](Videos.md)
Here is the start of [building instructions](Build.md)
## EaserCAT 2000 - a testbench for ESC+MCU, SOES, stepper generator, linuxcnc
![Picture of EaserCAT 2000 board](Utils/Pictures/EaserCAT-2000.png)

BIN
Utils/Pictures/RJ45-magnetics.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB