{"id":51345272,"url":"https://github.com/wauro21/smcc","last_synced_at":"2026-07-02T11:00:54.652Z","repository":{"id":182092537,"uuid":"667940449","full_name":"Wauro21/SMCC","owner":"Wauro21","description":"SMCC (SMC_core) allows for direct communication and control of the Serial-Motor-Controller project via Python-code.","archived":false,"fork":false,"pushed_at":"2023-07-23T16:04:55.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-27T20:20:20.075Z","etag":null,"topics":["api","desktop-app","numpy","pyinstaller","pyside2-gui","python","stepper-motor","stepper-motor-control"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wauro21.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING.LESSER","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-18T16:37:21.000Z","updated_at":"2023-07-23T16:01:59.000Z","dependencies_parsed_at":"2023-07-18T17:58:53.228Z","dependency_job_id":null,"html_url":"https://github.com/Wauro21/SMCC","commit_stats":null,"previous_names":["wauro21/smc_core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Wauro21/SMCC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wauro21%2FSMCC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wauro21%2FSMCC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wauro21%2FSMCC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wauro21%2FSMCC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wauro21","download_url":"https://codeload.github.com/Wauro21/SMCC/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wauro21%2FSMCC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35043938,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","desktop-app","numpy","pyinstaller","pyside2-gui","python","stepper-motor","stepper-motor-control"],"created_at":"2026-07-02T11:00:52.960Z","updated_at":"2026-07-02T11:00:54.645Z","avatar_url":"https://github.com/Wauro21.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMCC\n\n\u003cp align=center\u003e\n    \u003cimg src='https://raw.githubusercontent.com/Wauro21/SMCC/master/github_images/icon.png'\u003e\n\u003c/p\u003e\n\nThe **SMCC (SMC-Core)** is a simple python based API that allows to interface via serial port with the [**SMCD (SMC-Driver)**](https://github.com/Wauro21/SMCD). This allows the **SMCC** to be imported to your own projects without having to drag the GUI with it.\n\n\n## Index\n\n- [SMCC](#smcc)\n  - [Index](#index)\n  - [Installation](#installation)\n  - [Example use](#example-use)\n    - [Quick Start](#quick-start)\n    - [In depth examples](#in-depth-examples)\n  - [Reference](#reference)\n\n\n## Installation\n\nTo install the `SMCC` just use pip as follows: \n\n```bash\n$ pip install smcc\n\n```\n\nThe project is hosted on the pypi register: https://pypi.org/projects/SMCC\n\n\n## Example use\n\n### Quick Start\n\nConfigure a 3.75°/step stepper motor to perform a full clockwise rotation at 20 rpm:\n\n```python\n# Imports\nimport serial\nimport time\nfrom SMCC.Commands import SETUP_CMD, STEP_CMD, generateControlDict, sendCommand, getFrequency\n\n# Configure motor\nctrl_dict = generateControlDict()\nctrl_dict['degrees_per_step'] = 3.75\n\n# Serial port configuration\nport='/dev/ttyACM0'\nbr = 9600\nto = 10 # seconds\nctrl_dict['comms'] = serial.Serial(port, baudrate=br, timeout=to)\n# Wait 10 seconds for Arduino to reboot\ntime.sleep(10)\n\n# Configure speed\nctrl_dict['speed'] = 20\n# Configure freq from speed\n_, real_freq, counter = getFrequency(ctrl_dict)\nctrl_dict['freq'] = real_freq\nctrl_dict['freq_counter'] = counter\n\n# Send setup CMD\nsetup_cmd = SETUP_CMD(ctrl_dict)\nsetup_response = sendCommand(ctrl_dict['comms'], setup_cmd)\n\n# Set rotation direction and number of steps\nn_steps = int(360/ctrl_dict['degrees_per_step'])\nctrl_dict['steps'] = n_steps\nctrl_dict['direction'] = True\n\n# Send step cmd\nstep_cmd = STEP_CMD(ctrl_dict)\nstep_response = sendCommand(ctrl_dict['comms'], step_cmd)\n\n# Wait for the motor to complete rotation before closing port\nwait_time = 20 #Seconds\ntime.sleep(wait_time)\n\nctrl_dict['comms'].close()\n\n```\n\n### In depth examples\n\n\nTwo detailed explained examples are provided on [Examples](https://github.com/Wauro21/SMCC/tree/master/Examples):\n\n1. `python_example.py` : Shows the basic operation of the API, by performing the configuration and then a full counterclockwise rotation of the stepper motor. \n2. `jupyter_example.ipynb`: Shows the basic operation of the API, performs a clockwise and then a counterclockwise rotation of the stepper motor. \n\n**All the examples are designed to work with the [`SMCD (Serial Motor Controller Driver)`](https://github.com/Wauro21/SMCD)**\n\n## Reference\n\nThe [REFERENCE.md](https://github.com/Wauro21/SMCC/tree/master/REFERENCE.md) provides a detailed explanation of every function and constant provided on the API.  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwauro21%2Fsmcc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwauro21%2Fsmcc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwauro21%2Fsmcc/lists"}