This project uses the PiCAN2 board to control a Nanotec CL3-E-1-0F stepping motor controller using CANopen in Python3. You would also need the CL3.eds file to be in the same directory as the pican2_canopen_test.py file.

IMG_4256.jpg

Parts List

Software Installing

Install the driver for the PiCAN2 board:

http://skpang.co.uk/blog/archives/1165

Then install python3-can and canopen

pip install python-can
pip3 install canopen

Download example Python code from GitHub:

https://github.com/skpang/PiCAN2_CANopen_test

Run the code by:

python3 pican2_canopen_test.py