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

Search:

Type: Posts; User: skpang

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    72
    Views
    3,107

    CAN FD is on CRX3 (pin 30) and CTX3 (pin 31)...

    CAN FD is on CRX3 (pin 30) and CTX3 (pin 31) only.

    You can't use pin 13 and 22 for CAN FD.
  2. Thanks for the code mjs513. It almost work. I...

    Thanks for the code mjs513.

    It almost work. I can get a good image on the PC but on the LCD the image looks corrupted. I think some setting is not quite right.

    18145
  3. Any example code for Teensy 4.0 with ArduCAM Mini to drive an ILI9341 LCD ?

    I've got an ArduCAM Mini OV2640 working with Teensy 4.0 thanks to mjs513

    https://github.com/mjs513/WIP/tree/master/ArduCAM_t4

    It can connect to a PC host and capture images.

    Is there any...
  4. Help needed with RA8875 LCD on Teensy 3.6

    I'm using a 5" RA8875 LCD with a Teensy 3.6.

    The driver I'm using is the one from Sumotoy v0.70

    I'm trying to display a bitmap image but it looks like something is corrupted.

    I followed the...
  5. Replies
    3
    Views
    88

    For CAN FD you need to use CRX3 and CTX4. That...

    For CAN FD you need to use CRX3 and CTX4. That is the pins on the back side of the Teensy board.

    CRX1/CTX1 or CRX2/CTX2 is CAN2.0B not FD.

    You would need two 120R terminating resistors in your...
  6. I would use a scope and check the 5v supply on...

    I would use a scope and check the 5v supply on the USB to the Teensy. Check if it drops below 5v when you energise the solenoid.

    Also the depends on the size of the solenoid, your SSR might not be...
  7. Replies
    10
    Views
    186

    45W is high power. You would need good shielding...

    45W is high power. You would need good shielding everywhere !!
  8. Replies
    10
    Views
    186

    What is the RF power output of the radio ? Can...

    What is the RF power output of the radio ?

    Can you post a photo of the setup.
  9. Replies
    7
    Views
    168

    msg use in transmit function. rxmsg use in...

    msg use in transmit function.

    rxmsg use in receive function.
  10. Replies
    72
    Views
    3,107

    On short cable run, it is working at...

    On short cable run, it is working at 1000/8000kbps is well.

    17754
    17755
  11. Replies
    2
    Views
    120

    Yes, a 3.6 size Teensy 4 with uSD holder would be...

    Yes, a 3.6 size Teensy 4 with uSD holder would be great. Adding an uSD holder to the current Teensy 4 is a real pain.
  12. Use a scope and check the signals. You should...

    Use a scope and check the signals.

    You should see data on CAN_L and CAN_H.

    On the Teensy side you should see data on the CAN Rx pin.
  13. Have you got a 120R terminator on both end ?

    Have you got a 120R terminator on both end ?
  14. Replies
    167
    Views
    62,683

    No, Teensy 3.6 only has Classic CAN, which the...

    No, Teensy 3.6 only has Classic CAN, which the max rate is 1mbps.

    If you want 2mbps then you need CAN FD.
  15. Replies
    72
    Views
    3,107

    Ok, removing the comment and recompile got past...

    Ok, removing the comment and recompile got past the FD.begin().

    I can see data on the CTX3 line but can't work out what bit rate it is. From a scope I see the arbitration bit rate is 1us and data...
  16. Replies
    72
    Views
    3,107

    Adding #define PRINT_DEBUG_STUFF Didn't...

    Adding

    #define PRINT_DEBUG_STUFF

    Didn't work for me. It still doesn't get past FD.begin() but I'm using 1.47
  17. Replies
    72
    Views
    3,107

    I'm trying your beta_sample example but couldn't...

    I'm trying your beta_sample example but couldn't get past FD.begin();


    void setup(void) {
    Serial.begin(115200); delay(1000);
    pinMode(6, OUTPUT); digitalWrite(6, LOW);

    ...
  18. Replies
    72
    Views
    3,107

    Hi tonton81, that is great news. Any chance...

    Hi tonton81, that is great news.

    Any chance of trying your library ?
  19. Replies
    72
    Views
    3,107

    @mjs513 I can confirm can1 and can2 works with...

    @mjs513

    I can confirm can1 and can2 works with your sketch.

    I then changed can1 to can3 that also works on pin CRX3 and CTX3.

    I want to try can3 on CAN FD now.
  20. Here is a video of me changing Blinky delay to...

    Here is a video of me changing Blinky delay to 100.


    https://youtu.be/bOC5cXjH2-Q
  21. Just updated the Arduino IDE to 1.8.9 but still...

    Just updated the Arduino IDE to 1.8.9 but still the same problem after a sketch upload. It won't auto reboot.

    Anyone else seeing this problem ?
  22. Teensy 4.0 does not auto reboot after sketch upload

    I'm using the beta test software 1.47-beta6 with Arduino 1.8.7 on macOS 10.14.6

    When I compiled the Blinky sketch and it uploads to T4 ok, but it does not do auto reboot like the T3.2. I have to...
  23. Replies
    4,349
    Views
    469,081

    The Teensy 4 is similar price to Teensy 3.2 ...

    The Teensy 4 is similar price to Teensy 3.2

    What will happen to Teensy 3.2 ?
  24. Replies
    4,349
    Views
    469,081

    Oh, that is going to be a pain to get access to....

    Oh, that is going to be a pain to get access to.

    What is the best way to access to those pins when designing a board for T4 ?
  25. Replies
    4,349
    Views
    469,081

    Which port is the CAN FD ? Hope is not on the...

    Which port is the CAN FD ? Hope is not on the back side. Can't tell from the pinout card.
  26. Replies
    6
    Views
    516

    Also RTR has been removed in the CAN FD spec.

    Also RTR has been removed in the CAN FD spec.
  27. Your board has two green connectors. One marked...

    Your board has two green connectors. One marked CAN FD which is connected to the MCP2517FD controller then to the teensy via SPI.

    The other green connector which you have wired up is connected to...
  28. To read the message: void loop() { ...

    To read the message:



    void loop() {


    msg.len = 8;
    msg.id = 0x7DF;
    msg.buf[0] = can_msg_count++;
  29. From the photo, you are using the Teensy CAN....

    From the photo, you are using the Teensy CAN. You cannot use the MCP2517FD driver.

    Just use the FlexCAN driver.



    #include <FlexCAN.h>

    uint32_t can_msg_count = 0;
    CAN_message_t...
  30. Can you clarify your setup. Are you using the...

    Can you clarify your setup.

    Are you using the CAN on board the Teensy3.6 ?
  31. Thread: LIN bus

    by skpang
    Replies
    5
    Views
    819

    Try this: ...

    Try this:

    https://github.com/skpang/Teensy32_LIN-bus_master_send_demo

    https://github.com/skpang/Teensy32_LIN-bus_master_request_demo

    https://github.com/skpang/Teensy32_LIN-bus_slave_demo
  32. Replies
    17
    Views
    699

    Have you closed the terminator jumper on the...

    Have you closed the terminator jumper on the Waveshare board ? Try that.

    You might also need to do something similar on the motor controller side if it hasn't got a terminator.

    A CAN network...
  33. More useful to others, as in people by making a...

    More useful to others, as in people by making a class in a library.
  34. Calling attachInterrupt() inside a C++ class

    I'm trying to write a C++ class which a attachInterrupt() is called but it won't compile and giving me an error message of :
    ...
  35. Replies
    4
    Views
    275

    Yes, best to connect the 3k3 resistor to 3.3v...

    Yes, best to connect the 3k3 resistor to 3.3v instead.
  36. Replies
    4
    Views
    275

    You need attached a diode to the Tx pin like...

    You need attached a diode to the Tx pin like this:

    15707

    More info at:
    https://www.mikrocontroller.net/attachment/28831/siemens_AP2921.pdf
  37. I've changed it to "CHANGE" and test the voltage...

    I've changed it to "CHANGE" and test the voltage inside the ISR. It worked !!

    Thank you for your help.
  38. Interrupt on Rising and Falling on the same pin

    I've got a pulse coming in on pin 0 and trying to measure the pulse width.

    I'm using ISR on the falling and rising edge of the same pin but it looks like the ISR is only calling on the rising...
  39. Replies
    8
    Views
    631

    I think it is working now. After the...

    I think it is working now.

    After the Serial1.begin(9600) I sent out the break then reconfigure using serial_set_transmit_pin(tx_pin) but I have to add serial_set_tx(tx_pin,1).


    int led = 13;...
  40. Replies
    8
    Views
    631

    I can't set the Serial1.begin(9600) in advance...

    I can't set the Serial1.begin(9600) in advance because I need to set the tx pin low to sent out the break. Unless I manually set the tx pin low via registers but I don't really want to mess about...
  41. Replies
    8
    Views
    631

    I don't want any delay before the synch byte...

    I don't want any delay before the synch byte (0x55).
    I might try and set it serial mode first. Change the pin, output the break then switch it back like you said but this might not make it portable...
  42. Replies
    8
    Views
    631

    Generating serial line break for LIN-bus

    I'm trying to write a LIN-bus driver for Teensy 3.2

    A LIN-bus frame consist of break, synch(0x55), Ident, data. I'm trying to do this in software and found when I configure the uart there seems to...
  43. Replies
    242
    Views
    27,423

    I would like to see the use of the 1060 chip....

    I would like to see the use of the 1060 chip. With CAN FD this will enable T4 to run a new set of applications.
  44. Good to hear you got it working. For those who...

    Good to hear you got it working.

    For those who want to try Teensy with the MCP2517FD the code is in GitHub:

    For Teensy 3.2
    https://github.com/skpang/Teensy32_with_MCP2517FD_CAN_FD_demo

    For...
  45. Replies
    242
    Views
    27,423

    Thanks for that. I hope its going to be the...

    Thanks for that.

    I hope its going to be the i.MX RT1060 as it has CAN FD. I'm doing a few projects on CAN FD and would be nice to use Teensy 4.0
  46. Replies
    242
    Views
    27,423

    Hi Paul, Have you decided which version of the...

    Hi Paul,

    Have you decided which version of the iMXRT is going to be used for Teensy 4.0 ?
  47. The Microchip CAN-Bus analyser uses two mosfet. ...

    The Microchip CAN-Bus analyser uses two mosfet.

    Have a look at their schematic:

    http://ww1.microchip.com/downloads/en/DeviceDoc/51848B.pdf
  48. You really need to post the full code. Can't...

    You really need to post the full code. Can't really see whether you have setup the baud rate correctly or not.

    For a simple CAN test code try this:...
  49. Thanks Michael and Paul for the advice. I've...

    Thanks Michael and Paul for the advice.

    I've changed the drv_spi.c to drv_spi.cpp and added the SPI.h and SPI.begin() to the init function and that part compiles ok.

    Now I'm stuck on a enum...
  50. Porting C code to Teensyduino for MCP2517FD CAN FD Project

    What is the best way to port C code to Teensyduino ?

    I want to use the Microchip MCP2517FD CAN FD controller with Teensy 3.2
    The code is in C but Teensy wants C++.

    I've tried adding:
    #ifdef...
Results 1 to 50 of 66
Page 1 of 2 1 2