OCCRA
Go to Post Understand that not only can you learn from other experienced engineers, but also mechanics, farmers, and craftsmen. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-09-2017, 09:52 PM
Adam_P's Avatar
Adam_P Adam_P is offline
Registered User
FRC #3061 (Huskie Robotics)
Team Role: Programmer
 
Join Date: Jan 2017
Rookie Year: 2011
Location: Naperville, IL
Posts: 22
Adam_P is a jewel in the roughAdam_P is a jewel in the roughAdam_P is a jewel in the rough
CAN bus + RPi

Could I theoretically wire my Raspberry Pi into the CAN bus and read values from Talon SRX's via the Pi and Rio simultaneously? I'm not sure if this makes sense or is even legal but it may help with a odometry project that I'm currently working on.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-09-2017, 11:39 PM
MuskieProgramme MuskieProgramme is online now
Registered User
FRC #6420 (Fire Island Robotics)
Team Role: Alumni
 
Join Date: Dec 2016
Rookie Year: 2014
Location: Muscatine, IA
Posts: 194
MuskieProgramme is just really niceMuskieProgramme is just really niceMuskieProgramme is just really niceMuskieProgramme is just really niceMuskieProgramme is just really nice
Re: CAN bus + RPi

Sure, just grap a PICAN Hat for $50 and you'll be set.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 10-10-2017, 02:17 AM
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 874
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: CAN bus + RPi

Quote:
Originally Posted by MuskieProgramme View Post
Sure, just grap a PICAN Hat for $50 and you'll be set.
Ah, the MCP2551 SPI CAN controller. The linux kernel guys tend not to be very happy about it's performance/error handling, but it gets the job done and has a proper socketcan driver.

We've been very happy with the canable as well for debugging (semi truck CAN busses). It seems to just work, and is a USB CAN device with a socketcan driver as well.

Take some time at some point to read the manual at https://www.kernel.org/doc/Documenta...orking/can.txt . It's surprisingly good, and will help you understand CAN bus debugging and what monitoring is available. candump and friends are also very helpful.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:38 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi