Thank you guys for your help my db9 cable was faulty and once I used another I read all my can messages. Next test is to see if I can transmit the messages from pcan view
I was considering the MCP2562FD and realized it requires an external power source since it operates at 5V, whereas the previous transceiver was powered directly by the 3.3V from the Teensy. For my setup, which includes the Teensy 4.1, a PCAN FD...
#include <FlexCAN.h> // Teensy 4.1 supports FlexCAN
FlexCAN_T4<CAN3, RX_SIZE_256, TX_SIZE_16> can; // Set up CAN3 for standard CAN
void setup() {
Serial.begin(9600);
while (!Serial) delay(100);
// Initialize CAN3 (standard CAN with a...
Yes I have closed them. What does that do though? Also before I purchase a CAN FD transreceiver can I test if can 2 or can 1 works with the current setup. Also do I need termination resistors or does the transreceivers with the closed header pins...
#include <FlexCAN_T4.h>
// Define the CAN object for CAN3 with buffer sizes
FlexCAN_T4FD<CAN3, RX_SIZE_1024, TX_SIZE_16> can3;
const int CANID_TO_USE = 0x301; // ID should match the receiver's expected ID
void setup() {...
Thank you for your continued support. While my code had some initial errors, I've made several adjustments, and it now runs successfully. The PCAN cable blinks, indicating that messages are being transmitted or received. However, the messages are...
On my CANFD Send code :
FlexCAN_T4FD<CAN3, RX_SIZE_1024, TX_SIZE_16> can3;
On my CANFD receive code:
FlexCAN_T4FD<CAN3, RX_SIZE_1024, TX_SIZE_16> IntCAN;
Would this work?
@AndyA with your code and suggestions I have tried to modify code and made adjustments with the layout.
My two pieces of code: one for transmitting and one for receiving messages.
The transmitter initializes the CAN bus at 500 kbps and uses a...
#include <FlexCAN_T4.h> // Include the FlexCAN_T4 library
FlexCAN_T4<CAN1, CAN2, TX_SIZE, RX_SIZE> Can1; // Initialize CAN1 object with TX and RX buffer sizes
// Initialize CAN bus at 500 kbps
void setup() {
Can1.begin()...
Hi sorry for the confusion I do need FD but my code didn’t work for some reason using canFD I’m not sure maybe a library issue so that’s why I started just trying to use CAN just to problem solve and see that data on the PCAN view which I still...
#include <FlexCAN_T4.h>
//// CAN TEST TO BLINK BASED ON WHAT CAN MESSAGES ARE BEING SENT AND USED.
const int ledPin = LED_BUILTIN; // Use the built-in LED pin
bool done = false; // Flag to stop the loop after one complete run...
I’m currently working on a Senior Design project that involves real-time motor control using a Teensy microcontroller and CAN FD communication. Here's a brief overview of the project and my setup:
### Project Overview:
Our project focuses on...
Assistance with CAN FD Communication Setup in Senior Design Project Using Teensy**
I’m currently working on a Senior Design project that involves real-time motor control using a Teensy microcontroller and CAN FD communication. Here's a brief...
Assistance with CAN FD Communication Setup in Senior Design Project Using Teensy**
I’m currently working on a Senior Design project that involves real-time motor control using a Teensy microcontroller and CAN FD communication. Here's a brief...