Code Monkey home page Code Monkey logo

carrot-f4-motor's Introduction

Carrot STM32F4 project

全自動走行台車のmotor制御用マイコンSTM32F446用のプログラムです。 Carrotの動画はこちら

Features

シリアル通信で受け取ったデータをもとにモーターを動かすプログラムです。

メカナムホイールを使用し全方向どの方向にも移動することができ、さらに超信地旋回をすることができます。

また、ロータリーエンコーダー、9軸センサーを使用することにより正確な動作が可能です。

さらに、ブザーや、テープLEDによって周囲の人への警告もできるほか、非常停止ボタンの検知もできます。

未実装の機能として、LCD制御用マイコンとRS485やCAN通信を使って通信することができます。

Requirement

  • STM CubeIDE
  • FreeRTOS

回路データはこちら

Usage

シリアル通信で以下のプロトコルを送信してください。

[0xFF][type][data_high][data_low]

type 1. X速度 (data)

type 2. Y速度 (data)

type 3. Z角速度 (data)

type 4. ブレーキ (1.true 0.false)

dataは0~20000です 内部で-10000されます。

Note

LiDARを制御しているのRaspberryPiとシリアル通信をすることでロボットを動かしています。

メインCPUのプログラムはこちら

Author

License

Copyright (c) 2019 Shun Kayaki Released under the MIT license

carrot-f4-motor's People

Contributors

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