Coder Social home page Coder Social logo

smcss's Introduction

Introduction

This is smcss(step motor control system server).

It runs under a STC89C52 MCU, which controls a stepping motor according command sent from a client program runs under PC through serial port.

It can read command, parse, operate output pins, then wait for next command.

Command design

The commands is HEX data, serval format are defined for command use, commands supported at present are:

Function                            HEX code
--------------------------------    ------------------
Emergency reset                     EAEAEAEAEA
Clear recieve strings               EEEEEEEEEE
Show command in RAM                 E0E0E0E0E0
Show command in EEPROM              E1E1E1E1E1
Store command to EEPROM             E5E5E5E5E5
Load command in EEPROM to RAM       E6E6E6E6E6
Run command in RAM                  EFEFEFEFEF
Run this command                    111111{main command}

Develop environment

  • STC89C52 MCU
  • Keil
  • STC flash tool in offical website

The program use MCU ISP instructions and xdata type memery.

Quick guide

Deploy

In my situation:

  • Keil to compile
  • STC flash tool in offical website to download program to MCU

Usage

Use STC flash tool

STC flash tool in offical website to send serial port data

This is a python program, compile to binary use pyinstaller is also OK, see project page for detail.

The program define a more human readable commands, when send to MCU, it transform the commands to HEX.

The program also support batch mode, that is to say, you can write many commands by lines, then send together. The program can transform them one by one, and then send to MCU one by one.

smcss's People

Contributors

cddwx525 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.