Skip to content

A simple wrapper to send and receive CAN frames with micropython board and MCP2515.

Notifications You must be signed in to change notification settings

Sashkoiv/pelican

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peliCAN

A simple wrapper to send and receive CAN frames with micropython board and MCP2515.

CI

Logo

Getting started

  1. Connect MCP module to the ESP32.

    MCP2515 ESP32
    VCC VIN
    GND GND
    CS D27
    MISO D12
    MOSI D13
    SCK D14
    INT D26
  2. Flash the module with micropython as described here

  3. Install Adafruit ampy

  4. Enjoy!

CLI guide

Options

Command Description
-p, --port TEXT The name of the board's serial port
-b, --baud INTEGER The baudrate for the communication.
--help Show this message and exit.

Commands

Command Description
blink Blinks the built-in LED.
dump Gets the frame from CAN buffer.
send Send's the frame with entered data.
setup-config Setup CAN configuration.

Usage examples

setup-config

pelican -p /dev/ttyUSB0 setup-config --cs 27 -s 500 -c 8 -l False

blink

pelican -p /dev/ttyUSB0 blink

dump

pelican -p /dev/ttyUSB0 dump

send

pelican -p /dev/ttyUSB0 -b 115200 send -i 123 -d Hello123 -l8 -r False

About

A simple wrapper to send and receive CAN frames with micropython board and MCP2515.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages