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

Search:

Type: Posts; User: rcarr

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    131

    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...
  2. Replies
    5
    Views
    157

    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...
  3. Replies
    5
    Views
    157

    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.
  4. 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...
  5. 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.
  6. 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...
  7. The pinout is different CBE and EBC. This...

    The pinout is different CBE and EBC.

    This statement is nonsensical.
  8. 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...
  9. Replies
    10
    Views
    234

    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
    *...
  10. Replies
    1
    Views
    79

    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.
  11. Replies
    3
    Views
    128

    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...
  12. Replies
    1
    Views
    123

    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...
  13. 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...
  14. Thread: USB Audio Mixing

    by rcarr
    Replies
    11
    Views
    381

    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...
  15. 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...
  16. 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...
  17. Replies
    22
    Views
    415

    Is "88" less than 10000?

    Is "88" less than 10000?
  18. Replies
    22
    Views
    415

    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...
  19. 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...
  20. 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. ...
  21. >>>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...
  22. Thread: Level shifting

    by rcarr
    Replies
    7
    Views
    283

    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...
  23. Replies
    7
    Views
    295

    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.
  24. Replies
    15
    Views
    468

    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...
  25. 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...
  26. Replies
    3
    Views
    168

    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...
  27. Replies
    3
    Views
    168

    27931 If you interrupt on A falling, you can...

    27931

    If you interrupt on A falling, you can see that B will always be low. Only if there are encoder bounces will you have something different.
  28. Replies
    10
    Views
    203

    byte rowPins[ROWS] = {0,1,2,3,4,5,6,7,8,9,10,11};...

    byte rowPins[ROWS] = {0,1,2,3,4,5,6,7,8,9,10,11}; //connect to the row pinouts of the keypad, PIN 0 USED HERE
    byte colPins[COLS] = {26,25,24,12}; //connect to the column pinouts of the keypad
    ...
  29. You may have some luck with just swapping your...

    You may have some luck with just swapping your rows and columns in your program. VIL on the Teensy is about 1.1 volt according to the reference document, so as long as your diodes have a voltage...
  30. I don't think you want or need to use diodes at...

    I don't think you want or need to use diodes at all. My interpretation of the issue is:

    Your reference that uses the diodes is driving the columns high and detecting high signals on the rows....
  31. Replies
    3
    Views
    214

    A hardware solution: you could gate SDA and SCL...

    A hardware solution: you could gate SDA and SCL with an analog mux or 2 FET's. You enable the I2C bus and send your data. You disable the bus and send the read command which your slave will not...
  32. Thread: 24 Keys Matrix

    by rcarr
    Replies
    14
    Views
    1,107

    From your description of "inside if and after...

    From your description of "inside if and after else" it seems you may have the delay in the wrong place in the code. It should be just before the 2nd for loop. Perhaps you should post the new code...
  33. Replies
    5
    Views
    252

    From the Adafruit site: VIN - This is the...

    From the Adafruit site:

    VIN - This is the input to the 3.3V voltage regulator, which makes it possible to use the 3.3V sensor on 5V systems. It also determines the logic level of the SCL and SDA...
  34. That was a weird problem, glad you got it fixed.

    That was a weird problem, glad you got it fixed.
  35. https://m.media-amazon.com/images/I/71R-kx6e5qL._A...

    https://m.media-amazon.com/images/I/71R-kx6e5qL._AC_SL1100_.jpg

    Hope the image shows. I think this is the supply you are using.
    The first 3 terminals are for the power cord, line neutral and...
  36. >>> as the Teensy is powered by usb. I have...

    >>> as the Teensy is powered by usb.

    I have never played with these LED strips, but over here https://www.pjrc.com/teensy/td_libs_OctoWS2811.html it says that the Teensy should be powered by the...
  37. Yeah, I googled the power supply and saw it had...

    Yeah, I googled the power supply and saw it had a barrier strip for hookup, so a potential area where a user could mess up. But I think if wrong you would be blowing fuses.

    From the low voltage...
  38. Line and neutral swapped on your 5 volt supply?

    Line and neutral swapped on your 5 volt supply?
  39. Replies
    13
    Views
    1,021

    Since it doesn't work when mounted in the...

    Since it doesn't work when mounted in the connector, I suspect you may have a short between the "unused" pins on the connector. I notice in one picture that the soldered leads are not cut off with...
  40. Are you cutting VUSB on your Teensy's ? It...

    Are you cutting VUSB on your Teensy's ? It seems you should be as you describe external power and connection to a PC.
  41. Yes from the results you are getting, both slaves...

    Yes from the results you are getting, both slaves are responding to the read command at the same time. If it were 8 bit data and the true reading of unit 1 was 0xF1 and the true reading of unit 2...
  42. The open collector I2C bus with pullups acts as a...

    The open collector I2C bus with pullups acts as a wired AND or wired NOR. Each device can turn ones into zero's but cannot change zero's into ones. You will never get the actual correct reading...
  43. Thread: 24 Keys Matrix

    by rcarr
    Replies
    14
    Views
    1,107

    Thinking about the differences between a UNO and...

    Thinking about the differences between a UNO and a Teensy:

    The Teensy is faster and will fail when the program needs more time between steps. I think that is probably the issue and would suggest...
  44. As a valid test, you could wire say pin 5 over to...

    As a valid test, you could wire say pin 5 over to one of the resistors on the breadboard and then write a signal pulse in loop like


    delay(100);
    digitalWrite( 5, LOW );
    digitalWrite( 5,...
  45. The signals on the scope show undershoot, ( they...

    The signals on the scope show undershoot, ( they go below zero volts ) and the rising edge looks like there is capacitance. Perhaps your scope probes are not compensated. There are a couple of...
  46. There is something that doesn't quite add up with...

    There is something that doesn't quite add up with this experiment. Just touching the pin with a probe shouldn't cause a low going signal. Your power wiring looks a little suspect, the connector on...
  47. class AudioAnalyzePrint : public AudioStream {...

    class AudioAnalyzePrint : public AudioStream
    {
    public:
    AudioAnalyzePrint(void) : AudioStream(1, inputQueueArray),
    myname(NULL), state(0), trigger_edge(0), delay_length(0), print_length(500)...
  48. Thanks. I guess I should update my install. I...

    Thanks. I guess I should update my install. I was reluctant to because of some edits I made so I could use non-blocking I2C_t3 functions instead of Wire.
  49. Looks like it updates a receive only buffer at...

    Looks like it updates a receive only buffer at least in the version of the library that I have.


    void AudioEffectRectifier::update(void)
    {
    audio_block_t *block = receiveReadOnly();
    if...
  50. Is there something wrong with Audio rectify1

    I am making a SDR radio, but this example shows the problem.

    Teensy 3.2 at 72mhz compiled faster. Not sure how to find my version of Teensyduino. I haven't downloaded recently.

    The idea is...
Results 1 to 50 of 288
Page 1 of 6 1 2 3 4