GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dukelec/cdstep: Stepper Motor Controller

BranchesTags
Open more actions menu

Latest commit

 

History

120 Commits
120 Commits

Folders and files

NameName
Last commit message
Last commit date
doc
doc
 
 
hardware
hardware
 
 
mdrv_bl
mdrv_bl
 
 
mdrv_fw
mdrv_fw
 
 
tools
tools
 
 
.gitmodules
.gitmodules
 
 
License
License
 
 
Readme.md
Readme.md
 
 

Repository files navigation

CDSTEP Introduction

RS-485 wire housing: Molex 5264 (4 pin)

Download this project:

git clone --recursive https://github.com/dukelec/cdstep

Protocol

CDSTEP is an open-source stepper motor controller that communicates over an RS485 interface.

  • Default baud rate: 115200 bps
  • Maximum speed: 50 Mbps
  • Default address: 0xfe

The underlying protocol is CDBUS, with the following frame format:
src, dst, len, [payload], crc_l, crc_h

Each frame includes a 3-byte header, a variable-length payload, and a 2-byte CRC (identical to Modbus CRC).
For more information on the CDBUS protocol, please refer to:

  • https://cdbus.org

The payload is encoded using the CDNET protocol. For detailed information, please refer to:

  • https://github.com/dukelec/cdnet
  • https://github.com/dukelec/cdnet/wiki/CDNET-Intro-and-Demo

Block Diagram

GUI Tool

CDBUS GUI Tool: https://github.com/dukelec/cdbus_gui

After power on, first write 5 to state, then write the target position to tp_pos, then the stepper motor will rotate.

After modifying the configuration, write 1 to save_conf to save the configuration to flash.
If you need to restore the default configuration, change magic_code to another value and save it to flash. Then reapply power.

Logs:

Plots:

Plot details, IAP upgrade, data import/export (including registers, logs, plots).

About

Stepper Motor Controller

Topics

cdbuscdnetcdstepstepper-motor-control

Resources

Readme
MIT license
Activity

Stars

70 stars

Watchers

8 watching

Forks

34 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.