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

Search:

Type: Posts; User: KurtE

Page 1 of 10 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    114
    Views
    4,235

    Again Maybe barking up wrong tree! We found...

    Again Maybe barking up wrong tree!

    We found the BNO080 to be temperamental...

    Paul put in some fixes (kludges) to Wire library awhile ago to take care of some error conditions that were...
  2. Again as per the BNO080 thread and here. There...

    Again as per the BNO080 thread and here. There are not pictures of your actual hookups, to check. Sometimes we see simple things like maybe you are missing a ground wire or maybe the wires don't...
  3. Replies
    23
    Views
    328

    Have you tried something like adding PU/PD...

    Have you tried something like adding PU/PD resistors to MISO pin?
    https://www.pjrc.com/better-spi-bus-design-in-3-steps/

    Sorry I am not much help here... As I mentioned before would start off...
  4. Probably not. But just simply walk yourself...

    Probably not. But just simply walk yourself thought he code to see what it does..

    That is, simply walk yourself though the code.

    void setup()
    {
    Serial.begin(9600);
    //SPI CS pins for the...
  5. Replies
    114
    Views
    4,235

    Again I don't think this is your problem.... The...

    Again I don't think this is your problem.... The Adafruit board has pretty weak 10K PU resistors if my quick check was correct...

    My impression from yesterday is one of your BNO080 works and the...
  6. Replies
    114
    Views
    4,235

    Again my guess is this is not your problem, but...

    Again my guess is this is not your problem, but maybe...

    Again their documents show the information, about the jumpers to enable the PU resistors. You need to unsolder that area.
    ...
  7. Sorry, again I don't have your setup and I have...

    Sorry, again I don't have your setup and I have disconnected what I had setup...

    But code in RED. Sounds like TH1 fails the begin... And then you tell it to hang there forever, with the line:...
  8. Replies
    114
    Views
    4,235

    As Paul said, you might want to ask Sparkfun... ...

    As Paul said, you might want to ask Sparkfun... But yes if you wish to use two of them on the same buss you need to update the I2C address of one of them.
    If you set their jumper that one should...
  9. Replies
    114
    Views
    4,235

    When we were having some issues with I2C, Paul...

    When we were having some issues with I2C, Paul made a few test boards which has on it some of the problematic and common devices to test...

    So I plugged in with T4.1...

    21933

    With this I...
  10. I believe that in this case it is simply that...

    I believe that in this case it is simply that symbol named remainder is used by a library header file included indirectly by <Arduino.h>

    bar:6: error: 'int remainder [16]' redeclared as different...
  11. Now that my two cheap cameras arrived. Do you...

    Now that my two cheap cameras arrived. Do you have some sample code to play with :D

    Looks like Arduino and Adafruit have versions of libraries that are geared directly to some specific hardware.
  12. It would not surprise me, we have not tried at...

    It would not surprise me, we have not tried at all to make sure it was compatible or not with anything other than a Teensy (3x and 4X I think).

    Not sure how hard it would be to do or not...
    ...
  13. Replies
    114
    Views
    4,235

    The code I ran was simply...

    The code I ran was simply File->Examples->Wire->Scanner

    Next question, when you compile where is it finding the Wire library? Mine is non-standard, so the build shows:

    Multiple libraries were...
  14. Replies
    114
    Views
    4,235

    So it looks like you have the same one I moved...

    So it looks like you have the same one

    I moved mine that is not part of test board to breadboard with T4 and hooked up with default wiring:
    21928

    And it works for me:

    Scanning...
    Device...
  15. Replies
    114
    Views
    4,235

    Which BNO080 board are you using? I believe most...

    Which BNO080 board are you using? I believe most of us are using the Sparkfun one, but for example in the thread:
    https://forum.pjrc.com/threads/62881-BNO080-and-Teensy-4-1-and-SPI-issue
    The user...
  16. Sorry I am not sure what you mean by blocks and...

    Sorry I am not sure what you mean by blocks and Patch... I am guessing your sketch is taking about 256KB?

    As Defragster mentioned, the T4 product page has a lot of good memory information.
    ...
  17. Replies
    114
    Views
    4,235

    It defaults to pins 18 and 19 which are A4 A5......

    It defaults to pins 18 and 19 which are A4 A5... So no it should see the board... Again assuming the board works, is configured for I2C

    Note: The Sparkfun BNO080 has Pull UP resistors on the...
  18. Replies
    114
    Views
    4,235

    As Paul mentioned, hard to know, what is...

    As Paul mentioned, hard to know, what is happening, without additional information. Like which BNO080 and how is it configured. Example, just recently we just tested a BNO080 running in SPI mode. ...
  19. I normally use IntervalTimer, but the Timer Tool...

    I normally use IntervalTimer, but the Timer Tool has lots of different options depending on your needs. Things like different clocks, speeds, plus he has setups for more C++ stuff.

    But again I...
  20. You might try the IntervalTimer class that is...

    You might try the IntervalTimer class that is built into the Teensy core:

    Something like:

    IntervalTimer it;

    void timer_isr() {
    ...
    }
  21. Replies
    4
    Views
    124

    Sorry, don't see enough stuff here to have a...

    Sorry, don't see enough stuff here to have a clue.

    That is in many cases like this, it is often things like your software crashed and system was in a bad state... Things like derefencing a NULL...
  22. Slight note: I believe you can call the...

    Slight note:
    I believe you can call the functions like setRX before or after the Serial2.begin...

    However if you do it in the order:


    Serial2.begin(9600);
    Serial2.setRX (26);...
  23. Replies
    23
    Views
    328

    Sorry, not seeing much. I assume you have...

    Sorry, not seeing much.

    I assume you have power to the board/motors, as I think I saw it would not work properly without power...

    It looks like it should be properly driving the SPI2 pins, as...
  24. Replies
    23
    Views
    328

    Maybe post your stripped down sketch on the off...

    Maybe post your stripped down sketch on the off chance one of us will see something obvious.

    Also have you posted something directly to sparkfun to see if they have any ideas?
  25. Note: the list of authorized distributors can be...

    Note: the list of authorized distributors can be found on the right hand side of the imain products page: https://www.pjrc.com/store/
  26. Replies
    4
    Views
    133

    Part of it by playing with a lot of this stuff...

    Part of it by playing with a lot of this stuff over several years.

    And then an open SublimeText 3 (editor) window open on the (<arduino install>/hardware/teensy/avr) directory and doing a global...
  27. Replies
    110
    Views
    14,506

    @GrahamH - Obviously Paul is the best one to...

    @GrahamH - Obviously Paul is the best one to answer this, but might help if you mentioned what you are looking for.

    That is, you might be able to find what you are looking for, by looking at a...
  28. Replies
    4
    Views
    133

    Sorry, I have not played around very much with...

    Sorry, I have not played around very much with RTC...

    But if I were going to, I would look at the stuff built into the core:

    Both Teensy 3.x and 4.x have a class built in:

    class...
  29. Again I am no expert... But I believe normally if...

    Again I am no expert... But I believe normally if it starts up at all, you would see something on the usb 1-1.2 if it was plugged into the same port on the last one.

    So it looks like it did not...
  30. Replies
    19
    Views
    12,402

    I have not used AtmelStudio in a long time. When...

    I have not used AtmelStudio in a long time. When I use VisualMicro I typically use it with Visual Studio 2019.

    Warning I don't use VisualMicro that often, but I know that it can be configured...
  31. Replies
    8
    Views
    196

    I second what @MarkT mentioned. I am old timer...

    I second what @MarkT mentioned. I am old timer and forgot they now allow variables to be allocated on the stack which are not fixed sized...
    So I would have probably done something like simply...
  32. Replies
    23
    Views
    328

    Next step if it were me, would try just the board...

    Next step if it were me, would try just the board and no display, just do serial outputs of the values and see if that works...

    If not, then I would maybe try hacking the library and hack the...
  33. currently there is no malloc/free operations on...

    currently there is no malloc/free operations on T4.x that allow you to allocate unused memory in the DTCM area of memory.

    Note: especially when you add a T4.1 into the mix with the possibility of...
  34. Replies
    23
    Views
    328

    Yes maybe looking at schematic it may simply pass...

    Yes maybe looking at schematic it may simply pass it on. - BUT, did you change the the hardware SDO jumper on the first board (closest one to the Teensy?)...
    Otherwise probably both SDO (MISO) pins...
  35. Replies
    8
    Views
    196

    I don't see int he code you pasted where for...

    I don't see int he code you pasted where for example dirName is defined, so sometimes hard to know, what is going on. Maybe dirName is not long enough to hold the whole thing and memory get...
  36. Replies
    21
    Views
    389

    Morning @mjs513 - I am on my third half cup... It...

    Morning @mjs513 - I am on my third half cup... It is late here almost 7AM...

    For what it is worth, I rehooked up my BNO080 using hardware jumper to choose SPI. and used default pins for all...
  37. Replies
    36
    Views
    1,303

    Also related: The USB Host adapter cable:...

    Also related: The USB Host adapter cable: https://www.pjrc.com/store/cable_usb_host_t36.html
    Should be updated to say that this works on T4.1 as well.

    Which with the pictures showing the RED...
  38. Replies
    21
    Views
    389

    I have no idea! That is as far as I can tell,...

    I have no idea! That is as far as I can tell, the sparkfun only does the cs support by using plain vanilla things like pinMode(_cs, OUTPUT); and digitalWrites();

    So my only guesses include
    a)...
  39. Replies
    23
    Views
    328

    Sorry, I have never used their controllers and...

    Sorry, I have never used their controllers and have done almost nothing with motors like this, so take with grain of salt. But in many cases like this my first guess is either bad hardware and/or...
  40. Yes - Wish there was a back page on the T4.1...

    Yes - Wish there was a back page on the T4.1 card...

    My quick print of my T4.1 extended card from the Excel document that @defragster mentioned,

    21877

    I updated slightly, it may not show up...
  41. You are welcome. And yes same as button. From...

    You are welcome. And yes same as button. From the pjrc web page with schematics...
    21867

    I would also maybe see if a simple change in sketch maybe helps

    In setup maybe something like:

    void...
  42. Sorry not really any reasonable ideas, and would...

    Sorry not really any reasonable ideas, and would start with Paul's suggestions.

    Some other things I would look at include:

    a) Does it appear like the Teensy is powered up in some of your...
  43. Replies
    4
    Views
    194

    As @Jonr stated... you could timestamp... But...

    As @Jonr stated... you could timestamp...

    But it will likely depend on your specific desired requirements...
    That is how often are you doing samples? For example suppose you are doing 100 per...
  44. Replies
    3
    Views
    219

    Sorry, I am not sure if there is any easy answer...

    Sorry, I am not sure if there is any easy answer to this, nor any tutorials,

    The way I have learned about doing DMA, is by looking at other code doing DMA... Plus looking through the reference...
  45. I probably have one of these although it came...

    I probably have one of these although it came with a small ribbon cable and small adapter part which I never tried and probably lost... I have a 5" with their resistive.
    I also have a couple of...
  46. Replies
    4
    Views
    157

    I assume a T3.x? As 14 is not a SCK pin on T4.x....

    I assume a T3.x? As 14 is not a SCK pin on T4.x.

    I did a quick look at ethernet library and did not find anywhere it did stuff with the SPI pins... But I might have missed it.
  47. Looks like fun. I have done some larger hats for...

    Looks like fun. I have done some larger hats for other RPI boards, but not for the Pi zero...

    Could be an interesting product.
  48. There is no real state machine stuff here. ...

    There is no real state machine stuff here. Typically state machine is usually something like, I am in state X, if condition Y happens I go to state Z...

    This is just a simple set of nested if...
  49. Which display do you have? Which library are you...

    Which display do you have? Which library are you using, which example?
  50. Again look at your loop code: void loop() { ...

    Again look at your loop code:

    void loop()
    {

    if (firstsecond >= 1000)
    {

    if (TCmillis >= 50)
    {
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4