Skip to content

NU-RDS/rds25-palm-board

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encoder & CAN Bus Testing for Palm Board

This is a platformio project for testing the palm board's CAN Bus and SPI Bus.

palm_board

Demo

In main.cpp, the program will read an encoder and send random CAN messages for testing SPI and CAN Bus.

1. Read Encoders

In the line 7 of main.cpp:

#define ENCODER1_CS 4 // CS Pin 4. This can be replaced with other CS Pins.

You can switch bwteen different ports by switching the CS Pin number within 14, 6, 5, 4, 3, 2, 18, 15 as shown in the image above.

The output is printed in the serial monitor.

2. Monitor CAN Messages

The program is sending random CAN messages on the CAN Bus. If you're using a canable device on your Ubuntu laptop to monitor CAN messages, set it up:

sudo ip link set can0 up type can bitrate 1000000

Then monitor all messages on the CAN Bus:

candump can0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors