Giter Club home page Giter Club logo

silta's Introduction

#Silta - Python to STM32F4 Bridge Project

Python library and STM32F4 Discovery firmware to control the microcontroller's GPIOs and serial interfaces directly from python. This allows for intefacing with external devices quickly without having to write any firmware!

Currently supported interfaces: I2C1, GPIOs (A-E), SPI1, ADCs, DACs, PWM (2 channels)

Future support (hopefully): UART, I2C2-3, SPI2+

For examples, see: https://github.com/alvarop/silta/tree/master/sw/examples

For firmware download/build/update instructions, see: https://github.com/alvarop/silta/tree/master/fw

For python module build instructions, see: https://github.com/alvarop/silta/tree/master/sw

Installation Instructions

You should be able to use pip to get the silta python module using: pip install silta

Pins

I2C

  • PB6 - I2C1 SCL
  • PB9 - I2C1 SDA

SPI

  • PA5 - SPI1 SCK
  • PA6 - SPI1 MISO
  • PA7 - SPI1 MOSI

ADC

  • PA0 - ADC1_0
  • PA1 - ADC1_1
  • PA2 - ADC1_2
  • PA3 - ADC1_3
  • PA4 - ADC1_4 (Will disable DAC)
  • PA5 - ADC1_5 (Will disable DAC and/or SPI1 SCK)
  • PA6 - ADC1_6
  • PA7 - ADC1_7
  • PB0 - ADC1_8
  • PB1 - ADC1_9
  • PC0 - ADC1_10
  • PC1 - ADC1_11
  • PC2 - ADC1_12
  • PC3 - ADC1_13
  • PC4 - ADC1_14
  • PC5 - ADC1_15

DAC

Must be enabled separately, since it disables SPI1 SCK

  • PA4 - DAC1
  • PA5 - DAC2

PWM

NOTE: PWM is currently locked at 10ms period, mainly for use with servos.

  • PE5
  • PE6

GPIO

Most other pins in ports A-E should work as GPIOs Notable/useful ones:

  • PD12 - Green LED
  • PD13 - Orange LED
  • PD14 - Red LED

silta's People

Contributors

alvarop avatar jmuehlner avatar johnhowe avatar

Watchers

 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.