Canbus open your mi...
 
Notifications
Clear all

Canbus open your mind part 4

1 Posts
1 Users
0 Likes
16 Views
(@admin)
Member Admin
Joined: 3 years ago
Posts: 381
Topic starter  

Update  This unit was unable to move to the next level. Somehow The unit opens up a window and creates a couple files, this is in linux. The lsusb shows the device but now I believe it needs to be reflashed.  Moving on to another product so I can take the learning into the use arena, that is I found a program with a trial (CanEasy) and I found an inexpensive Can device that works with it  (part6) 

Screenshot from 2023 05 29 09 02 24
hh

 

 

 

This board was purchased as seeed canbed duel dev kit ver 1.1

it appears it's a logan labs    CANBed - Arduino CAN Bus Dev Kit

https://www.longan-labs.cc/1030008.html

The Atmega32U4 chip on this board provides a wealth of pin resources. There are 18 pins based on the core chipset on the board, including digital pins, analog pins, UART, and I2C interface. Additionally, this CANBed uses the MCP2515 CAN Bus controller with SPI interface and MCP2551 to achieve CAN-Bus capability. There are also two types of CAN Bus interfaces available to meet various needs, a sub-D9 connector and a terminal block interface.

 

https://wiki.seeedstudio.com/Getting_Started/

 

This is the arduino file to find this board.
https://github.com/Longan-Labs/Longan_CAN_MCP2515

download then go to add file, restart then add longan RP2040 boards

 

 

RP2040 Features

The RP2040 from Raspberry Pi carries their signature values of high performance, ease of use, and low cost. Apart from impressive technical specifications featuring large on-chip memory, a dual-core processor and rich peripherals, the RP2040 can be programmed with both the beginner-friendly MicroPython and professionally-preferred C++.

Manufactured on a modern 40nm process node, the RP2040 delivers high performance while maintaining low power consumption and low leakage. It also carries a variety of low-power modes to support extended battery-operated durations. This makes the RP2040 a strong contender for many embedded applications that require robustness and longevity in both hobbyist and industrial use cases alike.

One of the headline features of the RP2040 which you may commonly come across is its unique Programmable I/O (PIO) subsystem, which provides additional computing power and flexibility to advanced users. PIO can be understood as the use of simple state machines that supplement the computing capabilities of the main CPU. Since CPUs can only run one computing task at any given time, PIO allows us to delegate simple but resource-intensive tasks away to these state machines, thus freeing up valuable resources on the main computer. 

Below, you can find the complete specifications of the RP2040.

  • Dual ARM Cortex-M0+ @ 133MHz
  • 264kB on-chip SRAM in six independent banks
  • Support for up to 16MB of off-chip Flash memory via dedicated QSPI bus
  • DMA controller & Fully-connected AHB crossbar
  • Interpolator and integer divider peripherals
  • On-chip programmable LDO to generate core voltage
  • 2 on-chip PLLs to generate USB and core clocks
  • 30 GPIO pins, 4 of which can be used as analogue inputs
  • Peripherals: 2 UARTs, 2 SPI Controllers, 2 I2C Controllers, 16 PWM, USB 1.1 Controller and PHY (Host & Device), 8 PIO State Machines

 

 It is now possible to program the Raspberry Pi Pico board with Arduino code directly from the Arduino IDE, similar to installing the ESP32 boards via the additional board manager via the Arduino IDE

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json

 

code with simple python

https://codewith.mu/en/

another python editor thorney
editor install linux

bash <(curl -s  https://thonny.org/installer-for-linux) 

 

Notes:

https://github.com/cantools/cantools

 

Socketcan python
https://python-can.readthedocs.io/en/stable/interfaces/socketcan.html

Tools for socket can, no idea what it about at this point
I believe this process has to be followed, being able to record and analyze the can data

SocketCAN userspace utilities and tools

This topic was modified 4 months ago 7 times by admin

   
Quote

©2023 LocalAd

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending
WordPress Ads

Log in with your credentials

or    

Forgot your details?

Create Account