Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: mjs513

Search: Search took 0.01 seconds.

  1. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    Thanks for jumping in @tonton81. I did put a...

    Thanks for jumping in @tonton81. I did put a scope on the pins a long time ago but unfortunately don't have them anymore and dont have access to my scope for a few days.

    EDIT: Just a couple of...
  2. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    Well I don't work for Teensy but i can tell you...

    Well I don't work for Teensy but i can tell you that using CAN0 on pins 3 and 4 I have had a IMU (MPU-9350) attached to I2C pins 18,19 and a GPS attached to Serial1 (pins 0,1) without any issues.
    ...
  3. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    That particular one doesn't have an enable pin -...

    That particular one doesn't have an enable pin - some of the transceivers do.

    I would move the can transmit to the main loop for a test. If it still doesn't work then it has to be the wiring.
  4. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    It should work. Two things: Do you have to...

    It should work. Two things:

    Do you have to enable your transceiver? You never did say what transceiver you are using
    Are still wired correctly with CAN bus?
  5. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    First is anything printing from get_Quant? Only...

    First is anything printing from get_Quant? Only thing that I see is that if this criteria is never met:

    if(cargo[9] == quat_report)
    nothing will be sent via Can bus, i.e.:

    if(cargo[9]...
  6. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    Good glad it worked. Thats was my fault - thats...

    Good glad it worked. Thats was my fault - thats what happens when you do copy and pastes.
  7. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    Ok obvious answer just change the message id to...

    Ok obvious answer just change the message id to what you want and message to the hex values that you want instead of ints, thats it. Here you go:

    #include <IFCT.h>

    void setup() {
    pinMode(2,...
  8. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    Just looking at FlexCAN_t4 and looks like this...

    Just looking at FlexCAN_t4 and looks like this might work for you as well - haven't tested it yet so no gurantees :)

    // -------------------------------------------------------------
    // CANtest...
  9. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    Actually was just reviewing @tonton81's...

    Actually was just reviewing @tonton81's FlexCan_t4 library and looks like that's a replacement for IFCT. But if you want to give IFCT a try:


    #include <IFCT.h>

    void setup() {
    pinMode(2,...
  10. Thread: CAN bus write

    by mjs513
    Replies
    24
    Views
    412

    Not sure which library you want to use with the...

    Not sure which library you want to use with the T3.6. If you tell us maybe we can help better. I am not really familiar with the library used in the instructable you referenced

    If you use IFCT...
Results 1 to 10 of 10