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.02 seconds.

  1. Are the yellow and green wires soldered on to the...

    Are the yellow and green wires soldered on to the board at the right? It looks like they are jumper wires whose pins might just be pushed into the holes in the board.

    Pete
  2. Call handle_Messages from the loop() function and...

    Call handle_Messages from the loop() function and try increasing the heartbeatInterval_RX as I mentioned in #2. When the messages are occurring one every 250ms, there's no need for the receive...
  3. I don't think this is correct - i.e. it is not...

    I don't think this is correct - i.e. it is not interrupt driven. You have to arrange your code such that it calls handle_Messages more frequently than the heartbeat timeout, which is ten...
  4. I would guess that runningLeds is calculating an...

    I would guess that runningLeds is calculating an invalid value for the index 'cled' into the ledfunctions array. This calculation:

    int tled=st-ct;
    float pled=tled/float(st);
    boils down to...
  5. Are you using the Rev D audio board? Post a...

    Are you using the Rev D audio board?
    Post a photo which clearly shows the audio board and T4.1 connected together.
    The audio library works with T4.1

    Pete
  6. FYI: v2.2.3 also works on T4.1 Pete

    FYI: v2.2.3 also works on T4.1

    Pete
  7. The default version of irremote (v2.2.3), which...

    The default version of irremote (v2.2.3), which is in the Teensy distribution, works on both T2.0 and T3.2 with a TSSP4038 on Pin 2.
    I removed the local version (teensy/libraries/irremote) so that...
  8. Your code works on a Teensy 2.0 but not on a...

    Your code works on a Teensy 2.0 but not on a Teensy 3.2. It dies when the library's enableIRIn function re-enables interrupts after setting up a timer.

    Pete
  9. Pin 13 is the output LED on the T3.2 and doesn't...

    Pin 13 is the output LED on the T3.2 and doesn't behave quite the same as an ordinary digital input pin. Try using RECV_PIN on pin 14.

    BTW. Which IR receiver are you using?

    Pete
  10. Replies
    11
    Views
    324

    Hi Kevin, This is just a wild guess, but try...

    Hi Kevin,
    This is just a wild guess, but try moving one of the ADC to pin 38 (A14). I think it is on the other ADC. Perhaps the library can handle two ADCs on T4.1 if one is on ADC1 and the other on...
  11. Replies
    11
    Views
    324

    The audio design GUI says that AudioInputAnalog...

    The audio design GUI says that AudioInputAnalog for T4.0 and T4.1 is "experimental". Perhaps you are stretching things a bit too far? I'm afraid I haven't used it.

    Pete
  12. Replies
    11
    Views
    324

    I knew there was something special about...

    I knew there was something special about AudioInputAnalogStereo. It is only defined for Teensy 3.2, 3.5 and 3.6.

    You'll have to use two separate AudioInputAnalog as input to the mixer.

    Pete
  13. Replies
    11
    Views
    324

    I've just compiled and ran the code. The change...

    I've just compiled and ran the code. The change to the mixer gains doesn't help. I removed the call to system_StartupSequence() - what does it do?

    Pete
  14. Replies
    11
    Views
    324

    Normally, the sum of the gains into a mixer...

    Normally, the sum of the gains into a mixer should be 1 - unless you have controlled the inputs to the mixer to ensure that its output won't exceed the range [-32768,32767]. Try this:

    ...
  15. No need for an array. You could have a function...

    No need for an array. You could have a function to read the pot similar to this:

    int last_pot = 0;
    void read_pot(void)
    {
    int i = analogRead(POT);
    if(i == last_pot)return;
    last_pot = i; ...
  16. Replies
    17
    Views
    525

    Here's some code which follows the wikipedia...

    Here's some code which follows the wikipedia article on the subject.

    int p(int yr)
    {
    return (yr +yr/4 - yr/100 + yr/400)%7;
    }

    int weeks(int yr)
    {
    if(p(yr) == 4)return(53);
  17. Replies
    17
    Views
    525

    I didn't know that there was a way of counting...

    I didn't know that there was a way of counting the weeks that can put the first few days of January "in week 52 or 53 of the previous year" (from ISO-8601).
    I'll try to mangle the code to sort that...
  18. Replies
    17
    Views
    525

    Try my code. It should work and doesn't require a...

    Try my code. It should work and doesn't require a while loop.

    Pete
  19. Is this question any different than the one in...

    Is this question any different than the one in your other thread?

    I doubt that multiplying a 40kHz audio signal by a 38kHz square wave is going to conveniently shift the audio down to 2kHz. The...
  20. Replies
    17
    Views
    525

    I have a bit of code to calculate the week (and...

    I have a bit of code to calculate the week (and day) number. First calculate the time_t value of the start of the year - only need to do this once:

    // Need to adjust for years after 2021
    ...
  21. Replies
    17
    Views
    525

    The problem is that timelib uses 1970 as the...

    The problem is that timelib uses 1970 as the epoch and the year is offset by that amount. To set the year properly you would have to so this:

    te.Year = 2021-1970;

    and to print the last two...
  22. Have you tried an I2C scanner to see if the...

    Have you tried an I2C scanner to see if the device is at least on the bus? If it doesn't find the device, have you got 4.7k pullup resistors on SDA and SCL?

    Pete
  23. Perhaps the Bat Detector...

    Perhaps the Bat Detector thread will have something useful for you. It does require the audio board though, but you can then use setI2SFreq to change the default 44.1kHz sampling rate to something...
  24. Replies
    10
    Views
    359

    I tested usb host serial on a T4.1 connected to a...

    I tested usb host serial on a T4.1 connected to a T3.6.
    First, load this receiving program into the T3.6.

    // Works on a T3.6 which receives CR/LF from the
    // USB host port on a T4.1
    // The LED...
  25. Replies
    10
    Views
    359

    It probably won't make a difference but this ...

    It probably won't make a difference but this

    Serial.write(0x0B);

    should be

    Serial.write(0x0D);

    Pete
  26. You will always get that "plop" or "click" when...

    You will always get that "plop" or "click" when you turn a sound on or off very suddenly. You need to ramp the sound up and then down to avoid this.
    Try these settings, as a start:

    ...
  27. The syntax for the two-dimensional array is...

    The syntax for the two-dimensional array is wrong. It should be this:

    const int CCID[CC_SETS][A_PINS] = {{11,11,11,1,1,11},{11,11,1,11,1,11},{11,1,11,11,1...
  28. You need sgtl5000_1.unmuteLineout(); Pete

    You need

    sgtl5000_1.unmuteLineout();

    Pete
  29. Replies
    25
    Views
    2,731

    You're absolutely right. I misread it. Sorry. ...

    You're absolutely right. I misread it. Sorry.

    If you just want to see the spectrum of the guitar sample, There's a variable that is set to 0, 1 or 2 when you push the buttons. It is initially...
  30. Replies
    25
    Views
    2,731

    You need to install the three buttons to use the...

    You need to install the three buttons to use the complete example code. By default it uses SDTEST1.WAV as the audio input to the FFT. Each of the three buttons selects a different input.

    // Left...
  31. Just FYI: When I compile that code with Arduino...

    Just FYI: When I compile that code with Arduino 1.8.13 and TD 1.54-beta6, it spits out an error message early on in the compilation.

    Error while detecting libraries included by...
  32. Replies
    6
    Views
    270

    The adafruit BMP380 board has 10k pullups on the...

    The adafruit BMP380 board has 10k pullups on the two I2C pins which may not be sufficient. Try adding pullup resistors of about 4k7 ohms to both A4 and A5.

    Pete
  33. Replies
    6
    Views
    270

    Oh, I missed something. The bmp.begin() is before...

    Oh, I missed something. The bmp.begin() is before the Serial.begin(). It may be failing but unable to print anything.
    Try this:

    void setup() {
    Serial.begin(9600); //Begin serial communication...
  34. Excellent :) Pete

    Excellent :)

    Pete
  35. Replies
    6
    Views
    270

    Try changing bmp.begin(); to this: if...

    Try changing bmp.begin(); to this:

    if (!bmp.begin()) {
    Serial.println("Could not find a valid BMP280 sensor, check wiring!");
    while (1);
    }
    Just to make sure that the Teensy can...
  36. What kind of audio are you using for line input?...

    What kind of audio are you using for line input? If you're playing from a phone or a PC, have you turned up the audio enough?
    When I play audio from PC to line-in there's rarely any non-zero output...
  37. I don't think the buffer size has anything to do...

    I don't think the buffer size has anything to do with the 480Mbit/sec transfer rate.
    I may be wrong, but I think the larger buffer size just allows you to send larger SYSEX messages in one large...
  38. // TODO: start a timer, rather than sending the...

    // TODO: start a timer, rather than sending the buffer
    // before it's full, to make best use of bandwidth
    This means that, at the moment, it sends a message immediately in which case having a very...
  39. uint16_t can only store numbers in the range 0 to...

    uint16_t can only store numbers in the range 0 to 65535. The compiler is warning you that it can't cram a number like 4406636708352ll into 16 bits. That number requires 43 bits which is why it has...
  40. Replies
    91
    Views
    4,458

    Just installed TD 1.54_b6 over a fresh Arduino...

    Just installed TD 1.54_b6 over a fresh Arduino 1.8.13 with no problems. Windows 10 Pro X64

    Pete
  41. For cue points, maybe this thread...

    For cue points, maybe this thread is useful, especially my message #10.

    Pete
  42. The attached version compiles. I mangled the code...

    The attached version compiles. I mangled the code until it looked like the example in Files/Examples/Audio/Synthesis/WaveTable/Simpletable.
    23546

    Pete
  43. In your Churchorgan_samples.h change this line: ...

    In your Churchorgan_samples.h change this line:

    #include <AudioSynthWavetable.h>

    to this:

    #include <synth_wavetable.h>

    It still won't compile but it'll get further along.
  44. I missed another problem ...

    I missed another problem

    if((L_Queue.available() > 1) && (R_Queue.available() > 1)){

    Those should be >= otherwise you won't process anything until there's at least two buffers in each of the...
  45. The ADC values are signed 16-bit. This is why you...

    The ADC values are signed 16-bit. This is why you see the large values such as 65369, it is actually a small negative number.

    This piece of your code is wrong:

    uint16_t (*buff_pointer_L) =...
  46. Replies
    1
    Views
    113

    TimeLib.h in hardware\teensy\avr\libraries\Time...

    TimeLib.h in hardware\teensy\avr\libraries\Time declares them to be int

    Pete
  47. Which Teensy are you going to use? How long a...

    Which Teensy are you going to use? How long a recording do you want?

    Pete
  48. For example, in the read_all_data example, it...

    For example, in the read_all_data example, it uses this to instantiate the device:

    Adafruit_BNO055 bno = Adafruit_BNO055(55, 0x28);
    You would just change it to

    Adafruit_BNO055 bno =...
  49. I believe that all you have to do is change ...

    I believe that all you have to do is change

    *theWire = &Wire
    to

    *theWire = &Wire2

    Oh, hang on. You don't have to change the library. All you do is reference &Wire2 when you instantiate the...
  50. Replies
    12
    Views
    620

    It might work if it was counting audio cycles but...

    It might work if it was counting audio cycles but as far as I know there's no way to do that.

    Pete
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4