Giter Site home page Giter Site logo

spider's Introduction

Spider firmware

Firmware for hexapod robot based on STM32F4 (STM32F4DISCOVERY board)

Functions

Input

  • USB gamepad. Both my dualshock-like gamepads work in second "Mode".
  • External commands from USART4. Under development! You can implement your own protocol. Works great for HC-05 + smartphone.

Motor control

  • Legacy control via precalculated tables. This part was ported from old AVR firmware. Stable. Main type of control for now.
  • Onboard math. New feature. Under development

Hardware

PWM config

Servo TIM Channel Pin Servo TIM Channel Pin
Left 1 Right 1
H1 2 2 A1 H1 9 2 E6
V2 2 4 A3 V2 9 1 E5
V3 2 3 A2 V3 4 3 B8
Left 2 Right 2
H1 3 4 B1 H1 4 2 B7
V2 1 1 E9 V2 3 2 B5
V3 1 2 E11 V3 3 3 B0
Left 3 Right 3
H1 1 3 E13 H1 1 4 E14
V2 12 1 B14 V2 2 1 A15
V3 12 2 B15 V3 3 1 C6

UARTs

UART TX RX Function
USART3 PB10 PB11 Flashing via DFU
USART4 PA0 PC11 Command channel

I use DFU because ST-LINK on my Discovery is dead. It's more like "reserved pins".
Second UART is for external commands. This part is currently under development.

spider's People

Contributors

lonely-wolf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

loulansuiye

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.