Coder Social home page Coder Social logo

freehelot / stm32f1_ppm_in Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 0.0 679 KB

PPM Read with DEBUG print RC channels on STM32F1 (bluepill)

License: GNU General Public License v3.0

C 95.75% C++ 3.87% Assembly 0.37%
ppm stm32 stm32f103c8t6 stm32f1 truestudio cubemx bluepill

stm32f1_ppm_in's Introduction

stm32f1_ppm_in

PPM Read with DEBUG print RC channels on STM32F1 (bluepill)

  • PPM Reader with DEBUG print RC channels
  • STM32F103C8T6 (BluePill) tested
  • This program gets PPM signal input from RC radio PPM out connection.
  • Timer 4 is used with chanels 1 and 2, connect PPM signal cable to PB6, GND to GND.
  • Debuged with ST-link, PB3 is SWdebug and reset is done via ST-link.
  • Up to 12 channels have been tested working with no problems on Taranis X9+, Turnigy 9x and arduino uno as ppm generator.
  • PPM signal triggers interrupts and channel 1 and channel 2 are used for detecting edges (rising or falling) and update channel values.
  • Counter reset of channels is done hardware wise since it's recommended over software reset (multiple interrupts, interrupt priority etc.)

I couldn't find any similar project on STM32 not using Arduino IDE which reads PPM input done with interrupts and I didn't want my main while loop clogged with reading PPM inputs.

Documented but expect grammatical errors and lot of unneeded comments left through code testing. Code is not perfect and should and will be updated in the future. If the code doesn't work, please first check your PPM signal length, number of channels and that everything is wired correctly, otherwise fell free to contact me or raise an issue.

Everything was done with STM32Cube and Truestudio. Part of project for reading PPM from RX like Taranis X9D and to generate PPM back to trainer port. Cheap simulator dongles are based on the same STM32F103C8T6 with the same principle.

stm32f1_ppm_in's People

Contributors

freehelot avatar

Stargazers

 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.