Coder Social home page Coder Social logo

stm32-bluepill-canopennode's Introduction

CANOpenNode on STM32F103 (BluePill)

CANopen stack running on STM32F103 microcontroller.

It is based on CANopenNode, which is free and open source CANopen Stack and is included as a git submodule.

CANopen is the internationally standardized (EN 50325-4) (CiA301) CAN-based higher-layer protocol for embedded control system. For more information on CANopen see http://www.can-cia.org/.

Using on STM32 BluePill

Install STM32CubeIDE

STM32 programmer is required.

File -> Open Projects from File System... -> Directory

Program is tested on STM32 BluePill board with STM32F103c8 chip. CAN transceiver chip must be connected to the board.

By default device uses Object Dictionary based on CANopenNode/example, which contains only communication parameters.

STM32 BluePill

  • Add CAN transciever (MCP2551, SN65HVD23x or similar) to the board. See example schema below.

          +-------------+                +----------------+
        5-| NC      RXD |-4-----------32-| PA11           |
        6-| CAN_L   VCC |-3-------+-3.3V-| 3.3V out       |
        7-| CAN_H   GND |-2--+    |      |                |
        8-| NC      TXD |-1--|----|---33-| PA12           |
          +-------------+    |    |      |                |
           VP232             |  100nF    |                |
                             |    |      |                |
                             +----+--GND-| GND            |
                                         +----------------+
                                          BluePill
    
  • EEprom chip is not used.

  • Default CAN bitrate is 500kbps and CANopen NodeId is 0x0A. See main_blank.c file.

  • CANOpenNode driver implementation is in ./device/co_driver folder

stm32-bluepill-canopennode's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

koson romanetz

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.