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

Search:

Type: Posts; User: bschena

Search: Search took 0.00 seconds.

  1. Thanks Paul, I'll look into that CANbus...

    Thanks Paul, I'll look into that CANbus analyzer....that would probably explain a *lot*.

    EDIT: It's on it's way!
  2. 10-4. thx.

    10-4. thx.
  3. thanks tonton81. quick question, where is the...

    thanks tonton81.

    quick question, where is the right place to call setClock()?

    will this sequence work, or should I be calling setClock() before begin() - or someplace else?


    can1.begin();...
  4. Right, makes sense. I just sent an email to the...

    Right, makes sense. I just sent an email to the motor vendor asking about the maximum rate I can send updates to it.

    Is there an expected (or tested) speed limit of FlexCAN before Bad Things start...
  5. Interesting. I added a progressively shorter...

    Interesting.

    I added a progressively shorter delay in between the sends and I can see it starting to choke:


    void loop() {
    int delayTime = 100;

    ...
  6. Yes, bus is terminated at both ends with 120ohms....

    Yes, bus is terminated at both ends with 120ohms.

    Example code for the status requests (all 3 functions are essentially identical except for the hex code that is passed)

    //...
  7. Thanks tonton1, great answers as usual. I...

    Thanks tonton1, great answers as usual.

    I just looked at your "CAN2.0_example_FIFO_with_interrupts" and made a simple version of my code to see what happens with that scheme.

    The short version...
  8. T4.1+CAN to robot actuator - need some perspective/advice

    First, I'm new to CAN and am in the middle of trying to figure out the basics of how to use mailboxes, FIFOs and callbacks.

    I wrote a long detailed post, but figured no one would read or respond,...
  9. Thanks tonton81. I added the resistor and...

    Thanks tonton81. I added the resistor and 1Mbits/sec works now. Thanks for the setClock() tip - I'll play with that if I run into reliability issues with the faster setting.


    ...
  10. Ha, yes, I had some...

    Ha, yes, I had some late-night-cognitive-dissonance when I wrote that. Of course, kbps, not MHz. Glad you understood what I meant, not what I said.

    My loopback test code:


    /*
    * Loopback...
  11. SK Pang Triple CAN board - baudrate limited to 500MHz? faster?

    I'm using CAN1 on the SKPang Triple CAN board here, http://skpang.co.uk/catalog/teensy-41-triple-can-board-with-240x240-ips-lcd-p-1592.html

    CAN transceiver is MCP2562-E/SN, if that matters.

    I...
  12. Hmm. I tried toggling the RST line with this,...

    Hmm.

    I tried toggling the RST line with this,


    // reset to avoid wrong color startup
    digitalWrite(TFT_RST, LOW);
    delay( 500 );
    digitalWrite(TFT_RST, HIGH);
  13. Thanks Kurte. setup code: void...

    Thanks Kurte.

    setup code:

    void tft_setup(void) {
    // set up general TFT parameters that won't change

    // general init
    tft.init(240, 240);
    tft.setRotation(3);
  14. short flash of wrong color during LCD startup (ST7789_t3 lib)

    Not a big deal, but I'd like to understand what's going on.

    I'm using the ST7789_t3 library to drive the 240x240 TFT LCD on my Copperhill Triple CAN board.

    After downloading from the Arduino...
  15. Thanks for the great explanation. I'll give it a...

    Thanks for the great explanation. I'll give it a go!
  16. I googled around but haven't found any examples...

    I googled around but haven't found any examples for how to use setRowColStart(). I tried this, it compiles, but has no effect.


    void tft_update_datum( long rate ) {

    tft.fillScreen(...
  17. ah-ha! datum. I saw mention of that but thought...

    ah-ha! datum. I saw mention of that but thought it had to do with scrolling text (way beyond my pay grade).

    is there a way to ARBITRARILY define the datum, or do I have to use one of the 9...
  18. centering text on a Copperhill TFT LCD board (T4.1)with ST7789_t3

    I've been trying to find some way to write a 3,4, or 5 digit number centered in the same spot on the 240x240 TFT display on this board...
  19. Replies
    5
    Views
    226

    Got it, thanks. This is my first rodeo with CAN....

    Got it, thanks. This is my first rodeo with CAN.

    Oh, and I'm at the "now what?" stage - I've got the T4.1 hooked up to a Waveshare SN65HVD230 CAN transceiver board. Does anyone have any...
  20. Replies
    5
    Views
    226

    Wow, really? That's not normal, but glad I...

    Wow, really? That's not normal, but glad I bothered to ask!
  21. Replies
    5
    Views
    226

    CAN pinout - double check me

    So, I'm trying to hook up a T4.1 to a WaveShare CAN transceiver board.

    Pins 22 (TX1) and 23 (RX1) look like the right place on the Teensy side.
    My Waveshare board has RX and TX pins.
    So, I...
  22. Replies
    10
    Views
    445

    OH! that's exciting as hell! I'm going to have to...

    OH! that's exciting as hell! I'm going to have to look at how to use MAC addressing - I've just been doing the usual IP:Port thing.

    Very cool! Thanks for taking the time to look into that!
  23. Replies
    10
    Views
    445

    oh, that's interesting. I've looked briefly at...

    oh, that's interesting. I've looked briefly at FNET - it did seem more complex than your nice NativeEthernet package, but you are right, getting closer to the iron might make sense for me. Being able...
  24. Replies
    10
    Views
    445

    Excellent, thanks Manitou. That gives me a head...

    Excellent, thanks Manitou. That gives me a head start.

    The good news is that all of my nodes will be on an airgapped network dedicated for the application, so all of then network BW is for that...
  25. Replies
    10
    Views
    445

    Thanks for the clarification. I'm still trying to...

    Thanks for the clarification. I'm still trying to sort Multicast from Broadcast myself. I believe that Multicast is more sophisticated than Broadcast. Multicast is sort of publish/subscribe whereas...
  26. Replies
    10
    Views
    445

    UDP Broadcast with NativeEthernet?

    Does anyone know if Paul's NativeEthernet lib has the ability to do Broadcast messaging using UDP?

    I searched NativeEthernet.h....didn't find anything that looked related to Broadcast...
  27. This is helpful - curious to see how other people...

    This is helpful - curious to see how other people have solved a similar problem.
  28. Good question - not sure what's happening at the...

    Good question - not sure what's happening at the wire level. All I know is that if I don't add the delay, nothing arrives on the receive end. Seems like I'll need to get Wireshark running to find...
  29. running NativeEthernet flat out....but why is delay needed?

    So, I'm shoving packets between two identical T4.1s using UDP and the NativeEthernet library.

    Here's the Loop code:



    Udp.beginPacket(destinationNodeIP, destinationPort); // aim the UDP...
  30. Replies
    13
    Views
    1,207

    Awesome Mark, thank you! uTasker looks like an...

    Awesome Mark, thank you! uTasker looks like an interesting project, I'll check out the links and info you mentioned.

    Cheers!

    /b/
  31. Replies
    185
    Views
    23,143

    Understood. Thanks!

    Understood. Thanks!
  32. Replies
    13
    Views
    1,207

    Share ROM dump code?

    Any chance you would be willing to share the code you used to scrape the eFUSE registers from T4.1?
  33. Replies
    185
    Views
    23,143

    Just getting going with NativeEthernet on T41. So...

    Just getting going with NativeEthernet on T41. So far I seem to be figuring it out....if slowly.

    Here's a hopefully easy question related to Ethernet.begin() calls:

    If I use this (passing mac...
  34. T4.1 NativeEthernet - Advanced Chat Server not working w/Telnet

    T41 noob here (but have used the T40).
    I'm trying to get two T41's to talk to each other over Ethernet using the NativeEthernet + FNET ZIP libs from Github. Both T41s are equipped with the PJRC...
  35. Replies
    13
    Views
    1,207

    I'm right there with you. I'm still trying to...

    I'm right there with you. I'm still trying to figure out which Ethernet library is the right one. Looks like a lot of documentation hasn't yet caught up to the 4.1 release.

    Which library are you...
  36. Replies
    3
    Views
    1,818

    Teensy 4.0 - 3D CAD model?

    Teensy noob here. I see that 3D CAD models are available for various Teensys, but I haven't found one for the 4.0.

    Anyone have a 4.0 CAD model that I can import into Solidworks (2017) - native,...
  37. Replies
    26
    Views
    17,500

    Teensy noob here. I see that 3D CAD models are...

    Teensy noob here. I see that 3D CAD models are available for various Teensys, but I haven't found one for the 4.0.

    Anyone have a model that I can import into Solidworks (2017) - native, STEP, or...
Results 1 to 37 of 37