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

Search:

Type: Posts; User: rcarr

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. I don't really know but I doubt there are any...

    I don't really know but I doubt there are any side effects.

    I don't believe you will see any speed improvement in using the i2c_t3 unless you use the added functions that the library provides. ...
  2. My solution was to edit the 6 control files in...

    My solution was to edit the 6 control files in the Audio library like this example for one of the files:


    #include <Arduino.h>
    #include "control_sgtl5000.h"
    //#include "Wire.h"
    #include...
  3. The scope traces look good, I now think your...

    The scope traces look good, I now think your analysis of the issue is correct. May I ask what type of device is driving the signal / why is it slow? Are you relying on just the Teensy internal...
  4. Your scope capture shows some coupling between...

    Your scope capture shows some coupling between Ch1 and Ch2. For example at the falling edge on Ch1, Ch2 shows a slight bump. After the interrupt, the general noise on Ch1 is mirrored on Ch2. ...
  5. To answer my own question, run time size of...

    To answer my own question, run time size of arrays are valid in C now and without the C++ new and delete keywords as in your link. This link has a good discussion of potential issues, most notable...
  6. Replies
    2
    Views
    132

    } else { Serial.println("Reading EEPROM"); ...

    } else {
    Serial.println("Reading EEPROM"); //show reading
    EEPROM.get(store_direct, directions);
    EEPROM.get(sequences, store_seq); Address and data reversed here
    ...
  7. I am asking this as a question because I do not...

    I am asking this as a question because I do not know the answer.


    uint16_t bufCopy[NumElementsInBuffer];

    Does C++ allow dynamically allocated size of auto class arrays? As a C programmer I...
  8. Looking at peak in the audio library bool...

    Looking at peak in the audio library


    bool available(void) {
    __disable_irq();
    bool flag = new_output;
    if (flag) new_output = false;
    __enable_irq();
    return flag;
    }
  9. Replies
    4
    Views
    160

    The most likely scenario is that your 30 feet of...

    The most likely scenario is that your 30 feet of wire is acting as an antenna and picking up stray 60 (50) cycle fields. It could also pick up nearby transmitters such as FM stations, ethernet...
  10. See if this works better....and if it does, see...

    See if this works better....and if it does, see if you can see why.


    void updateMux1 () {
    for (int i = 0; i < 8; i++){
    digitalWrite(pin_Out_S0, i & B00000001);
    ...
  11. Maybe check your wiring? This sounds like a...

    Maybe check your wiring? This sounds like a half duplex, full duplex issue. It would seem that in your T3.5 setup, your DIR pin prevents your transmitted signal from appearing on the serial RX pin...
  12. Thread: CRC calculation

    by rcarr
    Replies
    5
    Views
    215

    You appear to be generating a CRC on 24 bytes, or...

    You appear to be generating a CRC on 24 bytes, or 192 bits; not on 3 bytes or 24 bits.

    Could the data just be int8[] type. Why is it in a string?

    If it needs to be in a string, you could...
  13. Replies
    2
    Views
    287

    I have. I did this sort of an exercise to see...

    I have. I did this sort of an exercise to see how it would work out. I think it would make much more sense to use the audio board. The readme on github has a fairly good explaination of the...
  14. Replies
    3
    Views
    262

    Possibly the difference is due to the difference...

    Possibly the difference is due to the difference in VIH, VIL of the Arduino vs the Teensy, one being a 5 volt input and the other 3.3 volt . They will detect high and low at different levels of...
  15. I suggest just start with a...

    I suggest just start with a delayMicroseconds(500) in your updateMux1() function. See if that helps with your unstable readings. My other idea is sort of like the blink without delay example where...
  16. https://www.ti.com/lit/ds/symlink/cd4051b.pdf?ts=1...

    https://www.ti.com/lit/ds/symlink/cd4051b.pdf?ts=1655186591995&ref_url=https%253A%252F%252Fwww.google.com%252F

    To find the amount of delay needed, look at the switching characteristics and the...
  17. This would seem to indicate that you have 5 volts...

    This would seem to indicate that you have 5 volts on the pots instead of 3.3 volts. If fed with 5 volts the Teensy LC may be destroyed.


    void updateMux1 () {
    for (int i = 0; i < 8; i++){
    ...
  18. To convert your code to Teensy could be as simple...

    To convert your code to Teensy could be as simple as changing one line:


    #define srxl2port Serial
    Change this line to
    #define srxl2port Serial1


    You would then add the diode circuit to...
  19. If you look at the one-wire protocol, you will...

    If you look at the one-wire protocol, you will see it is completely different from half duplex serial ( rs232 type ) communication. You will not be able to use the OneWire Library.
  20. Replies
    6
    Views
    458

    In one of my programs I used one bi-quad of high...

    In one of my programs I used one bi-quad of high pass and 3 bi-quads of low pass. For the narrow band mode of CW, the bandwidth is split plus and minus from the center frequency of 700 hz. You can...
  21. Replies
    6
    Views
    458

    Q is a value without units. I have used this...

    Q is a value without units. I have used this online calculator for cascading highpass, lowpass filters. I did not have good results with the bandpass filter type and cascaded highpass and lowpass...
  22. Replies
    1
    Views
    228

    The waveform looks like amplitude modulation, so...

    The waveform looks like amplitude modulation, so I would try rectifying, low pass filtering, and then peak detection. I do not know if that would work or not.
  23. Replies
    7
    Views
    250

    int throttle2_input = map(throttle_input, 1497...

    int throttle2_input = map(throttle_input, 1497 ,519 , 0, 180);
    throttel1.write(throttle2_input); You wanted throttel2.write here

    Do your ESC motors combination produce the...
  24. Replies
    7
    Views
    250

    Some thoughts: What gets printed out on...

    Some thoughts:

    What gets printed out on serial? Do you read the channel information correctly?

    Many/Most ESC's need to be armed, need to see zero speed for a certain time. Add that to setup....
  25. Replies
    2
    Views
    230

    From the linked threads, this one is something...

    From the linked threads, this one is something you can try in software: https://forum.pjrc.com/threads/69717-High-gain-audio-amp-picks-up-noise-from-analogRead?p=303208&viewfull=1#post303208

    You...
  26. Replies
    5
    Views
    262

    I don't see how it can not be connected unless...

    I don't see how it can not be connected unless that etch run has burnt open. You could check that by checking for 5 volts over on pin 1 of Encoder1. (But it would be much better if you check for...
  27. Replies
    5
    Views
    262

    The etch shows 5 volts going directly to pin 3,...

    The etch shows 5 volts going directly to pin 3, does it not? It doesn't even matter if the encoders were not plugged in, pin 3 will still see 5 volts.
  28. The library returns negative numbers for any...

    The library returns negative numbers for any error, so I don't think one should be surprised about the values printed being negative - it just points to some kind of error, like Kurt says maybe SPI...
  29. Perhaps receiving with SPI slave mode with a...

    Perhaps receiving with SPI slave mode with a hardware or software one-shot to recover the clock.
  30. Water is not conductive unless it has impurities....

    Water is not conductive unless it has impurities. My well water is very hard, and some water in the sink has about 100k ohms resistance between probes about 6 inches apart. You could measure your...
  31. The pinout is different CBE and EBC. This...

    The pinout is different CBE and EBC.

    This statement is nonsensical.
  32. So the switch blocks the traffic for some reason,...

    So the switch blocks the traffic for some reason, I would check logs/settings in the switch.
    Firewall settings.
    Improper network class chosen.
    Spanning tree decided the IP was on a...
  33. Replies
    10
    Views
    354

    The example code in the library shows some...

    The example code in the library shows some significant differences when using the T4, pin used and time in microseconds.


    /* FreqCount - Example with serial output
    *...
  34. Replies
    1
    Views
    139

    Try removing AudioNoInterrupts(); from your...

    Try removing AudioNoInterrupts(); from your loop. You need to let the audio processing happen in the background while you write the display.
  35. Replies
    3
    Views
    227

    The data sheet has the information to answer your...

    The data sheet has the information to answer your question:

    IIH High-level input current VI = VCC 1 μA
    IIL Low-level input current VI = 0 −1 μA

    1 micro ampere is a very small current, you will...
  36. Replies
    1
    Views
    184

    I2C is relatively slow compared to modern...

    I2C is relatively slow compared to modern processors. Adding to the issue is that the historical Arduino Wire library is somewhat brain dead in that it blocks during the end transaction function...
  37. Interesting thread. ...

    Interesting thread.

    https://forum.pjrc.com/attachment.php?attachmentid=27831&d=1647280960

    Since the circuit uses an external pullup, use of the internal pullup is redundant. I thought for sure...
  38. Thread: USB Audio Mixing

    by rcarr
    Replies
    12
    Views
    652

    A click and drag in the audio design tool and it...

    A click and drag in the audio design tool and it writes the program for you.

    How many sine waves do you need? With 4 mixers fed into one mixer you would have your USB audio plus 15 sine waves all...
  39. You can use two 1K resistors as a voltage divider...

    You can use two 1K resistors as a voltage divider to reduce 6.4 volts to 3.2 volts. Hopefully you haven't damaged pin 15 on your Teensy but you should keep that in mind as a possible future cause of...
  40. You can use attachInterrupt, here is a simple...

    You can use attachInterrupt, here is a simple explaination. https://forum.pjrc.com/threads/42800-Teensy-Interrupts-for-Dummies

    You can see in that example that you do not need to read what pin...
  41. Replies
    22
    Views
    628

    Is "88" less than 10000?

    Is "88" less than 10000?
  42. Replies
    22
    Views
    628

    I am not sure finding out why faulty code might...

    I am not sure finding out why faulty code might work on T3.x and not T4 is worth any time. It is most likely due to speed and when Serial available becomes true.

    But here is a code review that my...
  43. How do you know it still runs in this ^ scenario...

    How do you know it still runs in this ^ scenario was what I was questioning.

    You could try single shot triggered mode with your scope and try to catch the power up of your switching power...
  44. Since the test program doesn't do anything, how...

    Since the test program doesn't do anything, how do you know it still runs on battery?

    My initial thought was that some i/o pin(s) was powered up first and the Teensy entered a latch up state. ...
  45. >>>How can I return the accumulate moved steps of...

    >>>How can I return the accumulate moved steps of Accelstepper to Encoder library side?

    You could make use of one or both of these functions that are in the encoder library. As you can see, they...
  46. Thread: Level shifting

    by rcarr
    Replies
    7
    Views
    448

    The 74HCT125 enables are active low, you would...

    The 74HCT125 enables are active low, you would tie that to ground instead of +5 volts.

    Side effects of connecting switch 1,2,3 together puts the 10K and 22k resistors in parallel. You could just...
  47. Replies
    8
    Views
    563

    I would look for where you may be writing to a...

    I would look for where you may be writing to a readonly audio buffer, for example maybe your allocate() function.
  48. Replies
    15
    Views
    709

    The problem at hand seems very much like servos. ...

    The problem at hand seems very much like servos. The servo library drives 12 ( I think ) servos with one timer without any jitter. There are differences in that servos are pulsed one at a time, and...
  49. Do the programs work without the level shifters...

    Do the programs work without the level shifters using short wires for hookup?

    In reading the 1st post a few days ago my thoughts were that perhaps there are glitches on the signals or the slew...
  50. Replies
    3
    Views
    227

    Yes you're correct and not I. You can reference...

    Yes you're correct and not I.
    You can reference analog reads using the digital ground. The digital and analog ground are connected on the Teensy with an inductor.
    Teensy schematic.
    Using the...
Results 1 to 50 of 312
Page 1 of 7 1 2 3 4