3
Using the STEVAL-ETH001V1 evaluation board
The
evaluation board can be used in several factory automation applications, such as
industrial connectivity, actuation and motion control.
32-bit data processing powered by
and real-time communication using NETX90 network controller
connected through four-wire SPI communication with MCU allows PMSM motor driving via remote control.
The solution also integrates two DC-DC converters powered by the
configuration.
These converters have been designed to provide 3.8 V and 15 V reference voltages when the input voltage works
in the range of 20-48 V; moreover, post regulation circuits have been designed to obtain the 3.3 V for the MCU
and connectivity and the 5 V for the quadrature encoder.
The hardware is supported by a firmware package based on
•
Application layer
•
Drivers layer with BSP/CMSIS and HAL library
•
Middleware layer
The firmware solution embeds the EtherCAT protocol and a motor control library to handle, respectively, data
packet exchange between master and slave and perform the position control according to the data received from
the master unit. Data consists of commands to be executed by the motor and the data angle used to set the
desired rotor position in a fixed time period; these data type are exchanged using the process data channel of the
protocol stack (for further details, refer to UM2808 freely available at
).
To ensure the correct time frame on the bus, a scheduler has been implemented with a dedicated timer, fixing a
time period of 1 ms, for a cyclic check on new data available on the data channel.
As expected by the protocol, a daisy-chain configuration can be implemented to connect more than one sensor
node to the same network (see
). In this case, the master generates a common frame with the data to
be addressed to all EtherCAT slaves (ECS) and each node identifies its own frame by verifying only the MAC
address reported in the frame: if the MAC is correctly identified, data are stored, whereas the other part of the
frame continues forwarding to the other nodes (see
).
Motion control driving has been implemented by setting the motor control parameters at application level, on the
basis of the electrical characteristics of the PMSM motor series S160-2B305.
UM2807
Using the STEVAL-ETH001V1 evaluation board
UM2807
-
Rev 1
page 11/40