GithubHelp home page GithubHelp logo

micropython-esc's Introduction

micropython-esc

A simple interface for controlling a simonk esc using the pyboard and micropython.

main.py is setup to assume you have 1 esc plugged in X1 servo input.

example

Not much to see here, sample below, see esc.py for documentation.

from esc import ESC
esc = ESC(1)
esc.calibrate()
esc.throttle(0)
esc.throttle(50)
esc.throttle(100)
calibration

Only need to run the calibrate method once each time the esc is powered on. This method is for the simonk esc firmware, see your esc documentation.

The MIN_ANGLE and MAX_ANGLE class attributes correspond to the servo angle where my escs begin and stop responding to angle changes to the servo class. Your hardware may differ. #####wiring and power Plug your esc connection into the input corresponding to the servo_number you supply when instantiating the ESC class.

Your ESC can power the pyboard if you plug in the red wire from the esc. If connecting more than 1 esc do not connect more power wires than the pyboard can handle. For me (and probably you too) this is 1.

If powering via USB or other external power, do not connect any power wires from any esc.

no warranty

No warranty is given or implied with use of this software. I am not responsible for any damage or injury caused by your use of this software. It is your responsibility to verify all information given and that your hardware is compatible with this software.

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.