Giter Site home page Giter Site logo

martonmiklos / stm8_servotester Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 3.0 11.37 MB

STM8S003 based RC servo tester firmware

License: GNU Lesser General Public License v3.0

LiveScript 2.54% C 79.09% C++ 18.37%
stm8 reverse-engineering stm8s003 rc-servo servo-tester

stm8_servotester's Introduction

STM8S003F3 Firmware for a "brain transplanted" HJ digital servo tester

I got a "fried" a digital servo tester from my friends with "take it or throw it" motto.

I cracked it up (it has 4 screws in the corners under the front vinyl), and then I thought I saw a familiar part (STM8S0003F3) but it turned out it is powered by a Nuvouton MCU which is pin compatible with the STM8.

Since I have a quite few STM8s I have replaced the MCU, soldered the SWIM connector and populated the VCAP 100nF cap (marked with 104 on the silkscreen)

After a few hours and some STM8 development related rediscoveries I managed to get it rolling: The setup

I have included an STM8 CubeMX project as a reference for the pinout: Pinout

Features

At the moment two modes supported, you can switch between them by pressing the Select button:

  • 700 us - 2300 us with 10 ms interval "standard servo mode"
  • 1000us - 2000us with 2500 us interval "DJI mode"

Adjusting limits:

  • With Blank (0xFF filled) EEPROM the limits should be 1000us - 2000us respectively for the standard servo mode

  • You can set separate limits for separate modes:

** To adjust the limits press the Pulse width button (type on the silkscreen) until the 'bot' text appear.

** Then push the PW button again and adjust the lower limit (500 us - 1500 us allowed).

** Once done with adjusting the minimum pulsewidth press the PW again and the 'toP' text will appear.

** Then push the PW button again and adjust the upper limit (1500 us - 3500 us allowed).

** Push the PW once again and your settings will be saved which is indicated with a blinking done text.

Toolchain info

STM8 Standard peripherial lib from ST

STVP + Cosmic (planning to port SDCC and use openOCD and GDB for debugging)

stm8_servotester's People

Contributors

martonmiklos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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