Giter Site home page Giter Site logo

blacktigersoftware / koduino Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avikde/koduino

0.0 0.0 0.0 13.55 MB

Arduino code for STM32 microcontrollers

Home Page: http://avikde.me/koduino

License: Other

C 70.49% C++ 22.61% CMake 0.04% Makefile 0.11% Python 0.29% HTML 2.00% Assembly 4.45% Arduino 0.01%

koduino's Introduction

Koduino

This is a library of code for boards developed using the STM32 F3/F4 microcontrollers, chosen for their great price/performance ratio, friendly built-in bootloaders, and (for the Cortex-M4F ones) FPU support.

Supported hardware

  • Upload methods: Serial (incl using USB-Serial adapters), ST-Link V2
  • Chip families: F301, F373, F405

Supported software

  • 95% of the Arduino core (felt no urgency to implement shiftOut or tone but they should be easy)
  • Libraries: Wire, SPI, EEPROM, Encoder, etc.
  • Important: Serialx (USART) is supported well, but SerialUSB (using USB CDC) is not supported yet--coming soon.
  • Documentation!

Why does this library exist?

Roger Clark compiled a list of other STM32 Arduino compatibility projects. I really began working on this because my initial F373-based hardware was not supported by any of them. Even so, I think this library may have some of the folowing benefits for others as well.

As a user

  1. Works with the Arduino IDE
  2. Awesome features that are not in Arduino: e.g.
    1. Hardware floating point, and advanced math libraries (Eigen is included)
    2. Non-blocking PWM input--use PWM as a fast, simple communication method
    3. Fast SD-card writing using SDIO
    4. Timer interrupts (run code with precise timing up to several MHz)
    5. ...
  3. Hands-free programming on boards with hardware support (FTDI chip with NRST/BOOT0 connections)
  4. Wireless programming on boards with hardware support (wireless-UART like XBee)
  5. Already in use in my several of my own critical projects, including
    1. "Flight control" boards with EKF orientation filtering, motor control and data logging @ 2 KHz
    2. Field-oriented brushless commutation @ 25 KHz

As a developer

  1. Porting to new chips: This process is much easier than with libmaple, or Aeroquad32, etc. because this library uses a (relatively) portable interface layer, the ST standard periperal library, to try and use the same Arduino core code to interface with several microcontrollers. The alternative, to begin with the register map for each new chip, is tedious at best (trust me, I tried ;) ).
  2. Open-source hardware: No custom bootloaders are required. You can literally make your own board from one of the reference designs (repo coming soon), or even begin straight from the microcontroller datasheet reference schematic, and get your own hardware working quickly.

Get started

1. Get code from this repository

If you're used to mercurial, git should be no problem. You can

  • Download the repository as a zip file, or
  • Clone it by typing git clone https://github.com/avikde/koduino.git at the location you want.

2. Program microcontrollers

Links to get started are at http://avikde.me/koduino.

Contribute

If this library is helpful to you, please consider contributing to it. The main areas that need help are:

  • Adding support for more chips
  • Maintaining upload tools for several OS'es / platforms, debugging wireless uploads, making uploads faster, etc.
  • Contributing to the Arduino core: I often leave out functionality that I don't need (e.g. tone) but someone might!

You are welcome to fork, and please submit pull requests if you do! Additionally, I would love to have direct collaborators who have commit access--don't hesitate to get it touch.

koduino's People

Contributors

avikde avatar blacktigersoftware avatar gavinrobot avatar gwenger avatar jduperret 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.