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

Search:

Type: Posts; User: BriComp

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds; generated 41 minute(s) ago.

  1. I was talking about Serial1 on the Teensy....

    I was talking about Serial1 on the Teensy. Perfectly stable.
    I don't know about the stability of the rpi serial ports, though you can feed the serial output from the Teensy serial pot to whichever...
  2. OK, I am afraid I won't be able to help you with...

    OK, I am afraid I won't be able to help you with that, I have never used SPI, so have no experience with it.
    Just a thought, it might be worth printing out the contents of data to see what is coming...
  3. When you say error, what sort of error? Is it the...

    When you say error, what sort of error? Is it the error message from your Serial.write, or some other error?
  4. Use Serial interface. (Not usb serial aka Serial...

    Use Serial interface. (Not usb serial aka Serial ).
    Use a real serial port, ie Serial1.
  5. No problem. EDIT: I am no SPI expert, but I...

    No problem.
    EDIT:
    I am no SPI expert, but I think you are using SPI.beginTransaction wrongly.
    Since you are only using one SPI device you do not need to preserve and reinstate SPI settings.
    That...
  6. I am sorry but you don't. At least NOT in the...

    I am sorry but you don't. At least NOT in the code contained in your previous post. You have Serial.begin but NOT SPI.begin.
  7. I believe that you need to call SPI.begin()...

    I believe that you need to call

    SPI.begin() before calling
    SPI.beginTransaction(SPISettings(clockspeed, MSBFIRST, SPI_MODE0))I am not sure if this will cure your problem, but certainly worth a...
  8. Ok, so I would suggest sprinkling some...

    Ok, so I would suggest sprinkling some Serial.print statements to indicate where the code is going wrong.
    I have put some in your code below. You might want to change the text to something more...
  9. Replies
    2
    Views
    114

    I am afraid I think the Sleep Library is not...

    I am afraid I think the Sleep Library is not supported any more.
    I have in the past asked questions and got zero response.
  10. Replies
    282
    Views
    9,065

    Why not have a variable which can be set by the...

    Why not have a variable which can be set by the user.

    I don't know call it SerialUartSpeed, let's say with a value from 0..255.
    At 255 (default) the Serial Usb goes at it's fastest as at the...
  11. Please in future enclose your code with CODE tags...

    Please in future enclose your code with CODE tags using the # button above.
    This preserves the presentation of the code, as shown below, and makes it easier for someone to understand your code and...
  12. Replies
    31
    Views
    1,859

    Ok, Got it. I had to write a small sketch to...

    Ok, Got it. I had to write a small sketch to prove it to myself.
    You learn something new each day. Thanks.
  13. Replies
    31
    Views
    1,859

    I can't see how that is safe. By way of example...

    I can't see how that is safe. By way of example lets assume that millis starts at 0, goes to 100 then wraps round to 0 again. I know it doesn't but this is to demonstrate the problem with your code...
  14. Replies
    11
    Views
    493

    I am not familiar with the Library nor LCD but...

    I am not familiar with the Library nor LCD but that error message is in RA8876_t3.cpp in the following function:
    //**************************************************************//
    /*[Status...
  15. Thanks Frank. I had got windows to search the...

    Thanks Frank. I had got windows to search the teensy libraries but should have included the cores as well.
    It was a bit worrying that there were 10 "TODO"s in the code.
  16. Hi Frank, I am still trying to learn all the...

    Hi Frank,
    I am still trying to learn all the intricacies of c++. Looking at your code above I could not see where
    external_psram_size; was set to any value. Can you explain for me.
    Thanks.
  17. Replies
    1
    Views
    104

    I have been using these...

    I have been using these and I find them excellent.
    For your module you might find this useful.

    I have made some modification to your receive code as below.
    //#include <SoftwareSerial.h> <<-...
  18. Replies
    33
    Views
    877

    Yea I couldn't find out how people were...

    Yea I couldn't find out how people were encapsulating the code when I first started. Eventually found out how!!
    I have since found that if you hover over the buttons an explanation of it's use pops...
  19. Replies
    33
    Views
    877

    Do you think in future you could enclose your...

    Do you think in future you could enclose your code between [C ODE] tags. These are the ones produced by pressing the # button above.
    Doing so keeps the format of the code and makes it more readable,...
  20. Replies
    42
    Views
    1,182

    What are the two plots on the graph?

    What are the two plots on the graph?
  21. Thread: Measure mV

    by BriComp
    Replies
    3
    Views
    268

    Can you expand on that, perhaps with a diagram. I...

    Can you expand on that, perhaps with a diagram. I googled but got nothing like you explained.
  22. A little Task for you. Read in 16 values using...

    A little Task for you.
    Read in 16 values using DigitalReadFast(1..16) shifting as necessary to represent the bit in the word and OR with the variable to hold the 16bits.
    Time it over 1000 attempts...
  23. I don't believe that the I/O runs at 600MHz. Bye...

    I don't believe that the I/O runs at 600MHz.
    Bye the way the H in Hz should be uppercase.
    All units derived from a human name ie Hertz, Newton, Ampere, always have their first letter capitalised....
  24. See here...

    See here and subsequent threads pointed to in msg#7.
    EDIT: See this thread as well.
  25. Replies
    27
    Views
    958

    He has already run the I2C Scanner which has...

    He has already run the I2C Scanner which has found the device.
  26. Replies
    27
    Views
    958

    OK, so wiring would appear correct. That's good....

    OK, so wiring would appear correct. That's good.
    I just looked at a LiquidCrystal_I2C example, I don't know if it is a solution, but they had the line
    lcd.backlight(); after the lcd.init. It looks...
  27. Replies
    27
    Views
    958

    Ok, try this one below, I just compiled it ok for...

    Ok, try this one below, I just compiled it ok for a T4.1, so should be OK. It ought to be included with Teensyduino instead of the one that is there. @PaulStoffregen

    //...
  28. Perhaps you should be asking the question on an...

    Perhaps you should be asking the question on an ESP/espressif board.
  29. Replies
    27
    Views
    958

    Ok, then run the scanner with your 20X4 display...

    Ok, then run the scanner with your 20X4 display attached to the second i2c port.
  30. Replies
    27
    Views
    958

    The display seen in the photo is one supplied...

    The display seen in the photo is one supplied with the board. He wanted to add another 20X4 I2C display, which is what he was having problems with.
    At least that is how I see it.
    Here is a link to...
  31. Replies
    27
    Views
    958

    I'm sorry, I thought that you were asking for...

    I'm sorry, I thought that you were asking for help in getting a 20x4 LCD display working on (SDA1 and SCL1)?
  32. Replies
    27
    Views
    958

    It's not a place for a jumper but a location for...

    It's not a place for a jumper but a location for an I2C QWIIC connector.
    What I2C Address are you using?
    Are you sure that it is the correct address?
    You can use the code following to scan your...
  33. I think you just did. The threads stay visible...

    I think you just did. The threads stay visible for ALL TIME. Ooh that's long. Pauls philosophy is to leave all posts visible for posterity. They may be useful to others.
  34. Replies
    3
    Views
    266

    You do realise that the MPU-9259 went EOL by...

    You do realise that the MPU-9259 went EOL by 12/31/2018. Apparently it was replaced by the ICM-20948.
  35. It's easy to get the cursor in the wrong place...

    It's easy to get the cursor in the wrong place when pasting between the [CODE.../CODE]" identifiers. I find the easier way is to highlight the section of code, then press the CODE button. The code is...
  36. Replies
    27
    Views
    736

    Others use 1.2k to 4.7k for that resistor.

    Others use 1.2k to 4.7k for that resistor.
  37. Replies
    27
    Views
    736

    Found this:-Not sure if it helps. I wonder if the...

    Found this:-Not sure if it helps. I wonder if the 470R is a bit low.
  38. Replies
    282
    Views
    9,065

    Oh, of course. I was thinking normal serial but...

    Oh, of course. I was thinking normal serial but it isn't. Stupid Me!!
  39. Replies
    282
    Views
    9,065

    Sorry, Frank, I might be being a bit pernickety...

    Sorry, Frank, I might be being a bit pernickety but should not this line in SpeedTest.ino
    Serial.printf("%d Bytes in %d us = %0.2f Megabits per second\n", n * size, t, n * size * 8 / (double)t);be...
  40. Replies
    282
    Views
    9,065

    I agree wholeheartedly.

    I agree wholeheartedly.
  41. If you are able to find the QUOTE button above,...

    If you are able to find the QUOTE button above, why is it not possible for you to use the CODE button. Your code that you found becomes much more readable.
    See below:-

    // Audio Tutorial Kit...
  42. Here is a snippet of the Adafruit LV6180X code:...

    Here is a snippet of the Adafruit LV6180X code:
    /**************************************************************************/
    /*!
    @brief Initializes I2C interface, checks that VL6180X is found...
  43. It does do the necessary begin(&wire). I...

    It does do the necessary begin(&wire). I downloaded the code too ensure that before giving my recommendation.
  44. I think @gfvalvo said it before I got back. You...

    I think @gfvalvo said it before I got back.
    You also do not need the other Wire stuff in setup.

    /*
    Wire.setSCL(24); // SCL2 on third i2c bus on T4.1
    Wire.setSDA(25); // SDA2 on third i2c...
  45. Try vl.begin(&Wire2);

    Try
    vl.begin(&Wire2);
  46. Replies
    14
    Views
    595

    Oh, OK. I tried googling it but could not find...

    Oh, OK.
    I tried googling it but could not find anything relevant.
  47. Replies
    14
    Views
    595

    What's an MRE?

    What's an MRE?
  48. Replies
    27
    Views
    958

    You can find the files here...

    You can find the files here.
  49. If you can't find these...

    If you can't find these why not use use these with these.
    They can even be made from a much longer strip for ease of supply.
    If making them from a longer strip, don't forget to allow for scrapping...
  50. Replies
    27
    Views
    958

    LiquicCrystal_I2C is hard coded to use Wire. You...

    LiquicCrystal_I2C is hard coded to use Wire. You will have to change LiquidCrystal_I2C to use Wire1. There is on entry to change in the .h and about 6 in the .cpp.
Results 1 to 50 of 423
Page 1 of 9 1 2 3 4