Code Monkey home page Code Monkey logo

stm32_dcmotor_serial's Introduction

stm32_dcmotor_serial

Control a Motor and read a AB Encoder using STM32 MCU.

  • Software: Robot Operating System and LibSerial.

  • Version: kinetic, melodic, noetic.


Install LibSerial.

$ sudo apt-get install -y libserial-dev


Clone stm32_dcmotor_serial

$ cd <catkin_workspace>/src
$ git clone https://github.com/qaz9517532846/stm32_dcmotor_serial.git
$ cd ..
$ catkin_make

Run serial_ros server

$ roslaunch stm32_dcmotor_serial stm32_dcmotor.launch

Run serial_ros client

$ rosrun stm32_dcmotor_serial STM32_DCMotor_client <duty>

ROS Parameter

  • Serial_Port(type: string, default: "/dev/ttyACM0") : Serial Comunication with device(ex. Arduino, STM32, Renesas, Linkit board and MCU).

  • Baund_rate(type: int, default: 115200): setting device baund rate.

  • character_size(type: int, default: 8): setting device character size.

  • stop_bits(type: int, default: 1): setting device stop bits.

  • parity(type: int, default: 0): setting device parity.

    • 1 is even.

    • 2 is odd.

    • 3 is none.

  • flow_control(type: int, default: 1): setting device flow control.

    • 0 is none.

    • 1 is hardware.

  • pulse_resoution(type: int, default: 512): 512p/r


Demo

Demo Video


Reference

[1]. LibSerial. https://github.com/crayzeewulf/libserial

[2]. STM_DCMotor_Encoder. https://github.com/qaz9517532846/STM_DCMotor_Encoder


This repository is for your reference only. copying, patent application, academic journals are strictly prohibited.

Copyright © 2021 ZM Robotics Software Laboratory.

stm32_dcmotor_serial's People

Contributors

qaz9517532846 avatar

Stargazers

 avatar  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.