GithubHelp home page GithubHelp logo

avatar196kc / serial_control Goto Github PK

View Code? Open in Web Editor NEW

This project forked from seungchan-mok/serial_control

0.0 1.0 0.0 220 KB

ros package for simple motor control for DC motor and Servo motor

C++ 14.18% CMake 57.64% Python 28.18%

serial_control's Introduction

ros-simple-control-with-arduino

ros package for simple motor control for DC motor and Servo motor

Installation


dependency installation

pip install pyserial

See pyserial website

Package Installation

cd <Your Work Space/src>
git clone https://github.com/msc9533/serial_control.git
cd .. && catkin_make

Arduino Upload

Open arduino-uno.ino by Arduino IDE, and Upload to Arduino

Motor Circuit

img

Usage

Control by cmd_vel Topic

serial_control.py node subscribe cmd_vel topic, and transfer data to Uno by serial.

rosrun serial_control serial_control.py

Publish cmd_vel by using keyboard

rosrun serial_control teleop.py
    W
A   S   D
    X

Control your DC motor and servo motor by keyboard
W : vel + 10
A, D : pos - 5, +5
S : Stop
X : vel - 10

serial_control's People

Contributors

seungchan-mok avatar

Watchers

James Cloos 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.