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

Search:

Type: Posts; User: el_supremo

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    85

    You can use the "Go Advanced" button to attach an...

    You can use the "Go Advanced" button to attach an image to your message. It will allow bmp gif jpe jpeg jpg pdf png

    Pete
  2. Replies
    5
    Views
    85

    I haven't found any obvious problems in a casual...

    I haven't found any obvious problems in a casual look through the code but this code strikes me as odd:

    for (int a = teta_min_r; a <= teta_max_r; a++) {
    int x = sin(radians(a)) *...
  3. To expand a bit on what @defragster wrote: When...

    To expand a bit on what @defragster wrote: When that code is run, the USB port on the Teensy will appear as a COM port on the PC. You don't have to have the serial monitor on that COM port. A...
  4. I think the wiring is correct so the only thing I...

    I think the wiring is correct so the only thing I can suggest is to post a photo of the wiring between Teensy and display.

    Pete
  5. Sorry, I can't help with that. I've done...

    Sorry, I can't help with that. I've done practically nothing with Teensy related to interacting with a web page.

    Pete
  6. Ahhh, rats. Somehow I missed the declaration of...

    Ahhh, rats. Somehow I missed the declaration of begin() in SSD13XX.h where it defaults to false anyway.

    Pete
  7. It may be that it is not initializing SPI for...

    It may be that it is not initializing SPI for you. Try this:

    tft.begin(false);
    The begin method requires a boolean value telling it whether to call SPI.begin() for you. When you don't specify a...
  8. I've added some code which allows the CC number...

    I've added some code which allows the CC number to be changed by using the serial monitor to enter the index of the CC to be changed and the CC number - e.g. 0 17
    It's not exactly a web UI but it...
  9. I think the display's DIN should be on Teensy pin...

    I think the display's DIN should be on Teensy pin 11. The display only has input, so its DIN corresponds to what SPI usually calls MOSI (Master Out, Slave In, in this case Teensy is the Master).
    DIN...
  10. Replies
    11
    Views
    182

    There is no way to know. You haven't posted any...

    There is no way to know. You haven't posted any code and you haven't even said what it is supposed to do, nor what "stops working" actually means.
    You should reduce your code to the smallest amount...
  11. Replies
    6
    Views
    157

    It has the same directory path on Windows. Pete

    It has the same directory path on Windows.

    Pete
  12. Replies
    3
    Views
    94

    Sorry. I am not familiar with flight sim...

    Sorry. I am not familiar with flight sim software.

    Pete
  13. Replies
    3
    Views
    94

    If you're asking about the DCS-Bios for Arduino...

    If you're asking about the DCS-Bios for Arduino, I've downloaded and had a look at it. Some of the code in DcsBios.h refers directly to Arduino hardware registers which is why it won't compile for a...
  14. Replies
    1
    Views
    128

    This would be a quick and dirty start which will...

    This would be a quick and dirty start which will average every 8 samples up to sample 6360:

    for(int i = 10; i < 795*8; i += 8) // draw from 10 to 795 px - but I have 8192 (nFFT/2) values
    {
    ...
  15. Replies
    10
    Views
    256

    I tried it with: file.open(fileName,...

    I tried it with:

    file.open(fileName, FILE_WRITE);
    and that works. It also has the correct timestamp on the file - using a T3.6.

    Pete
  16. Replies
    46
    Views
    743

    FYI: I created a pull request on github for the...

    FYI: I created a pull request on github for the error that I found in the _Q_coeff array (see #33). The PR was accepted about an hour ago.

    Pete
  17. Replies
    46
    Views
    743

    Wikipedia...

    Wikipedia explains oversampling better than I can. Basically, it reduces the noise and increases the resolution but at the cost of having to collect more samples. This is why the 4096 OSR conversion...
  18. Replies
    46
    Views
    743

    You're welcome :) FYI. I notice that by...

    You're welcome :)

    FYI. I notice that by default the library uses an oversampling ratio of 4096 which will mean that it will take between 7 and 9 milliseconds to read the temperature or pressure...
  19. Replies
    46
    Views
    743

    As expected, I get the same pressures. I've also...

    As expected, I get the same pressures. I've also looked at the code itself and compared it with the datasheet. It looks correct to me and, as I mention in #37, the library matches the results in the...
  20. Replies
    46
    Views
    743

    Your loop function will only delay for 5 seconds...

    Your loop function will only delay for 5 seconds if it gets a valid reading from both sensors and in this case it will have read from each sensor twice, throwing away the first reading. If either...
  21. Replies
    46
    Views
    743

    I also need the raw numbers produced by the added...

    I also need the raw numbers produced by the added code I mention in #21.
    Can you also post the code that produces the output in #38?

    Pete
  22. Replies
    46
    Views
    743

    I've checked the library code for the pressure...

    I've checked the library code for the pressure calculation using the example data from Page 7 of the datasheet and they agree.

    Pete
  23. Replies
    46
    Views
    743

    Sure, I'll have a look. In order to be sure that...

    Sure, I'll have a look. In order to be sure that I'm using the correct Q coefficients, I need to know which part number was used.
    Can you change the code I gave you for the _begin_common function to...
  24. Replies
    46
    Views
    743

    Sure, I'll have a look. In order to be sure that...

    Sure, I'll have a look. In order to be sure that I'm using the correct Q coefficients, I need to know which part number was used.
    Can you change the code I gave you for the _begin_common function to...
  25. Replies
    46
    Views
    743

    I just happened to scan the coefficients table in...

    I just happened to scan the coefficients table in the code and compare it with the datasheet. There is an error in the _Q_coeff array (in MS5525DSO.cpp) entry for pp002DS.
    I've commented the old...
  26. Replies
    46
    Views
    743

    Are they all the same part number? Pete

    Are they all the same part number?

    Pete
  27. Replies
    46
    Views
    743

    I don't know what you're referring to here. Which...

    I don't know what you're referring to here. Which other sensors and "same values" as what?

    BTW. I've only been checking the temperature results. I can have a look at the pressures.

    BTW2. The...
  28. Replies
    46
    Views
    743

    You can use both sensors by modifying the call to...

    You can use both sensors by modifying the call to begin. The example code just uses sensor_pres.begin() which will use the default I2C address of 0x76. The .h header file has defines for both...
  29. Replies
    46
    Views
    743

    Where did you get this from? This is completely...

    Where did you get this from? This is completely wrong and is why you were seeing temperatures in the region of 26000 instead of 20.
    The original code that I have is:

    int64_t dT = raw[1] -...
  30. Replies
    46
    Views
    743

    The CRC of both nprom arrays is correct, so that...

    The CRC of both nprom arrays is correct, so that gives some confidence that the library is using valid values. Also, those temperatures don't look as wildly improbable as you mentioned in #9.
    Next...
  31. Replies
    46
    Views
    743

    It prints all 8 values in the PROM. The library...

    It prints all 8 values in the PROM. The library only reads 6 of them and ignores the CRC. The data above show that the CRC is correct.
    But you didn't include the line which has the calculated...
  32. Replies
    46
    Views
    743

    I tested the library's calculation of temperature...

    I tested the library's calculation of temperature with the example values given in the PDF and it gets the correct answer. So, I suspect that your code must be getting incorrect values from the...
  33. Replies
    46
    Views
    743

    Do you have pullups on SDA and SCL? If so, what...

    Do you have pullups on SDA and SCL? If so, what value are they?
    It might help if you post a photo of the device and its connections to the Teensy.

    Pete
  34. Replies
    46
    Views
    743

    Copy and paste all the output from the example...

    Copy and paste all the output from the example code including the list of coefficients that are printed before it gets the temperature and pressure.

    Pete
  35. Replies
    14
    Views
    270

    I have a teensy sketch which uses MIDI and...

    I have a teensy sketch which uses MIDI and Serial. When it is running, it uses COM13 (plus there's a "Teensy MIDI" MIDI port as well). But if I run a program which only uses Serial, that uses COM9....
  36. Replies
    46
    Views
    743

    Which Teensy are you using? For most Teensys,...

    Which Teensy are you using?
    For most Teensys, you would normally connect SDA to pin 18 and SCL to pin 19. You will also need 3.3k pullup resistors on both SDA and SCL. Plus power and ground of...
  37. You're welcome. Hope you get it sorted. Pete

    You're welcome. Hope you get it sorted.

    Pete
  38. Just tried it on a T4.0 with Arduino 1.8.15 and...

    Just tried it on a T4.0 with Arduino 1.8.15 and TD 1.54.
    MIDI-OX sees ComposerCtrl-1 and receives the Sysex, NoteOn and NoteOff.

    Pete
  39. You can use pitch bend to generate vibrato but...

    You can use pitch bend to generate vibrato but you have to generate every pitch bend message yourself.
    This demo code sends a MIDI note on and then generates pitch bend messages based on sine wave...
  40. Replies
    7
    Views
    128

    The glossy card that came with your LC shows...

    The glossy card that came with your LC shows where that pin is located. See the right-hand edge of the picture. It's immediately below pin 13.

    Pete
  41. Replies
    9
    Views
    408

    Thanks Frank. I had removed the USBHub...

    Thanks Frank. I had removed the USBHub declarations from the MIDI code I was using because I didn't need them. Then I promptly forgot that USBHub exists.
    If I can free up one of my hubs, I'll try...
  42. Replies
    9
    Views
    408

    I haven't tried using a hub on the USBHost and...

    I haven't tried using a hub on the USBHost and don't know if it will work.

    Pete
  43. Replies
    9
    Views
    408

    You can use the T4.1 (or T3.6) as a USB Host. It...

    You can use the T4.1 (or T3.6) as a USB Host. It requires that you solder a header to the board and use a USB host cable as shown here.
    I use it to connect an M-Audio 61es MIDI keyboard directly to...
  44. Replies
    6
    Views
    216

    I think it's a false positive. I use Kaspersky...

    I think it's a false positive. I use Kaspersky and ran it on the entire 1.8.15 + 1.54b11 installation and it found nothing.
    YMMV.

    Pete
  45. Replies
    4
    Views
    177

    Just an FYI: pin 14 and A14 are not the same...

    Just an FYI: pin 14 and A14 are not the same thing. pin 14 is the analog pin referred to as A0. A14 is on pin 38.

    Pete
  46. Replies
    65
    Views
    1,544

    Installed b11 over b10. No problems but haven't...

    Installed b11 over b10. No problems but haven't beaten it up yet.

    Pete
  47. FYI: Just tested part of this code on a Teensy2...

    FYI: Just tested part of this code on a Teensy2 and it receives Control Change message 86 on channel 1, turning the LED on when it receives a volume of 127 and turning it off when it receives a...
  48. My bad. I meddled with the control numbers and...

    My bad. I meddled with the control numbers and didn't change them back again. The myControlChange function should be this:

    void myControlChange(byte channel, byte control, byte value)
    {
    ...
  49. A first iteration of your code with MIDI receive...

    A first iteration of your code with MIDI receive added would be:

    //Buttons, LEDs
    #include <ButtonSwitch.h>

    int buttonPin1 = 0; // define Pin XXX as the input of the button signal
    int LED1 =...
  50. Do you open the Serial Monitor? That's what...

    Do you open the Serial Monitor? That's what while(!Serial) is waiting for.
    If you do, try putting a fillScreen and setCursor before the second print just to be sure that the second print isn't...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4